Rust implementations of different systems concepts.
This repo is a concept lab: each example is intentionally minimal and self-contained so you can learn a topic quickly, run it, and reference it later.
examples/contains individual, runnable projects.crates/is reserved for shared libraries or future experiments.
Prereqs:
- Rust toolchain
- Additional tools as noted per example (e.g.,
protocfor gRPC)
Run an example:
cd examples/<example-name>
cargo run --bin <bin-name>If you want to run from anywhere:
cargo run --manifest-path /path/to/examples/<example-name>/Cargo.toml --bin <bin-name>examples/grpc-basic: minimal gRPC server/client using tonic + prost. Seeexamples/grpc-basic/README.md.examples/websockets: planned websocket example. Seeexamples/websockets/README.md.
- Examples favor clarity and small size over completeness.
- If an example uses codegen, check its
build.rsor README for tool requirements. - rust-analyzer makes it easy to inspect generated code via “Go to Definition” on types from
tonic::include_proto!.