| Crates.io | cargo-unused-workspace-deps |
| lib.rs | cargo-unused-workspace-deps |
| version | 0.1.0 |
| created_at | 2025-09-10 22:49:44.984913+00 |
| updated_at | 2025-09-10 22:49:44.984913+00 |
| description | Check for unused dependencies listed in a workspace-level `Cargo.toml` file. |
| homepage | |
| repository | https://github.com/JarredAllen/cargo-unused-workspace-deps |
| max_upload_size | |
| id | 1833104 |
| size | 74,932 |
Rust lets you list dependencies common to multiple crates in a workspace in the workspace-level
Cargo.toml file, and then each crate can include them via including <dep>.workspace = true in
the crate-level Cargo.toml file.
In large projects, it's easy to remove the last use of a dependency from a crate without noticing,
and thus accumulate unused dependencies in that list. Enter cargo-unused-workspace-dependencies!
This tool can check for any dependencies which aren't in use and, optionally, remove them from the
workspace.