#!/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