Commit 34e399e
authored
* update `future`/`stream` ABIs and names
This updates `wit-bindgen-rt` etc. 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.
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 <joel.dice@fermyon.com>
fix rust codegen build errors
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
snapshot
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
* skip unnecessary `ReturnCode::decode` call
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
* update C runtime tests for new ABI return codes
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
---------
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 80cf018 commit 34e399e
35 files changed
Lines changed: 385 additions & 378 deletions
File tree
- 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
Some 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