pub enum Subcommand {
Show 17 variants
Build,
Check {
all_targets: bool,
},
Clippy {
fix: bool,
allow_dirty: bool,
allow_staged: bool,
allow: Vec<String>,
deny: Vec<String>,
warn: Vec<String>,
forbid: Vec<String>,
},
Fix,
Format {
check: bool,
all: bool,
},
Doc {
open: bool,
json: bool,
},
Test {Show 13 fields
no_fail_fast: bool,
test_args: Vec<String>,
compiletest_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,
},
Miri {
no_fail_fast: bool,
test_args: Vec<String>,
no_doc: bool,
doc: 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,
},
Vendor {
sync: Vec<PathBuf>,
versioned_dirs: bool,
},
Perf {},
}
Variants§
Build
Compile either the compiler or libraries
Check
Compile either the compiler or libraries, using cargo check
Clippy
Run Clippy (uses rustup/cargo-installed clippy binary)
Fields
Fix
Run cargo fix
Format
Run rustfmt
Fields
Doc
Build documentation
Fields
Test
Build and run some test suites
Fields
test_args: Vec<String>
extra arguments to be passed for the test tool being used (e.g. libtest, compiletest or rustdoc)
compiletest_rustc_args: Vec<String>
extra options to pass the compiler when running compiletest tests
Miri
Build and run some test suites in Miri
Fields
Bench
Build and run some benchmarks
Clean
Clean out build directories
Fields
Dist
Build distribution artifacts
Install
Install distribution artifacts
Run
Run tools contained in this repository
Setup
Set up the environment for development
Fields
Suggest
Suggest a subset of tests to run, based on modified files
Vendor
Vendor dependencies
Fields
Perf
Perform profiling and benchmarking of the compiler using the
rustc-perf-wrapper
tool.
You need to pass arguments after --
, e.g.x perf -- cachegrind
.
Implementations§
source§impl Subcommand
impl Subcommand
pub fn kind(&self) -> Kind
pub fn compiletest_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
pub fn vendor_versioned_dirs(&self) -> bool
pub fn vendor_sync_args(&self) -> Vec<PathBuf>
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
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moresource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Subcommand
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Pointable for T
impl<T> Pointable for 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: 152 bytes
Size for each variant:
Build
: 0 bytesCheck
: 9 bytesClippy
: 112 bytesFix
: 0 bytesFormat
: 10 bytesDoc
: 10 bytesTest
: 152 bytesMiri
: 40 bytesBench
: 32 bytesClean
: 20 bytesDist
: 0 bytesInstall
: 0 bytesRun
: 32 bytesSetup
: 32 bytesSuggest
: 9 bytesVendor
: 40 bytesPerf
: 0 bytes