Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
...and replace deprecated bindgen methods with the non-deprecated versions.
  • Loading branch information
fitzgen committed Nov 12, 2017
1 parent ef48e02 commit 44e1a3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ repository = "fitzgen/findshlibs"

[build-dependencies.bindgen]
default-features = false
version = "0.29.0"
version = "0.31.3"

[dependencies]
cfg-if = "0.1.0"
lazy_static = "0.2.2"
cfg-if = "0.1.2"
lazy_static = "0.2.9"

[features]
nightly = []
18 changes: 9 additions & 9 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ fn main() {
fn generate_linux_bindings() {
let bindings = bindgen::Builder::default()
.header("./src/linux/bindings.h")
.whitelisted_function("dl_iterate_phdr")
.whitelisted_type(r#"Elf\d*.*"#)
.whitelisted_var("PT_.*")
.whitelist_function("dl_iterate_phdr")
.whitelist_type(r#"Elf\d*.*"#)
.whitelist_var("PT_.*")
.generate()
.expect("Should generate linux FFI bindings OK");

Expand All @@ -31,12 +31,12 @@ fn generate_linux_bindings() {
fn generate_macos_bindings() {
let bindings = bindgen::Builder::default()
.header("./src/macos/bindings.h")
.whitelisted_function("_dyld_.*")
.whitelisted_type("mach_header.*")
.whitelisted_type("load_command.*")
.whitelisted_type("segment_command.*")
.whitelisted_var("MH_MAGIC.*")
.whitelisted_var("LC_SEGMENT.*")
.whitelist_function("_dyld_.*")
.whitelist_type("mach_header.*")
.whitelist_type("load_command.*")
.whitelist_type("segment_command.*")
.whitelist_var("MH_MAGIC.*")
.whitelist_var("LC_SEGMENT.*")
.generate()
.expect("Should generate macOS FFI bindings OK");

Expand Down

0 comments on commit 44e1a3e

Please sign in to comment.