You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
398 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
let proto_file = "./src/proto/employee_info.proto";
tonic_build::configure()
.build_server(true)
.out_dir("./src/grpc")
.compile(&["handshake.proto"], &["monitoring.proto"])
.unwrap_or_else(|e| panic!("protobuf compile error: {}", e));
println!("cargo:rerun-if-changed={}", proto_file);
Ok(())
}