Skip to content

Commit

Permalink
chore(cargo): update target name to wasm32-wasip1 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh authored Sep 25, 2024
1 parent 81d47fe commit 261ff53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[build]
target = "wasm32-wasi"
target = "wasm32-wasip1"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====
Expand All @@ -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
=======
Expand Down
4 changes: 2 additions & 2 deletions test/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 261ff53

Please sign in to comment.