From cb3be8d445c0ed2adf815c62b14c197ca19bd94a Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Fri, 23 Jun 2023 17:02:05 +1000 Subject: [PATCH] Update bindgen --- Cargo.toml | 2 +- build.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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");