pub struct IndexLine {
pub name: String,
pub vers: String,
pub deps: Vec<DepEntry>,
pub cksum: String,
pub features: HashMap<String, Vec<String>>,
pub yanked: bool,
pub rust_version: Option<String>,
pub features2: Option<HashMap<String, Vec<String>>>,
}Expand description
A single entry in the crates.io sparse index (one line of NDJSON per version).
Fields§
§name: StringCrate name (may be mixed-case but normalized)
vers: StringVersion string
deps: Vec<DepEntry>Dependencies
cksum: StringSHA-256 checksum of the .crate file
features: HashMap<String, Vec<String>>Feature map: feature_name -> list of dep features enabled
yanked: boolWhether this version is yanked
rust_version: Option<String>Minimum Rust version (MSRV)
features2: Option<HashMap<String, Vec<String>>>v2 features (merged with features)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexLine
impl<'de> Deserialize<'de> for IndexLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IndexLine
impl RefUnwindSafe for IndexLine
impl Send for IndexLine
impl Sync for IndexLine
impl Unpin for IndexLine
impl UnsafeUnpin for IndexLine
impl UnwindSafe for IndexLine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more