You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use wasm32-wasip1 instead of wasm32-wasi target for rust code
Rust compiler previously deprecated, and now removed the wasm32-wasi target and replaced it with wasm32-wasip1. This
change updates all the occurrences of wasm32-wasi in the context of Rust compilation
Copy file name to clipboardexpand all lines: doc/build_wasm_app.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -16,24 +16,24 @@ For [AssemblyScript](https://github.com/AssemblyScript/assemblyscript), please r
16
16
17
17
For Rust, please refer to [Install Rust and Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) to install *cargo*, *rustc* and *rustup*. By default they are under ~/.cargo/bin.
18
18
19
-
And then run such a command to install `wasm32-wasi` target.
19
+
And then run such a command to install `wasm32-wasip1` target.
20
20
21
21
```bash
22
-
$ rustup target add wasm32-wasi
22
+
$ rustup target add wasm32-wasip1
23
23
```
24
24
25
25
To build WASM applications, run
26
26
27
27
```bash
28
-
$ cargo build --target wasm32-wasi
28
+
$ cargo build --target wasm32-wasip1
29
29
```
30
30
31
-
The output files are under `target/wasm32-wasi`.
31
+
The output files are under `target/wasm32-wasip1`.
0 commit comments