scripts/rust-check.sh and scripts/wasm-build.sh (moved from docker/) run natively on the user-level rustup toolchain pinned by rust-toolchain.toml; scripts/rust-env.sh puts ~/.cargo/bin on PATH for non-interactive shells. Root scripts: rust:check and wasm:build native, rust:check:docker and wasm:build:docker through docker/rust-run.sh, check:all = scripts/check-all.sh, the whole pre-merge gate in one command (rust check, types drift, wasm build, pnpm check, application image, worker:test, worker:image started read-only). The native check now runs the worker's unit tests (cargo test --workspace); the sandbox tests stay feature-gated and Docker-only.
9 lines
478 B
TOML
9 lines
478 B
TOML
# Pinned toolchain, identical to docker/rust-builder.Dockerfile (FROM rust:1.99.0-bookworm)
|
|
# and crates/worker/Dockerfile (FROM rust:1.99.0-alpine3.24). Bump the three together.
|
|
# A native rustup installs this channel on first use (`rustup show` from the repository);
|
|
# the wasm32 target is added by hand (`rustup target add wasm32-unknown-unknown`) and by the
|
|
# builder image; the worker image never needs it.
|
|
[toolchain]
|
|
channel = "1.99.0"
|
|
components = ["rustfmt", "clippy"]
|