29 lines
593 B
Markdown
29 lines
593 B
Markdown
# Rust Harness Notes
|
|
|
|
Use this reference for Rust repositories.
|
|
|
|
## Common files to inspect
|
|
|
|
- `Cargo.toml`
|
|
- `Cargo.lock`
|
|
- `src/`
|
|
- `crates/`
|
|
- `tests/`
|
|
- `rust-toolchain.toml`
|
|
|
|
## Common validation commands
|
|
|
|
Typical examples:
|
|
|
|
- `cargo test`
|
|
- `cargo build`
|
|
- `cargo clippy --all-targets --all-features -- -D warnings`
|
|
- `cargo fmt --check`
|
|
|
|
## Common guardrails
|
|
|
|
- do not casually update `Cargo.lock`
|
|
- check for workspace crates before describing structure
|
|
- prefer the smallest crate-local change that solves the task
|
|
- distinguish unit, integration, and benchmark targets when relevant
|