[][src]Struct cargo_update::Options

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

Representation of the application's all configurable values.

Fields

to_update: Vec<(String, Option<Semver>)>

(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

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

crates_file: (String, PathBuf)

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

cargo_dir: (String, PathBuf)

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

temp_dir: (String, 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: []

Methods

impl Options[src]

pub fn parse() -> Options[src]

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

Trait Implementations

impl Clone for Options[src]

impl Debug for Options[src]

impl Eq for Options[src]

impl Hash for Options[src]

impl PartialEq<Options> for Options[src]

impl StructuralEq for Options[src]

impl StructuralPartialEq for Options[src]

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.