Skip to content

Commit

Permalink
chore(deps): Use wasm-pack 0.13.0 (#21416)
Browse files Browse the repository at this point in the history
Updating to latest.

Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko authored Oct 3, 2024
1 parent 15c415a commit 04d21fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/vector-vrl/web-playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To build the project we need to use `wasm-pack`. This compiles our Rust code
to WebAssembly which can then be used within the browser. Install it by running:

```shell
cargo install --locked --version 0.10.3 wasm-pack
cargo install --locked --version 0.13.0 wasm-pack
```

After installing `wasm-pack` we must compile our project by running:
Expand Down
6 changes: 3 additions & 3 deletions scripts/ensure-wasm-pack-installed.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#! /usr/bin/env bash

if [[ "$(wasm-pack --version)" != "wasm-pack 0.10.3" ]] ; then
echo "wasm-pack version 0.10.3 is not installed"
if [[ "$(wasm-pack --version)" != "wasm-pack 0.13.0" ]] ; then
echo "wasm-pack version 0.13.0 is not installed"
# We are using the version from git due to the bug: https://github.com/vectordotdev/vector/pull/16060#issuecomment-1428429602
echo "running cargo install --git https://github.com/rustwasm/wasm-pack.git --rev e3582b7 wasm-pack"
cargo install --git https://github.com/rustwasm/wasm-pack.git --rev e3582b7 wasm-pack
else
echo "wasm-pack version 0.10.3 is installed already"
echo "wasm-pack version 0.13.0 is installed already"
fi

brew install llvm
Expand Down
6 changes: 3 additions & 3 deletions scripts/environment/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ if ! dd-rust-license-tool --help >& /dev/null ; then
rustup run stable cargo install dd-rust-license-tool --version 1.0.2 --force --locked
fi

if [[ "$(wasm-pack --version)" != "wasm-pack 0.10.3" ]] ; then
echo "wasm-pack version 0.10.3 is not installed"
if [[ "$(wasm-pack --version)" != "wasm-pack 0.13.0" ]] ; then
echo "wasm-pack version 0.13.0 is not installed"
# We are using the version from git due to the bug: https://github.com/vectordotdev/vector/pull/16060#issuecomment-1428429602
echo "running cargo install --git https://github.com/rustwasm/wasm-pack.git --rev e3582b7 wasm-pack"
cargo install --force --git https://github.com/rustwasm/wasm-pack.git --rev e3582b7 wasm-pack
else
echo "wasm-pack version 0.10.3 is installed already"
echo "wasm-pack version 0.13.0 is installed already"
fi

# Currently fixing this to version 0.30 since version 0.31 has introduced
Expand Down

0 comments on commit 04d21fb

Please sign in to comment.