2019-01-14 01:55:55 +00:00
|
|
|
extern crate protoc_grpcio;
|
|
|
|
|
2019-01-27 15:19:53 +00:00
|
|
|
use std::path::Path;
|
|
|
|
|
2019-01-14 01:55:55 +00:00
|
|
|
fn main() {
|
2019-01-27 15:19:53 +00:00
|
|
|
let proto_root = Path::new("src");
|
|
|
|
println!("cargo:rerun-if-changed={}", proto_root.display());
|
2019-01-14 01:55:55 +00:00
|
|
|
protoc_grpcio::compile_grpc_protos(&["services.proto"], &[proto_root], &proto_root)
|
|
|
|
.expect("Failed to compile gRPC definitions!");
|
|
|
|
}
|