File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ fn main() {
21
21
// shared library.
22
22
println!("cargo:rustc-link-lib=bz2");
23
23
24
- // Tell cargo to invalidate the built crate whenever the wrapper changes
25
- println!("cargo:rerun-if-changed=wrapper.h");
26
-
27
24
// The bindgen::Builder is the main entry point
28
25
// to bindgen, and lets you build up options for
29
26
// the resulting bindings.
@@ -33,7 +30,7 @@ fn main() {
33
30
.header("wrapper.h")
34
31
// Tell cargo to invalidate the built crate whenever any of the
35
32
// included header files changed.
36
- .parse_callbacks(Box::new(bindgen::CargoCallbacks))
33
+ .parse_callbacks(Box::new(bindgen::CargoCallbacks::new() ))
37
34
// Finish the builder and generate the bindings.
38
35
.generate()
39
36
// Unwrap the Result and panic on failure.
You can’t perform that action at this time.
0 commit comments