Skip to content

Commit f468916

Browse files
refactor(lang/rust): description of reactors vs command
1 parent 8319b4d commit f468916

File tree

1 file changed

+5
-3
lines changed
  • component-model/src/language-support/creating-runnable-components

1 file changed

+5
-3
lines changed

component-model/src/language-support/creating-runnable-components/rust.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ wasmtime run ./target/wasm32-wasip2/debug/runnable-example.wasm
5959

6060
## Enabling a library component to be run via the `wasi:cli/run` interface
6161

62-
Any reactor (library-like) component can *also* export the [`run` interface][wasi-cli-iface-run] inside [WASI CLI][wasi-cli],
63-
and signal to consumers that the library can also be run similarly to a binary.
62+
While reactor (library-like) components export interfaces that are meant to be used directly,
63+
they can *also* export the [`wasi:cli/run` interface][wasi-cli-iface-run] from [WASI CLI][wasi-cli],
64+
and signal to consumers that the library can also be run similarly to a binary that would run via a
65+
command line interface.
6466

6567
Unlike command components, library components have no `_start`, but by exporting the `wasi:cli/run` interface,
66-
tooling that recognizes these exports can easily execute the given WebAssembly binary (e.g. `wasmtime run`).
68+
tooling that recognizes these exports can easily execute a given WebAssembly binary (e.g. `wasmtime run`).
6769

6870
[wasi-cli-iface-run]: https://github.com/WebAssembly/wasi-cli/tree/main/wit/run.wit
6971
[wasi-cli]: https://github.com/WebAssembly/wasi-cli

0 commit comments

Comments
 (0)