Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge with upstream #134

Merged
merged 6 commits into from
Sep 12, 2024
Merged

Merge with upstream #134

merged 6 commits into from
Sep 12, 2024

Conversation

dhil
Copy link
Member

@dhil dhil commented Sep 12, 2024

No description provided.

samestep and others added 6 commits September 10, 2024 16:15
* Allow parsing `rectypes` in components

This change supports [bytecodealliance#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.

[bytecodealliance#392]: WebAssembly/component-model#392

Co-authored-by: Alex Crichton <alex@alexcrichton.com>

* Apply `0x00` prefix to non-final `sub`; add tests

This follows along with the most recent discussion in the component
model PR ([bytecodealliance#392]).

[bytecodealliance#392]: WebAssembly/component-model#392

Co-authored-by: Alex Crichton <alex@alexcrichton.com>

* 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 <alex@alexcrichton.com>
…1776)

The very large diffs from errors in development bytecodealliance#1775 caused OOMs so I
figured now's as good a time as any to switch over to using
`pretty_assertions` which other crates in the workspace are already using.
…e#1778)

This'll in theory get updated occasionally but should protect us from
breakage in the meantime.
@dhil dhil merged commit 78ecc39 into wasmfx:main Sep 12, 2024
30 checks passed
@dhil dhil deleted the wasmfx-merge branch September 12, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants