From 9b8dde2954586c91fc198d8df9c376aa97bf3268 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 9 Oct 2026 09:54:55 +0200 Subject: [PATCH] :sparkles: Add rust toolchain setup on rust scripts (#12237) --- render-wasm/_build_env | 5 +++++ render-wasm/test | 1 + render-wasm/watch | 1 + 3 files changed, 7 insertions(+) diff --git a/render-wasm/_build_env b/render-wasm/_build_env index 4bc9759958..f209a42df3 100644 --- a/render-wasm/_build_env +++ b/render-wasm/_build_env @@ -1,5 +1,7 @@ #!/usr/bin/env bash + +export RUST_VERSION=1.91.0 export VERSION_TAG=${VERSION:-develop}; if [ "$NODE_ENV" = "production" ]; then @@ -67,6 +69,9 @@ function clean { } function setup { + # Setup default rust version + rustup default $RUST_VERSION + rustup target add wasm32-unknown-emscripten pnpm install; } diff --git a/render-wasm/test b/render-wasm/test index f416e6c6bb..0c9399aa54 100755 --- a/render-wasm/test +++ b/render-wasm/test @@ -9,6 +9,7 @@ pushd $_SCRIPT_DIR; . ./_build_env +setup cargo test --bin render_wasm -- --show-output # Exit with the same status code as cargo test diff --git a/render-wasm/watch b/render-wasm/watch index 90c08c9ffd..d04f978fad 100755 --- a/render-wasm/watch +++ b/render-wasm/watch @@ -6,6 +6,7 @@ pushd $_SCRIPT_DIR; . ./_build_env set -x +setup build; copy_artifacts "../frontend/resources/public/js"; copy_shared_artifact;