pub struct Metadata {Show 15 fields
pub quiet: bool,
pub features: Vec<String>,
pub all_features: bool,
pub no_default_features: bool,
pub verbose: u8,
pub filter_platform: Vec<String>,
pub no_deps: bool,
pub manifest_path: Option<PathBuf>,
pub format_version: Option<String>,
pub color: Option<String>,
pub frozen: bool,
pub locked: bool,
pub offline: bool,
pub config: Vec<String>,
pub unstable_flags: Vec<String>,
}Expand description
Output the resolved dependencies of a package, the concrete used versions including overrides, in machine-readable format
Fields§
§quiet: boolDo not print cargo log messages
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
verbose: u8Use verbose output (-vv very verbose/build.rs output)
filter_platform: Vec<String>Only include resolve dependencies matching the given target-triple
no_deps: boolOutput information only about the workspace members and don’t fetch dependencies
manifest_path: Option<PathBuf>Path to Cargo.toml
format_version: Option<String>Format version
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
Implementations§
Trait Implementations§
Source§impl Args for Metadata
impl Args for Metadata
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 CommandFactory for Metadata
impl CommandFactory for Metadata
Source§impl FromArgMatches for Metadata
impl FromArgMatches for Metadata
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 Metadata
impl Parser for Metadata
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 Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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