Skip to content

chore(deps): bump wasm-bindgen from 0.2.118 to 0.2.120 in /playground/wasm#61

Merged
ryuapp merged 2 commits into
mainfrom
dependabot/cargo/playground/wasm/wasm-bindgen-0.2.120
May 20, 2026
Merged

chore(deps): bump wasm-bindgen from 0.2.118 to 0.2.120 in /playground/wasm#61
ryuapp merged 2 commits into
mainfrom
dependabot/cargo/playground/wasm/wasm-bindgen-0.2.120

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 17, 2026

Bumps wasm-bindgen from 0.2.118 to 0.2.120.

Release notes

Sourced from wasm-bindgen's releases.

0.2.120

Added

  • Added support for the wasm64-unknown-unknown target (memory64 / wasm64). usize / isize and raw pointers are now lowered through an f64 JS number ABI on wasm64 (matching the existing convention used for Option<u32> etc. on wasm32), with the CLI inspecting the module's memory type to pick the right codegen path. Includes a dedicated wasm64 CI job and test suite covering the new ABI paths. #5004

  • Promise ergonomics: Promise::all_tuple and Promise::all_settled_tuple for heterogeneous concurrent awaits (arity 1..=8, destructure via .into_tuple()), and a new wasm_bindgen::IntoJsGeneric trait underpinning typed-Array inference (with codegen-emitted identity impls and a #[wasm_bindgen(no_into_js_generic)] opt-out for types like JsClosure). Also re-exports JsGeneric from the prelude. Typed collection on js_sys::Array<T> is exposed as the inherent constructor Array::<T>::from_iter_typed (and companion extend_typed), inferring T from the iterator item via IntoJsGeneric. The stable FromIterator / Extend impls on Array (= Array<JsValue>) bound by AsRef<JsValue> are preserved, so existing .collect::<Array>() call sites keep compiling unchanged. Fixes #5042. #5121, #5125

  • Added wasm_bindgen::instance() to return the current WebAssembly.Instance. The generated JS glue retains the instantiated WebAssembly.Instance. #5118

  • Added a --cfg=wasm_bindgen_use_js_sys opt-in that makes async macro codegen use js_sys::futures instead of wasm_bindgen_futures, dropping the need for wasm-bindgen-futures when the crate already depends on js-sys. A cfg is used rather than a Cargo feature so the choice stays scoped to the crate that opts in. #5112 #5127

Changed

  • Simplified generated web-sys bindings by omitting redundant #[wasm_bindgen] attributes when they match wasm-bindgen defaults, including structural method annotations and matching js_name entries. The #[wasm_bindgen] attribute parser now also accepts string-literal forms for extends, static_method_of, and vendor_prefix (alongside the existing bare-path/ident syntax), and the generator emits these arguments along with js_name as string literals so rustfmt can format the generated #[wasm_bindgen(...)] attributes uniformly. #5122

... (truncated)

Changelog

Sourced from wasm-bindgen's changelog.

wasm-bindgen Change Log


Unreleased

Notices

  • Threading support now requires -Clink-arg=--export=__heap_base to be set in RUSTFLAGS for nightly toolchains from 2026-05-06 onward, after rust-lang/rust#156174 removed the implicit __heap_base/__data_end exports on wasm* targets. Atomics CI, CLI reference tests, and the nodejs-threads, raytrace-parallel, and wasm-audio-worklet examples have been updated to pass --export=__heap_base explicitly. The flag is backward-compatible with older nightlies.

  • -Cpanic=unwind on wasm targets now emits modern (exnref) exception handling by default after rust-lang/rust#156061, and requires Node.js 22.22.3+ (for WebAssembly.JSTag). Building legacy EH wasm currently requires pinning to nightly-2026-05-06 or earlier, since user -Cllvm-args cannot override the new target spec. See #5151 for tracking Node.js 20 support.

Added

  • New extends_js_class and extends_js_namespace attributes on exported structs to allow defining the parent js_class name when it has been customized by js_name and the parent's own js_namespace as well in turn. New validation is added at code generation time that will now catch these cases instead of emitting invalid code. Example:

    #[wasm_bindgen(js_name = "Animal", js_namespace = zoo)]
    pub struct AnimalImpl { /* ... */ }
    #[wasm_bindgen(
    extends = AnimalImpl,
    extends_js_class = "Animal",
    extends_js_namespace = zoo,
    )]
    pub struct DogImpl { /* ... */ }

    #5154

Changed

  • When an exported struct uses js_namespace, the corresponding value must now be repeated on every impl block. Previously the impl-side

... (truncated)

Commits
  • 3c5043f Release 0.2.120 (#5131)
  • c68c40f release: 0.2.119 - schema bump (#5129)
  • a9f3fb6 Release 0.2.119 (#5126)
  • 17d783e Switch js-sys macro codegen opt-in from Cargo feature to cfg (#5127)
  • 33b1244 Restore stable AsRef<JsValue>-based FromIterator/Extend for Array; expose typ...
  • 208e874 Simplify web-sys generated bindings (#5122)
  • 3455345 Add wasm64/memory64 support for wasm64-unknown-unknown target (#5004)
  • 4c8fd1f Use js_sys::futures instead of wasm_bindgen_futures in codegen (#5112)
  • e82e693 Use Publish Environment (#5124)
  • 5727923 feat: Promise ergonomics for typed concurrent awaits (#5121)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen) from 0.2.118 to 0.2.120.
- [Release notes](https://github.com/wasm-bindgen/wasm-bindgen/releases)
- [Changelog](https://github.com/wasm-bindgen/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](wasm-bindgen/wasm-bindgen@0.2.118...0.2.120)

---
updated-dependencies:
- dependency-name: wasm-bindgen
  dependency-version: 0.2.120
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels May 17, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ryuapp ryuapp merged commit 38ec1fa into main May 20, 2026
7 checks passed
@ryuapp ryuapp deleted the dependabot/cargo/playground/wasm/wasm-bindgen-0.2.120 branch May 20, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant