protos: use run_from_script() in build.rs

`run_from_script()` is effectively the same as we did with `.expect()`
(print the error to stderr and exit with an error).
This commit is contained in:
Martin von Zweigbergk 2022-05-03 21:02:22 -07:00 committed by Martin von Zweigbergk
parent c1d0c08c03
commit b94c78545b

View file

@ -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);