Skip to content

Commit 2d1e31a

Browse files
committed
Docs for optional registry JSON fields
1 parent d58c3c4 commit 2d1e31a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/doc/src/reference/registry-index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,13 @@ explaining the format of the entry.
139139
// https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html.
140140
"req": "^0.6",
141141
// Array of features (as strings) enabled for this dependency.
142+
// May be omitted since Cargo 1.85.
142143
"features": ["i128_support"],
143-
// Boolean of whether or not this is an optional dependency. Defaults to `false` if not specified.
144+
// Boolean of whether or not this is an optional dependency.
145+
// Since Cargo 1.85, defaults to `false` if not specified.
144146
"optional": false,
145-
// Boolean of whether or not default features are enabled. Defaults to `true` if not specified.
147+
// Boolean of whether or not default features are enabled.
148+
// Since Cargo 1.85, defaults to `true` if not specified.
146149
"default_features": true,
147150
// The target platform for the dependency.
148151
// If not specified or `null`, it is not a target dependency.
@@ -166,6 +169,7 @@ explaining the format of the entry.
166169
"cksum": "d867001db0e2b6e0496f9fac96930e2d42233ecd3ca0413e0753d4c7695d289c",
167170
// Set of features defined for the package.
168171
// Each feature maps to an array of features or dependencies it enables.
172+
// May be omitted since Cargo 1.85.
169173
"features": {
170174
"extras": ["rand/simd_support"]
171175
},

0 commit comments

Comments
 (0)