Trait bootstrap::builder::Step

source ·
pub trait Step: 'static + Clone + Debug + PartialEq + Eq + Hash {
    type Output: Clone;

    const DEFAULT: bool = false;
    const ONLY_HOSTS: bool = false;

    // Required methods
    fn run(self, builder: &Builder<'_>) -> Self::Output;
    fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>;

    // Provided method
    fn make_run(_run: RunConfig<'_>) { ... }
}

Required Associated Types§

source

type Output: Clone

PathBuf when directories are created or to return a Compiler once it’s been assembled.

Provided Associated Constants§

source

const DEFAULT: bool = false

Whether this step is run by default as part of its respective phase. true here can still be overwritten by should_run calling default_condition.

source

const ONLY_HOSTS: bool = false

If true, then this rule should be skipped if –target was specified, but –host was not

Required Methods§

source

fn run(self, builder: &Builder<'_>) -> Self::Output

Primary function to execute this rule. Can call builder.ensure() with other steps to run those.

source

fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>

When bootstrap is passed a set of paths, this controls whether this rule will execute. However, it does not get called in a “default” context when we are not passed any paths; in that case, make_run is called directly.

Provided Methods§

source

fn make_run(_run: RunConfig<'_>)

Builds up a “root” rule, either as a default rule or from a path passed to us.

When path is None, we are executing in a context where no paths were passed. When ./x.py build is run, for example, this rule could get called if it is in the correct list below with a path of None.

Implementors§

source§

impl Step for Profile

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Bootstrap

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = false

source§

impl Step for bootstrap::check::CargoMiri

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Clippy

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::CodegenBackend

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Miri

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for MiroptTestTools

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Rls

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::RustAnalyzer

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Rustc

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Rustdoc

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Rustfmt

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::check::Std

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for CleanAll

source§

const DEFAULT: bool = true

§

type Output = ()

source§

impl Step for bootstrap::clean::Rustc

§

type Output = ()

source§

impl Step for bootstrap::clean::Std

§

type Output = ()

source§

impl Step for Assemble

source§

impl Step for bootstrap::compile::CodegenBackend

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::compile::Rustc

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = false

§

type Output = ()

source§

impl Step for StartupObjects

source§

impl Step for bootstrap::compile::Std

§

type Output = ()

source§

const DEFAULT: bool = true

§

type Output = ()

source§

impl Step for Sysroot

source§

impl Step for Analysis

source§

impl Step for bootstrap::dist::Bootstrap

source§

impl Step for bootstrap::dist::BuildManifest

source§

impl Step for bootstrap::dist::Cargo

source§

impl Step for bootstrap::dist::Clippy

source§

impl Step for DebuggerScripts

§

type Output = ()

source§

impl Step for bootstrap::dist::Docs

source§

impl Step for Extended

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for JsonDocs

source§

impl Step for bootstrap::dist::LlvmTools

source§

impl Step for Mingw

source§

impl Step for bootstrap::dist::Miri

source§

impl Step for PlainSourceTarball

source§

impl Step for ReproducibleArtifacts

source§

impl Step for bootstrap::dist::Rls

source§

impl Step for bootstrap::dist::RustAnalyzer

source§

impl Step for bootstrap::dist::RustDemangler

source§

impl Step for RustDev

source§

impl Step for bootstrap::dist::Rustc

source§

impl Step for RustcDev

source§

impl Step for RustcDocs

source§

impl Step for bootstrap::dist::Rustfmt

source§

impl Step for bootstrap::dist::Src

source§

impl Step for bootstrap::dist::Std

source§

impl Step for bootstrap::doc::Bootstrap

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::doc::Cargo

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for CargoBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::Clippy

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for ClippyBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::EditionGuide

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::EmbeddedBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::ErrorIndex

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::doc::Miri

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::doc::Nomicon

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::Reference

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::RustByExample

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::Rustc

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::doc::RustcBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::doc::Rustdoc

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::doc::RustdocBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::Rustfmt

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for SharedAssets

source§

impl Step for Standalone

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::Std

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for StyleGuide

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::TheBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::Tidy

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::doc::UnstableBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::doc::UnstableBookGen

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Cargo

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Clippy

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Docs

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for bootstrap::install::LlvmTools

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Miri

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::RustAnalyzer

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::RustDemangler

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Rustc

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Rustfmt

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Src

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::install::Std

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for CrtBeginEnd

source§

impl Step for Libunwind

source§

impl Step for Lld

source§

impl Step for Llvm

source§

impl Step for Sanitizers

source§

impl Step for bootstrap::run::BuildManifest

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::run::BumpStage0

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::run::CollectLicenseMetadata

source§

impl Step for bootstrap::run::ExpandYamlAnchors

§

type Output = ()

source§

impl Step for GenerateCompletions

§

type Output = ()

source§

impl Step for bootstrap::run::GenerateCopyright

source§

impl Step for bootstrap::run::GenerateWindowsSys

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::run::Miri

§

type Output = ()

source§

const ONLY_HOSTS: bool = false

source§

impl Step for bootstrap::run::ReplaceVersionPlaceholder

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for Hook

§

type Output = ()

source§

const DEFAULT: bool = true

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for Vscode

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for MirOptPanicAbortSyntheticTarget

source§

impl Step for Assembly

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for BookTest

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::Bootstrap

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::Cargo

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for Cargotest

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::Clippy

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = false

source§

impl Step for Codegen

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for CodegenCranelift

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for CodegenUnits

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for bootstrap::test::Compiletest

§

type Output = ()

source§

impl Step for CompiletestTest

§

type Output = ()

source§

impl Step for CoverageMap

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for Crate

§

type Output = ()

source§

const DEFAULT: bool = true

source§

impl Step for CrateBootstrap

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for CrateLibrustc

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for CrateRustdoc

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for CrateRustdocJsonTypes

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for Debuginfo

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for Distcheck

§

type Output = ()

source§

impl Step for bootstrap::test::EditionGuide

§

type Output = ()

source§

const DEFAULT: bool = false

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::EmbeddedBook

§

type Output = ()

source§

const DEFAULT: bool = false

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::ErrorIndex

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::ExpandYamlAnchors

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for HtmlCheck

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for Incremental

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for Linkcheck

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::test::LintDocs

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for MirOpt

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for bootstrap::test::Miri

§

type Output = ()

source§

const ONLY_HOSTS: bool = false

source§

impl Step for bootstrap::test::Nomicon

§

type Output = ()

source§

const DEFAULT: bool = false

source§

const ONLY_HOSTS: bool = true

source§

impl Step for Pretty

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::Reference

§

type Output = ()

source§

const DEFAULT: bool = false

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RemoteCopyLibs

§

type Output = ()

source§

impl Step for RunCoverage

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RunCoverageRustdoc

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RunMake

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for RunMakeFullDeps

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RunPassValgrind

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for bootstrap::test::RustAnalyzer

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::test::RustByExample

§

type Output = ()

source§

const DEFAULT: bool = false

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::RustDemangler

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::RustInstaller

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

const DEFAULT: bool = true

source§

impl Step for bootstrap::test::RustcBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RustcGuide

§

type Output = ()

source§

const DEFAULT: bool = false

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::Rustdoc

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::RustdocBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RustdocGUI

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RustdocJSNotStd

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RustdocJSStd

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RustdocJson

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::RustdocTheme

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RustdocUi

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::Rustfmt

§

type Output = ()

source§

const ONLY_HOSTS: bool = true

source§

impl Step for TestHelpers

§

type Output = ()

source§

impl Step for bootstrap::test::TheBook

§

type Output = ()

source§

const DEFAULT: bool = false

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::Tidy

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for TierCheck

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for Ui

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = false

source§

impl Step for UiFullDeps

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::test::UnstableBook

§

type Output = ()

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for bootstrap::tool::BuildManifest

source§

impl Step for bootstrap::tool::BumpStage0

source§

impl Step for bootstrap::tool::Cargo

§

type Output = PathBuf

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for CargoClippy

source§

impl Step for bootstrap::tool::CargoMiri

source§

impl Step for CargoTest

source§

impl Step for Cargofmt

source§

impl Step for bootstrap::tool::Clippy

source§

impl Step for bootstrap::tool::CollectLicenseMetadata

source§

impl Step for bootstrap::tool::Compiletest

source§

impl Step for CoverageDump

source§

impl Step for bootstrap::tool::ErrorIndex

source§

impl Step for bootstrap::tool::ExpandYamlAnchors

source§

impl Step for bootstrap::tool::GenerateCopyright

source§

impl Step for bootstrap::tool::GenerateWindowsSys

source§

impl Step for HtmlChecker

source§

impl Step for JsonDocCk

source§

impl Step for JsonDocLint

source§

impl Step for Linkchecker

source§

impl Step for bootstrap::tool::LintDocs

source§

impl Step for LldWrapper

source§

impl Step for bootstrap::tool::Miri

source§

impl Step for OptimizedDist

source§

impl Step for RemoteTestClient

source§

impl Step for RemoteTestServer

source§

impl Step for bootstrap::tool::ReplaceVersionPlaceholder

source§

impl Step for bootstrap::tool::Rls

source§

impl Step for bootstrap::tool::RustAnalyzer

source§

impl Step for RustAnalyzerProcMacroSrv

source§

impl Step for bootstrap::tool::RustDemangler

source§

impl Step for bootstrap::tool::RustInstaller

source§

impl Step for Rustbook

source§

impl Step for bootstrap::tool::Rustdoc

§

type Output = PathBuf

source§

const DEFAULT: bool = true

source§

const ONLY_HOSTS: bool = true

source§

impl Step for RustdocGUITest

source§

impl Step for bootstrap::tool::RustdocTheme

source§

impl Step for bootstrap::tool::Rustfmt

source§

impl Step for SuggestTests

source§

impl Step for bootstrap::tool::Tidy

source§

impl Step for ToolBuild

source§

impl Step for bootstrap::tool::UnstableBookGen

source§

impl Step for ToolStateCheck

§

type Output = ()

source§

impl<P: Step> Step for RustbookSrc<P>

§

type Output = ()