Struct cargo_metadata::Package [] [src]

pub struct Package {
    pub name: String,
    pub version: String,
    pub dependencies: Vec<Dependency>,
    pub targets: Vec<Target>,
    pub manifest_path: String,
    // some fields omitted
}

A crate

Fields

Name as given in the Cargo.toml

Version given in the Cargo.toml

List of dependencies of this particular package

Targets provided by the crate (lib, bin, example, test, ...)

path containing the Cargo.toml

Trait Implementations

impl Clone for Package
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Package
[src]

Formats the value using the given formatter.