rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript
https://rustwasm.github.io/docs/wasm-bindgen/
Apache License 2.0
7.83k stars 1.08k forks source link

Fix Rust edition 2024 compatibility #4259

Closed daxpedda closed 1 week ago

daxpedda commented 1 week ago

This adds unsafe to all extern "C" { ... } generated blocks to account for edition 2024 requirements.

See https://github.com/rust-lang/rust/issues/132425 for more information why this is a problem considering macro edition hygiene should account for this in the first place.

Fixes #4218.