diff --git a/rust/helm-sys/build.rs b/rust/helm-sys/build.rs index 7b5546d8..31c57647 100644 --- a/rust/helm-sys/build.rs +++ b/rust/helm-sys/build.rs @@ -55,7 +55,12 @@ fn main() { let bindings = bindgen::builder() .header(build_path.join("libgo-helm-wrapper.h").to_str().unwrap()) - .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) + .parse_callbacks(Box::new( + bindgen::CargoCallbacks::new() + // libgo-helm-wrapper.h will *always* just have been rebuilt here by the gobuild above + // (and, conversely, if the gobuild *has* been rebuilt then we'll already be rebuilding the crate anyway) + .rerun_on_header_files(false), + )) .generate() .expect("Failed to generate Rust bindings from Go header file");