Struct cargo_metadata::Dependency[][src]

pub struct Dependency {
    pub name: String,
    pub source: Option<String>,
    pub req: VersionReq,
    pub kind: DependencyKind,
    pub optional: bool,
    pub uses_default_features: bool,
    pub features: Vec<String>,
    // some fields omitted
}

A dependency of the main crate

Fields

Name as given in the Cargo.toml

The source of dependency

The required version

The kind of dependency this is

Whether this dependency is required or optional

Whether the default features in this dependency are used.

The list of features enabled for this dependency.

Trait Implementations

impl Clone for Dependency
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Dependency
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Dependency

impl Sync for Dependency