Skip to content

Commit 449f64e

Browse files
Merge pull request #186 from liigo/fix-wasi-cli
fix a few `wasi:cli` typos
2 parents e6de097 + 8beb4d3 commit 449f64e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

component-model/src/language-support/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ As the import is unfulfilled, the `calculator.wasm` component could not run by i
194194

195195
## Creating a command component with `cargo component`
196196

197-
A _command_ is a component with a specific export that allows it to be executed directly by `wasmtime` (or other `wasm:cli` hosts). In Rust terms, it's the equivalent of an application (`bin`) package with a `main` function, instead of a library crate (`lib`) package.
197+
A _command_ is a component with a specific export that allows it to be executed directly by `wasmtime` (or other `wasi:cli` hosts). In Rust terms, it's the equivalent of an application (`bin`) package with a `main` function, instead of a library crate (`lib`) package.
198198

199199
To create a command with cargo component, run:
200200

@@ -204,7 +204,7 @@ cargo component new <name>
204204

205205
Unlike library components, this does _not_ have the `--lib` flag. You will see that the created project is different too:
206206

207-
- It doesn't contain a `.wit` file. `cargo component build` will automatically export the `wasm:cli/run` interface for Rust `bin` packages, and hook it up to `main`.
207+
- It doesn't contain a `.wit` file. `cargo component build` will automatically export the `wasi:cli/run` interface for Rust `bin` packages, and hook it up to `main`.
208208
- Because there's no `.wit` file, `Cargo.toml` doesn't contain a `package.metadata.component.target` section.
209209
- The Rust file is called `main.rs` instead of `lib.rs`, and contains a `main` function instead of an interface implementation.
210210

component-model/src/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ documentation](creating-and-consuming/authoring.md) to create a component that i
8888
## Create a `command` component
8989

9090
A _command_ is a component with a specific export that allows it to be executed directly by
91-
`wasmtime` (or other `wasm:cli` hosts). The host expects it to export the [`wasi:cli/run`
91+
`wasmtime` (or other `wasi:cli` hosts). The host expects it to export the [`wasi:cli/run`
9292
interface](https://github.com/WebAssembly/wasi-cli/blob/main/wit/run.wit), which is the equivalent
9393
of the `main` function to WASI. `cargo-component` will automatically resolve a Rust `bin` package
9494
with a `main` function to a component with `wasi:cli/run` exported. Scaffold a new Wasm application

0 commit comments

Comments
 (0)