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 ;
The generated code includes:
- Message types (requests/responses)
ZoppServiceClientfor client-side usageZoppServiceServerfor server-side implementation