Stream: git-wasmtime

Topic: wasmtime / PR #11628 Support store-access in `bindgen!` ...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 19:52):

alexcrichton opened PR #11628 from alexcrichton:imports-with-store to bytecodealliance:main:

This commit adds support to accessing the store in bindgen!-generated
import functions in traits. Since the inception of bindgen! this has
never been possible and access to the store requires manually working
with Linker, for example. This is not easy to do because it requires
surgically editing code or working around what bindings generation parts
you do want.

The implementation here is a small step away from what
component-model-async has already implemented for async functions.
Effectively it's a small extension of the *WithStore traits to also
have synchronous functions with Access parameters instead of async
functions with an Accessor parameter.

This is something we're going to want for the WASIp3 implementation
where I've noticed some resource destructors are going to want access to
the store to close out streams and such and this'll provide the bindings
necessary for that.

Closes https://github.com/bytecodealliance/wasmtime/issues/11590

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 19:52):

alexcrichton requested fitzgen for a review on PR #11628.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 19:52):

alexcrichton requested wasmtime-core-reviewers for a review on PR #11628.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 20:59):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 05 2025 at 22:20):

alexcrichton merged PR #11628.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 09 2025 at 14:26):

rvolosatovs submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 09 2025 at 14:26):

rvolosatovs created PR review comment:

Access constructed this way does not have an Instance, which causes the panic in #11651


Last updated: Dec 06 2025 at 06:05 UTC