Cargo health · Dependencies
rust_doctor::cargo::duplicate_major_versions
Align the requirements so one major version of the crate is resolved; duplicates ship twice and their types do not interoperate.
- Category
- Dependencies
- Default level
- warn
- Tier
- P2
- Producer
- Cargo health
What it reads
Cargo.toml, Cargo.lock and .cargo/config.toml.
Tier
Ordinary defect.
The tier bounds how severe a rule may be; its category bounds the tier.Change it
Turn it off, or make it blocking, without touching the code it flags:
rust-doctor --rule rust_doctor::cargo::duplicate_major_versions=off .
rust-doctor --rule rust_doctor::cargo::duplicate_major_versions=error .