Expand description
gRPC-style client and server implementation.
This provides gRPC and ttrpc servers and clients that interop well with mesh channels, allowing gRPC to be easily used with a mesh-based application.
Currently, the server supports the gRPC and ttrpc protocols, while the client only supports the ttrpc protocol.
§Usage
- Define your service in a
.protofile. - Use
mesh_build::MeshServiceGeneratorin yourbuild.rsto generate Rust traits and types for the service. - Implement the generated service trait.
- Create a
Serverand register your service implementation.
See mesh_rpc/examples/rust-server.rs for a working example.