Test breakage in the CLI crate on rust 1.97.0

Author: mini-bombaCreated Jul 22, 2026Updated Jul 22, 2026

While packaging wasm-bindgen CLI 0.2.126 for alpine linux I've ran into a series of test failures in the CLI crate. These test failures have appeared sometime in the last two weeks despite no code changes and despite build script using a Cargo.lock file that also hasn't been changed in the last two weeks. These failures have appeared on every architecture wasm-bindgen is packaged for on alpine. (except 32bit archs where tests are ignored due to existing failures) The failures are also reproducible using this repository's CI workflows - I've forked the repository and dispatched a run on the main branch, here are the results.

I've later been able to trace the failures back to a recent release of rust 1.97.0 - testing the main branch on rust 1.96.1 passes, while 1.97.1 fails as described above. The release notes mention a migration to a new name mangling scheme, which seems relevant given the tests seem to fail due to changes to function names.

Source: wasm-bindgen/wasm-bindgen