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: String
Name as given in the Cargo.toml
version: String
Version given in the Cargo.toml
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