Skip to content

Commit

Permalink
fix: fix gsl-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
pnevyk committed Nov 12, 2023
1 parent 72cbf58 commit fe86e32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gsl-wrapper/gsl-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ license = "GPL-3.0+"
edition = "2021"

[build-dependencies]
bindgen = "0.57"
bindgen = "0.69.1"
22 changes: 11 additions & 11 deletions gsl-wrapper/gsl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ fn main() {

let bindings = bindgen::Builder::default()
.header("wrapper.h")
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.size_t_is_usize(true)
// Be very strict in inclusion.
.whitelist_function("gsl_vector_.*")
.whitelist_function("gsl_multiroot_fsolver_.*")
.whitelist_var("gsl_multiroot_fsolver_.*")
.whitelist_function("gsl_multiroot_test_.*")
.whitelist_function("gsl_strerror")
.whitelist_var("GSL_E.*")
.whitelist_var("GSL_SUCCESS")
.whitelist_var("GSL_CONTINUE")
.blacklist_function(".*_(fread|fwrite|fscanf|fprintf)")
.blacklist_item("stream|IO|FILE")
.allowlist_function("gsl_vector_.*")
.allowlist_function("gsl_multiroot_fsolver_.*")
.allowlist_var("gsl_multiroot_fsolver_.*")
.allowlist_function("gsl_multiroot_test_.*")
.allowlist_function("gsl_strerror")
.allowlist_var("GSL_E.*")
.allowlist_var("GSL_SUCCESS")
.allowlist_var("GSL_CONTINUE")
.blocklist_function(".*_(fread|fwrite|fscanf|fprintf)")
.blocklist_item("stream|IO|FILE")
.generate()
.expect("Unable to generate bindings");

Expand Down

0 comments on commit fe86e32

Please sign in to comment.