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: String
Name as given in the Cargo.toml
version: String
Version given in the Cargo.toml
id: String
An opaque identifier for a package
dependencies: Vec<Dependency>
List of dependencies of this particular package
targets: Vec<Target>
Targets provided by the crate (lib, bin, example, test, ...)
manifest_path: String
Path containing the Cargo.toml
Trait Implementations
impl Clone for Package
[src]
fn clone(&self) -> Package
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more