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
@@ -1,12 +1,15 @@
|
||||
# Faunosteo reference Rust build environment (plan R0, RUST_ARCHITECTURE_REVIEW Annex B).
|
||||
# Every Rust command of the repository runs through this image (CI and local), so the
|
||||
# toolchain is identical everywhere and the production VPS never needs Rust.
|
||||
# Faunosteo reference Rust build environment (plan R0, RUST_ARCHITECTURE_REVIEW Annex B,
|
||||
# amended 2026-10-13). Daily development runs cargo natively on the Ubuntu development
|
||||
# machine (rustup, docs/development/RUST.md §1); this image is the reproducible
|
||||
# alternative (`pnpm rust:check:docker`, `pnpm wasm:build:docker`), the reference for a
|
||||
# future runner, and the proof that the production VPS never needs Rust.
|
||||
#
|
||||
# docker build -f docker/rust-builder.Dockerfile -t faunosteo_rust_builder:1.99.0 docker
|
||||
# bash docker/rust-run.sh cargo test --workspace --exclude faunosteo-worker
|
||||
# bash docker/rust-run.sh cargo test --workspace
|
||||
#
|
||||
# The pinned versions below must match rust-toolchain.toml (channel) and Cargo.lock
|
||||
# (wasm-bindgen crate): docker/wasm-build.sh refuses to run when they differ.
|
||||
# (wasm-bindgen crate): scripts/wasm-build.sh refuses to run when they differ. The same
|
||||
# three tools are installed natively with rustup / cargo install at these versions.
|
||||
FROM rust:1.99.0-bookworm
|
||||
|
||||
ARG WASM_BINDGEN_VERSION=0.2.129
|
||||
|
||||
Reference in new issue
Block a user