# Announcing cargo-shed 0.1.0, a Cargo subcommand for finding dependency bloat, risky feature selections, duplicate crate versions, and safe cleanup opportunities in Rust projects

**URL:** <https://users.rust-lang.org/t/announcing-cargo-shed-0-1-0-a-cargo-subcommand-for-finding-dependency-bloat-risky-feature-selections-duplicate-crate-versions-and-safe-cleanup-opportunities-in-rust-projects/140795>\
**Category:** announcements\
**Created:** [June 18, 2026, 6:10am UTC](https://users.rust-lang.org/t/announcing-cargo-shed-0-1-0-a-cargo-subcommand-for-finding-dependency-bloat-risky-feature-selections-duplicate-crate-versions-and-safe-cleanup-opportunities-in-rust-projects/140795 "2026-06-18T06:10:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moooseee](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/moooseee/32/52972_2.png) [@moooseee](https://users.rust-lang.org/u/moooseee)\
**Post date:** [June 18, 2026, 6:10am UTC](https://users.rust-lang.org/t/announcing-cargo-shed-0-1-0-a-cargo-subcommand-for-finding-dependency-bloat-risky-feature-selections-duplicate-crate-versions-and-safe-cleanup-opportunities-in-rust-projects/140795/1 "2026-06-18T06:10:56Z")

</div>

Hi Rustaceans,

I just published `cargo-shed 0.1.0`, a Cargo subcommand and Rust library for static dependency health checks.

It analyzes `Cargo.toml`, `Cargo.lock`, and Rust source files under `src/` and `tests/`, but it does **not** compile the target project, execute build scripts, or run any project code.

The goal is to make dependency cleanup safer and more explainable:

```plaintext
problem -> reason -> evidence -> suggested action

```

## Install

```sh
cargo install cargo-shed

```

## Use

```sh
cargo shed
cargo shed --format json
cargo shed --check
cargo shed --fix tokio-full

```

## Included rules in 0.1.0

- `tokio-full`
- `reqwest-default-features`
- `unused-dependency`
- `duplicate-versions`
- `heavy-crate`

## Example output

```plaintext
cargo-shed report

Score: 78/100

Problems found:

[HIGH] tokio-full
Reason: tokio uses the full feature set
Run: cargo shed --fix tokio-full

[MEDIUM] unused-dependency:chrono
Reason: chrono appears to be unused in scanned Rust sources
Run: cargo shed --fix unused-dependency:chrono

```

## Links

- [crates.io](http://crates.io): [crates.io: Rust Package Registry](https://crates.io/crates/cargo-shed)
- docs.rs: [cargo\_shed - Rust](https://docs.rs/cargo-shed)
- GitHub: [GitHub - moooossee/cargo-shed · GitHub](https://github.com/moooossee/cargo-shed)
- Release notes: [Release cargo-shed · moooossee/cargo-shed · GitHub](https://github.com/moooossee/cargo-shed/releases/tag/v0.1.0)

This is intentionally conservative for `0.1.0`: fixes are limited, backups are created before writing, and ambiguous cases are reported without changing the manifest.

I'd love feedback on:

- False positives
- Workspace support
- Additional dependency health rules
- General usability and output quality

Thanks for taking a look!

---

<div class="post-metadata">

**Author:** ![fogzot](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/fogzot/32/2710_2.png) [@fogzot](https://users.rust-lang.org/u/fogzot)\
**Post date:** [June 18, 2026, 6:45am UTC](https://users.rust-lang.org/t/announcing-cargo-shed-0-1-0-a-cargo-subcommand-for-finding-dependency-bloat-risky-feature-selections-duplicate-crate-versions-and-safe-cleanup-opportunities-in-rust-projects/140795/2 "2026-06-18T06:45:25Z")

</div>

I am very careful with the dependencies of my projects but I think this is a very nice project nonetheless. I Will surely try It hoping for a 100% score. 😉

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/system/32/51372_2.png) [@system](https://users.rust-lang.org/u/system)\
**Post date:** [September 16, 2026, 6:45am UTC](https://users.rust-lang.org/t/announcing-cargo-shed-0-1-0-a-cargo-subcommand-for-finding-dependency-bloat-risky-feature-selections-duplicate-crate-versions-and-safe-cleanup-opportunities-in-rust-projects/140795/3 "2026-09-16T06:45:27Z")

</div>

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.
