Enum guppy::graph::cargo::CargoResolverVersion [−][src]
#[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
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for CargoResolverVersion
impl Send for CargoResolverVersion
impl Sync for CargoResolverVersion
impl Unpin for CargoResolverVersion
impl UnwindSafe for CargoResolverVersion
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.