pub struct IndexDep {
pub name: String,
pub req: String,
pub features: Vec<String>,
pub optional: bool,
pub default_features: bool,
pub target: Option<String>,
pub kind: String,
pub registry: Option<String>,
pub package: Option<String>,
}Expand description
One dependency exactly as a Cargo registry index expresses it (REQ-CRATEIDX-001 clause 1). Field names and order mirror crates.io’s index so a line varve writes and a line crates.io writes are the same shape.
Fields§
§name: StringThe name the dependant refers to it by — the RENAMED name if renamed;
package then carries the real crate name.
req: StringThe SemVer requirement.
features: Vec<String>§optional: bool§default_features: bool§target: Option<String>None for an unconditional dependency, else the cfg(...)/triple key.
kind: Stringnormal, dev or build.
registry: Option<String>Index URL of another registry, or None for this one.
package: Option<String>The real crate name when name is a rename, else None.
Trait Implementations§
impl Eq for IndexDep
impl StructuralPartialEq for IndexDep
Auto Trait Implementations§
impl Freeze for IndexDep
impl RefUnwindSafe for IndexDep
impl Send for IndexDep
impl Sync for IndexDep
impl Unpin for IndexDep
impl UnsafeUnpin for IndexDep
impl UnwindSafe for IndexDep
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