Update Rust target from 'wasm32-wasi' to 'wasm32-wasip1' in CI (#4050)

- update Rust target from 'wasm32-wasi' to 'wasm32-wasip1' in ci
This commit is contained in:
TianlongLiang
2025-02-01 12:14:06 +08:00
committed by GitHub
parent b6dea221a6
commit 5dcffaa7d2
5 changed files with 9 additions and 9 deletions

View File

@ -16,24 +16,24 @@ For [AssemblyScript](https://github.com/AssemblyScript/assemblyscript), please r
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.
And then run such a command to install `wasm32-wasi` target.
And then run such a command to install `wasm32-wasip1` target.
``` bash
$ rustup target add wasm32-wasi
$ rustup target add wasm32-wasip1
```
To build WASM applications, run
``` bash
$ cargo build --target wasm32-wasi
$ cargo build --target wasm32-wasip1
```
The output files are under `target/wasm32-wasi`.
The output files are under `target/wasm32-wasip1`.
To build a release version
``` bash
$ cargo build --release --target wasm32-wasi
$ cargo build --release --target wasm32-wasip1
```