A simple gRPC client and server written in Rust, using the tonic crate.
rust-grpc on main [!?] via 🐹 v1.20.2 via 🦀 v1.69.0 at ☸️ kind-kind
➜ tree . -d
.
├── grpc-client # gRPC client (bin)
│ └── src
├── grpc-server # gRPC server (bin)
│ └── src
└── proto # gRPC proto files (lib)
└── src
└── protos
├── hello
└── messages
- tonic (v0.9)
- prost (v0.11)
- tokio (v1.0)
- tonic-build (v0.9)
In one terminal window, run the server:
cargo run -p grpc-server
In another terminal window, run the client:
cargo run -p grpc-client
The commit messages have been generated using whatthecommit.