Skip to content

Fix wasm-mappings build failure on Rust 1.96+ by explicitly linking to env - #538

Open
MatrixNeoKozak wants to merge 1 commit into
mozilla:masterfrom
MatrixNeoKozak:fix/fix-wasm-mappings-build-failure-on-rust-1-96-by-explicitly-linking-to-env-1791814078979
Open

MatrixNeoKozak wants to merge 1 commit into
mozilla:masterfrom
MatrixNeoKozak:fix/fix-wasm-mappings-build-failure-on-rust-1-96-by-explicitly-linking-to-env-1791814078979

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

What

Rust 1.96+ no longer passes --allow-undefined to wasm-ld. Adding #[link(wasm_import_module = "env")] to the extern "C" blocks explicitly links them to the env module, fixing the build on newer Rust toolchains.

Why

This change resolves the target issue or improvement.

How to test

Verify that the project builds/runs correctly and the specific bug/improvement is addressed.

Fixes #530

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wasm-mappings fail to build with Rust 1.96+

1 participant