1 2 3 4 5 6 7 8
fn main() -> Result<(), Box<dyn std::error::Error>> { println!("cargo:rerun-if-changed=proto/anvil.proto"); tonic_prost_build::configure() .build_server(true) .build_client(true) .compile_protos(&["proto/anvil.proto"], &["proto"])?; Ok(()) }