You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "The lockfile format version (`version =` field).\n\nThis field is optional for backward compatibility. Older lockfiles, i.e. V1 and V2, does\nnot have the version field serialized.",
8
9
"type": [
9
10
"integer",
10
11
"null"
@@ -13,6 +14,7 @@
13
14
"minimum": 0
14
15
},
15
16
"package": {
17
+
"description": "The list of `[[package]]` entries describing each resolved dependency.",
16
18
"type": [
17
19
"array",
18
20
"null"
@@ -22,7 +24,7 @@
22
24
}
23
25
},
24
26
"root": {
25
-
"description": "`root` is optional to allow backward compatibility.",
27
+
"description": "The `[root]` table describing the root package.\n\nThis field is optional for backward compatibility. Older lockfiles have the root package\nseparated, whereas newer lockfiles have the root package as part of `[[package]]`.",
26
28
"anyOf": [
27
29
{
28
30
"$ref": "#/$defs/TomlLockfileDependency"
@@ -33,6 +35,7 @@
33
35
]
34
36
},
35
37
"metadata": {
38
+
"description": "The `[metadata]` table\n\n\nIn older lockfile versions, dependency checksums were stored here instead of alongside each\npackage entry.",
36
39
"type": [
37
40
"object",
38
41
"null"
@@ -42,32 +45,43 @@
42
45
}
43
46
},
44
47
"patch": {
48
+
"description": "The `[patch]` table describing unused patches.\n\nThe lockfile stores them as a list of `[[patch.unused]]` entries.",
45
49
"$ref": "#/$defs/TomlLockfilePatch"
46
50
}
47
51
},
48
52
"$defs": {
49
53
"TomlLockfileDependency": {
54
+
"description": "Serialization of lockfiles dependencies",
50
55
"type": "object",
51
56
"properties": {
52
57
"name": {
58
+
"description": "The name of the dependency.",
53
59
"type": "string"
54
60
},
55
61
"version": {
62
+
"description": "The version of the dependency.",
56
63
"type": "string"
57
64
},
58
65
"source": {
59
-
"type": [
60
-
"string",
61
-
"null"
66
+
"description": "The source of the dependency.\n\nCargo does not serialize path dependencies.",
67
+
"anyOf": [
68
+
{
69
+
"$ref": "#/$defs/TomlLockfileSourceId"
70
+
},
71
+
{
72
+
"type": "null"
73
+
}
62
74
]
63
75
},
64
76
"checksum": {
77
+
"description": "The checksum of the dependency.\n\nIn older lockfiles, checksums were not stored here and instead on a separate `[metadata]`\ntable (see [`TomlLockfileMetadata`]).",
65
78
"type": [
66
79
"string",
67
80
"null"
68
81
]
69
82
},
70
83
"dependencies": {
84
+
"description": "The transitive dependencies used by this dependency.",
71
85
"type": [
72
86
"array",
73
87
"null"
@@ -77,6 +91,7 @@
77
91
}
78
92
},
79
93
"replace": {
94
+
"description": "The replace of the dependency.",
80
95
"anyOf": [
81
96
{
82
97
"$ref": "#/$defs/TomlLockfilePackageId"
@@ -92,7 +107,12 @@
92
107
"version"
93
108
]
94
109
},
110
+
"TomlLockfileSourceId": {
111
+
"description": "Serialization of dependency's source",
112
+
"type": "string"
113
+
},
95
114
"TomlLockfilePackageId": {
115
+
"description": "Serialization of package IDs.\n\nThe version and source are only included when necessary to disambiguate between packages:\n- If multiple packages share the same name, the version is included.\n- If multiple packages share the same name and version, the source is included.",
96
116
"type": "object",
97
117
"properties": {
98
118
"name": {
@@ -105,9 +125,13 @@
105
125
]
106
126
},
107
127
"source": {
108
-
"type": [
109
-
"string",
110
-
"null"
128
+
"anyOf": [
129
+
{
130
+
"$ref": "#/$defs/TomlLockfileSourceId"
131
+
},
132
+
{
133
+
"type": "null"
134
+
}
111
135
]
112
136
}
113
137
},
@@ -116,9 +140,11 @@
116
140
]
117
141
},
118
142
"TomlLockfilePatch": {
143
+
"description": "Serialization of unused patches\n\nCargo stores patches that were declared but not used during resolution.",
119
144
"type": "object",
120
145
"properties": {
121
146
"unused": {
147
+
"description": "The list of unused dependency patches.",
0 commit comments