Skip to content

Update wasm-bindgen to 0.2.121#4043

Open
anagrius wants to merge 1 commit into
bazelbuild:mainfrom
anagrius:bump-wasm-bindgen-cli-0.2.121
Open

Update wasm-bindgen to 0.2.121#4043
anagrius wants to merge 1 commit into
bazelbuild:mainfrom
anagrius:bump-wasm-bindgen-cli-0.2.121

Conversation

@anagrius
Copy link
Copy Markdown

Bumps the bundled wasm-bindgen, wasm-bindgen-cli, and wasm-bindgen-test to their latest stable versions (0.2.121 / 0.3.71). Same shape as #3703; regenerated via bazel run @@//3rdparty:crates_vendor from the wasm_bindgen extension.

Changes:

  • WASM_BINDGEN_VERSION = "0.2.121" in both repositories.bzl and extensions.bzl
  • wasm-bindgen-test spec → 0.3.71
  • Regenerated Cargo.Bazel.lock, extensions/wasm_bindgen/MODULE.bazel use_repo aliases, and the entire 3rdparty/crates/BUILD.*.bazel set.

Motivation: downstream consumers want crates that need wasm-bindgen >= 0.2.108 — for example wasm-streams 0.5, pulled in by tonic-web-wasm-client 0.9+. With the bundled cli pinned at 0.2.105, downstream code is forced to either vendor-patch tonic-web-wasm-client back to 0.8 (to keep the schema versions aligned) or write a custom rust_wasm_bindgen_toolchain.

Bumps the bundled wasm-bindgen, wasm-bindgen-cli, and wasm-bindgen-test
to their latest stable versions (0.2.121 / 0.3.71). Same shape as bazelbuild#3703;
regenerated via `bazel run @@//3rdparty:crates_vendor` from the
wasm_bindgen extension against BCR rules_rust 0.70.0.

Changes:
- `WASM_BINDGEN_VERSION = "0.2.121"` in both repositories.bzl and
  extensions.bzl
- `wasm-bindgen-test` spec → 0.3.71
- Regenerated Cargo.Bazel.lock, extensions/wasm_bindgen/MODULE.bazel
  use_repo aliases, and the 3rdparty/crates/BUILD.*.bazel set

Motivation: downstream consumers want crates that need
`wasm-bindgen >= 0.2.108` — for example `wasm-streams 0.5`, pulled in by
`tonic-web-wasm-client 0.9+`. With the bundled cli pinned at 0.2.105,
downstream code is forced to either vendor-patch tonic-web-wasm-client
back to 0.8 (to keep the cli + runtime schema versions aligned) or
register a custom rust_wasm_bindgen_toolchain.

Verified downstream by overriding rules_rust_wasm_bindgen at this branch
in an end-to-end Bazel + cargo-leptos build using tonic-web-wasm-client
0.9 and wasm-streams 0.5; the previous in-tree backport patch on
tonic-web-wasm-client 0.8 was dropped in the same change.
@anagrius anagrius force-pushed the bump-wasm-bindgen-cli-0.2.121 branch from ca5c29c to b02f700 Compare May 15, 2026 13:30
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