parent
e266280d88
commit
9cb4db23dd
|
@ -18,3 +18,6 @@ __pycache__
|
|||
|
||||
# nimble build dir
|
||||
build/
|
||||
|
||||
# ccls cache dir
|
||||
.ccls-cache/
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue