chore(m0): initialize cargo workspace, crate skeletons and ci gate

This commit is contained in:
2026-10-24 19:53:56 +02:00
parent a7499657bb
commit 51c335db84
14 changed files with 335 additions and 0 deletions
Executable
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Full local CI gate. Fails fast on the first broken rule.
set -euo pipefail
cd "$(dirname "$0")/.."
echo '==> cargo fmt --check'
cargo fmt --all -- --check
echo '==> clippy (deny warnings)'
cargo clippy --workspace --all-targets -- -D warnings
echo '==> float guard in crates/sim/src'
if grep -rnE '(^|[^A-Za-z0-9_])f(32|64)([^A-Za-z0-9_]|$)' crates/sim/src --include='*.rs' | grep -v '^.*://' ; then
echo 'ERROR: floating point types in crates/sim (see ADR 0002)' >&2
exit 1
fi
echo '==> cargo test'
cargo test --workspace
echo '==> OK'