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

Add new "unit" and "bool" primitive types #204

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

alexcrichton
Copy link
Member

This splits out the bool type from Variant and additionally adds a
new unit type. The new unit type will need some more tests in the
future and this is just laying the groundwork for it for now. This'll
soon get automatically tested though as the type of each case in
Variant becomes required and functions will also switch to one return
type.

This splits out the `bool` type from `Variant` and additionally adds a
new `unit` type. The new `unit` type will need some more tests in the
future and this is just laying the groundwork for it for now. This'll
soon get automatically tested though as the type of each case in
`Variant` becomes required and functions will also switch to one return
type.
crates/gen-c/src/lib.rs Show resolved Hide resolved
@alexcrichton alexcrichton merged commit ba4ec2e into bytecodealliance:main Apr 22, 2022
@alexcrichton alexcrichton deleted the unit-and-bool branch April 22, 2022 00:02
willemneal pushed a commit to AhaLabs/wit-bindgen that referenced this pull request May 31, 2022
This splits out the `bool` type from `Variant` and additionally adds a
new `unit` type. The new `unit` type will need some more tests in the
future and this is just laying the groundwork for it for now. This'll
soon get automatically tested though as the type of each case in
`Variant` becomes required and functions will also switch to one return
type.
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.

None yet

2 participants