pub struct CommonOptions {Show 18 fields
pub quiet: bool,
pub jobs: Option<usize>,
pub keep_going: bool,
pub profile: Option<String>,
pub features: Vec<String>,
pub all_features: bool,
pub no_default_features: bool,
pub target: Vec<String>,
pub target_dir: Option<PathBuf>,
pub message_format: Vec<String>,
pub verbose: u8,
pub color: Option<String>,
pub frozen: bool,
pub locked: bool,
pub offline: bool,
pub config: Vec<String>,
pub unstable_flags: Vec<String>,
pub timings: Option<Vec<String>>,
}Expand description
common cargo options
Fields§
§quiet: boolDo not print cargo log messages
jobs: Option<usize>Number of parallel jobs, defaults to # of CPUs
keep_going: boolDo not abort the build as soon as there is an error (unstable)
profile: Option<String>Build artifacts with the specified Cargo profile
features: Vec<String>Space or comma separated list of features to activate
all_features: boolActivate all available features
no_default_features: boolDo not activate the default feature
target: Vec<String>Build for the target triple
target_dir: Option<PathBuf>Directory for all generated artifacts
message_format: Vec<String>Error format
verbose: u8Use verbose output (-vv very verbose/build.rs output)
color: Option<String>Coloring: auto, always, never
frozen: boolRequire Cargo.lock and cache are up to date
locked: boolRequire Cargo.lock is up to date
offline: boolRun without accessing the network
config: Vec<String>Override a configuration value (unstable)
unstable_flags: Vec<String>Unstable (nightly-only) flags to Cargo, see ‘cargo -Z help’ for details
timings: Option<Vec<String>>Timing output formats (unstable) (comma separated): html, json
Implementations§
Trait Implementations§
Source§impl Args for CommonOptions
impl Args for CommonOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CommonOptions
impl Clone for CommonOptions
Source§fn clone(&self) -> CommonOptions
fn clone(&self) -> CommonOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for CommonOptions
impl CommandFactory for CommonOptions
Source§impl Debug for CommonOptions
impl Debug for CommonOptions
Source§impl Default for CommonOptions
impl Default for CommonOptions
Source§fn default() -> CommonOptions
fn default() -> CommonOptions
Source§impl FromArgMatches for CommonOptions
impl FromArgMatches for CommonOptions
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.