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

pub struct CompileOptions<'a> {
    pub config: &'a Config,
    pub jobs: Option<u32>,
    pub target: Option<&'a str>,
    pub features: &'a [String],
    pub all_features: bool,
    pub no_default_features: bool,
    pub spec: Packages<'a>,
    pub filter: CompileFilter<'a>,
    pub release: bool,
    pub mode: CompileMode,
    pub message_format: MessageFormat,
    pub target_rustdoc_args: Option<&'a [String]>,
    pub target_rustc_args: Option<&'a [String]>,
}

Contains information about how a package should be compiled.

Fields

Number of concurrent jobs to use.

The target platform to compile for (example: i686-unknown-linux-gnu).

Extra features to build for the root package

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

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

A set of packages to build.

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

Whether this is a release build or not

Mode for this compile.

--error_format flag for the compiler.

Extra arguments to be passed to rustdoc (for main crate and dependencies)

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

Methods

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

[src]

Trait Implementations

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

[src]

Formats the value using the given formatter.