• cargo fmt --all -- --check (rustfmt defaults).
  • cargo clippy --workspace --all-features -- -D warnings -W clippy::unwrap_used.
  • No .unwrap() / .expect() outside tests.
  • Errors via thiserror for libraries, anyhow for binaries.
  • Public APIs have doc comments. Internal helpers explain why, not what.
Before opening a PR:
cargo fmt --all
cargo clippy --workspace --all-features
cargo test  --workspace --all-features --no-fail-fast