pub struct Std {
pub target: TargetSelection,
pub compiler: Compiler,
crates: Interned<Vec<String>>,
force_recompile: bool,
}Fields§
§target: TargetSelection§compiler: Compiler§crates: Interned<Vec<String>>Whether to build only a subset of crates in the standard library.
This shouldn’t be used from other steps; see the comment on Rustc.
force_recompile: boolWhen using download-rustc, we need to use a new build of std for running unit tests of Std itself,
but we need to use the downloaded copy of std for linking to rustdoc. Allow this to be overriden by builder.ensure from other steps.
Implementations§
source§impl Std
impl Std
pub fn new(compiler: Compiler, target: TargetSelection) -> Self
pub fn force_recompile(compiler: Compiler, target: TargetSelection) -> Self
Trait Implementations§
source§impl Ord for Std
impl Ord for Std
source§impl PartialOrd<Std> for Std
impl PartialOrd<Std> for Std
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl Step for Std
impl Step for Std
source§fn run(self, builder: &Builder<'_>)
fn run(self, builder: &Builder<'_>)
Builds the standard library.
This will build the standard library for a particular stage of the build
using the compiler targeting the target architecture. The artifacts
created will also be linked into the sysroot directory.
§type Output = ()
type Output = ()
PathBuf when directories are created or to return a Compiler once
it’s been assembled.source§const DEFAULT: bool = true
const DEFAULT: bool = true
true here can still be overwritten by should_run calling default_condition.source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
make_run is called
directly.source§fn make_run(run: RunConfig<'_>)
fn make_run(run: RunConfig<'_>)
source§const ONLY_HOSTS: bool = false
const ONLY_HOSTS: bool = false
impl Copy for Std
impl Eq for Std
impl StructuralEq for Std
impl StructuralPartialEq for Std
Auto Trait Implementations§
impl RefUnwindSafe for Std
impl Send for Std
impl Sync for Std
impl Unpin for Std
impl UnwindSafe for Std
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 88 bytes