diff --git a/query-engine/query-engine-wasm/build.sh b/query-engine/query-engine-wasm/build.sh index ea89e5f8773a..0db1aad5bf08 100755 --- a/query-engine/query-engine-wasm/build.sh +++ b/query-engine/query-engine-wasm/build.sh @@ -40,7 +40,6 @@ if [[ -z "${WASM_BUILD_PROFILE:-}" ]]; then WASM_BUILD_PROFILE="release" fi fi -echo "Using build profile: \"${WASM_BUILD_PROFILE}\"" if [ "$WASM_BUILD_PROFILE" = "dev" ]; then WASM_TARGET_SUBDIR="debug" @@ -48,7 +47,15 @@ else WASM_TARGET_SUBDIR="$WASM_BUILD_PROFILE" fi + + build() { + echo "ℹ️ Configuring rust toolchain to use nightly and rust-src component" + rustup default nightly-2024-01-25 + rustup target add wasm32-unknown-unknown + rustup component add rust-std --target wasm32-unknown-unknown + rustup component add rust-src --target wasm32-unknown-unknown + local CONNECTOR="$1" local CARGO_TARGET_DIR CARGO_TARGET_DIR=$(cargo metadata --format-version 1 | jq -r .target_directory) diff --git a/query-engine/query-engine-wasm/rust-toolchain.toml b/query-engine/query-engine-wasm/rust-toolchain.toml deleted file mode 100644 index 7c151b5e73a0..000000000000 --- a/query-engine/query-engine-wasm/rust-toolchain.toml +++ /dev/null @@ -1,4 +0,0 @@ -[toolchain] -channel = "nightly-2024-01-25" -components = ["rust-src"] -targets = ["wasm32-unknown-unknown"] diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index 6485090b753b..000000000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,4 +0,0 @@ -[toolchain] -channel = "1.76.0" -components = ["clippy", "rustfmt", "rust-src"] -targets = ["wasm32-unknown-unknown"]