cargo-unused-workspace-deps

Crates.iocargo-unused-workspace-deps
lib.rscargo-unused-workspace-deps
version0.1.0
created_at2025-09-10 22:49:44.984913+00
updated_at2025-09-10 22:49:44.984913+00
descriptionCheck for unused dependencies listed in a workspace-level `Cargo.toml` file.
homepage
repositoryhttps://github.com/JarredAllen/cargo-unused-workspace-deps
max_upload_size
id1833104
size74,932
Jarred Allen (JarredAllen)

documentation

README

Check for Unused Workspace Dependencies

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.

Commit count: 10

cargo fmt