Files
DS4Server/AGENTS.md
2026-07-24 12:23:50 +02:00

602 B

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:

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
make bundle
cargo test --all-features

Commit messages

Use a short, imperative subject describing one change. Skip prefixes and bodies unless they add necessary context.