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: bool,
}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
profile: Option<String>Build artifacts with the specified 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
frozen: boolEquivalent to specifying both –locked and –offline
locked: boolAssert that Cargo.lock will remain unchanged
offline: boolRun without accessing the network
config: Vec<String>Override a configuration value
unstable_flags: Vec<String>Unstable (nightly-only) flags to Cargo, see ‘cargo -Z help’ for details
timings: boolOutput a build timing report at the end of the build
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
Append to
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Parser for CommonOptions
impl Parser for CommonOptions
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CommonOptions
impl RefUnwindSafe for CommonOptions
impl Send for CommonOptions
impl Sync for CommonOptions
impl Unpin for CommonOptions
impl UnsafeUnpin for CommonOptions
impl UnwindSafe for CommonOptions
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
Mutably borrows from an owned value. Read more