Is it possible to have a feature enable a dependency feature but only if that dependency is otherwise enabled?
[package]
name = "dep"
[features]
featureA = []
and:
[package]
name = "applib"
[features]
use_dep = ["dep"]
featureA = ["dep/featureA"]
So featureA
exists in both packages, and I'd like to pass it through to dep
, but only if use_dep
is specified. Is there a way to do this in cargo without creating use_dep_with_featureA
?
Thanks!