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": "A single line in the index representing a single version of a package.",
5
+
"type": "object",
6
+
"properties": {
7
+
"name": {
8
+
"description": "Name of the package.",
9
+
"type": "string"
10
+
},
11
+
"vers": {
12
+
"description": "The version of this dependency.",
13
+
"$ref": "#/$defs/SemVer"
14
+
},
15
+
"deps": {
16
+
"description": "All kinds of direct dependencies of the package, including dev and\nbuild dependencies.",
17
+
"type": "array",
18
+
"items": {
19
+
"$ref": "#/$defs/RegistryDependency"
20
+
}
21
+
},
22
+
"features": {
23
+
"description": "Set of features defined for the package, i.e., `[features]` table.",
24
+
"type": "object",
25
+
"additionalProperties": {
26
+
"type": "array",
27
+
"items": {
28
+
"type": "string"
29
+
}
30
+
},
31
+
"default": {}
32
+
},
33
+
"features2": {
34
+
"description": "This field contains features with new, extended syntax. Specifically,\nnamespaced features (`dep:`) and weak dependencies (`pkg?/feat`).\n\nThis is separated from `features` because versions older than 1.19\nwill fail to load due to not being able to parse the new syntax, even\nwith a `Cargo.lock` file.",
35
+
"type": [
36
+
"object",
37
+
"null"
38
+
],
39
+
"additionalProperties": {
40
+
"type": "array",
41
+
"items": {
42
+
"type": "string"
43
+
}
44
+
}
45
+
},
46
+
"cksum": {
47
+
"description": "Checksum for verifying the integrity of the corresponding downloaded package.",
48
+
"type": "string"
49
+
},
50
+
"yanked": {
51
+
"description": "If `true`, Cargo will skip this version when resolving.\n\nThis was added in 2014. Everything in the crates.io index has this set\nnow, so this probably doesn't need to be an option anymore.",
52
+
"type": [
53
+
"boolean",
54
+
"null"
55
+
]
56
+
},
57
+
"links": {
58
+
"description": "Native library name this package links to.\n\nAdded early 2018 (see <https://github.com/rust-lang/cargo/pull/4978>),\ncan be `None` if published before then.",
59
+
"type": [
60
+
"string",
61
+
"null"
62
+
]
63
+
},
64
+
"rust_version": {
65
+
"description": "Required version of rust\n\nCorresponds to `package.rust-version`.\n\nAdded in 2023 (see <https://github.com/rust-lang/crates.io/pull/6267>),\ncan be `None` if published before then or if not set in the manifest.",
66
+
"type": [
67
+
"string",
68
+
"null"
69
+
]
70
+
},
71
+
"v": {
72
+
"description": "The schema version for this entry.\n\nIf this is None, it defaults to version `1`. Entries with unknown\nversions are ignored.\n\nVersion `2` schema adds the `features2` field.\n\nVersion `3` schema adds `artifact`, `bindep_targes`, and `lib` for\nartifact dependencies support.\n\nThis provides a method to safely introduce changes to index entries\nand allow older versions of cargo to ignore newer entries it doesn't\nunderstand. This is honored as of 1.51, so unfortunately older\nversions will ignore it, and potentially misinterpret version 2 and\nnewer entries.\n\nThe intent is that versions older than 1.51 will work with a\npre-existing `Cargo.lock`, but they may not correctly process `cargo\nupdate` or build a lock from scratch. In that case, cargo may\nincorrectly select a new package that uses a new index schema. A\nworkaround is to downgrade any packages that are incompatible with the\n`--precise` flag of `cargo update`.",
"description": "A dependency as encoded in the [`IndexPackage`] index JSON.",
94
+
"type": "object",
95
+
"properties": {
96
+
"name": {
97
+
"description": "Name of the dependency. If the dependency is renamed, the original\nwould be stored in [`RegistryDependency::package`].",
98
+
"type": "string"
99
+
},
100
+
"req": {
101
+
"description": "The SemVer requirement for this dependency.",
102
+
"type": "string"
103
+
},
104
+
"features": {
105
+
"description": "Set of features enabled for this dependency.",
106
+
"type": "array",
107
+
"items": {
108
+
"type": "string"
109
+
},
110
+
"default": []
111
+
},
112
+
"optional": {
113
+
"description": "Whether or not this is an optional dependency.",
114
+
"type": "boolean",
115
+
"default": false
116
+
},
117
+
"default_features": {
118
+
"description": "Whether or not default features are enabled.",
119
+
"type": "boolean",
120
+
"default": true
121
+
},
122
+
"target": {
123
+
"description": "The target platform for this dependency.",
124
+
"type": [
125
+
"string",
126
+
"null"
127
+
]
128
+
},
129
+
"kind": {
130
+
"description": "The dependency kind. \"dev\", \"build\", and \"normal\".",
131
+
"type": [
132
+
"string",
133
+
"null"
134
+
]
135
+
},
136
+
"registry": {
137
+
"description": "The URL of the index of the registry where this dependency is from.\n`None` if it is from the same index.",
138
+
"type": [
139
+
"string",
140
+
"null"
141
+
]
142
+
},
143
+
"package": {
144
+
"description": "The original name if the dependency is renamed.",
145
+
"type": [
146
+
"string",
147
+
"null"
148
+
]
149
+
},
150
+
"public": {
151
+
"description": "Whether or not this is a public dependency. Unstable. See [RFC 1977].\n\n[RFC 1977]: https://rust-lang.github.io/rfcs/1977-public-private-dependencies.html",
152
+
"type": [
153
+
"boolean",
154
+
"null"
155
+
]
156
+
},
157
+
"artifact": {
158
+
"description": "The artifacts to build from this dependency.",
159
+
"type": [
160
+
"array",
161
+
"null"
162
+
],
163
+
"items": {
164
+
"type": "string"
165
+
}
166
+
},
167
+
"bindep_target": {
168
+
"description": "The target for bindep.",
169
+
"type": [
170
+
"string",
171
+
"null"
172
+
]
173
+
},
174
+
"lib": {
175
+
"description": "Whether or not this is a library dependency.",
0 commit comments