Cargo health · Dependencies
Two major versions of one crate resolved
rust_doctor::cargo::duplicate_major_versions
Align the requirement your manifest controls, or bump the dependency the message names so it moves to the version you require.
- Category
- Dependencies
- Default level
- warn
- Tier
- P2
- Producer
- Cargo health
- Diff scope
- file
Not a defect when
The duplicate comes from transitive dependencies mid-migration whose types never cross between the two versions in this workspace's code, so it costs only build time until upstream aligns.
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.Diff scope
The whole file, since the finding has no span.
What--scope contextual looks at to decide whether a change caused the finding.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 .