Skip to content

linux-stable jobs failing CI due to wasm-bindgen compatibility issue #1493

@rnkaufman

Description

@rnkaufman

🐛 Bug description

We are encountering a recurring issue in the project where Rust builds fail on linux-stable CI jobs due to an older version of the wasm-bindgen crate being incompatible with the current Rust version. The error message is as follows:

Compiling wasm-bindgen v0.2.74
error: older versions of the `wasm-bindgen` crate are incompatible with current versions of Rust; please update to `wasm-bindgen` v0.2.88

error: could not compile `wasm-bindgen` (lib) due to 1 previous error
Error: Compiling your crate to WebAssembly failed
Caused by: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
  full command: cd \"/home/runner/work/wasm-pack/wasm-pack/target/t/.tmpEj08tZ/wasm-pack\" && \"cargo\" \"build\" \"--lib\" \"--target\" \"wasm32-unknown-unknown\"

Example failing PRs:

🤔 Expected Behavior

linux-stable jobs complete successfully with no version compatibility issues with wasm-bindgen.

👟 Steps to reproduce

The failure is present in the linux-stable CI builds (example failing action link).

I think it can be reproduced locally via cargo build --lib --target wasm32-unknown-unknown but I'm running into issues building for that target.

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: latest
rustc version: latest (linux_stable CI job w/ wasm32-unknown-unknown target)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions