Skip to content

Commit 534c3ea

Browse files
vados-cosmonickate-goldenring
authored andcommitted
fix(lang/rust): naming of adder.wasm
Signed-off-by: Victor Adossi <[email protected]>
1 parent 803be65 commit 534c3ea

File tree

1 file changed

+4
-3
lines changed
  • component-model/src/language-support

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ cargo component build --release
9595
You can use `wasm-tools component wit` to output the WIT package of the component:
9696

9797
```
98-
$ wasm-tools component wit target/wasm32-wasip1/release/add.wasm
98+
$ wasm-tools component wit target/wasm32-wasip1/release/adder.wasm
9999
package root:component;
100100
101101
world root {
@@ -118,7 +118,7 @@ Rust bindings, bring in WASI worlds, and execute the component.
118118

119119
```sh
120120
$ cd examples/example-host
121-
$ cargo run --release -- 1 2 ../add/target/wasm32-wasip1/release/add.wasm
121+
$ cargo run --release -- 1 2 ../add/target/wasm32-wasip1/release/adder.wasm
122122
1 + 2 = 3
123123
```
124124

@@ -201,7 +201,8 @@ world root {
201201
}
202202
```
203203

204-
As the import is unfulfilled, the `calculator.wasm` component could not run by itself in its current form. To fulfill the `add` import, so that only `calculate` is exported, you would need to [compose the `calculator.wasm` with some `exports-add.wasm` into a single, self-contained component](../creating-and-consuming/composing.md).
204+
As the import is unfulfilled, the `calculator.wasm` component could not run by itself in its current form. To fulfill the `add` import, so that
205+
only `calculate` is exported, you would need to [compose the `calculator.wasm` with some `adder.wasm` into a single, self-contained component](../creating-and-consuming/composing.md).
205206

206207
## Creating a command component with `cargo component`
207208

0 commit comments

Comments
 (0)