//! AZ-660 build-time codegen for the `../detections` gRPC contract. //! //! Mirrors the `telemetry_stream` build script: uses //! `protoc-bin-vendored` so the build is self-contained (no system //! protoc install required on dev or CI). The PROTOC env var is set //! before invoking `tonic-prost-build`. fn main() -> Result<(), Box> { let protoc = protoc_bin_vendored::protoc_bin_path()?; std::env::set_var("PROTOC", protoc); tonic_prost_build::configure() .build_client(true) .build_server(true) .compile_protos(&["proto/detections.proto"], &["proto"])?; println!("cargo:rerun-if-changed=proto/detections.proto"); Ok(()) }