From 223b359d1a658860738e5f160ba24015a8cb5909 Mon Sep 17 00:00:00 2001 From: chrysn Date: Mon, 16 Sep 2024 18:05:47 +0200 Subject: [PATCH 1/2] dep: Update bindgen to 0.69 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ] } From 7492c51b2587cc431659c3a9284d23b861aa4415 Mon Sep 17 00:00:00 2001 From: chrysn Date: Mon, 16 Sep 2024 18:10:54 +0200 Subject: [PATCH 2/2] build: Follow bindgen deprecations --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");