Commit 5fd6ec4
committed
update
This updates the Rust generator to use the new ABI defined in
WebAssembly/component-model#524. The C generator will
need a similar update as well.
- `future.write` now accepts its payload value as up to 4 flat parameters before spilling to linear memory.
- `future.read` takes no payload pointer when it has no payload type
- `{stream,future}.close-{readable,writable}` have been renamed to `{stream,future}.drop-{readable,writable}`
I've tested this end-to-end with `wasip3-prototyping` and will soon post a
corresponding PR there.
Finally, `rustfmt` was complaining about using `gen` as a field name, so I took
this opportunity to address that.
Signed-off-by: Joel Dice <[email protected]>future.{write,read} ABIs1 parent 80cf018 commit 5fd6ec4
File tree
35 files changed
+671
-457
lines changed- crates
- core/src
- c/src
- guest-rust/rt/src
- async_support
- rust/src
- tests/runtime-async/async
- cancel-import
- future-cancel-read
- future-cancel-write
- pending-import
- ping-pong
- simple-future
- simple-stream-payload
- simple-stream
35 files changed
+671
-457
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
0 commit comments