Skip to content

Conversation

@alexcrichton
Copy link
Member

This commit switches the way tests are built such that all binaries produced are "reactors" or those without a main function. This ensures that all imports/exports are fully described with WIT in this repository as opposed to implicitly relying on wasi:cli/run. This additionally means that testing in this repository no longer relies on toolchain conventions for the wasi:cli/run world making testing a bit more self-contained here, especially in the context of async.

This notably came up on #1447 which should make some of the tests there easier to write and more idiomatic.

This commit switches the way tests are built such that all binaries
produced are "reactors" or those without a `main` function. This ensures
that all imports/exports are fully described with WIT in this repository
as opposed to implicitly relying on `wasi:cli/run`. This additionally
means that testing in this repository no longer relies on toolchain
conventions for the `wasi:cli/run` world making testing a bit more
self-contained here, especially in the context of async.

This notably came up on bytecodealliance#1447 which should make some of the tests there
easier to write and more idiomatic.
@alexcrichton alexcrichton requested a review from dicej December 4, 2025 23:10
@alexcrichton alexcrichton added this pull request to the merge queue Dec 5, 2025
Merged via the queue into bytecodealliance:main with commit 10c6acd Dec 5, 2025
22 checks passed
@alexcrichton alexcrichton deleted the more-wit branch December 5, 2025 15:32
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.

2 participants