Skip to content

Commit a306584

Browse files
refactor(lang/rust): add target to cargo build cmd
1 parent 25b3b6b commit a306584

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

component-model/examples/tutorial/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ To expand the exercise to add more components, add another operator world, expan
4545
Use [`wac`](https://github.com/bytecodealliance/wac) to build and compose the calculator component.
4646

4747
```sh
48-
(cd calculator && cargo build --release)
49-
(cd adder && cargo build --release)
50-
(cd command && cargo build --release)
48+
(cd calculator && cargo build --target=wasm32-wasip2 --release)
49+
(cd adder && cargo build --target=wasm32-wasip2 --release)
50+
(cd command && cargo build --target=wasm32-wasip2 --release)
5151
wac plug calculator/target/wasm32-wasip1/release/calculator.wasm --plug adder/target/wasm32-wasip1/release/adder.wasm -o composed.wasm
5252
wac plug command/target/wasm32-wasip1/release/command.wasm --plug composed.wasm -o final.wasm
5353
```

0 commit comments

Comments
 (0)