pub fn explain_feature(
graph: &PackageGraph,
feature_resolution: Option<&FeatureView>,
query: &str,
) -> Result<FeatureExplanation, ExplainError>Expand description
Build a FeatureExplanation for package/feature. The
query string must contain a single / separating the package
name from the feature name; an unrecognized shape is rejected
with ExplainError::InvalidFeatureQuery.
ยงErrors
Returns ExplainError::InvalidFeatureQuery when query lacks a /
separator; propagates ExplainError::PackageNotFound or
ExplainError::AmbiguousPackageName from locate_package; and
returns ExplainError::FeatureNotFound when the package does not
declare the named feature (and it is not the default group).