-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow parsing
rectypes
in components (#1764)
* Allow parsing `rectypes` in components This change supports [#392], which adds a way to use GC's `rectypes` as type definitions in components. Previously, only function types were supported and there was no way express array and struct types. This keeps the previous function decoding support based on peeking the function type `0x60` prefix but adds support for encoding `rectypes` with a new `0x00` prefix. [#392]: WebAssembly/component-model#392 Co-authored-by: Alex Crichton <[email protected]> * Apply `0x00` prefix to non-final `sub`; add tests This follows along with the most recent discussion in the component model PR ([#392]). [#392]: WebAssembly/component-model#392 Co-authored-by: Alex Crichton <[email protected]> * review: keep variant as `ComponentCoreTypeId::Sub` * review: remove leftover comment * review: remove resolved TODOs * review: move `From` implementations to `core/binary.rs` * review: remove `parse_component_sub_type` --------- Co-authored-by: Alex Crichton <[email protected]>
- Loading branch information
1 parent
8b899d9
commit 5ee4030
Showing
30 changed files
with
439 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.