Latest / Developer tools

cargo-shear

github.com · Open source · Active

Finds and removes unused dependencies in Rust Cargo projects

Visit github.com ↗Share

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-shear
cargo add cargo-shear

Confirmed 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

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (30 in total, busiest month 6). Based on the most recent releases on record.
  1. Repository created on GitHub: Boshen/cargo-shear
  2. Found: its repository was created; it is packaged in Homebrew. Homebrew
  3. Release v0.0.9
  4. Release v1.13.2
  5. Release v1.13.3
  6. Release v1.13.4
  7. Release v1.13.5
  8. Release v1.14.0
  9. Release v1.14.1
  10. Day-7 check recorded by Kip (details)
  11. 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

SourceRecordLast checked
Homebrewlisting
official API record
GitHub repositoryBoshen/cargo-shear
REST API record
GitHub Releasesrelease 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

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.