Stream: git-wasmtime

Topic: wasmtime / issue #14832 Typed map<K, V> support is limite...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 19:13):

jrandolf opened issue #14832:

Today map<K, V> can only be used through the typed API and bindgen! as HashMap<K, V> with the default hasher (std's RandomState, or hashbrown's default hasher without std). A few consequences:

For comparison, guest-side wit-bindgen has a map_type option plus a small WitMap trait, with BTreeMap as the no_std-friendly default and HashMap available behind std. Would something similar make sense here: impls for BTreeMap and HashMap<K, V, S>, an entries-preserving type for "just give me the list", and a bindgen! option to pick between them?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2026 at 19:21):

alexcrichton added the wasm-proposal:component-model-map label to Issue #14832.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 22 2026 at 20:31):

fitzgen closed issue #14832:

Today map<K, V> can only be used through the typed API and bindgen! as HashMap<K, V> with the default hasher (std's RandomState, or hashbrown's default hasher without std). A few consequences:

For comparison, guest-side wit-bindgen has a map_type option plus a small WitMap trait, with BTreeMap as the no_std-friendly default and HashMap available behind std. Would something similar make sense here: impls for BTreeMap and HashMap<K, V, S>, an entries-preserving type for "just give me the list", and a bindgen! option to pick between them?


Last updated: Oct 31 2026 at 23:03 UTC