1 2 3 4 5 6 7 8
fn main() -> Result<(), Box<dyn std::error::Error>> { tonic_build::configure() .build_server(false) .build_client(true) .compile_well_known_types(true) .compile(&["oomagent.proto"], &["proto"])?; Ok(()) }