Enum bootstrap::Subcommand
source · pub enum Subcommand {
Show 14 variants
Build,
Check {
all_targets: bool,
},
Clippy {
fix: bool,
allow: Vec<String>,
deny: Vec<String>,
warn: Vec<String>,
forbid: Vec<String>,
},
Fix,
Format {
check: bool,
},
Doc {
open: bool,
json: bool,
},
Test {Show 14 fields
no_fail_fast: bool,
skip: Vec<PathBuf>,
test_args: Vec<String>,
rustc_args: Vec<String>,
no_doc: bool,
doc: bool,
bless: bool,
extra_checks: Option<String>,
force_rerun: bool,
only_modified: bool,
compare_mode: Option<String>,
pass: Option<String>,
run: Option<String>,
rustfix_coverage: bool,
},
Bench {
test_args: Vec<String>,
},
Clean {
all: bool,
stage: Option<u32>,
},
Dist,
Install,
Run {
args: Vec<String>,
},
Setup {
profile: Option<PathBuf>,
},
Suggest {
run: bool,
},
}
Variants§
Build
Compile either the compiler or libraries
Check
Compile either the compiler or libraries, using cargo check
Clippy
Fields
Run Clippy (uses rustup/cargo-installed clippy binary)
Fix
Run cargo fix
Format
Run rustfmt
Doc
Fields
Build documentation
Test
Fields
skip: Vec<PathBuf>
skips tests matching SUBSTRING, if supported by test tool. May be passed multiple times
test_args: Vec<String>
extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)
Build and run some test suites
Bench
Build and run some benchmarks
Clean
Fields
Clean out build directories
Dist
Build distribution artifacts
Install
Install distribution artifacts
Run
Run tools contained in this repository
Setup
Fields
Set up the environment for development
Suggest
Suggest a subset of tests to run, based on modified files
Implementations§
source§impl Subcommand
impl Subcommand
pub fn kind(&self) -> Kind
pub fn rustc_args(&self) -> Vec<&str>
pub fn fail_fast(&self) -> bool
pub fn doc_tests(&self) -> DocTests
pub fn bless(&self) -> bool
pub fn extra_checks(&self) -> Option<&str>
pub fn only_modified(&self) -> bool
pub fn force_rerun(&self) -> bool
pub fn rustfix_coverage(&self) -> bool
pub fn compare_mode(&self) -> Option<&str>
pub fn pass(&self) -> Option<&str>
pub fn run(&self) -> Option<&str>
pub fn open(&self) -> bool
pub fn json(&self) -> bool
Trait Implementations§
source§impl Clone for Subcommand
impl Clone for Subcommand
source§fn clone(&self) -> Subcommand
fn clone(&self) -> Subcommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Subcommand
impl Debug for Subcommand
source§impl Default for Subcommand
impl Default for Subcommand
source§fn default() -> Subcommand
fn default() -> Subcommand
source§impl FromArgMatches for Subcommand
impl FromArgMatches for Subcommand
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§impl Subcommand for Subcommand
impl Subcommand for Subcommand
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl RefUnwindSafe for Subcommand
impl Send for Subcommand
impl Sync for Subcommand
impl Unpin for Subcommand
impl UnwindSafe for Subcommand
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: 176 bytes
Size for each variant:
Build
: 0 bytesCheck
: 1 byteClippy
: 103 bytesFix
: 0 bytesFormat
: 1 byteDoc
: 2 bytesTest
: 175 bytesBench
: 31 bytesClean
: 11 bytesDist
: 0 bytesInstall
: 0 bytesRun
: 31 bytesSetup
: 31 bytesSuggest
: 1 byte