anlavandier opened issue #11705:
Feature
#11628 adds support for accessing the store in
bindgen!-generated import function in traits. This is great but currently even when generating withasync: falsethis is gated behind thecomponent-model-asyncfeature which is itself requiresstd. The proposed feature would be to un-gate the improvements of the aforementioned PR #11628 for synchronous imports.Benefit
This would allow users using
wasmtimeinno_stdembedded systems to also access the store in their generated import functions.Implementation
I don't know all of the implications but the discussions in #11590 suggest that un-gating the
Accessstruct would be a start.Alternatives
Without this feature,
no_stdthat need/want to access the store in their imports have to do so outside of the component-model.
alexcrichton added the wasm-proposal:component-model label to Issue #11705.
alexcrichton added the wasmtime:platform-support label to Issue #11705.
anlavandier edited issue #11705:
Feature
#11628 adds support for accessing the store in
bindgen!-generated import function in traits. This is great but currently even when generating withasync: falsethis is gated behind thecomponent-model-asyncfeature which is itself requiresstd. The proposed feature would be to un-gate the improvements of the aforementioned PR #11628 for synchronous imports.Benefit
This would allow users using
wasmtimeinno_stdembedded systems to also access the store in their generated import functions.Implementation
I don't know all of the implications but the discussions in #11590 suggest that un-gating the
Accessstruct would be a start.Alternatives
Without this feature,
no_stdusers that need/want to access the store in their imports have to do so outside of the component-model.
anlavandier commented on issue #11705:
@alexcrichton I looked briefly at the code base and it seems like the
Accessstruct is pretty deeply intermixed with async functionality. After some testing, making thecomponent-model-asyncfeatureno_stdcompatible is also probably not happening. Do you think that coming up with anAccessSyncstruct that only replicates what's needed fromAccessto work withimports: storefunctions and resources could be possible ?
alexcrichton commented on issue #11705:
Code-wise it's pretty intertwined right now yeah, but conceptually there shouldn't be any need to couple the two together. I'd rather not add a new type to the preexisting matrix of types and instead work on getting
Accessexposed even whencomponent-model-asyncis disabled.
Last updated: Dec 06 2025 at 07:03 UTC