Files
DS4Server/AGENTS.md
2026-07-24 11:27:25 +02:00

21 lines
631 B
Markdown

# Development
- Prefer simple, idiomatic Rust; reuse existing code and dependencies before adding abstractions or crates.
- Keep changes focused, handle errors explicitly, and add the smallest useful test for non-trivial behavior.
- Preserve `rustfmt` output and keep Clippy warning-free.
## Commit gates
Run before every commit:
```sh
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo build --all-targets --all-features
cargo test --all-features
```
## Commit messages
Use a short, imperative subject describing one change. Skip prefixes and bodies unless they add necessary context.