[][src]Enum cargo::ops::CompileFilter

pub enum CompileFilter {
    Default {
        required_features_filterable: bool,
    },
    Only {
        all_targets: bool,
        lib: LibRule,
        bins: FilterRule,
        examples: FilterRule,
        tests: FilterRule,
        benches: FilterRule,
    },
}

Variants

Default

Fields of Default

required_features_filterable: bool

Flag whether targets can be safely skipped when required-features are not satisfied.

Only

Fields of Only

all_targets: boollib: LibRulebins: FilterRuleexamples: FilterRuletests: FilterRulebenches: FilterRule

Methods

impl CompileFilter[src]

pub fn from_raw_arguments(
    lib_only: bool,
    bins: Vec<String>,
    all_bins: bool,
    tsts: Vec<String>,
    all_tsts: bool,
    exms: Vec<String>,
    all_exms: bool,
    bens: Vec<String>,
    all_bens: bool,
    all_targets: bool
) -> CompileFilter
[src]

Construct a CompileFilter from raw command line arguments.

pub fn new(
    rule_lib: LibRule,
    rule_bins: FilterRule,
    rule_tsts: FilterRule,
    rule_exms: FilterRule,
    rule_bens: FilterRule
) -> CompileFilter
[src]

Construct a CompileFilter from underlying primitives.

pub fn new_all_targets() -> CompileFilter[src]

pub fn need_dev_deps(&self, mode: CompileMode) -> bool[src]

pub fn target_run(&self, target: &Target) -> bool[src]

pub fn is_specific(&self) -> bool[src]

Trait Implementations

impl Debug for CompileFilter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,