Code Style
Follow idiomatic Rust style and keep warnings at zero.
- Rust 2021 edition; 4‑space indent; format with
rustfmt - Names: crates
kebab-case; modules/functionssnake_case; types/traitsUpperCamelCase; constantsSCREAMING_SNAKE_CASE - Prefer
Resultover panics; avoidunwrap()in library code - Keep
clippywarnings at zero (cargo clippy --all-features --all-targets -- -D warnings) - Small, focused modules; clear error types; explicit conversions via
From/Into - Tests live alongside code (
mod tests) and as integration tests under each crate’stests/