Stream: git-wasmtime

Topic: wasmtime / PR #12496 WIP ComponentType: add as_val method...


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

pchickey edited PR #12496.

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

pchickey updated PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 01:06):

github-actions[bot] added the label wasmtime:api on PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 17:39):

alexcrichton submitted PR review:

Personally I'm not overly thrilled about extending the Lift/Lower/etc traits given the complexity of testing them and the sheer breadth of impls required, but this is overall relatively minor in terms of complexity. Before landing mind also expanding the PR description with some rationale for the expected use cases?

Bikeshedding wise I might say to_val instead of as_val since "as" implies "cheap" typically and this definitely isn't cheap. I'd also bikeshed the signature a bit to use StoreContextMut<T> rather than impl AsContextMut to avoid the extra indirection of impl Trait where possible.

The 'static bounds popping up on futures/streams is fine, those are only really practically usable with 'static types anyway, so I don't think that'll be an issue. The specifics of as_val for futures/streams I think will want to be re-worked a bit too to avoid manually creating structs, but I can take a closer look once this is closer to landing.

Similar to futures/streams I'll need to think a bit harder about the try_as_resource_any method added here for resources. I forget exactly where we are on clone/copy/etc on those and how it affects what we document in terms of guarantees and whatnot.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 18:26):

pchickey updated PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 19:16):

pchickey updated PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 19:37):

pchickey updated PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 20:21):

pchickey updated PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 21:33):

pchickey updated PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 21:33):

pchickey updated PR #12496.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 22:54):

pchickey updated PR #12496.


Last updated: Feb 24 2026 at 04:36 UTC