Skip to content

Commit

Permalink
Merge pull request #385 from Rjected/bump-bindgen
Browse files Browse the repository at this point in the history
chore: bump bindgen
  • Loading branch information
asn-d6 authored Jan 23, 2024
2 parents e266280 + 9cb4db2 commit 5115420
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ __pycache__

# nimble build dir
build/

# ccls cache dir
.ccls-cache/
4 changes: 2 additions & 2 deletions bindings/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
9 changes: 3 additions & 6 deletions bindings/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@ fn main() {
println!("cargo:rustc-link-lib=ckzg");
}

fn make_bindings<P>(
header_path: &str,
blst_headers_dir: &str,
bindings_out_path: P,
) where
fn make_bindings<P>(header_path: &str, blst_headers_dir: &str, bindings_out_path: P)
where
P: AsRef<std::path::Path>,
{
use bindgen::Builder;
Expand Down Expand Up @@ -122,7 +119,7 @@ fn make_bindings<P>(
/*
* Re-build instructions
*/
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.generate()
.unwrap();

Expand Down

0 comments on commit 5115420

Please sign in to comment.