diff --git a/libuci-sys/Cargo.toml b/libuci-sys/Cargo.toml index c12d28d..f429105 100644 --- a/libuci-sys/Cargo.toml +++ b/libuci-sys/Cargo.toml @@ -15,5 +15,5 @@ exclude = ["libubox/tests/*", "uci/tests/*"] targets = ["x86_64-unknown-linux-gnu"] [build-dependencies] -bindgen = "^0.58.1" +bindgen = "^0.69.4" cmake = "^0.1.45" diff --git a/libuci-sys/build.rs b/libuci-sys/build.rs index 1a8516c..1589d3d 100644 --- a/libuci-sys/build.rs +++ b/libuci-sys/build.rs @@ -55,7 +55,7 @@ fn main() { .header("wrapper.h") // Tell cargo to invalidate the built crate whenever any of the // included header files changed. - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .allowlist_function("uci_.*") .allowlist_type("uci_.*") .allowlist_var("uci_.*")