Closed
Description
- Implementation: Consider rust-version when selecting packages for cargo add #12078
- Unstable feature:
-Zmsrv-policy
Problem
When running cargo add foo
, we create a version-req out of the latest version in the index. If this has a higher rust-version
, then that can break for people.
Proposed Solution
Constrain the candidate versions in the index by their rust-version
being lesser or equal to the current crate's rust-version
.
The main question is what to do when there are no matches due to rust-version
.
- Add anyways
- Error with newest version's
rust-version
Notes
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
epage commentedon May 11, 2022
See also killercup/cargo-edit#587
epage commentedon Jul 26, 2022
When
rust-version
gets added to the registry, we should inform Dependabot people on dependabot/dependabot-core#5423rust-version
into account when updating lock file / manifest dependabot/dependabot-core#5423-Zmsrv-policy
feature flag #12043Auto merge of #12043 - epage:rust-version, r=weihanglo
cassaundra commentedon May 2, 2023
@rustbot claim
Consider rust-version when selecting packages for cargo add
Consider rust-version when selecting packages for cargo add
12 remaining items