bytecodealliance / bytecodealliance/wasmtime

Enable `WasmStr`/`WasmList` with `call_concurrent`

Open
#12,467 0 comments 0 reactions 0 assignees View on GitHub
wasm-proposal:component-model-async
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 18h
Merged PRs (30d)
126

Description

Right now it's not possible to use these types as return values of a guest function with `call_concurrent`. The reason for this is that post-return is invoked automatically meaning that using these types would be using already-free'd memory in the guest. We should enable these types to work to unlock the possibility of zero-copy return values. This'll probably look like some sort of closure/trait passed to `call_concurrent` (ish) which is invoked once the values are received.

This is somewhat related to #12427 insofar as post-return is causing issues there.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.