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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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

The type of parameters that arbitrary_with accepts for configuration of the generated Strategy. Parameters must implement Default. Read more

The type of Strategy used to generate values of type Self. Read more

Generates a Strategy for producing arbitrary values of type the implementing type (Self). The strategy is passed the arguments given in args. Read more

Generates a Strategy for producing arbitrary values of type the implementing type (Self). Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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)

recently added

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.