Skip to content

Commit 9cbada2

Browse files
cosmo0920edsiper
authored andcommitted
examples: wasi_serde_json: Follow Rustc target renaming from wasm32-wasi to wasm-wasip1
ref: rust-lang/compiler-team#607 Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 01bf4c0 commit 9cbada2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/wasi_serde_json/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ This source source tree provides an example of WASM program with WASI mode.
1010

1111
## How to build
1212

13-
Add `wasm32-wasi` target for Rust toolchain:
13+
Add `wasm32-wasip1` target for Rust toolchain:
1414

1515
```console
16-
$ rustup target add wasm32-wasi
16+
$ rustup target add wasm32-wasip1
1717
```
1818

1919
Then, execute _cargo build_ as follows:
2020

2121
```console
22-
$ cargo build --target wasm32-wasi --release
22+
$ cargo build --target wasm32-wasip1 --release
2323
```
2424

25-
Finally, under target/wasm32-wasi/release directory, `*.wasm` file will be created:
25+
Finally, under target/wasm32-wasip1/release directory, `*.wasm` file will be created:
2626

2727
```console
28-
$ ls target/wasm32-wasi/release/*.wasm
29-
target/wasm32-wasi/release/wasi_serde_json.wasm
28+
$ ls target/wasm32-wasip1/release/*.wasm
29+
target/wasm32-wasip1/release/wasi_serde_json.wasm
3030
```
3131

3232
## How to confirm WASI integration

0 commit comments

Comments
 (0)