pub enum Action {
    Hack {
        profile: Profile,
        dry: bool,
        lock: bool,
        no_dev: bool,
    },
    Restore {
        profile: Profile,
        single: Option<PathBuf>,
    },
    Check {
        profile: Profile,
        no_dev: bool,
    },
    MergeDriver {
        base: PathBuf,
        local: PathBuf,
        remote: PathBuf,
        result: PathBuf,
    },
    Explain {
        profile: Profile,
        no_transitive_opt: bool,
        package_nodes: bool,
        krate: String,
        feature: Option<String>,
        version: Option<Version>,
    },
    Dupes {
        profile: Profile,
    },
    Tree {
        profile: Profile,
        no_transitive_opt: bool,
        no_dev: bool,
        package_nodes: bool,
        workspace: bool,
        krate: Option<String>,
        feature: Option<String>,
        version: Option<Version>,
    },
    ShowCrate {
        profile: Profile,
        focus: Focus,
        krate: String,
        version: Option<Version>,
    },
}

Variants

Hack

Fields

profile: Profile
dry: bool

don’t perform action, only display it

lock: bool

Include dependencies checksum into stash

no_dev: bool

Don’t unify dev dependencies

Unify crate dependencies across individual crates in the workspace

Restore

Fields

profile: Profile
single: Option<PathBuf>

Restore single file instead of the whole workspace

Remove crate dependency unification added by the ‘hack’ command

Check

Fields

profile: Profile
no_dev: bool

Don’t unify dev dependencies

Check if unification is required and if checksums are correct

MergeDriver

Fields

base: PathBuf
local: PathBuf
remote: PathBuf
result: PathBuf

Restore files and merge with the default merge driver

Explain

Fields

profile: Profile
no_transitive_opt: bool

Don’t strip redundant links

package_nodes: bool

Use package nodes instead of feature nodes

krate: String
feature: Option<String>
version: Option<Version>

Explain why some dependency is present. Both feature and version are optional

Dupes

Fields

profile: Profile

Lists all the duplicates in the workspace

Tree

Fields

profile: Profile
no_transitive_opt: bool

Don’t strip redundant links

no_dev: bool

Don’t include dev dependencies

package_nodes: bool

Use package nodes instead of feature nodes

workspace: bool

Keep within the workspace

krate: Option<String>
feature: Option<String>
version: Option<Version>

Make a tree out of dependencies

ShowCrate

Fields

profile: Profile
focus: Focus
krate: String
version: Option<Version>

Show info about a crate

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more