From bbc13564fccb6fb1a195f41a9895064c7b4ff319 Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Tue, 19 Sep 2023 11:44:01 -0500 Subject: [PATCH] Update bindgen to fix building with clang 16 ref https://github.com/rust-lang/rust-bindgen/pull/2319 --- Cargo.toml | 2 +- build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 284bfb7..7bce001 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,4 +17,4 @@ rayon = "1.6.1" serial_test = "1.0.0" [build-dependencies] -bindgen = "0.59.1" +bindgen = "0.68.1" diff --git a/build.rs b/build.rs index 8b4b91c..3d5dff8 100644 --- a/build.rs +++ b/build.rs @@ -35,7 +35,7 @@ fn main() { let bindings = bindgen::Builder::default() .header("wrapper.h") .parse_callbacks(Box::new(ignored_macros)) - .rustfmt_bindings(true) + .formatter(bindgen::Formatter::Rustfmt) .generate() // Finish the builder and generate the bindings. .expect("unable to generate bindings");