Skip to main content

Module run

Module run 

Source
Expand description

Build-and-run steps for in-repo tools

A bit of a hodge-podge as e.g. if a tool’s a test fixture it should be in build_steps::test. If it can be reached from ./x.py run it can go here.

Re-exportsΒ§

use std::path::PathBuf; πŸ”’
use build_helper::git::get_git_untracked_files; πŸ”’
use clap_complete::Generator; πŸ”’
use clap_complete::shells; πŸ”’
use crate::core::build_steps::dist::distdir; πŸ”’
use crate::core::build_steps::test; πŸ”’
use crate::core::build_steps::tool; πŸ”’
use crate::core::build_steps::tool::RustcPrivateCompilers; πŸ”’
use crate::core::build_steps::tool::SourceType; πŸ”’
use crate::core::build_steps::tool::Tool; πŸ”’
use crate::core::build_steps::vendor::VENDOR_DIR; πŸ”’
use crate::core::build_steps::vendor::Vendor; πŸ”’
use crate::core::build_steps::vendor::default_paths_to_vendor; πŸ”’
use crate::core::builder::Builder; πŸ”’
use crate::core::builder::CommandLineStep; πŸ”’
use crate::core::builder::Kind; πŸ”’
use crate::core::builder::RunConfig; πŸ”’
use crate::core::builder::ShouldRun; πŸ”’
use crate::core::builder::StepMetadata; πŸ”’
use crate::core::config::TargetSelection; πŸ”’
use crate::core::config::flags::get_completion; πŸ”’
use crate::core::config::flags::top_level_help; πŸ”’
use crate::core::session::Mode; πŸ”’
use crate::utils::exec::command; πŸ”’
use crate::utils::helpers; πŸ”’
use crate::utils::helpers::t; πŸ”’

StructsΒ§

BuildManifest
BumpStage0
CollectLicenseMetadata
CoverageDump
Step to manually run the coverage-dump tool (./x run coverage-dump).
CyclicStep
Dummy step that can be used to deliberately trigger bootstrap’s step cycle detector, for automated and manual testing.
FeaturesStatusDump
GenerateCompletions
GenerateCopyright
GenerateHelp
GenerateWindowsSys
Miri
Invoke the Miri tool on a specified file.
ReplaceVersionPlaceholder
Rustfmt
UnicodeTableGenerator
The build step for generating the tables in core/src/char/unicode/unicode_data.rs and the tests in library/coretests/tests/unicode/test_data.rs.

FunctionsΒ§

get_completion_paths
Return tuples of (shell, file containing completions).
get_help_path
Return the path of x.py’s help.