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
+6
-5
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# Runs a command inside the reference Rust builder image with the repository mounted
|
||||
# at /w. Cargo's registry and the target directory live in named Docker volumes
|
||||
# (faunosteo_ prefix, DEPLOY.md "Docker resource naming") so incremental builds stay
|
||||
# fast across runs while the host needs no Rust toolchain.
|
||||
# at /w: the reproducible alternative to the native toolchain of the development machine
|
||||
# (docs/development/RUST.md §1). Cargo's registry and the target directory live in named
|
||||
# Docker volumes (faunosteo_ prefix, DEPLOY.md "Docker resource naming"), separate from
|
||||
# the native ./target, so incremental builds stay fast across runs.
|
||||
#
|
||||
# bash docker/rust-run.sh cargo test --workspace --exclude faunosteo-worker
|
||||
# bash docker/rust-run.sh bash docker/wasm-build.sh
|
||||
# bash docker/rust-run.sh cargo test --workspace
|
||||
# bash docker/rust-run.sh bash scripts/wasm-build.sh # = pnpm wasm:build:docker
|
||||
set -euo pipefail
|
||||
|
||||
IMAGE="${FAUNOSTEO_RUST_BUILDER:-faunosteo_rust_builder:1.99.0}"
|
||||
|
||||
Reference in new issue
Block a user