From 8e39f367facffc46a344a1a2f13b6946c9adb529 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Wed, 30 Nov 2022 18:00:40 +0100 Subject: [PATCH 1/2] replace whitelist with allowlist bindgen 0.63 removed support for whitelist args 0.58 deprecated it and added the allowlist replacements --- wasm3-sys/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wasm3-sys/build.rs b/wasm3-sys/build.rs index c4ead44..40cc4d0 100644 --- a/wasm3-sys/build.rs +++ b/wasm3-sys/build.rs @@ -40,11 +40,11 @@ fn gen_bindings() { .arg("--no-layout-tests") .arg("--default-enum-style=moduleconsts") .arg("--no-doc-comments") - .arg("--whitelist-function") + .arg("--allowlist-function") .arg(WHITELIST_REGEX_FUNCTION) - .arg("--whitelist-type") + .arg("--allowlist-type") .arg(WHITELIST_REGEX_TYPE) - .arg("--whitelist-var") + .arg("--allowlist-var") .arg(WHITELIST_REGEX_VAR) .arg("--no-derive-debug"); for &ty in PRIMITIVES.iter() { From b23df023faa7d67e18ccf60a5995aebfa7dfc343 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Sat, 3 Dec 2022 14:47:34 +0100 Subject: [PATCH 2/2] blacklist > blocklist - Blacklist was removed in bindgen 0.63. - Support for blocklist was introduced in 0.58. --- wasm3-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm3-sys/build.rs b/wasm3-sys/build.rs index 40cc4d0..8d6339a 100644 --- a/wasm3-sys/build.rs +++ b/wasm3-sys/build.rs @@ -48,7 +48,7 @@ fn gen_bindings() { .arg(WHITELIST_REGEX_VAR) .arg("--no-derive-debug"); for &ty in PRIMITIVES.iter() { - bindgen.arg("--blacklist-type").arg(ty); + bindgen.arg("--blocklist-type").arg(ty); } bindgen .arg("-o")