Struct guppy::graph::summaries::CargoOptionsSummary[][src]

#[non_exhaustive]pub struct CargoOptionsSummary {
    pub version: CargoResolverVersion,
    pub include_dev: bool,
    pub initials_platform: InitialsPlatformSummary,
    pub host_platform: Option<PlatformSummary>,
    pub target_platform: Option<PlatformSummary>,
    pub omitted_packages: BTreeSet<SummaryId>,
    pub features_only: Vec<FeaturesOnlySummary>,
}

A summary of Cargo options used to build a CargoSet.

Requires the summaries feature to be enabled.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
version: CargoResolverVersion

The version of resolver used.

include_dev: bool

Whether dev-dependencies are included.

initials_platform: InitialsPlatformSummary

The platform for which the initials are specified.

host_platform: Option<PlatformSummary>

The host platform.

target_platform: Option<PlatformSummary>

The target platform.

omitted_packages: BTreeSet<SummaryId>

The set of packages omitted from computations.

features_only: Vec<FeaturesOnlySummary>

The packages that formed the features-only set.

Implementations

impl CargoOptionsSummary[src]

pub fn new(
    graph: &PackageGraph,
    features_only: &FeatureSet<'_>,
    opts: &CargoOptions<'_>
) -> Result<Self, Error>
[src]

Creates a new CargoOptionsSummary from the given Cargo options.

pub fn to_cargo_options<'g>(
    &'g self,
    package_graph: &'g PackageGraph
) -> Result<CargoOptions<'g>, Error>
[src]

Creates a new CargoOptions from this summary.

Trait Implementations

impl Clone for CargoOptionsSummary[src]

impl Debug for CargoOptionsSummary[src]

impl<'de> Deserialize<'de> for CargoOptionsSummary[src]

impl Eq for CargoOptionsSummary[src]

impl PartialEq<CargoOptionsSummary> for CargoOptionsSummary[src]

impl Serialize for CargoOptionsSummary[src]

impl StructuralEq for CargoOptionsSummary[src]

impl StructuralPartialEq for CargoOptionsSummary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,