Skip to content

Commit b9fc088

Browse files
authored
fix: update wasm-bindgen to 0.2.109 for CSP compatibility (#367)
wasm-bindgen 0.2.109 removed the `new Function("return this")` fallback for getting the global object (PR wasm-bindgen/wasm-bindgen#4910), which required `'unsafe-eval'` in Content-Security-Policy `script-src`. With this update, applications using @dimforge/rapier3d-compat can use the more restrictive `'wasm-unsafe-eval'` instead of `'unsafe-eval'`, blocking JavaScript eval() while still allowing WebAssembly compilation. Refs: #366
1 parent 6c7e720 commit b9fc088

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builds/prepare_builds/templates/Cargo.toml.tera

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rapier{{ dimension }}d = { version = "0.30.1", features = [
3838
# The explicit dependency to parry only needed to pin the patch version.
3939
parry{{ dimension }}d = { version = "^0.25.3" }
4040
ref-cast = "1"
41-
wasm-bindgen = "0.2.100"
41+
wasm-bindgen = "0.2.109"
4242
js-sys = "0.3"
4343
nalgebra = "0.34"
4444
serde = { version = "1", features = ["derive", "rc"] }

0 commit comments

Comments
 (0)