Struct cargo_options::Metadata
source · 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: bool
Do not print cargo log messages
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
verbose: u8
Use verbose output (-vv very verbose/build.rs output)
filter_platform: Vec<String>
Only include resolve dependencies matching the given target-triple
no_deps: bool
Output 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: 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
Implementations§
Trait Implementations§
source§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>
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 Metadata
impl Parser for Metadata
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os()
, return Err on error.