This project is a Cargo workspace. The root package and default server binary
are named shitspeak-rs.
cargo fmt
cargo check
cargo test
cargo benchThe default cargo check and cargo test commands exercise the root package.
Before opening a change that touches a workspace library, run the full
workspace checks instead:
cargo check --workspace --all-targets --locked
cargo test --workspace --all-targets --lockedInclude the relevant optional feature when changing gateway code:
cargo check --workspace --all-targets --features web --locked
cargo check --workspace --all-targets --features moq --lockedRun the server locally:
cargo runProvide a TLS certificate and key at the paths configured in config.toml
before starting the server.
Feature builds:
cargo build --features web
cargo build --features moqcrates/shitspeak-proto/build.rs compiles the definitions in
crates/shitspeak-proto/protos with vendored protoc. Cargo writes the
generated files to that crate's OUT_DIR, and
crates/shitspeak-proto/src/lib.rs exposes them as:
mumble_protomumble_udps2s_transport_protos2s_overlay_protos2s_upper_layer_protos2s_replication_protos2s_application_proto
The build uses vendored protoc, so contributors normally do not need to install a separate Protobuf compiler.
Criterion benchmarks live under benches:
aclvoice_hotpathvoice_e2evoice_microbatchs2s_compressionfanout_vs_broadcast
Run all benchmarks:
cargo benchIntegration test harnesses and scenarios live under
crates/shitspeak-runtime/src/integration_tests. They cover authentication,
ACLs, channel operations, voice behavior, user stats, self actions,
moderation actions, and S2S transport/overlay/replication behavior.
The repository patches kcp and tokio_kcp to local vendored crates under vendor/.
The top-level README.md should stay short. Add task-specific details under docs/ and link them from the docs index.