Struct cargo_options::Install
source · pub struct Install {Show 19 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 no_track: bool,
pub debug: bool,
pub root: Option<PathBuf>,
pub index: Option<String>,
pub registry: Option<String>,
pub bin: Vec<String>,
pub bins: bool,
pub example: Vec<String>,
pub examples: bool,
pub crates: Vec<String>,
}
Expand description
Install a Rust binary. Default location is $HOME/.cargo/bin
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
list: bool
list all installed packages and their versions
force: bool
Force overwriting existing crates or binaries
no_track: bool
Do not save tracking information
debug: bool
Build 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
bin: Vec<String>
Install only the specified binary
bins: bool
Install all binaries
example: Vec<String>
Install only the specified example
examples: bool
Install all examples
crates: Vec<String>
Implementations§
Methods from Deref<Target = CommonOptions>§
Trait Implementations§
source§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>
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 Install
impl Parser for Install
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os()
, return Err on error.source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.