1 2 3 4 5 6
fn main() -> Result<(), Box<dyn std::error::Error>> { tonic_prost_build::configure() .build_server(false) .compile_protos(&["./proto/api.proto"], &["proto"])?; Ok(()) }