Skip to content

Commit 1743a74

Browse files
jonas-schievinkVeykril
authored andcommitted
Fix the build-bindgen feature
1 parent 9ec76c1 commit 1743a74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wasm3-sys/build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ fn gen_bindings() {
9494
.layout_tests(false)
9595
.default_enum_style(bindgen::EnumVariation::ModuleConsts)
9696
.generate_comments(false)
97-
.whitelist_function(WHITELIST_REGEX_FUNCTION)
98-
.whitelist_type(WHITELIST_REGEX_TYPE)
99-
.whitelist_var(WHITELIST_REGEX_VAR)
97+
.allowlist_function(WHITELIST_REGEX_FUNCTION)
98+
.allowlist_type(WHITELIST_REGEX_TYPE)
99+
.allowlist_var(WHITELIST_REGEX_VAR)
100100
.derive_debug(false);
101101
bindgen = PRIMITIVES
102102
.iter()
103-
.fold(bindgen, |bindgen, ty| bindgen.blacklist_type(ty));
103+
.fold(bindgen, |bindgen, ty| bindgen.blocklist_type(ty));
104104
bindgen
105105
.clang_args(
106106
[
@@ -113,7 +113,7 @@ fn gen_bindings() {
113113
}
114114
),
115115
"-Dd_m3LogOutput=0",
116-
"-Iwasm3",
116+
"-Iwasm3/source",
117117
]
118118
.iter(),
119119
)

0 commit comments

Comments
 (0)