1 2 3 4 5 6 7 8 9 10
fn main() -> Result<(), Box<dyn std::error::Error>> { #[cfg(feature = "grpc")] { tonic_build::configure() .build_server(true) .build_client(false) .compile_protos(&["../../proto/ember/v1/ember.proto"], &["../../proto"])?; } Ok(()) }