Skip to content

Commit 66221ab

Browse files
authored
Docs for optional registry JSON fields (#14839)
Follow up to #14838 I haven't added info about 1.19, because [versions below 1.34.0 have zero users](https://p.datadoghq.com/sb/3a172e20-e9e1-11ed-80e3-da7ad0900002-973f4c1011257befa8598303217bfe3a?fromUser=false&refresh_mode=sliding&from_ts=1732028044807&to_ts=1732042444807&live=true). I assume it's going to land in 1.84.
2 parents d58c3c4 + 7a98817 commit 66221ab

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.84.
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.84, 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.84, 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.84.
169173
"features": {
170174
"extras": ["rand/simd_support"]
171175
},

0 commit comments

Comments
 (0)