Skip to content

Bump walrus from 0.27.3 to 0.29.0 - #1359

Merged
jeffcharles merged 1 commit into
mainfrom
dependabot/cargo/walrus-0.29.0
Dec 3, 2026
Merged

jeffcharles merged 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 dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Dec 1, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/walrus-0.29.0 branch 2 times, most recently from 27cf14d to e880f1a Compare December 3, 2026 16:43
@jeffcharles

Copy link
Copy Markdown
Collaborator

@dependabot rebase

1 similar comment
@jeffcharles

Copy link
Copy Markdown
Collaborator

@dependabot rebase

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 force-pushed the dependabot/cargo/walrus-0.29.0 branch from e880f1a to 7572074 Compare December 3, 2026 21:46
@jeffcharles
jeffcharles merged commit 702f93b into main Dec 3, 2026
4 checks passed
@jeffcharles
jeffcharles deleted the dependabot/cargo/walrus-0.29.0 branch December 3, 2026 22:47
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