mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 19:45:41 +00:00
construct_runtime: Fix generation of types behind features (#12229)
* construct_runtime: Fix generation of types behind features With the recent addition of supporting features in `construct_runtime!` there was a bug overseen. The `AllPalletsWithSystem` etc type declarations would be declared twice when a certain was enabled. The problem was that in the macro we didn't feature gate the types that should be declared when there is no feature enabled. This pull request now takes care of feature gating this type behind `all(#( not(feature) ))`. So, these types will only be enabled if no of the configured features is enabled. * Fix tests * FMT
This commit is contained in:
@@ -47,9 +47,10 @@ std = [
|
||||
"sp-version/std",
|
||||
]
|
||||
try-runtime = ["frame-support/try-runtime"]
|
||||
# WARNING: CI only execute pallet test with this feature,
|
||||
# if the feature intended to be used outside, CI and this message need to be updated.
|
||||
conditional-storage = []
|
||||
# WARNING:
|
||||
# Only CI runs with this feature enabled. This feature is for testing stuff related to the FRAME macros
|
||||
# in conjunction with rust features.
|
||||
frame-feature-testing = []
|
||||
# Disable ui tests
|
||||
disable-ui-tests = []
|
||||
no-metadata-docs = ["frame-support/no-metadata-docs"]
|
||||
|
||||
Reference in New Issue
Block a user