fn main() -> Result<(), Box> { // Server only: the Rust side never needs to dial itself as a gRPC client. // Django (or any other consumer) generates its own stub from proto/fedserv.proto. tonic_build::configure() .build_server(true) .build_client(false) .compile_protos(&["proto/fedserv.proto"], &["proto"])?; println!("cargo:rerun-if-changed=proto/fedserv.proto"); Ok(()) }