service_generator

Function service_generator 

Source
pub fn service_generator() -> Box<ServiceGenerator>
Expand description

Generates twirp services for protobuf rpc service definitions.

In your build.rs, using prost_build, you can wire in the twirp ServiceGenerator to produce a Rust server for your proto services.

Add a call to .service_generator(twirp_build::service_generator()) in main() of build.rs.