Skip to content

Commit 5dcffaa

Browse files
Update Rust target from 'wasm32-wasi' to 'wasm32-wasip1' in CI (#4050)
- update Rust target from 'wasm32-wasi' to 'wasm32-wasip1' in ci
1 parent b6dea22 commit 5dcffaa

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/compilation_on_android_ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ jobs:
817817

818818
- name: install dependencies
819819
run: |
820-
rustup target add wasm32-wasi
820+
rustup target add wasm32-wasip1
821821
sudo apt update && sudo apt-get install -y lld ninja-build
822822
npm install
823823
working-directory: test-tools/wamr-ide/VSCode-Extension

doc/build_wasm_app.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ For [AssemblyScript](https://github.com/AssemblyScript/assemblyscript), please r
1616

1717
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.
1818

19-
And then run such a command to install `wasm32-wasi` target.
19+
And then run such a command to install `wasm32-wasip1` target.
2020

2121
``` bash
22-
$ rustup target add wasm32-wasi
22+
$ rustup target add wasm32-wasip1
2323
```
2424

2525
To build WASM applications, run
2626

2727
``` bash
28-
$ cargo build --target wasm32-wasi
28+
$ cargo build --target wasm32-wasip1
2929
```
3030

31-
The output files are under `target/wasm32-wasi`.
31+
The output files are under `target/wasm32-wasip1`.
3232

3333
To build a release version
3434

3535
``` bash
36-
$ cargo build --release --target wasm32-wasi
36+
$ cargo build --release --target wasm32-wasip1
3737
```
3838

3939

samples/debug-tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ add_library(vmlib ${WAMR_RUNTIME_LIB_SOURCE})
7272
include(ExternalProject)
7373

7474
# wasm32-wasi
75-
ExternalProject_Add(wasm33-wasi
75+
ExternalProject_Add(wasm32-wasi
7676
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/wasm-apps"
7777
CONFIGURE_COMMAND ${CMAKE_COMMAND} -S ${CMAKE_CURRENT_SOURCE_DIR}/wasm-apps -B build
7878
-DWASI_SDK_PREFIX=${WASISDK_HOME}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# compile with debug symbols and no optimization
2-
rustc --target wasm32-wasi ./test.rs -g -C opt-level=0
2+
rustc --target wasm32-wasip1 ./test.rs -g -C opt-level=0

test-tools/wamr-ide/VSCode-Extension/src/test/suite/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function setBpAtMarker(file: string, bpMarker: string): void {
3939
export function compileRustToWasm(): void {
4040
const testResourceFolder = `${EXTENSION_PATH}/resource/test`;
4141
// compile with debug symbols and no optimization
42-
const cmd = `rustc --target wasm32-wasi ${testResourceFolder}/test.rs -g -C opt-level=0 -o ${testResourceFolder}/test.wasm`;
42+
const cmd = `rustc --target wasm32-wasip1 ${testResourceFolder}/test.rs -g -C opt-level=0 -o ${testResourceFolder}/test.wasm`;
4343

4444
try {
4545
cp.execSync(cmd, { stdio: [null, null, process.stderr] });

0 commit comments

Comments
 (0)