jrandolf opened PR #14838 from jrandolf:bindgen-map-param-ref to bytecodealliance:main:
For an exported function taking an anonymous
map<K, V>,bindgen!generated a by-valueHashMapof borrowed keys and values (e.g.HashMap<&str, &[String]>), so callers holding aHashMap<String, Vec<String>>had to build a second map of references to make a call. This mirrors how lists are handled instead: in borrowed positions the map is taken by reference, and withOwnership::Owningits keys and values are owned. Named map types already generated&Named.This changes generated signatures, see #14831. It's based on #14834; only the last commit is new.
Closes #14831
jrandolf has marked PR #14838 as ready for review.
jrandolf removed the review request for wasmtime-core-reviewers from PR #14838.
jrandolf requested dicej for a review on PR #14838.
jrandolf requested wasmtime-core-reviewers for a review on PR #14838.
:thumbs_up: alexcrichton submitted PR review:
(holding off on merge queue unil prereq is merged)
alexcrichton removed the review request for dicej from PR #14838.
jrandolf updated PR #14838.
jrandolf updated PR #14838.
jrandolf commented on PR #14838:
@alexcrichton This one is ready for merge.
:thumbs_up: alexcrichton submitted PR review.
alexcrichton added PR #14838 Pass anonymous maps to exported functions by reference in bindgen! to the merge queue
:check: alexcrichton merged PR #14838.
alexcrichton removed PR #14838 Pass anonymous maps to exported functions by reference in bindgen! from the merge queue
Last updated: Oct 31 2026 at 23:03 UTC