-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: stabilize lockfile v4 #12852
feat: stabilize lockfile v4 #12852
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,12 +80,14 @@ pub enum ResolveVersion { | |
/// V3 by default staring in 1.53. | ||
#[default] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do we plan to do to track updating the btw now that we have MSRV piped into the resolve logic (#12560), should we make the default based on MSRV with a fallback if no MSRV is set? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See #12120 (comment) I'll post another PR for doc update. For MSRV-aware lockfile generating, see #12861. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At the latest, we might want to default to the new format for 2024-edition crates, since those crates won't build with old cargo anyway so there won't be any "flapping" between formats for different Cargo versions. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Further more, it does sound like we might want to check if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should have checks that the rust-version isn't older than the edition allows. Falling back to an edition check if the rust-version isn't set would be useful. The problem is we don't have a workspace edition field. We could do something like |
||
V3, | ||
/// SourceId URL serialization is aware of URL encoding. For example, | ||
/// `?branch=foo bar` is now encoded as `?branch=foo+bar` and can be decoded | ||
/// back and forth correctly. Introduced in 2024 in version 1.77. | ||
V4, | ||
/// Unstable. Will collect a certain amount of changes and then go. | ||
/// | ||
/// Changes made: | ||
/// | ||
/// * SourceId URL serialization is aware of URL encoding. | ||
V4, | ||
V5, | ||
} | ||
|
||
impl ResolveVersion { | ||
|
@@ -95,7 +97,7 @@ impl ResolveVersion { | |
/// | ||
/// Update this when you're going to stabilize a new lockfile format. | ||
pub fn max_stable() -> ResolveVersion { | ||
ResolveVersion::V3 | ||
ResolveVersion::V4 | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we create V5 at the same time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice suggestion. Done.