diff --git a/Cargo.toml b/Cargo.toml index 57b00c9..018f75a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ structopt = "0.3" [build-dependencies] cc = "1.0" rand = "0.6" -bindgen = "0.52" +bindgen = "0.66" pkg-config = { version = "0.3", optional = true } [features] diff --git a/build.rs b/build.rs index b8d022c..a5b1dd1 100644 --- a/build.rs +++ b/build.rs @@ -61,8 +61,8 @@ fn main() { let bindings = builder .header("xdelta3/xdelta3/xdelta3.h") .parse_callbacks(Box::new(bindgen::CargoCallbacks)) - .whitelist_function("xd3_.*") - .whitelist_type("xd3_.*") + .allowlist_function("xd3_.*") + .allowlist_type("xd3_.*") .rustified_enum("xd3_.*") .generate() .expect("Unable to generate bindings");