Skip to content

Upgrade to witx 0.8.0 with tagged unions#921

Merged
kubkon merged 7 commits into
masterfrom
pch/witx_tagged_unions
Feb 20, 2020
Merged

Upgrade to witx 0.8.0 with tagged unions#921
kubkon merged 7 commits into
masterfrom
pch/witx_tagged_unions

Conversation

@pchickey

@pchickey pchickey commented Feb 7, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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?

@kubkon kubkon left a comment

Copy link
Copy Markdown
Member

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