diff --git a/example/build.rs b/example/build.rs index 62844e1..fb180fd 100644 --- a/example/build.rs +++ b/example/build.rs @@ -1,3 +1,5 @@ fn main() { + println!("cargo:rerun-if-changed=Cargo.toml"); + notalawyer_build::build(); } diff --git a/notalawyer-build/src/lib.rs b/notalawyer-build/src/lib.rs index 842ee5f..b5f7c7c 100644 --- a/notalawyer-build/src/lib.rs +++ b/notalawyer-build/src/lib.rs @@ -32,6 +32,5 @@ pub fn build_with_template(template: &str) { if !is_success { panic!("cargo-about failed"); } - println!("cargo:rerun-if-changed=Cargo.lock"); println!("cargo:rerun-if-changed={}", template); }