21 lines
602 B
Markdown
21 lines
602 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
|
|
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.
|