2 releases
| 0.1.1 | Jan 5, 2026 |
|---|---|
| 0.1.0 | Jan 5, 2026 |
#11 in #zopp
Used in 4 crates
12KB
zopp-proto
gRPC protocol definitions for zopp.
How it works
The build.rs script runs at compile time and uses tonic-prost-build to generate Rust code from proto/zopp.proto. The generated code is automatically included via tonic::include_proto!("zopp").
Modifying the proto file
- Edit
proto/zopp.proto - Run
cargo build -p zopp-proto - Generated Rust code is automatically updated
Using in other crates
use zopp_proto::{JoinRequest, JoinResponse, ZoppServiceClient, ZoppServiceServer};
The generated code includes:
- Message types (requests/responses)
ZoppServiceClientfor client-side usageZoppServiceServerfor server-side implementation
Dependencies
~16–31MB
~434K SLoC