pub enum ConfigOperation {
Show 15 variants
SetToolchain(String),
RemoveToolchain,
DefaultFeatures(bool),
AddFeature(String),
RemoveFeature(String),
SetBuildProfile(Cow<'static, str>),
SetInstallPrereleases(bool),
SetEnforceLock(bool),
SetRespectBinaries(bool),
SetTargetVersion(VersionReq),
RemoveTargetVersion,
SetEnvironment(String, String),
ClearEnvironment(String),
InheritEnvironment(String),
ResetConfig,
}Expand description
A single operation to be executed upon configuration of a package.
Variants§
SetToolchain(String)
Set the toolchain to use to compile the package.
RemoveToolchain
Use the default toolchain to use to compile the package.
DefaultFeatures(bool)
Whether to compile the package with the default features.
AddFeature(String)
Compile the package with the specified feature.
RemoveFeature(String)
Remove the feature from the list of features to compile with.
SetBuildProfile(Cow<'static, str>)
Set build profile (dev/release/~/.cargo/config.toml [profile.gaming]/&c.)
SetInstallPrereleases(bool)
Set allowing to install prereleases to the specified value.
SetEnforceLock(bool)
Set enforcing Cargo.lock to the specified value.
SetRespectBinaries(bool)
Set installing only the pre-set binaries.
SetTargetVersion(VersionReq)
Constrain the installed to the specified one.
RemoveTargetVersion
Always install latest package version.
SetEnvironment(String, String)
Set environment variable to given value for cargo install.
ClearEnvironment(String)
Remove environment variable for cargo install.
InheritEnvironment(String)
Remove configuration for an environment variable.
ResetConfig
Reset configuration to default values.
Trait Implementations§
Source§impl Clone for ConfigOperation
impl Clone for ConfigOperation
Source§fn clone(&self) -> ConfigOperation
fn clone(&self) -> ConfigOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfigOperation
impl Debug for ConfigOperation
Source§impl Hash for ConfigOperation
impl Hash for ConfigOperation
Source§impl PartialEq for ConfigOperation
impl PartialEq for ConfigOperation
impl Eq for ConfigOperation
impl StructuralPartialEq for ConfigOperation
Auto Trait Implementations§
impl Freeze for ConfigOperation
impl RefUnwindSafe for ConfigOperation
impl Send for ConfigOperation
impl Sync for ConfigOperation
impl Unpin for ConfigOperation
impl UnwindSafe for ConfigOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.