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
Copy file name to clipboardExpand all lines: src/doc/src/reference/registry-index.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -199,6 +199,9 @@ explaining the format of the entry.
199
199
"features2": {
200
200
"serde": ["dep:serde", "chrono?/serde"]
201
201
}
202
+
// The minimal supported Rust version (optional)
203
+
// This must be a valid version requirement without an operator (e.g. no `=`)
204
+
"rust_version":"1.60"
202
205
}
203
206
```
204
207
@@ -221,6 +224,9 @@ The JSON objects should not be modified after they are added except for the
221
224
> * The publish API includes several other fields, such as `description` and `readme`, which don't appear in the index.
222
225
> These are intended to make it easier for a registry to obtain the metadata about the crate to display on a website without needing to extract and parse the `.crate` file.
223
226
> This additional information is typically added to a database on the registry server.
227
+
> *`rust_version` is not included. If a registry chooses to support this
228
+
> field, they must read it from the `Cargo.toml` contained in the `.crate`
0 commit comments