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

Fields

§all_targets: bool

Check all targets

Compile either the compiler or libraries, using cargo check

§

Clippy

Fields

§fix: bool
§allow: Vec<String>

clippy lints to allow

§deny: Vec<String>

clippy lints to deny

§warn: Vec<String>

clippy lints to warn on

§forbid: Vec<String>

clippy lints to forbid

Run Clippy (uses rustup/cargo-installed clippy binary)

§

Fix

Run cargo fix

§

Format

Fields

§check: bool

check formatting instead of applying

Run rustfmt

§

Doc

Fields

§open: bool

open the docs in a browser

§json: bool

render the documentation in JSON format in addition to the usual HTML format

Build documentation

§

Test

Fields

§no_fail_fast: bool

run all tests regardless of failure

§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)

§rustc_args: Vec<String>

extra options to pass the compiler when running tests

§no_doc: bool

do not run doc tests

§doc: bool

only run doc tests

§bless: bool

whether to automatically update stderr/stdout files

§extra_checks: Option<String>

comma-separated list of other files types to check (accepts py, py:lint, py:fmt, shell)

§force_rerun: bool

rerun tests even if the inputs are unchanged

§only_modified: bool

only run tests that result has been changed

§compare_mode: Option<String>

mode describing what file the actual ui output will be compared to

§pass: Option<String>

force {check,build,run}-pass tests to this mode.

§run: Option<String>

whether to execute run-* tests

§rustfix_coverage: bool

enable this to generate a Rustfix coverage file, which is saved in /<build_base>/rustfix_missing_coverage.txt

Build and run some test suites

§

Bench

Fields

§test_args: Vec<String>

Build and run some benchmarks

§

Clean

Fields

§all: bool

Clean the entire build directory (not used by default)

§stage: Option<u32>

Clean a specific stage without touching other artifacts. By default, every stage is cleaned if this option is not used.

Clean out build directories

§

Dist

Build distribution artifacts

§

Install

Install distribution artifacts

§

Run

Fields

§args: Vec<String>

arguments for the tool

Run tools contained in this repository

§

Setup

Fields

§profile: Option<PathBuf>

Either the profile for config.toml or another setup action. May be omitted to set up interactively

Set up the environment for development

§

Suggest

Fields

§run: bool

run suggested tests

Suggest a subset of tests to run, based on modified files

Implementations§

source§

impl Subcommand

source

pub fn kind(&self) -> Kind

source

pub fn rustc_args(&self) -> Vec<&str>

source

pub fn fail_fast(&self) -> bool

source

pub fn doc_tests(&self) -> DocTests

source

pub fn bless(&self) -> bool

source

pub fn extra_checks(&self) -> Option<&str>

source

pub fn only_modified(&self) -> bool

source

pub fn force_rerun(&self) -> bool

source

pub fn rustfix_coverage(&self) -> bool

source

pub fn compare_mode(&self) -> Option<&str>

source

pub fn pass(&self) -> Option<&str>

source

pub fn run(&self) -> Option<&str>

source

pub fn open(&self) -> bool

source

pub fn json(&self) -> bool

Trait Implementations§

source§

impl Clone for Subcommand

source§

fn clone(&self) -> Subcommand

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Subcommand

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Subcommand

source§

fn default() -> Subcommand

Returns the “default value” for a type. Read more
source§

impl FromArgMatches for Subcommand

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Subcommand for Subcommand

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self. Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can update self. Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

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 bytes
  • Check: 1 byte
  • Clippy: 103 bytes
  • Fix: 0 bytes
  • Format: 1 byte
  • Doc: 2 bytes
  • Test: 175 bytes
  • Bench: 31 bytes
  • Clean: 11 bytes
  • Dist: 0 bytes
  • Install: 0 bytes
  • Run: 31 bytes
  • Setup: 31 bytes
  • Suggest: 1 byte