diff --git a/.cargo/config.toml b/.cargo/config.toml index 6b77899..6b509f5 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ [build] -target = "wasm32-wasi" +target = "wasm32-wasip1" diff --git a/README.md b/README.md index 9f11c9d..4e68cd6 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Requirements * Rust * [rustup.rs](https://rustup.rs) is the easiest way to install Rust. - * Then add the Wasm32-WASI target to your toolchain: `rustup target add wasm32-wasi`. + * Then add the Wasm32-WASI (snapshot 1) target to your toolchain: `rustup target add wasm32-wasip1`. Build ===== @@ -32,7 +32,7 @@ you can build it with: cargo build --release ``` -This will produce a .wasm file in `target/wasm32-wasi/release/`. +This will produce a .wasm file in `target/wasm32-wasip1/release/`. Testing ======= diff --git a/test/demo.sh b/test/demo.sh index e525cb1..7c19f5f 100755 --- a/test/demo.sh +++ b/test/demo.sh @@ -27,14 +27,14 @@ message "Building the filter using cargo..." ( cd .. - cargo build --target=wasm32-wasi --release || exit 1 + cargo build --target=wasm32-wasip1 --release || exit 1 ) || exit 1 ### Copy filter to wasm/ ####################################################### mkdir -p wasm -cp -a ../target/wasm32-wasi/release/*.wasm ../*.meta.json wasm/ +cp -a ../target/wasm32-wasip1/release/*.wasm ../*.meta.json wasm/ script_dir=$(dirname $(realpath $0))