pub struct Install {Show 21 fields
pub common: CommonOptions,
pub version: Option<String>,
pub git: Option<String>,
pub branch: Option<String>,
pub tag: Option<String>,
pub rev: Option<String>,
pub path: Option<PathBuf>,
pub list: bool,
pub force: bool,
pub dry_run: bool,
pub no_track: bool,
pub debug: bool,
pub root: Option<PathBuf>,
pub index: Option<String>,
pub registry: Option<String>,
pub ignore_rust_version: bool,
pub bin: Vec<String>,
pub bins: bool,
pub example: Vec<String>,
pub examples: bool,
pub crates: Vec<String>,
}Expand description
Install a Rust binary
Fields§
§common: CommonOptions§version: Option<String>Specify a version to install
git: Option<String>Git URL to install the specified crate from
branch: Option<String>Branch to use when installing from git
tag: Option<String>Tag to use when installing from git
rev: Option<String>Specific commit to use when installing from git
path: Option<PathBuf>Filesystem path to local crate to install from
list: boolList all installed packages and their versions
force: boolForce overwriting existing crates or binaries
dry_run: boolPerform all checks without installing (unstable)
no_track: boolDo not save tracking information
debug: boolBuild in debug mode (with the ‘dev’ profile) instead of release mode
root: Option<PathBuf>Directory to install packages into
index: Option<String>Registry index to install from
registry: Option<String>Registry to use
ignore_rust_version: boolIgnore rust-version specification in packages
bin: Vec<String>Install only the specified binary
bins: boolInstall all binaries
example: Vec<String>Install only the specified example
examples: boolInstall all examples
crates: Vec<String>Select the package from the given source
Implementations§
Methods from Deref<Target = CommonOptions>§
Trait Implementations§
Source§impl Args for Install
impl Args for Install
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 Install
impl CommandFactory for Install
Source§impl FromArgMatches for Install
impl FromArgMatches for Install
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.