We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac7f3b commit 111c83bCopy full SHA for 111c83b
component-model/src/language-support/creating-runnable-components/rust.md
@@ -59,6 +59,9 @@ wasmtime run ./target/wasm32-wasip2/debug/runnable-example.wasm
59
60
## Enabling a library component to be run via the `wasi:cli/run` interface
61
62
+Sometimes, it is useful to create a component that can *both* be used as a library (via
63
+exported interface) and executed standalone like a command component.
64
+
65
While reactor (library-like) components export interfaces that are meant to be used directly,
66
they can *also* export the [`wasi:cli/run` interface][wasi-cli-iface-run] from [WASI CLI][wasi-cli],
67
and signal to consumers that the library can also be run similarly to a binary that would run via a
0 commit comments