Skip to content

chore(cargo): update target name to wasm32-wasip1 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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