From c7ff0b7a908806f2ef3045eb5f5b1bb7b78b762c Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Wed, 15 May 2024 21:57:04 +0200 Subject: [PATCH] Update bindgen --- Cargo.toml | 2 +- build.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 23f0cd3..1f48fa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,6 @@ links = "luajit" libc = "0.2" [build-dependencies] -bindgen = "0.64.0" +bindgen = "0.69.4" cc = "1" fs_extra = "1.1.0" diff --git a/build.rs b/build.rs index 6e7e5a4..d291dd7 100644 --- a/build.rs +++ b/build.rs @@ -192,11 +192,10 @@ fn main() { .impl_debug(true) .use_core() .detect_include_paths(true) - // Make it pretty - .rustfmt_bindings(true) + .formatter(bindgen::Formatter::Rustfmt) .sort_semantically(true) .merge_extern_blocks(true) - .parse_callbacks(Box::new(bindgen::CargoCallbacks)); + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())); let bindings = if env::var("CARGO_CFG_WINDOWS").is_ok() { bindings