Fix hardcoded string to use system constant for directory separator
This commit is contained in:
parent
8e82cd5934
commit
84a9dbf8e4
@ -1,7 +1,7 @@
|
|||||||
extern crate protoc_grpcio;
|
extern crate protoc_grpcio;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let proto_root = "src/";
|
let proto_root = &format!("{}{}", "src", std::path::MAIN_SEPARATOR);
|
||||||
println!("cargo:rerun-if-changed={}", proto_root);
|
println!("cargo:rerun-if-changed={}", proto_root);
|
||||||
protoc_grpcio::compile_grpc_protos(&["services.proto"], &[proto_root], &proto_root)
|
protoc_grpcio::compile_grpc_protos(&["services.proto"], &[proto_root], &proto_root)
|
||||||
.expect("Failed to compile gRPC definitions!");
|
.expect("Failed to compile gRPC definitions!");
|
||||||
|
Loading…
Reference in New Issue
Block a user