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: String
Name as given in the Cargo.toml
or generated from the file name
kind: Vec<String>
Kind of target ("bin", "example", "test", "bench", "lib")
crate_types: Vec<String>
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
src_path: String
Path to the main source file of the target
Trait Implementations
impl Clone for Target
[src]
fn clone(&self) -> Target
[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