Skip to content

Migrate to wasm-pack instead of manually calling wasm-bindgen and wasm-opt#936

Merged
kaze-xiv merged 2 commits into
mainfrom
rust-wasm-pack
Jul 6, 2026
Merged

Migrate to wasm-pack instead of manually calling wasm-bindgen and wasm-opt#936
kaze-xiv merged 2 commits into
mainfrom
rust-wasm-pack

Conversation

@kaze-xiv

@kaze-xiv kaze-xiv commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Migrate off manually calling wasm-bindgen-cli and wasm-opt.

I originally migrated the original toolchain (wasm-bindgen-cli + wasm-opt
from cargo), but wasm-opt hasn't had an update since 0.116.1 (2024-03)
since it was moved to the binaryen project, which is now at 0.130. The
recommended toolchain has become wasm-pack.
See https://blog.rust-lang.org/inside-rust/2025/07/21/sunsetting-the-rustwasm-github-org/.

This resolves the issue on Arch BTW, where... something happens on GCC
16 while attempting to compile wasm-opt. See WebAssembly/binaryen#8559.

This commit also greatly simplifies the build steps, because wasm-pack
will pick to run wasm-opt depending on the build variant.

Pull Request Checklist

Please check one of the boxes below:

  • Generative AI was used in the creation of this PR (for any part, including but not limited to coding, reverse engineering, or debugging). I have read AI Contributions Policy. All comments and documentation are human-authored.
  • Generative AI was not used in the creation of this PR.

kaze-xiv added 2 commits July 6, 2026 19:35
I originally migrated the original toolchain (wasm-bindgen-cli + wasm-opt
from cargo), but wasm-opt hasn't had an update since 0.116.1 (2024-03)
since it was moved to the binaryen project, which is now at 0.130. The
recommended toolchain has become wasm-pack (https://github.com/wasm-bindgen/wasm-pack).
See https://blog.rust-lang.org/inside-rust/2025/07/21/sunsetting-the-rustwasm-github-org/.

This resolves the issue on Arch BTW, where... something happens on GCC
16 while attempting to compile wasm-opt. See WebAssembly/binaryen#8559.

This commit also greatly simplifies the build steps, because wasm-pack
will pick to run wasm-opt depending on the build variant.
@kaze-xiv
kaze-xiv merged commit bc9703d into main Jul 6, 2026
2 of 5 checks passed
magcius added a commit that referenced this pull request Jul 12, 2026
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.

1 participant