Struct cargo_metadata::Target[][src]

pub struct Target {
    pub name: String,
    pub kind: Vec<String>,
    pub crate_types: Vec<String>,
    pub src_path: String,
    // some fields omitted
}

A single target (lib, bin, example, ...) provided by a crate

Fields

Name as given in the Cargo.toml or generated from the file name

Kind of target ("bin", "example", "test", "bench", "lib")

Almost the same as kind, except when an example is a library instad of an executable. In that case crate_types contains things like rlib and dylib while kind is example

Path to the main source file of the target

Trait Implementations

impl Clone for Target
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Target
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Target

impl Sync for Target