Skip to content

Commit

Permalink
I didn't have wasm-pack installed, let's fix that
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Nov 28, 2023
1 parent e5c9716 commit d371e4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion query-engine/query-engine-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
[lib]
doc = false
crate-type = ["cdylib"]
name = "query_engine_wasm"
name = "query_engine"

[dependencies]

Expand Down
7 changes: 7 additions & 0 deletions query-engine/query-engine-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ else
BUILD_PROFILE="--dev"
fi

# Check if wasm-pack is installed
if ! command -v wasm-pack &> /dev/null
then
echo "wasm-pack could not be found, installing now..."
# Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
fi
wasm-pack build $BUILD_PROFILE --target $OUT_TARGET

sed -i '' 's/name = "query_engine"/name = "query_engine_wasm"/g' Cargo.toml
Expand Down

0 comments on commit d371e4b

Please sign in to comment.