Skip to content

Commit 5abd1a6

Browse files
committed
Update bindgen and use clang_macro_fallback
Signed-off-by: Joe Rozner <[email protected]>
1 parent 1f5e50a commit 5abd1a6

14 files changed

+19251
-72916
lines changed

Cargo.lock

+11-142
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cryptoki-sys/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ documentation = "https://docs.rs/crate/cryptoki-sys"
1313
rust-version = "1.66.0"
1414

1515
[build-dependencies]
16-
bindgen = { version = "0.69.4", optional = true }
16+
bindgen = { version = "0.70.1", optional = true }
1717

1818
[dependencies]
1919
libloading = "0.7.0"

cryptoki-sys/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ mod generate {
103103
.derive_debug(true)
104104
// Derive the `Default` trait for the generated structs where possible.
105105
.derive_default(true)
106-
.parse_callbacks(Box::new(CargoCallbacks));
106+
.parse_callbacks(Box::new(CargoCallbacks))
107+
// Support function like macros
108+
.clang_macro_fallback();
107109

108110
let bindings = builder.generate().expect("Unable to generate bindings");
109111

0 commit comments

Comments
 (0)