-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Crate-Specific Features via Umbrella Dependency #5934
Comments
Maybe as workaround you can try to enable the feature on the crate directly, since rust feature unification should then merge those. Just make sure to use pallet-balances = { version = "*", features = ["insecure_zero_ed"], default-features = false } Not sure if the For more long term solution guess we could do the concatenation with the features? But it can also turn quite ugly. WDYT @kianenigma ? |
Well, maybe we could simply do the same as the experimental feature and use only the feature name which will enable all crates having this feature name polkadot-sdk/umbrella/Cargo.toml Lines 525 to 530 in dada6ce
|
Depends on what features exactly. I assume that some of them would clash names, but for the big ones it should work. polkadot-sdk/scripts/generate-umbrella.py Line 113 in d73c56d
|
hmm this seems like an issue indeed. Combining names seems like a time bomb, I would not try this. For the ones that we have, we should indeed treat them like Long term, I hope we can reduce the number of custom feature flag we have. They are not meant to be a gate for "experimental" stuff. So the feature "insecure_zero_ed" would overall go away. |
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
While managing our dependencies through the Umbrella, we quickly encountered an issue where it seems we are unable to use internal features of the Umbrella's crates. (For instance,
insecure_zero_ed
from pallet-balances,historical
from pallet-session, etc.)Request
Enable the use of specific crate features through the Umbrella.
Solution
Have any design choices been considered for this case?
For example, we could import these features via the Umbrella by combining the crate name with the feature name, like so:
Are you willing to help with this request?
Maybe (please elaborate above)
The text was updated successfully, but these errors were encountered: