Skip to content

Commit cdafe5e

Browse files
committed
update future/stream ABIs and names
This updates `wasmtime-environ`, `wasmtime-cranelift`, and `wasmtime` to to use (some of) the new ABI defined in WebAssembly/component-model#524. It covers everything in that PR _except_ the lifting and lowering changes to `future.{read,write}`, which we decided are more trouble than they're worth. Still to do: add tests for the following items (Luke has volunteered to do this): > * When a `future` is "done" (by a `COMPLETED` read/write or by the writable end receiving `DROPPED`), the only valid operation is `future.drop-{readable,writable}`. `future.{read,write}` or lifting traps. > * Because there's no great reason for streams to be more permissive than futures in this regard, streams are also given a "done" state with the same trapping rules as futures, but the stream "done" state is only set when `DROPPED` is received. Signed-off-by: Joel Dice <[email protected]>
1 parent b0b72ca commit cdafe5e

File tree

25 files changed

+437
-536
lines changed

25 files changed

+437
-536
lines changed

Cargo.lock

Lines changed: 38 additions & 121 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)