8c1c6ecbe6
Co-authored-by: Claude <noreply@anthropic.com>
924 B
924 B
- Read CONTRIBUTING.md for guidelines on how to run tools
- ALWAYS attempt to add a test case for changed behavior
- PREFER integration tests, e.g., at
it/...over unit tests - When making changes for Windows from Unix, use
cargo xwin clippyto check compilation - NEVER perform builds with the release profile, unless asked or reproducing performance issues
- PREFER running specific tests over running the entire test suite
- AVOID using
panic!,unreachable!,.unwrap(), unsafe code, and clippy rule ignores - PREFER patterns like
if letto handle fallibility - ALWAYS write
SAFETYcomments following our usual style when writingunsafecode - PREFER
#[expect()]over[allow()]if clippy must be disabled - PREFER let chains (
if letcombined with&&) over nestedif letstatements - NEVER update all dependencies in the lockfile and ALWAYS use
cargo update --preciseto make lockfile changes