| Crates.io | cargo-dedupe |
| lib.rs | cargo-dedupe |
| version | 0.0.1 |
| created_at | 2025-10-13 01:19:15.319616+00 |
| updated_at | 2025-10-13 01:19:15.319616+00 |
| description | Cargo subcommand to detect and automatically eliminate duplicate dependency versions across a workspace. |
| homepage | |
| repository | https://github.com/aboehm/cargo-dedupe |
| max_upload_size | |
| id | 1879899 |
| size | 57,818 |
A cargo subcommand to detect and automatically eliminate duplicate dependency versions across a Rust workspace.
Goals:
cargo tree -d).Cargo.toml files.Status: experimental. It works for both single Cargo.toml projects and multi-crate workspaces. It focuses on versions defined in the local project’s manifests. It does not modify third‑party crates directly, and does not add workspace patches.
cargo install cargo-dedupe
This builds the cargo-dedupe binary, so you can run it as cargo dedupe.
cargo dedupe [-v]
-v, --verbose: More logging.cargo metadata to obtain the resolved dependency graph.cargo check and reverts those edits if the build fails.cargo update; on success, the exact resolved version is written back to your Cargo.toml. If needed, it may try a conservative downgrade constraint on the direct dependency to achieve unification.cargo check.[dependencies], [dev-dependencies], [build-dependencies] (including inline tables and renamed dependencies). Target-specific dependency tables (e.g. [target.'cfg(...)'.dependencies]) are not yet updated.MIT OR Apache-2.0