Struct CompileOptions

Source
pub struct CompileOptions {
Show 13 fields pub build_config: BuildConfig, pub features: Vec<String>, pub all_features: bool, pub no_default_features: bool, pub spec: Packages, pub filter: CompileFilter, pub deps_only: bool, pub deps_remote_only: bool, pub target_rustdoc_args: Option<Vec<String>>, pub target_rustc_args: Option<Vec<String>>, pub local_rustdoc_args: Option<Vec<String>>, pub rustdoc_document_private_items: bool, pub export_dir: Option<PathBuf>,
}
Expand description

Contains information about how a package should be compiled.

Fields§

§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.

§deps_only: bool

Only build dependencies of the selected packages

§deps_remote_only: bool

Only build remote dependencies of the selected packages

§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§

Trait Implementations§

Source§

impl Debug for CompileOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,