Skip to content

Conversation

alexcrichton
Copy link
Member

This enables having a subtask dispatched based on in-memory variable information as opposed to requiring static information up-front. I'm intending to use this for wit-dylib over in wasm-tools to prove out some async bits. This'll eventually happen for futures/streams most likely as well, but for now it's just subtasks.

This also shouldn't affect runtime code generated for this crate from before since the types used are all zero-sized and will get elided at runtime. Thus this is intended to enable more use cases without altering existing ones.

This enables having a subtask dispatched based on in-memory variable
information as opposed to requiring static information up-front. I'm
intending to use this for `wit-dylib` over in wasm-tools to prove out
some async bits. This'll eventually happen for futures/streams most
likely as well, but for now it's just subtasks.

This also shouldn't affect runtime code generated for this crate from
before since the types used are all zero-sized and will get elided at
runtime. Thus this is intended to enable more use cases without altering
existing ones.
@alexcrichton alexcrichton added this pull request to the merge queue Sep 23, 2025
Merged via the queue into bytecodealliance:main with commit 7208f7b Sep 23, 2025
22 checks passed
@alexcrichton alexcrichton deleted the wit-dylib-support branch September 23, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants