Closed Brendonovich closed 1 year ago
We can probably use cargo:rerun-if-changed.
cargo:rerun-if-changed
Unfortunately, you can't pass a directory:
If the path points to a directory, it will scan the entire directory for any modifications.
But iterating over all of the files in the path provided when with_package is called, and printing the following for each one could suffice:
path
with_package
println!("cargo:rerun-if-changed={}", path);
We can probably use
cargo:rerun-if-changed
.Unfortunately, you can't pass a directory:
But iterating over all of the files in the
path
provided whenwith_package
is called, and printing the following for each one could suffice: