From 9cb4db23dd63c233568b50aa78606ecf7edd79a7 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Mon, 22 Jan 2024 11:16:35 -0500 Subject: [PATCH] chore: bump bindgen also adds .ccls-cache/ to .gitignore --- .gitignore | 3 +++ bindings/rust/Cargo.lock | 4 ++-- bindings/rust/Cargo.toml | 2 +- bindings/rust/build.rs | 9 +++------ 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index adac936..adb79e1 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ __pycache__ # nimble build dir build/ + +# ccls cache dir +.ccls-cache/ diff --git a/bindings/rust/Cargo.lock b/bindings/rust/Cargo.lock index 951b6f0..693f90d 100644 --- a/bindings/rust/Cargo.lock +++ b/bindings/rust/Cargo.lock @@ -31,9 +31,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "bindgen" -version = "0.66.1" +version = "0.69.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2b84e06fc203107bfbad243f4aba2af864eb7db3b1cf46ea0a023b0b433d2a7" +checksum = "a4c69fae65a523209d34240b60abe0c42d33d1045d445c0839d8a4894a736e2d" dependencies = [ "bitflags", "cexpr", diff --git a/bindings/rust/Cargo.toml b/bindings/rust/Cargo.toml index ab1f5b8..98bd814 100644 --- a/bindings/rust/Cargo.toml +++ b/bindings/rust/Cargo.toml @@ -35,7 +35,7 @@ serde_yaml = "0.9.17" serde_json = "1.0.105" [build-dependencies] -bindgen = "0.66.1" +bindgen = "0.69" cc = "1.0" [target.'cfg(target_env = "msvc")'.build-dependencies] diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index 0f677ff..5148333 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -49,11 +49,8 @@ fn main() { println!("cargo:rustc-link-lib=ckzg"); } -fn make_bindings

( - header_path: &str, - blst_headers_dir: &str, - bindings_out_path: P, -) where +fn make_bindings

(header_path: &str, blst_headers_dir: &str, bindings_out_path: P) +where P: AsRef, { use bindgen::Builder; @@ -122,7 +119,7 @@ fn make_bindings

( /* * Re-build instructions */ - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .generate() .unwrap();