Stream: git-wasmtime

Topic: wasmtime / PR #14843 Support map values in WAVE


view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 20:48):

jrandolf edited PR #14843.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 20:49):

jrandolf updated PR #14843.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 21:05):

jrandolf updated PR #14843.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 21:05):

jrandolf edited PR #14843:

This adds map support where Wasmtime prints and parses WAVE values, using wasm-tools 1.263.0, now on main via #15097:

$ wasmtime run -W component-model-map --invoke 'echo({3: 4, 1: 2, 3: 5})' component-map.wat
{3: 5, 1: 2}

Closes #14811

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 21:14):

jrandolf edited PR #14843:

Component maps are currently unsupported by Wasmtime's WAVE integration. Implement the wasm-wave map traits for component::Type and component::Val in crates/wasmtime/src/runtime/wave/component.rs, enabling Val::to_wave, Val::from_wave, and wasmtime run --invoke to handle maps through the existing parsing and display helpers.

WAVE merges duplicate keys, keeping the last value:

$ wasmtime run -W component-model-map --invoke 'echo({3: 4, 1: 2, 3: 5})' tests/all/cli_tests/component-map.wat
{3: 5, 1: 2}

CLI tests cover empty maps, map arguments and results, and duplicate keys. WAST tests use the existing map.const support to check that Val::Map retains duplicate entries when lowering arguments and lifting results.

Closes #14811

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 21:16):

jrandolf commented on PR #14843:

@pchickey This PR is now ready :smiley:

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 22:59):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 22:59):

alexcrichton added PR #14843 Support map values in WAVE to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 23:23):

github-merge-queue[bot] removed PR #14843 Support map values in WAVE from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 02 2026 at 23:56):

jrandolf requested alexcrichton for a review on PR #14843.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2026 at 15:16):

alexcrichton added PR #14843 Support map values in WAVE to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2026 at 16:15):

:check: alexcrichton merged PR #14843.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2026 at 16:15):

alexcrichton removed PR #14843 Support map values in WAVE from the merge queue.


Last updated: Nov 19 2026 at 20:05 UTC