[][src]Struct cargo::ops::CompileOptions

pub struct CompileOptions<'a> {
    pub config: &'a Config,
    pub build_config: BuildConfig,
    pub features: Vec<String>,
    pub all_features: bool,
    pub no_default_features: bool,
    pub spec: Packages,
    pub filter: CompileFilter,
    pub target_rustdoc_args: Option<Vec<String>>,
    pub target_rustc_args: Option<Vec<String>>,
    pub local_rustdoc_args: Option<Vec<String>>,
    pub export_dir: Option<PathBuf>,
}

Contains information about how a package should be compiled.

Fields

config: &'a Configbuild_config: BuildConfig

Configuration information for a rustc build

features: Vec<String>

Extra features to build for the root package

all_features: bool

Flag whether all available features should be built for the root package

no_default_features: bool

Flag if the default feature should be built for the root package

spec: Packages

A set of packages to build.

filter: CompileFilter

Filter to apply to the root package to select which targets will be built.

target_rustdoc_args: Option<Vec<String>>

Extra arguments to be passed to rustdoc (single target only)

target_rustc_args: Option<Vec<String>>

The specified target will be compiled with all the available arguments, note that this only accounts for the final invocation of rustc

local_rustdoc_args: Option<Vec<String>>

Extra arguments passed to all selected targets for rustdoc.

export_dir: Option<PathBuf>

The directory to copy final artifacts to. Note that even if out_dir is set, a copy of artifacts still could be found a target/(debug\release) as usual.

Methods

impl<'a> CompileOptions<'a>[src]

pub fn new(
    config: &'a Config,
    mode: CompileMode
) -> CargoResult<CompileOptions<'a>>
[src]

Trait Implementations

impl<'a> Debug for CompileOptions<'a>[src]

Auto Trait Implementations

impl<'a> !Send for CompileOptions<'a>

impl<'a> !Sync for CompileOptions<'a>

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self