Belén Albeza fb7468c3f5
🔧 Make all CI jobs use Rust 1.99 (#12903)
* 🔧 Bump Rust version of the devenv image to 1.99

* 🔧 Run the pinned Rust setup from the lint and format scripts

./build and ./test switch to the Rust version in render-wasm/_build_env
through setup, but ./lint did not, and formatting called cargo fmt
directly. In CI both ran on the devenv image's default toolchain.

Make ./lint run setup and add a ./fmt script that does the same, so all
render-wasm entry points use the pinned version. CI and scripts/ci now
call ./fmt instead of cargo fmt.

AI-assisted-by: claude-opus-5-5
2026-11-09 16:23:47 +01:00

38 lines
636 B
Bash
Executable File

#!/usr/bin/env bash
_SCRIPT_DIR=$(dirname $0);
pushd $_SCRIPT_DIR;
# Enable debugging if the script is run with --debug
if [[ "$1" == "--debug" ]]; then
set -x
fi
. ./_build_env frontend
setup || exit $?
ALLOWED_RULES="-D static_mut_refs"
# ./lint --fix
if [[ "$1" == "--fix" ]]; then
cargo clippy \
--fix --allow-dirty \
--target=wasm32-unknown-emscripten \
--all-targets \
-- -D warnings \
$ALLOWED_RULES
else
cargo clippy \
--target=wasm32-unknown-emscripten \
--all-targets \
-- -D warnings \
$ALLOWED_RULES
fi
RESULT=$?
popd
exit $RESULT