mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-02 18:01:05 +00:00
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:
parent
c1d0c08c03
commit
b94c78545b
1 changed files with 1 additions and 2 deletions
|
@ -36,8 +36,7 @@ fn main() {
|
||||||
.inputs(input)
|
.inputs(input)
|
||||||
.include("src/protos")
|
.include("src/protos")
|
||||||
.cargo_out_dir("protos")
|
.cargo_out_dir("protos")
|
||||||
.run()
|
.run_from_script();
|
||||||
.expect("protoc");
|
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
for file in input {
|
for file in input {
|
||||||
println!("cargo:rerun-if-changed={}", file);
|
println!("cargo:rerun-if-changed={}", file);
|
||||||
|
|
Loading…
Reference in a new issue