cargo check --all-features
cargo test --all-features
cargo clippy --all-targets --all-features -- -D warnings- NO .unwrap()/.expect() in production — use ?, unwrap_or, if let, explicit error returns
- NO dead code — zero unused variables/params/imports, zero warnings
- NO todo!()/unimplemented!()/placeholder returns/empty match arms
- All code must pass cargo check — no speculative interfaces
- Validate with cargo check + cargo fix
- Explicit error handling — validate inputs, never panic for errors
- Minimize allocations — &str > String, Cow > clone, Arc > deep copy
- parking_lot::Mutex (sync), tokio::sync::Mutex (async) — NEVER std::sync::Mutex
- Parameterized SQL only (sqlx bind)
- Every unsafe needs // SAFETY: comment
- Never log secrets/tokens
- English in code and commits