Skip to content

Bump walrus from 0.27.3 to 0.29.0 - #1359

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/walrus-0.29.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/walrus-0.29.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps walrus from 0.27.3 to 0.29.0.

Release notes

Sourced from walrus's releases.

0.29.0

Added

  • ModuleConfig::function_order takes a closure that decides the order defined functions are emitted, and so numbered, in. It is given every defined function as a FunctionInfo, with its size and how many times its index is written, in the default order (largest first) to reorder. For example, sorting by Reverse(f.uses()) gives the shortest LEB128 indices to the most-referenced functions, which makes most modules smaller. The default order isn't guaranteed and may change; give a closure to depend on one.
  • ModuleConfig::generate_source_map and Module::emit_wasm_with_source_map build a source map of the emitted module from its DWARF, with the Scopes of its functions and inlined calls, and point the module at it with a sourceMappingURL section. Each source file gets a Module scope around the Function scopes of its functions, which the generic copies and shims of a function share. ModuleConfig::source_map_scopes(false) leaves the Scopes out, for a map with only mappings.

Changed

  • An if whose else arm is empty is emitted without the else, saving a byte per if. This was a TODO in the emitter; parsing already turned a missing else into an empty one.
  • gimli is updated from 0.32 to 0.34. ModuleDebugData::dwarf is a gimli type, so code that reads it needs gimli 0.34 too.
  • The minimum supported Rust version is now 1.88, which gimli 0.34 requires, and Cargo.toml declares it. gimli's Dwarf::convert API first shipped in 0.33, which also requires 1.88.
  • ModuleDebugData has a private field, so it can no longer be built with a struct expression; use Default.
  • With generate_dwarf, DW_AT_macros, DW_AT_macro_info and DW_AT_GNU_macros are removed. walrus never emitted the macro sections they point into, because gimli can't write them.
  • With the parallel feature, parsing finds the block types of legacy catch handlers in parallel. This scan decodes every function body. It runs for any module with a tag that has params, such as an Emscripten module built with C++ exceptions, or with a function type that has two or more results.

Fixed

  • VisitorMut's per-instruction methods (visit_const_mut and so on) no longer visit the instruction's fields by default. The traversal already does that, so a VisitorMut that only overrode, say, visit_value_mut saw every field twice. Visitor already behaved this way.
  • visit_instr_seq_id is no longer called for the branch target of br_on_null, br_on_non_null, br_on_cast and br_on_cast_fail, matching br, br_if and br_table.
  • visit_instr_seq_id is now called for legacy try catch and catch_all

... (truncated)

Changelog

Sourced from walrus's changelog.

0.29.0

Released 2026-11-24.

Added

  • ModuleConfig::function_order takes a closure that decides the order defined functions are emitted, and so numbered, in. It is given every defined function as a FunctionInfo, with its size and how many times its index is written, in the default order (largest first) to reorder. For example, sorting by Reverse(f.uses()) gives the shortest LEB128 indices to the most-referenced functions, which makes most modules smaller. The default order isn't guaranteed and may change; give a closure to depend on one.
  • ModuleConfig::generate_source_map and Module::emit_wasm_with_source_map build a source map of the emitted module from its DWARF, with the Scopes of its functions and inlined calls, and point the module at it with a sourceMappingURL section. Each source file gets a Module scope around the Function scopes of its functions, which the generic copies and shims of a function share. ModuleConfig::source_map_scopes(false) leaves the Scopes out, for a map with only mappings.

Changed

  • An if whose else arm is empty is emitted without the else, saving a byte per if. This was a TODO in the emitter; parsing already turned a missing else into an empty one.
  • gimli is updated from 0.32 to 0.34. ModuleDebugData::dwarf is a gimli type, so code that reads it needs gimli 0.34 too.
  • The minimum supported Rust version is now 1.88, which gimli 0.34 requires, and Cargo.toml declares it. gimli's Dwarf::convert API first shipped in 0.33, which also requires 1.88.
  • ModuleDebugData has a private field, so it can no longer be built with a struct expression; use Default.
  • With generate_dwarf, DW_AT_macros, DW_AT_macro_info and DW_AT_GNU_macros are removed. walrus never emitted the macro sections they point into, because gimli can't write them.
  • With the parallel feature, parsing finds the block types of legacy catch handlers in parallel. This scan decodes every function body. It runs for any module with a tag that has params, such as an Emscripten module built with C++ exceptions, or with a function type that has two or more results.

Fixed

  • VisitorMut's per-instruction methods (visit_const_mut and so on) no longer visit the instruction's fields by default. The traversal already does that, so a VisitorMut that only overrode, say, visit_value_mut saw every field twice. Visitor already behaved this way.
  • visit_instr_seq_id is no longer called for the branch target of

... (truncated)

Commits
  • de1155d Release 0.29.0 (#347)
  • da0bf39 feat: add Scopes of functions and inlined calls to the source map (#344)
  • 9005e73 feat: build a source map from DWARF at emit (#343)
  • 0b49829 perf: find legacy catch block types in parallel (#346)
  • ed30b7d feat: let a closure decide the order functions are emitted in (#342)
  • 58d6538 fix(dwarf): derive DWARF from where each instruction was emitted (#340)
  • 1d9c51c fix(dwarf): remap DW_OP_WASM_location local and global indices (#339)
  • 976a15b fix(dwarf): convert lists and line programs with gimli's Dwarf::convert (#338)
  • fd2782b fix: visit each field and owned instruction sequence once (#337)
  • 9a757b2 perf: don't emit empty else arms (#336)
  • 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 [walrus](https://github.com/rustwasm/walrus) from 0.27.3 to 0.29.0.
- [Release notes](https://github.com/rustwasm/walrus/releases)
- [Changelog](https://github.com/wasm-bindgen/walrus/blob/main/CHANGELOG.md)
- [Commits](wasm-bindgen/walrus@0.27.3...0.29.0)

---
updated-dependencies:
- dependency-name: walrus
  dependency-version: 0.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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 Dec 1, 2026

This branch has not been deployed

No deployments
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.

0 participants