Skip to content

Commit

Permalink
Docs for optional registry JSON fields (#14839)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weihanglo authored Nov 19, 2024
2 parents d58c3c4 + 7a98817 commit 66221ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/doc/src/reference/registry-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ explaining the format of the entry.
// https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html.
"req": "^0.6",
// Array of features (as strings) enabled for this dependency.
// May be omitted since Cargo 1.84.
"features": ["i128_support"],
// Boolean of whether or not this is an optional dependency. Defaults to `false` if not specified.
// Boolean of whether or not this is an optional dependency.
// Since Cargo 1.84, defaults to `false` if not specified.
"optional": false,
// Boolean of whether or not default features are enabled. Defaults to `true` if not specified.
// Boolean of whether or not default features are enabled.
// Since Cargo 1.84, defaults to `true` if not specified.
"default_features": true,
// The target platform for the dependency.
// If not specified or `null`, it is not a target dependency.
Expand All @@ -166,6 +169,7 @@ explaining the format of the entry.
"cksum": "d867001db0e2b6e0496f9fac96930e2d42233ecd3ca0413e0753d4c7695d289c",
// Set of features defined for the package.
// Each feature maps to an array of features or dependencies it enables.
// May be omitted since Cargo 1.84.
"features": {
"extras": ["rand/simd_support"]
},
Expand Down

0 comments on commit 66221ab

Please sign in to comment.