diff --git a/lib/build.rs b/lib/build.rs index d08cd6eb5..d8cd3a544 100644 --- a/lib/build.rs +++ b/lib/build.rs @@ -36,8 +36,7 @@ fn main() { .inputs(input) .include("src/protos") .cargo_out_dir("protos") - .run() - .expect("protoc"); + .run_from_script(); println!("cargo:rerun-if-changed=build.rs"); for file in input { println!("cargo:rerun-if-changed={}", file);