mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Change build root folder String to a Path
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
extern crate protoc_grpcio;
|
extern crate protoc_grpcio;
|
||||||
|
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let proto_root = &format!("{}{}", "src", std::path::MAIN_SEPARATOR);
|
let proto_root = Path::new("src");
|
||||||
println!("cargo:rerun-if-changed={}", proto_root);
|
println!("cargo:rerun-if-changed={}", proto_root.display());
|
||||||
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!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user