Skip to content

Commit 91ea6e4

Browse files
committed
docs(index): Clarify what we mean by omitting features
The current wording (from #14839) makes it sound like new Cargo doesn't care about the `features` entries when in reality Cargo does care still, the field is just defaulted. Closes #15408
1 parent 6d221ef commit 91ea6e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ 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.84.
142+
// Since Cargo 1.84, defaults to `[]` if not specified.
143143
"features": ["i128_support"],
144144
// Boolean of whether or not this is an optional dependency.
145145
// Since Cargo 1.84, defaults to `false` if not specified.
@@ -169,7 +169,7 @@ explaining the format of the entry.
169169
"cksum": "d867001db0e2b6e0496f9fac96930e2d42233ecd3ca0413e0753d4c7695d289c",
170170
// Set of features defined for the package.
171171
// Each feature maps to an array of features or dependencies it enables.
172-
// May be omitted since Cargo 1.84.
172+
// Since Cargo 1.84, defaults to `{}` if not specified.
173173
"features": {
174174
"extras": ["rand/simd_support"]
175175
},

0 commit comments

Comments
 (0)