cargo-shear
github.com · Open source · Active
Finds and removes unused dependencies in Rust Cargo projects
- Developer tools
- Open source
- Rust
- Day-7 check
- Day-30 check
- rust
- cargo
- dependencies
- unused dependencies
- rust linter
- cargo toml
- Stars
- 588
- Forks
- 29
- Open issues
- 1
- Last commit
- Releases
- 79
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
cargo-shear detects unused dependencies, misplaced dev or build dependencies and unlinked source files in Rust projects, and can fix them. It works by collecting crate references from source files and comparing them with manifest entries, and it suits Rust developers who want leaner Cargo.toml manifests.
Repository description on GitHub: “Remove unused dependencies in a Rust project”
What it does
- Finds unused normal and build dependencies in Cargo.toml
- Flags dev or build dependencies in the wrong section
- Reports Rust source files not reachable from any module tree
- Can fix the issues it reports
Good for
- Remove unused crates from a Rust project before a release.
- Check that dev dependencies sit in the correct Cargo.toml section.
Suits: Rust developers maintaining Cargo projects.
Worth knowing: Rust 1.100 added unused-dependency reporting to Cargo itself, which overlaps with parts of this tool.
What you can try
Install it from Homebrew, the channel it was listed on, then run it inside a Rust project.
Install
brew install cargo-shearcargo add cargo-shearConfirmed against the package registry. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw cargo-shear on , when its repository was created; it is packaged in Homebrew. The oldest published release on GitHub is v0.0.9, dated . Its first tagged release came 11 days after it was found. 79 releases have been published in total; the latest is v1.14.1 ().
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
Checked , later than day 7 because tracking began after.
Day 30 16 releases shipped
- 16 releases in the first 30 days: v0.0.17 (1 Apr 2024), v0.0.18 (2 Apr 2024), v0.0.19 (2 Apr 2024), v0.0.20 (3 Apr 2024), v0.0.21 (3 Apr 2024), v0.0.22 (3 Apr 2024), v0.0.23 (3 Apr 2024), v0.0.24 (9 Apr 2024) and earlier ones
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: Boshen/cargo-shear
- Found: its repository was created; it is packaged in Homebrew. Homebrew
- Release v0.0.9
- Release v1.13.2
- Release v1.13.3
- Release v1.13.4
- Release v1.13.5
- Release v1.14.0
- Release v1.14.1
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 79 releases. All releases on GitHub
Quick answers
- When was cargo-shear released?
- Its first tagged release on GitHub is dated 25 Mar 2024. Kip found it on Homebrew on 14 Mar 2024.
- Is cargo-shear open source?
- Its source is public on GitHub at Boshen/cargo-shear under the MIT licence.
- What does cargo-shear run on?
- Command line.
- Is cargo-shear free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is cargo-shear still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Homebrew | listing official API record | |
| GitHub repository | Boshen/cargo-shear REST API record | |
| GitHub Releases | release list REST API record |
Stable ID brew-cargo-shear. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.