Skip to content

Commit

Permalink
wasm: Depend on wasm-bindgen 0.2.89 or higher (#497)
Browse files Browse the repository at this point in the history
wasm-bindgen 0.2.62 is not compatible with a wasm ABI change that rustc
wishes to enable by default for wasm32-unknown-unknown, currently gated
behind passing the -Zwasm-c-abi flag to rustc.

wasm-bindgen 0.2.89 should exhibit seamless behavior before and after
the ABI change to match the C ABI, so depend on that.

For more information, see
- rust-lang/rust#115666
- rust-lang/rust#117918
- rust-lang/rust#122532
  • Loading branch information
workingjubilee authored Aug 26, 2024
1 parent 5edb045 commit aa13fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ wasi = { version = "0.11", default-features = false }
windows-targets = "0.52"

[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dependencies]
wasm-bindgen = { version = "0.2.62", default-features = false, optional = true }
wasm-bindgen = { version = "0.2.89", default-features = false, optional = true }
js-sys = { version = "0.3", optional = true }
[target.'cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3.18"
wasm-bindgen-test = "0.3.39"

[features]
# Implement std-only traits for getrandom::Error
Expand Down

0 comments on commit aa13fa5

Please sign in to comment.