Struct cargo_metadata::Package [] [src]

pub struct Package {
    pub name: String,
    pub version: String,
    pub id: 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

An opaque identifier for a package

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Package
[src]

[src]

Formats the value using the given formatter.