fn main() -> Result<(), Box<dyn std::error::Error>> {
let proto_files = ["proto/neumann.proto", "proto/vector.proto"];
let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR")?);
for proto_file in &proto_files {
println!("cargo:rerun-if-changed={proto_file}");
}
tonic_prost_build::configure()
.build_server(true)
.build_client(true)
.file_descriptor_set_path(out_dir.join("neumann_descriptor.bin"))
.compile_protos(&proto_files, &["proto/"])?;
Ok(())
}