File tree 2 files changed +9
-0
lines changed
src/cargo/sources/registry
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,7 @@ impl IndexSummary {
814
814
features2,
815
815
yanked,
816
816
links,
817
+ rust_version : _,
817
818
v,
818
819
} = serde_json:: from_slice ( line) ?;
819
820
let v = v. unwrap_or ( 1 ) ;
Original file line number Diff line number Diff line change @@ -287,6 +287,14 @@ pub struct RegistryPackage<'a> {
287
287
/// Added early 2018 (see <https://github.com/rust-lang/cargo/pull/4978>),
288
288
/// can be `None` if published before then.
289
289
links : Option < InternedString > ,
290
+ /// Required version of rust
291
+ ///
292
+ /// Corresponds to `package.rust-version`.
293
+ ///
294
+ /// Added in 2023 (see <https://github.com/rust-lang/crates.io/pull/6267>),
295
+ /// can be `None` if published before then or if not set in the manifest.
296
+ #[ allow( dead_code) ]
297
+ rust_version : Option < InternedString > ,
290
298
/// The schema version for this entry.
291
299
///
292
300
/// If this is None, it defaults to version 1. Entries with unknown
You can’t perform that action at this time.
0 commit comments