pub struct CargoCmd {Show 28 fields
pub cargo_cmd: String,
pub message_format: Option<String>,
pub verbose: u8,
pub quiet: bool,
pub color: Option<String>,
pub config: Option<String>,
pub z: Option<String>,
pub package: Option<String>,
pub bin: Option<String>,
pub example: Option<String>,
pub features: Option<String>,
pub all_features: bool,
pub no_default_features: bool,
pub jobs: Option<String>,
pub keep_going: bool,
pub release: bool,
pub profile: Option<String>,
pub target: Option<String>,
pub target_dir: Option<String>,
pub unit_graph: bool,
pub timings: Option<String>,
pub manifest_path: Option<String>,
pub lockfile_path: Option<String>,
pub ignore_rust_version: bool,
pub locked: bool,
pub offline: bool,
pub frozen: bool,
pub args: Vec<String>,
}Expand description
Verbatim clone of cargo run args
Fields§
§cargo_cmd: StringError format
message_format: Option<String>§verbose: u8Use verbose output (-vv very verbose/build.rs output)
quiet: boolDo not print cargo log messages
color: Option<String>Coloring: auto, always, never
config: Option<String>Override a configuration value
z: Option<String>Unstable (nightly-only) flags to Cargo, see ‘cargo -Z help’ for details
package: Option<String>Package with the target to run
bin: Option<String>Name of the bin target to run
example: Option<String>Name of the example target to run
features: Option<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
jobs: Option<String>Number of parallel jobs, defaults to # of CPUs.
keep_going: boolDo not abort the build as soon as there is an error
release: boolBuild artifacts in release mode, with optimizations
profile: Option<String>Build artifacts with the specified profile
target: Option<String>Build for the target triple
target_dir: Option<String>Directory for all generated artifacts
unit_graph: boolOutput build graph in JSON (unstable)
timings: Option<String>Timing output formats (unstable) (comma separated): html, json
manifest_path: Option<String>Path to Cargo.toml
lockfile_path: Option<String>Path to Cargo.lock (unstable)
ignore_rust_version: boolIgnore rust-version specification in packages
locked: boolAssert that Cargo.lock will remain unchanged
offline: boolRun without accessing the network
frozen: boolEquivalent to specifying both –locked and –offline
args: Vec<String>Any additional arguments passed to cargo
Implementations§
Trait Implementations§
Source§impl Args for CargoCmd
impl Args for CargoCmd
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 CommandFactory for CargoCmd
impl CommandFactory for CargoCmd
Source§impl FromArgMatches for CargoCmd
impl FromArgMatches for CargoCmd
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 CargoCmd
impl Parser for CargoCmd
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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 CargoCmd
impl RefUnwindSafe for CargoCmd
impl Send for CargoCmd
impl Sync for CargoCmd
impl Unpin for CargoCmd
impl UnwindSafe for CargoCmd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more