pub enum FeatureGateFix {
RootSelection,
DependencyEdge,
DevDependencyEdge,
UpstreamEdge,
}Expand description
Where a gated target’s missing required-features can be
enabled, driving BuildError::TargetDepRequiresFeatures’s
help text. CLI feature selection only applies to selected root
packages, so the actionable fix depends on how the gated
package entered the graph - not on which target referenced it.
Variants§
RootSelection
The gated package is a selected root: --features /
[features].default apply to it directly.
DependencyEdge
The gated package is reached through the consumer’s normal
[dependencies] edge: request the features there.
DevDependencyEdge
The gated package is reached through the consumer’s
activated [dev-dependencies] edge: request the features
there, never by promoting the dep to [dependencies].
UpstreamEdge
The gate sits inside a dependency package (an ungated dep target pulls a gated sibling): the enabling edge belongs to whichever package depends on it, upstream of the reported consumer.
Trait Implementations§
Source§impl Clone for FeatureGateFix
impl Clone for FeatureGateFix
Source§fn clone(&self) -> FeatureGateFix
fn clone(&self) -> FeatureGateFix
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FeatureGateFix
Source§impl Debug for FeatureGateFix
impl Debug for FeatureGateFix
impl Eq for FeatureGateFix
Source§impl PartialEq for FeatureGateFix
impl PartialEq for FeatureGateFix
Source§fn eq(&self, other: &FeatureGateFix) -> bool
fn eq(&self, other: &FeatureGateFix) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FeatureGateFix
Auto Trait Implementations§
impl Freeze for FeatureGateFix
impl RefUnwindSafe for FeatureGateFix
impl Send for FeatureGateFix
impl Sync for FeatureGateFix
impl Unpin for FeatureGateFix
impl UnsafeUnpin for FeatureGateFix
impl UnwindSafe for FeatureGateFix
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§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.