mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-22 05:00:59 +03:00
Make watched files in build script more granular
This commit is contained in:
parent
4323c1e1ce
commit
53319d93dc
22
build.rs
22
build.rs
@ -71,8 +71,26 @@ fn check_file_licenses<P: AsRef<Path>>(path: P) {
|
||||
}
|
||||
}
|
||||
|
||||
// Re-run upon any changes to the workspace.
|
||||
println!("cargo:rerun-if-changed=.");
|
||||
// Watch the directories that contain Rust source files
|
||||
println!("cargo:rerun-if-changed=compiler");
|
||||
println!("cargo:rerun-if-changed=docs");
|
||||
println!("cargo:rerun-if-changed=errors");
|
||||
println!("cargo:rerun-if-changed=examples");
|
||||
println!("cargo:rerun-if-changed=leo");
|
||||
println!("cargo:rerun-if-changed=tests");
|
||||
println!("cargo:rerun-if-changed=utils");
|
||||
|
||||
// Watch the build script itself
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
|
||||
// Watch the license header file
|
||||
println!("cargo:rerun-if-changed=.resources/license_header");
|
||||
|
||||
// Watch the Cargo.toml file
|
||||
println!("cargo:rerun-if-changed=Cargo.toml");
|
||||
|
||||
// Watch the Cargo.lock file
|
||||
println!("cargo:rerun-if-changed=Cargo.lock");
|
||||
}
|
||||
|
||||
// The build script; it currently only checks the licenses.
|
||||
|
Loading…
Reference in New Issue
Block a user