chore(workspace): Rust workspace R0 — builder image, core crate (JS-compatible JSON, report contracts, facade), wasm facade, core-wasm package with proofs

This commit is contained in:
bchanot committed 2026-10-13 00:01:25 +02:00
1 parent 5fec0654d3
commit 2a38fa37b5
39 files changed
+1913 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# The Rust quality gate, identical in CI and locally: `pnpm rust:check`.
# Runs inside the builder image (glibc). The worker's sandbox tests run in its own
# Alpine/musl image (crates/worker/Dockerfile, stage `test`) because the seccomp
# allowlist is derived for the musl static binary that ships.
set -euo pipefail
cd "$(dirname "$0")/.."
cargo fmt --all --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --exclude faunosteo-worker --locked
# Exports the TypeScript types of the contracts (ts-rs) into packages/core-wasm/types;
# CI fails on a diff so the committed types never drift from the Rust structs.
cargo test -p faunosteo-core --features ts --locked
cargo deny check licenses bans sources