Struct cargo_update::Options[][src]

pub struct Options {
    pub to_update: Vec<(String, Option<Semver>)>,
    pub update: bool,
    pub install: bool,
    pub force: bool,
    pub update_git: bool,
    pub filter: Vec<PackageFilterElement>,
    pub crates_file: (String, PathBuf),
    pub cargo_dir: (String, PathBuf),
    pub temp_dir: (String, PathBuf),
}

Representation of the application's all configurable values.

Fields

Packages to update. Default: None

If empty - update all.

Whether to update packages or just list them. Default: true

Whether to allow for just installing packages. Default: false

Update all packages. Default: false

Update git packages too (it's expensive). Default: false

Update all packages. Default: empty

The .crates.toml file in the cargo home directory. Default: in "$CARGO_INSTALL_ROOT", then "$CARGO_HOME", then "$HOME/.cargo"

The cargo home directory. Default: "$CARGO_HOME", then "$HOME/.cargo"

The temporary directory to clone git repositories to. Default: "$TEMP/cargo-update"

Methods

impl Options
[src]

Parse env-wide command-line arguments into an Options instance

Trait Implementations

impl Debug for Options
[src]

Formats the value using the given formatter. Read more

impl Clone for Options
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Options
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Options
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Options
[src]

Auto Trait Implementations

impl Send for Options

impl Sync for Options