build.rs tweaks

This commit is contained in:
Bryan Stitt 2023-07-05 11:45:22 -07:00
parent a36519fad4
commit bfe1bfc0bd

@ -3,6 +3,8 @@ use glob::glob;
fn main() { fn main() {
// Tell Cargo that if the given file changes, to rerun this build script. // Tell Cargo that if the given file changes, to rerun this build script.
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=Cargo.toml");
glob("./abi/*.json").unwrap().for_each(|x| { glob("./abi/*.json").unwrap().for_each(|x| {
if let Ok(x) = x { if let Ok(x) = x {
println!("cargo:rerun-if-changed={}", x.display()); println!("cargo:rerun-if-changed={}", x.display());