Struct cargo_update::Options
source · [−]pub struct Options {Show 13 fields
pub to_update: Vec<(String, Option<Semver>, String)>,
pub all: bool,
pub update: bool,
pub install: bool,
pub force: bool,
pub downdate: bool,
pub update_git: bool,
pub quiet: bool,
pub filter: Vec<PackageFilterElement>,
pub cargo_dir: PathBuf,
pub temp_dir: PathBuf,
pub cargo_install_args: Vec<OsString>,
pub install_cargo: OsString,
}
Expand description
Representation of the application’s all configurable values.
Fields
to_update: Vec<(String, Option<Semver>, String)>
(Additional) packages to update. Default: []
all: bool
Whether to update all packages. Default: false
update: bool
Whether to update packages or just list them. Default: true
install: bool
Whether to allow for just installing packages. Default: false
force: bool
Update all packages. Default: false
downdate: bool
Downdate packages to match newest unyanked registry version.
update_git: bool
Update git packages too (it’s expensive). Default: false
quiet: bool
Don’t output messages and pass –quiet to cargo
subprocesses. Default: false
filter: Vec<PackageFilterElement>
Update all packages. Default: empty
cargo_dir: PathBuf
The cargo
home directory. Default: "$CARGO_INSTALL_ROOT"
, then "$CARGO_HOME"
, then "$HOME/.cargo"
temp_dir: PathBuf
The temporary directory to clone git repositories to. Default: "$TEMP/cargo-update"
cargo_install_args: Vec<OsString>
Arbitrary arguments to forward to cargo install
, acquired from $CARGO_INSTALL_OPTS
. Default: []
install_cargo: OsString
The cargo to run for installations. Default: "cargo"