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