diff --git a/Cargo.toml b/Cargo.toml index 179c414..6b8bfa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [] diff --git a/build.rs b/build.rs index e4514c8..a0fb9c9 100644 --- a/build.rs +++ b/build.rs @@ -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"); @@ -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");