Enum guppy::graph::cargo::CargoResolverVersion
source · #[non_exhaustive]pub enum CargoResolverVersion {
V1,
V1Install,
V2,
}
Expand description
The version of Cargo’s feature resolver to use.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
V1
The “classic” feature resolver in Rust.
This feature resolver unifies features across inactive platforms, and also unifies features across normal, build and dev dependencies for initials. This may produce results that are surprising at times.
V1Install
The “classic” feature resolver in Rust, as used by commands like cargo install
.
This resolver is the same as V1
, except it doesn’t unify features across dev dependencies
for initials. However, if CargoOptions::with_dev_deps
is set to true, it behaves
identically to the V1 resolver.
For more, see avoid-dev-deps in the Cargo reference.
V2
Version 2 of the feature resolver, available since Rust 1.51. This feature resolver does not unify features:
- across host (build) and target (regular) dependencies
- with dev-dependencies for initials, if tests aren’t currently being built
- with platform-specific dependencies that are currently inactive
Version 2 of the feature resolver can be enabled by specifying resolver = "2"
in the
workspace’s Cargo.toml
.
Trait Implementations§
source§impl Clone for CargoResolverVersion
impl Clone for CargoResolverVersion
source§fn clone(&self) -> CargoResolverVersion
fn clone(&self) -> CargoResolverVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CargoResolverVersion
impl Debug for CargoResolverVersion
source§impl<'de> Deserialize<'de> for CargoResolverVersion
impl<'de> Deserialize<'de> for CargoResolverVersion
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Hash for CargoResolverVersion
impl Hash for CargoResolverVersion
source§impl PartialEq for CargoResolverVersion
impl PartialEq for CargoResolverVersion
source§impl Serialize for CargoResolverVersion
impl Serialize for CargoResolverVersion
impl Copy for CargoResolverVersion
impl Eq for CargoResolverVersion
impl StructuralPartialEq for CargoResolverVersion
Auto Trait Implementations§
impl Freeze for CargoResolverVersion
impl RefUnwindSafe for CargoResolverVersion
impl Send for CargoResolverVersion
impl Sync for CargoResolverVersion
impl Unpin for CargoResolverVersion
impl UnwindSafe for CargoResolverVersion
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.