Skip to content
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

chore: build query-engine-wasm with stable rust #5167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
3 changes: 0 additions & 3 deletions query-compiler/query-compiler-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ fi


build() {
echo "ℹ️ Current Rust toolchain version:"
cargo --version

local CONNECTOR="$1"
local CARGO_TARGET_DIR
CARGO_TARGET_DIR=$(cargo metadata --format-version 1 | jq -r .target_directory)
Expand Down
8 changes: 2 additions & 6 deletions query-engine/query-engine-wasm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,15 @@ fi


build() {
echo "ℹ️ Note that query-engine compiled to WASM uses a different Rust toolchain"
cargo --version

local CONNECTOR="$1"
local CARGO_TARGET_DIR
CARGO_TARGET_DIR=$(cargo metadata --format-version 1 | jq -r .target_directory)
echo "🔨 Building $CONNECTOR"
RUSTFLAGS="-Zlocation-detail=none" CARGO_PROFILE_RELEASE_OPT_LEVEL="z" cargo build \
CARGO_PROFILE_RELEASE_OPT_LEVEL="z" cargo build \
-p query-engine-wasm \
--profile "$WASM_BUILD_PROFILE" \
--features "$CONNECTOR" \
--target wasm32-unknown-unknown \
-Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort
--target wasm32-unknown-unknown

local IN_FILE="$CARGO_TARGET_DIR/wasm32-unknown-unknown/$WASM_TARGET_SUBDIR/query_engine_wasm.wasm"
local OUT_FILE="$OUT_FOLDER/$CONNECTOR/query_engine_bg.wasm"
Expand Down
6 changes: 0 additions & 6 deletions query-engine/query-engine-wasm/rust-toolchain.toml

This file was deleted.

Loading