diff --git a/Cargo.toml b/Cargo.toml index 778df20..03b8c23 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ riot-build = { version = "< 0.2.0", optional = true } riot-rs-core = { version = "< 0.2.0", optional = true } [build-dependencies] -bindgen = "^0.64" +bindgen = "^0.69.4" # starting 0.70, there is something that goes wrong around calculating native's max_align_t shlex = "^1.3" serde_json = "1" serde = { version = "1", features = [ "derive" ] } diff --git a/build.rs b/build.rs index 9550a8e..770342b 100644 --- a/build.rs +++ b/build.rs @@ -229,7 +229,7 @@ fn main() { .no_debug("ble_hci_ev_le_subev_periodic_adv_rpt") .no_debug("ext_adv_report") .derive_default(true) - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .generate() .expect("Unable to generate bindings");