Enum cargo_hackerman::opts::Action
source · [−]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: Profiledry: booldon’t perform action, only display it
lock: boolInclude dependencies checksum into stash
no_dev: boolDon’t unify dev dependencies
Unify crate dependencies across individual crates in the workspace
Restore
Remove crate dependency unification added by the ‘hack’ command
Check
Check if unification is required and if checksums are correct
MergeDriver
Restore files and merge with the default merge driver
Explain
Fields
profile: Profileno_transitive_opt: boolDon’t strip redundant links
package_nodes: boolUse package nodes instead of feature nodes
krate: StringExplain why some dependency is present. Both feature and version are optional
Dupes
Fields
profile: ProfileLists all the duplicates in the workspace
Tree
Fields
profile: Profileno_transitive_opt: boolDon’t strip redundant links
no_dev: boolDon’t include dev dependencies
package_nodes: boolUse package nodes instead of feature nodes
workspace: boolKeep within the workspace
Make a tree out of dependencies
ShowCrate
Show info about a crate
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more