1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Build script for grapsus-agent-protocol //! //! Compiles Protocol Buffer definitions for gRPC support. fn main() -> Result<(), Box<dyn std::error::Error>> { // Compile v2 agent protocol tonic_prost_build::configure() .build_server(true) .build_client(true) .compile_protos(&["proto/agent_v2.proto"], &["proto/"])?; println!("cargo:rerun-if-changed=proto/agent_v2.proto"); Ok(()) }