Avoid re-running build
This commit is contained in:
parent
9d3d88b771
commit
e150addf7a
7
build.rs
7
build.rs
|
|
@ -41,5 +41,12 @@ fn generate_completions() {
|
|||
fn main() {
|
||||
let version = git_version().unwrap_or_else(crate_version);
|
||||
println!("cargo:rustc-env=ZOXIDE_VERSION={}", version);
|
||||
|
||||
// Since we are generating completions in the package directory, we need to
|
||||
// set this so that Cargo doesn't rebuild every time.
|
||||
println!("cargo:rerun-if-changed=src");
|
||||
println!("cargo:rerun-if-changed=templates");
|
||||
println!("cargo:rerun-if-changed=tests");
|
||||
|
||||
generate_completions();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue