3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
[build ]
2
- target = " wasm32-wasi "
2
+ target = " wasm32-wasip1 "
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Requirements
20
20
21
21
* Rust
22
22
* [ 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 ` .
24
24
25
25
Build
26
26
=====
@@ -32,7 +32,7 @@ you can build it with:
32
32
cargo build --release
33
33
```
34
34
35
- This will produce a .wasm file in ` target/wasm32-wasi /release/ ` .
35
+ This will produce a .wasm file in ` target/wasm32-wasip1 /release/ ` .
36
36
37
37
Testing
38
38
=======
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ message "Building the filter using cargo..."
27
27
28
28
(
29
29
cd ..
30
- cargo build --target=wasm32-wasi --release || exit 1
30
+ cargo build --target=wasm32-wasip1 --release || exit 1
31
31
) || exit 1
32
32
33
33
# ## Copy filter to wasm/ #######################################################
34
34
35
35
mkdir -p wasm
36
36
37
- cp -a ../target/wasm32-wasi /release/* .wasm ../* .meta.json wasm/
37
+ cp -a ../target/wasm32-wasip1 /release/* .wasm ../* .meta.json wasm/
38
38
39
39
script_dir=$( dirname $( realpath $0 ) )
40
40
0 commit comments