- Write idiomatic Rust targeting the edition specified in
Cargo.toml. - Use
cargo fmtfor formatting. You may check formatting withcargo fmt --all -- --checkand fix withcargo fmt --all. - Run
cargo clippy --all-targets -- -D warnings -D clippy::pedantic -A clippy::too_many_linesand resolve all warnings before committing. - Keep the code warnings free and prefer expressive types, clear error handling and small focused functions.
Run the following commands after every change:
cargo fmt --all -- --check
cargo clippy --all-targets -- -D warnings -D clippy::pedantic -A clippy::too_many_lines
cargo testThe repository does not contain tests yet, but cargo test must still be invoked to ensure the project builds.
- Use Conventional Commits for commit messages.
- Provide an extended commit body explaining what and why, wrapping lines at 72 characters when possible.
- Include footers as needed (e.g.
Signed-off-by,Co-authored-by).
Include a summary of changes and cite relevant files and test outputs in the PR description. Use the instructions in this file and the top-level AGENTS guidance when generating PR messages.