Commit 015b271
committed
Add support for async ABI, futures, streams, and errors
This adds support for encoding and parsing components which use the [Async
ABI](https://github.com/WebAssembly/component-model/blob/main/design/mvp/Async.md)
and associated canonical options and functions, along with the [`stream`,
`future`, and `error`](WebAssembly/component-model#405)
types.
Note that the `error` type was recently (about 30 minutes ago) renamed to
`error-context` in Luke's spec PR. I haven't updated this implementation to
reflect that yet, but will do so in a follow-up commit. That should allow us to
avoid conflicts with existing WIT files that use `error` as a type and/or
interface name.
This does not include any new tests; I'll also add those in a follow-up commit.
See bytecodealliance/rfcs#38 for more context.
Signed-off-by: Joel Dice <[email protected]>1 parent 196a6be commit 015b271
File tree
43 files changed
+3718
-298
lines changed- crates
- wasm-compose/src
- wasm-encoder/src
- component
- reencode
- wasmparser/src
- readers/component
- validator
- wasmprinter/src
- wit-component
- src
- encoding
- tests/interfaces/wasi-http
- deps
- filesystem
- io
- wit-encoder/src
- wit-parser
- src
- ast
- resolve
- tests/ui
- src/bin/wasm-tools
- tests/cli
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+3718
-298
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
501 | | - | |
502 | 500 | | |
503 | 501 | | |
504 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
599 | 610 | | |
600 | 611 | | |
601 | 612 | | |
| |||
608 | 619 | | |
609 | 620 | | |
610 | 621 | | |
611 | | - | |
612 | | - | |
613 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
614 | 631 | | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
| 632 | + | |
620 | 633 | | |
621 | 634 | | |
622 | 635 | | |
| |||
667 | 680 | | |
668 | 681 | | |
669 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
670 | 686 | | |
671 | 687 | | |
672 | 688 | | |
| |||
788 | 804 | | |
789 | 805 | | |
790 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
791 | 829 | | |
792 | 830 | | |
793 | 831 | | |
| |||
1215 | 1253 | | |
1216 | 1254 | | |
1217 | 1255 | | |
1218 | | - | |
1219 | | - | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
1220 | 1261 | | |
1221 | 1262 | | |
1222 | 1263 | | |
| |||
1245 | 1286 | | |
1246 | 1287 | | |
1247 | 1288 | | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1248 | 1294 | | |
1249 | 1295 | | |
1250 | 1296 | | |
| |||
1402 | 1448 | | |
1403 | 1449 | | |
1404 | 1450 | | |
1405 | | - | |
| 1451 | + | |
1406 | 1452 | | |
1407 | 1453 | | |
1408 | 1454 | | |
| |||
1418 | 1464 | | |
1419 | 1465 | | |
1420 | 1466 | | |
| 1467 | + | |
1421 | 1468 | | |
1422 | 1469 | | |
1423 | 1470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
439 | 443 | | |
440 | 444 | | |
441 | 445 | | |
442 | | - | |
| 446 | + | |
443 | 447 | | |
444 | 448 | | |
445 | 449 | | |
| |||
448 | 452 | | |
449 | 453 | | |
450 | 454 | | |
451 | | - | |
| 455 | + | |
452 | 456 | | |
453 | 457 | | |
454 | 458 | | |
| |||
508 | 512 | | |
509 | 513 | | |
510 | 514 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
| |||
559 | 560 | | |
560 | 561 | | |
561 | 562 | | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
566 | 572 | | |
567 | 573 | | |
568 | 574 | | |
569 | | - | |
| 575 | + | |
570 | 576 | | |
571 | 577 | | |
572 | 578 | | |
| |||
584 | 590 | | |
585 | 591 | | |
586 | 592 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
592 | 599 | | |
| 600 | + | |
593 | 601 | | |
594 | 602 | | |
595 | 603 | | |
596 | 604 | | |
597 | 605 | | |
598 | 606 | | |
599 | 607 | | |
600 | | - | |
| 608 | + | |
601 | 609 | | |
602 | 610 | | |
603 | 611 | | |
| |||
653 | 661 | | |
654 | 662 | | |
655 | 663 | | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
| 664 | + | |
| 665 | + | |
660 | 666 | | |
661 | 667 | | |
662 | 668 | | |
| |||
706 | 712 | | |
707 | 713 | | |
708 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
709 | 719 | | |
710 | 720 | | |
711 | 721 | | |
| |||
0 commit comments