File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ pub struct Resolve {
47
47
}
48
48
49
49
/// 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 .
52
52
///
53
53
/// It's theorized that we can add more here over time to track larger changes
54
54
/// to the `Cargo.lock` format, but we've yet to see how that strategy pans out.
@@ -59,12 +59,13 @@ pub enum ResolveVersion {
59
59
/// A more compact format, more amenable to avoiding source-control merge
60
60
/// conflicts. The `dependencies` arrays are compressed and checksums are
61
61
/// 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 .
63
63
V2 ,
64
64
/// A format that explicitly lists a `version` at the top of the file as
65
65
/// well as changing how git dependencies are encoded. Dependencies with
66
66
/// `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.
68
69
V3 ,
69
70
}
70
71
You can’t perform that action at this time.
0 commit comments