Skip to content

Upgrade to witx 0.8.0 with tagged unions #921

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

Merged
merged 7 commits into from
Feb 20, 2020
Merged

Conversation

pchickey
Copy link
Contributor

@pchickey pchickey commented Feb 7, 2020

Implements WebAssembly/WASI#220

Additionally, deletes all bindgen layout tests, since those became out-of-date with this PR. Instead, generate layout tests in wig, using witx::Layout as the source of truth.

@pchickey pchickey requested a review from kubkon February 7, 2020 02:17
@kubkon kubkon added the wasi:impl Issues pertaining to WASI implementation in Wasmtime label Feb 7, 2020
the bindgen tests became out-of-date with the latest changes to the
representation of unions, and the re-jiggering of various struct
definitions that went along with it.
@pchickey pchickey marked this pull request as ready for review February 14, 2020 01:34
@pchickey pchickey force-pushed the pch/witx_tagged_unions branch from b59a9d2 to b8e83aa Compare February 18, 2020 20:56
@pchickey
Copy link
Contributor Author

Looks like I still need to fix the uses of these unions on all the platforms that cargo test didnt check for me locally. @alexcrichton or others - is there a reasonable way to test each platform locally (on linux)?

@alexcrichton
Copy link
Member

You can probably get by with rustup target add x86_64-pc-windows-gnu and cargo check --target x86_64-pc-windows-gnu I think?

Copy link
Member

@kubkon kubkon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @pchickey!

@kubkon kubkon merged commit 4460e56 into master Feb 20, 2020
@kubkon kubkon deleted the pch/witx_tagged_unions branch February 20, 2020 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasi:impl Issues pertaining to WASI implementation in Wasmtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants