Struct cargo::core::manifest::Target
[−]
[src]
pub struct Target { // some fields omitted }
Information about a binary, a library, an example, etc. that is part of the package.
Methods
impl Target
fn lib_target(name: &str, crate_targets: Vec<LibKind>, src_path: &Path, metadata: Metadata) -> Target
fn bin_target(name: &str, src_path: &Path, metadata: Option<Metadata>) -> Target
fn custom_build_target(name: &str, src_path: &Path, metadata: Option<Metadata>) -> Target
Builds a Target
corresponding to the build = "build.rs"
entry.
fn example_target(name: &str, src_path: &Path) -> Target
fn test_target(name: &str, src_path: &Path, metadata: Metadata) -> Target
fn bench_target(name: &str, src_path: &Path, metadata: Metadata) -> Target
fn name(&self) -> &str
fn crate_name(&self) -> String
fn src_path(&self) -> &Path
fn metadata(&self) -> Option<&Metadata>
fn kind(&self) -> &TargetKind
fn tested(&self) -> bool
fn harness(&self) -> bool
fn documented(&self) -> bool
fn for_host(&self) -> bool
fn benched(&self) -> bool
fn doctested(&self) -> bool
fn allows_underscores(&self) -> bool
fn is_lib(&self) -> bool
fn linkable(&self) -> bool
fn is_bin(&self) -> bool
fn is_example(&self) -> bool
fn is_test(&self) -> bool
fn is_bench(&self) -> bool
fn is_custom_build(&self) -> bool
fn rustc_crate_types(&self) -> Vec<&'static str>
Returns the arguments suitable for --crate-type
to pass to rustc.