-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add async support to
wit_component::dummy_module
(#1960)
This allows us to round-trip fuzz test using the async ABI(s) as well as the sync one. I've also added corresponding `--async-callback` and `--async-stackful` options to the `component embed --dummy` subcommand for generating dummy modules which use the new ABIs. Note that this currently only generates ultra-minimal, non-functional modules. A real module would import the `task.return` intrinsic with the appropriate signature for each async export, and would presumably use other new intrinsics such as `subtask.drop`, `task.backpressure`, etc. -- not to mention the various `stream.*`, `future.*`, and `error-context.*` intrinsics. For more thorough fuzz testing, we'll want to generate imports for all known intrinsics (although we probably wouldn't do that for `component embed --dummy` modules, since it would be more confusing than helpful. Signed-off-by: Joel Dice <[email protected]>
- Loading branch information
Showing
7 changed files
with
225 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.