← 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.3

πŸ“š Documentation - declare MSRV (#551) (by @Boshen) ⚑ Performance - avoid duplicate path import probes (#553) (by @Boshen) Contributors - @Boshen - @renovate[bot]

Read release notes

Version history

Version Updated Notes
1.13.3 Unknown πŸ“š Documentation - declare MSRV (#551) (by @Boshen) ⚑ Performance - avoid duplicate path import probes (#553) (by @Boshen) Contributors - @Boshen - @renovate[bot]
1.13.2 Unknown πŸ› Bug Fixes - detect serde attributes inside macros (#543) (by @Boshen) πŸ“š Documentation - add security policy (#537) (by @Boshen) πŸ§ͺ Testing - cover serde attributes forwarded through another attribute (#546) (by @Boshen)...
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