| Crates.io | cargo-ensure-no-cyclic-deps |
| lib.rs | cargo-ensure-no-cyclic-deps |
| version | 0.2.0 |
| created_at | 2025-11-28 20:41:50.806149+00 |
| updated_at | 2025-12-03 15:10:57.585185+00 |
| description | A cargo subcommand to detect cyclic dependencies in workspace crates |
| homepage | https://github.com/martin-kolinek/cargo-ensure-no-cyclic-deps |
| repository | https://github.com/martin-kolinek/cargo-ensure-no-cyclic-deps |
| max_upload_size | |
| id | 1956011 |
| size | 34,968 |
A cargo subcommand that detects cyclic dependencies between crates in a workspace. This is useful if you
want to prevent dev-dependencies from creating dependency cycles as that can cause issues,
e.g. for cargo-release.
Run this command in a cargo workspace:
cargo ensure-no-cyclic-deps
The command will:
cargo install --path .
Or from within the workspace:
cargo install cargo-ensure-no-cyclic-deps
When cycles are detected:
Error: Cyclic dependencies detected!
Cycle 1:
crate_a -> crate_b -> crate_c -> crate_a
Cycle 2:
crate_x -> crate_y -> crate_x
When no cycles are found:
No cyclic dependencies found.
MIT