Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Add a reactor world#23

Merged
sunfishcode merged 4 commits intoWebAssembly:mainfrom
alexcrichton:reactor
Sep 13, 2023
Merged

Add a reactor world#23
sunfishcode merged 4 commits intoWebAssembly:mainfrom
alexcrichton:reactor

Conversation

@alexcrichton
Copy link
Contributor

Similar to how there exists a command world this commit adds a reactor world which has everything that a command does except for the export of the run interface. This mirrors the preview1-adapter-reactor that Wasmtime currently has and is intended to make this available for other WIT-based projects as well.

This commit additionally refactors the preexisting command world to replace all of its imports with a single include of this new reactor world.

Similar to how there exists a `command` world this commit adds a
`reactor` world which has everything that a `command` does except for
the export of the `run` interface. This mirrors the
`preview1-adapter-reactor` that Wasmtime currently has and is intended
to make this available for other WIT-based projects as well.

This commit additionally refactors the preexisting `command` world to
replace all of its `import`s with a single `include` of this new
`reactor` world.
@alexcrichton
Copy link
Contributor Author

I believe that the CI failure will get fixed by WebAssembly/wasi-tools#18

@alexcrichton
Copy link
Contributor Author

Ok I've fixed the CI here by updating to a version of the github action that uses wit-bindgen proposed in WebAssembly/wit-abi-up-to-date#16. That required regenerating the documentation here as well. This is an example though of using wit-bindgen-the-CLI for this instead of the wasi-tools repository.

This shouldn't merge until WebAssembly/wit-abi-up-to-date#16 is merged however as otherwise it's pointing at a temporary fork of mine.

@alexcrichton
Copy link
Contributor Author

Ok now I've updated this to the "official" version of the github action so this should be ready to go.

@sunfishcode
Copy link
Member

Looks good!

@sunfishcode sunfishcode merged commit 8ae8ee9 into WebAssembly:main Sep 13, 2023
@alexcrichton alexcrichton deleted the reactor branch September 13, 2023 21:02
Mossaka added a commit to Mossaka/wasi-cli-fork that referenced this pull request Oct 21, 2023
this PR is a follow up on WebAssembly#23 and simplifies the command world with incldue syntax to hide
all the interfaces from deps.

Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
sunfishcode pushed a commit to Mossaka/wasi-cli-fork that referenced this pull request Nov 15, 2023
this PR is a follow up on WebAssembly#23 and simplifies the command world with incldue syntax to hide
all the interfaces from deps.

Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants