Struct cargo_options::CommonOptions
source · 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: bool
Do not print cargo log messages
jobs: Option<usize>
Number of parallel jobs, defaults to # of CPUs
keep_going: bool
Do 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: bool
Activate all available features
no_default_features: bool
Do 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: u8
Use verbose output (-vv very verbose/build.rs output)
color: Option<String>
Coloring: auto, always, never
frozen: bool
Require Cargo.lock and cache are up to date
locked: bool
Require Cargo.lock is up to date
offline: bool
Run 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§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
.source§impl Parser for CommonOptions
impl Parser for CommonOptions
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os()
, return Err on error.