Harden first-release validation and dependency hygiene
Some checks failed
ci / rust (push) Has been cancelled
ci / docker (push) Has been cancelled
ci / audit (push) Has been cancelled

This commit is contained in:
2026-09-10 09:53:45 +08:00
parent 277cbca878
commit 591bed90a8
61 changed files with 1641 additions and 622 deletions

9
tools/check_format.py Normal file
View File

@@ -0,0 +1,9 @@
"""Check every Rust source file, including include! fragments."""
import subprocess
from pathlib import Path
root = Path(__file__).resolve().parents[1]
files = sorted(p for folder in ("src", "tests") for p in (root / folder).rglob("*.rs"))
subprocess.run(["cargo", "fmt", "--all", "--check"], cwd=root, check=True)
subprocess.run(["rustfmt", "--check", "--edition", "2024", *map(str, files)],
cwd=root, check=True)