Skip to content
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 .devcontainer/finalize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ printf "Installing Rust Targets\n"
#rustup update stable --no-self-update
rustup default stable
rustup target add wasm32-unknown-unknown
rustup target add wasm32-wasi
rustup target add wasm32-wasip1
rustup component add clippy
rustup component add rustfmt

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ variant, imports. But *loading linking* means that all instances share the same

### Examples

#### Example: to run a wasm32-wasi .wasm
#### Example: to run a wasm32-wasip1 .wasm

*wasm32-wasi* is a most common target for Wasm. It means that the .wasm is compiled with
`cargo build --target wasm32-wasi` or `wasi-sdk/bin/clang --target wasm32-wasi`.
*wasm32-wasip1* is a most common target for Wasm. It means that the .wasm is compiled with
`cargo build --target wasm32-wasip1` or `wasi-sdk/bin/clang --target wasm32-wasip1`.

Say there is a gcd_wasm32_wasi.wasm which includes a function named *gcd*. It returns the GCD
of two parameters.
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
//!
//! ## Examples
//!
//! ### Example: to run a wasm32-wasi .wasm
//! ### Example: to run a wasm32-wasip1 .wasm
//!
//! *wasm32-wasi* is a most common target for Wasm. It means that the .wasm is compiled with
//! `cargo build --target wasm32-wasi` or `wasi-sdk/bin/clang --target wasm32-wasi`.
//! *wasm32-wasip1* is a most common target for Wasm. It means that the .wasm is compiled with
//! `cargo build --target wasm32-wasip1` or `wasi-sdk/bin/clang --target wasm32-wasip1`.
//!
//! Say there is a gcd_wasm32_wasi.wasm which includes a function named *gcd*. It returns the GCD
//! of two parameters.
Expand Down