Skip to content

Commit

Permalink
fix: rebuild enarx bin when binary dependencies change
Browse files Browse the repository at this point in the history
This works around the bug reported at
rust-lang/cargo#10527

Signed-off-by: bstrie <[email protected]>
  • Loading branch information
bstrie committed Apr 7, 2022
1 parent 318be18 commit 0fa65b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ fn main() {
println!("cargo:rerun-if-env-changed=OUT_DIR");
println!("cargo:rerun-if-env-changed=PROFILE");

// FIXME: this exists to work around https://github.com/rust-lang/cargo/issues/10527
println!("cargo:rerun-if-changed=src/bin");

let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap());
let out_dir_proto = out_dir.join("protos");
create(&out_dir_proto);
Expand Down

0 comments on commit 0fa65b7

Please sign in to comment.