Skip to content

Commit 293431d

Browse files
committed
Update comment about ResolveVersion default version
1 parent aaadab6 commit 293431d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/cargo/core/resolver/resolve.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ pub struct Resolve {
4747
}
4848

4949
/// A version to indicate how a `Cargo.lock` should be serialized. Currently
50-
/// V2 is the default when creating a new lockfile. If a V1 lockfile already
51-
/// exists, it will stay as V1.
50+
/// V3 is the default when creating a new lockfile. If an old version of
51+
/// lockfile already exists, it will stay as-is.
5252
///
5353
/// It's theorized that we can add more here over time to track larger changes
5454
/// to the `Cargo.lock` format, but we've yet to see how that strategy pans out.
@@ -59,12 +59,13 @@ pub enum ResolveVersion {
5959
/// A more compact format, more amenable to avoiding source-control merge
6060
/// conflicts. The `dependencies` arrays are compressed and checksums are
6161
/// listed inline. Introduced in 2019 in version 1.38. New lockfiles use
62-
/// V2 by default starting in 1.41.
62+
/// V2 by default from 1.41 to 1.52.
6363
V2,
6464
/// A format that explicitly lists a `version` at the top of the file as
6565
/// well as changing how git dependencies are encoded. Dependencies with
6666
/// `branch = "master"` are no longer encoded the same way as those without
67-
/// branch specifiers.
67+
/// branch specifiers. Introduced in 2020 in version 1.47. New lockfiles use
68+
/// V3 by default staring in 1.53.
6869
V3,
6970
}
7071

0 commit comments

Comments
 (0)