chore(workspace): native Rust toolchain as the primary path, builder image as the reproducible alternative
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.
This commit is contained in:
1 parent
bd9c7d1968
commit
f2cf93668e
12 files changed
+100
-34
No files matched your search
+3
-1
@@ -1,6 +1,8 @@
|
||||
# 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.
|
||||
# The wasm32 target is added by the builder image only (the worker image never needs it).
|
||||
# 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"]
|
||||
Reference in new issue
Block a user