← Package directory
Available on winget

Install cargo-shear

Detect and fix issues in Rust projects

Install with winget
winget install --id Boshen.cargo-shear
Upgrade
winget upgrade --id Boshen.cargo-shear
Uninstall
winget uninstall --id Boshen.cargo-shear

About cargo-shear

Detect and fix issues in Rust projects: - Unused dependencies in Cargo.toml - Misplaced dependencies (dev/build dependencies in wrong sections) - Unlinked source files (Rust files not reachable from any module tree)

What's new in 1.13.1

πŸ› Bug Fixes - don't flag load-bearing workspace ignores as redundant (#524) (by @Boshen) ⚑ Performance - single preorder walk, track use-nesting instead of per-path ancestor scan (by @Boshen) - store crate-name imports as CompactString (#525) (by @Boshen) Contributors - @Boshen - @renovate[bot]

Read release notes

Version history

Version Updated Notes
1.13.1 Unknown πŸ› Bug Fixes - don't flag load-bearing workspace ignores as redundant (#524) (by @Boshen) ⚑ Performance - single preorder walk, track use-nesting instead of per-path ancestor scan (by @Boshen) - store crate-name imports a...
1.13.0 Unknown πŸš€ Features - detect and skip cargo-hakari workspace-hack crates (#520) (by @Boshen) πŸ’Ό Other - Lint all targets, reuse code_imports, and dedup target-kind/file-list logic (#519) (by @Boshen) Contributors - @Boshen - @reno...
1.12.4 Unknown No notes
1.11.2 Unknown πŸ› Bug Fixes - don't remove empty features during --fix (#464) (by @Boshen) - don't count non-executable doc tests as executable (#463) (by @Boshen) Contributors - @Boshen