cargo-crap: Finding Untested Complexity in AI-Generated Rust Code
Summary
The article explains cargo-crap, a Rust tool that computes the CRAP metric by combining cyclomatic complexity and test coverage to identify functions risky to change, especially in AI-assisted development. It argues that both coverage and complexity alone can be misleading and shows how to use cargo-crap in CI with practical thresholds and workflows.