diff --git a/build.rs b/build.rs index c0f7825..0019755 100644 --- a/build.rs +++ b/build.rs @@ -866,7 +866,10 @@ fn generate_bindings(dir_out: &str, header: &str) { "root::xsf_wrapper", "pub type c_complex = num_complex::Complex;", ) - .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) + // The header being generated by us, we don't want its mtime to be taken into account to + // rerun this script, it should be always the same output for a given version of the crate + // So disable the rerun_on_header_files for the callbacks + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new().rerun_on_header_files(false))) .generate() .unwrap() .write_to_file(PathBuf::from(dir_out).join("bindings.rs"))