Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 261ff53

Browse files
authoredSep 25, 2024
1 parent 81d47fe commit 261ff53

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎.cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build]
2-
target = "wasm32-wasi"
2+
target = "wasm32-wasip1"

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Requirements
2020

2121
* Rust
2222
* [rustup.rs](https://rustup.rs) is the easiest way to install Rust.
23-
* Then add the Wasm32-WASI target to your toolchain: `rustup target add wasm32-wasi`.
23+
* Then add the Wasm32-WASI (snapshot 1) target to your toolchain: `rustup target add wasm32-wasip1`.
2424

2525
Build
2626
=====
@@ -32,7 +32,7 @@ you can build it with:
3232
cargo build --release
3333
```
3434

35-
This will produce a .wasm file in `target/wasm32-wasi/release/`.
35+
This will produce a .wasm file in `target/wasm32-wasip1/release/`.
3636

3737
Testing
3838
=======

‎test/demo.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ message "Building the filter using cargo..."
2727

2828
(
2929
cd ..
30-
cargo build --target=wasm32-wasi --release || exit 1
30+
cargo build --target=wasm32-wasip1 --release || exit 1
3131
) || exit 1
3232

3333
### Copy filter to wasm/ #######################################################
3434

3535
mkdir -p wasm
3636

37-
cp -a ../target/wasm32-wasi/release/*.wasm ../*.meta.json wasm/
37+
cp -a ../target/wasm32-wasip1/release/*.wasm ../*.meta.json wasm/
3838

3939
script_dir=$(dirname $(realpath $0))
4040

0 commit comments

Comments
 (0)
Failed to load comments.