File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11[build ]
2- target = " wasm32-wasi "
2+ target = " wasm32-wasip1 "
Original file line number Diff line number Diff 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
2525Build
2626=====
@@ -32,7 +32,7 @@ you can build it with:
3232cargo 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
3737Testing
3838=======
Original file line number Diff line number Diff 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
3535mkdir -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
3939script_dir=$( dirname $( realpath $0 ) )
4040
You can’t perform that action at this time.
0 commit comments