Struct cargo::core::compiler::BuildConfig [−][src]
Configuration information for a rustc build.
Fields
requested_kind: CompileKindThe requested kind of compilation for this session
jobs: u32Number of rustc jobs to run in parallel.
profile_kind: ProfileKindBuild profile
mode: CompileModeThe mode we are compiling in.
message_format: MessageFormattrue to print stdout in JSON format (for machine reading).
force_rebuild: boolForce Cargo to do a full rebuild and treat each target as changed.
build_plan: boolOutput a build plan to stdout instead of actually compiling.
primary_unit_rustc: Option<ProcessBuilder>An optional override of the rustc path for primary units only
rustfix_diagnostic_server: RefCell<Option<RustfixDiagnosticServer>>Implementations
impl BuildConfig[src]
pub fn new(
config: &Config,
jobs: Option<u32>,
requested_target: &Option<String>,
mode: CompileMode
) -> CargoResult<BuildConfig>[src]
config: &Config,
jobs: Option<u32>,
requested_target: &Option<String>,
mode: CompileMode
) -> CargoResult<BuildConfig>
Parses all config files to learn about build configuration. Currently configured options are:
build.jobsbuild.targettarget.$target.artarget.$target.linkertarget.$target.libfoo.metadata
pub fn emit_json(&self) -> bool[src]
Whether or not the user wants JSON output. Whether or not rustc
actually uses JSON is decided in add_error_format.
pub fn profile_name(&self) -> &str[src]
pub fn test(&self) -> bool[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BuildConfig
impl Send for BuildConfig
impl !Sync for BuildConfig
impl Unpin for BuildConfig
impl UnwindSafe for BuildConfig
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>,