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