Struct cargo::ops::CompileOptions [−][src]
Contains information about how a package should be compiled.
Fields
config: &'a Config
build_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.
rustdoc_document_private_items: bool
Whether the --document-private-items
flags was specified and should
be forwarded to 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.
Implementations
impl<'a> CompileOptions<'a>
[src]
pub fn new(
config: &'a Config,
mode: CompileMode
) -> CargoResult<CompileOptions<'a>>
[src]
config: &'a Config,
mode: CompileMode
) -> CargoResult<CompileOptions<'a>>
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CompileOptions<'a>
impl<'a> !Send for CompileOptions<'a>
impl<'a> !Sync for CompileOptions<'a>
impl<'a> Unpin for CompileOptions<'a>
impl<'a> !UnwindSafe for CompileOptions<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,