Struct cargo_subcommand::Args

source ·
pub struct Args {
Show 17 fields pub quiet: bool, pub package: Vec<String>, pub workspace: bool, pub exclude: Vec<String>, pub lib: bool, pub bin: Vec<String>, pub bins: bool, pub example: Vec<String>, pub examples: bool, pub release: bool, pub profile: Option<Profile>, pub features: Vec<String>, pub all_features: bool, pub no_default_features: bool, pub target: Option<String>, pub target_dir: Option<PathBuf>, pub manifest_path: Option<PathBuf>,
}

Fields§

§quiet: bool

No output printed to stdout

§package: Vec<String>

Package to build

§workspace: bool

Build all packages in the workspace

§exclude: Vec<String>

Exclude packages from the build

§lib: bool

Build only this package’s library

§bin: Vec<String>

Build only the specified binary

§bins: bool

Build all binaries

§example: Vec<String>

Build only the specified example

§examples: bool

Build all examples

§release: bool

Build artifacts in release mode, with optimizations

§profile: Option<Profile>

Build artifacts with the specified profile

§features: Vec<String>

Space or comma separated list of features to activate

§all_features: bool

Activate all available features

§no_default_features: bool

Do not activate the default feature

§target: Option<String>

Build for the target triple

§target_dir: Option<PathBuf>

Directory for all generated artifacts

§manifest_path: Option<PathBuf>

Path to Cargo.toml

Implementations§

Trait Implementations§

Report the ArgGroup::id for this set of arguments
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.