pub struct CrateMeta {
pub deps: Vec<IndexDep>,
pub features: BTreeMap<String, Vec<String>>,
pub features2: BTreeMap<String, Vec<String>>,
pub links: Option<String>,
pub rust_version: Option<String>,
}Expand description
Everything an index line needs beyond identity and cksum, read from the
Cargo.toml inside the signed .crate (REQ-CRATEIDX-001 clause 1).
features2 exists because Cargo splits namespaced (dep:foo) and weak
(foo?/bar) feature values into a second map guarded by "v":2, exactly as
crates.io does; a modern Cargo merges the two on load.
Fields§
§deps: Vec<IndexDep>§features: BTreeMap<String, Vec<String>>§features2: BTreeMap<String, Vec<String>>§links: Option<String>§rust_version: Option<String>Trait Implementations§
impl Eq for CrateMeta
impl StructuralPartialEq for CrateMeta
Auto Trait Implementations§
impl Freeze for CrateMeta
impl RefUnwindSafe for CrateMeta
impl Send for CrateMeta
impl Sync for CrateMeta
impl Unpin for CrateMeta
impl UnsafeUnpin for CrateMeta
impl UnwindSafe for CrateMeta
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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