()
| 1 | fn main() -> Result<(), Box<dyn std::error::Error>> { |
| 2 | println!("cargo:rerun-if-changed=build.rs"); |
| 3 | #[cfg(feature = "grpc-server")] |
| 4 | { |
| 5 | println!("cargo:rerun-if-changed=proto"); |
| 6 | let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap()); |
| 7 | |
| 8 | let config = tonic_build::configure() |
| 9 | .build_server(true) |
| 10 | .build_client(false) |
| 11 | .file_descriptor_set_path(out_dir.join("vector_service.bin")); |
| 12 | |
| 13 | config.compile_protos(&["proto/vector_service.proto"], &["proto/"])?; |
| 14 | } |
| 15 | |
| 16 | Ok(()) |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected