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:
bchanot committed 2026-10-13 01:19:13 +02:00
1 parent bd9c7d1968
commit f2cf93668e
12 files changed
+100 -34

No files matched your search

+5 -2
View File
@@ -19,6 +19,7 @@
"lint": "pnpm -r lint",
"format": "prettier --write .",
"check": "pnpm typecheck && pnpm test:run && pnpm lint && pnpm build",
"check:all": "bash scripts/check-all.sh",
"report:compare": "pnpm --filter @faunosteo/app report:compare",
"import:equine": "pnpm --filter @faunosteo/anatomy import:equine",
"db:start": "supabase start",
@@ -31,8 +32,10 @@
"build:preview": "SHEET_BUNDLE=draft pnpm --filter @faunosteo/app build",
"preview:draft": "SHEET_BUNDLE=draft pnpm --filter @faunosteo/app build && pnpm --filter @faunosteo/app preview",
"rust:builder": "docker build -f docker/rust-builder.Dockerfile -t faunosteo_rust_builder:1.99.0 docker",
"rust:check": "bash docker/rust-run.sh bash docker/rust-check.sh",
"wasm:build": "bash docker/rust-run.sh bash docker/wasm-build.sh",
"rust:check": "bash scripts/rust-check.sh",
"rust:check:docker": "bash docker/rust-run.sh bash scripts/rust-check.sh",
"wasm:build": "bash scripts/wasm-build.sh",
"wasm:build:docker": "bash docker/rust-run.sh bash scripts/wasm-build.sh",
"worker:test": "docker build -f crates/worker/Dockerfile --target test -t faunosteo_worker:test .",
"worker:image": "docker build -f crates/worker/Dockerfile -t faunosteo_worker:dev ."
},