2019-01-14 01:55:55 +00:00
|
|
|
extern crate protoc_grpcio;
|
|
|
|
|
|
|
|
fn main() {
|
2019-01-24 12:48:52 +00:00
|
|
|
let proto_root = &format!("{}{}", "src", std::path::MAIN_SEPARATOR);
|
2019-01-14 01:55:55 +00:00
|
|
|
println!("cargo:rerun-if-changed={}", proto_root);
|
|
|
|
protoc_grpcio::compile_grpc_protos(&["services.proto"], &[proto_root], &proto_root)
|
|
|
|
.expect("Failed to compile gRPC definitions!");
|
|
|
|
}
|