Skip to content
Snippets Groups Projects
Unverified Commit 0400ed90 authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by GitHub
Browse files

Fix features (#1194)


* Manually fix conflicting ?

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove duplicates

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Autofix feature propagation

zepter lint propagate-feature --feature try-runtime --left-side-feature-missing=ignore --workspace --fix --feature-enables-dep="try-runtime:frame-try-runtime"
zepter lint propagate-feature --feature runtime-benchmarks --left-side-feature-missing=ignore --workspace --fix --feature-enables-dep="runtime-benchmarks:frame-benchmarking"
zepter lint propagate-feature --feature std --left-side-feature-missing=ignore --workspace --fix
zepter f f

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Bump zepter

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add some duplicates

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Revert "Add some duplicates"

This reverts commit c6ce6272

.

* Remove default enabled features

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Bump Zepter

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Bump in correct location :face_palm:



Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* DNM: Add some mistakes

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* DNM: Add some mistakes

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Revert "DNM: Add some mistakes"

This reverts commit d469b3f0.

* Revert "DNM: Add some mistakes"

This reverts commit d892a73a

.

---------

Signed-off-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
parent 6e394f84
Branches
No related merge requests found
Pipeline #384851 failed with stages
in 2 hours, 12 minutes, and 47 seconds
Showing
with 148 additions and 11 deletions
......@@ -32,4 +32,5 @@ std = [
"sp-runtime/std",
"sp-std/std",
"sp-trie/std",
"xcm/std",
]
......@@ -24,6 +24,7 @@ default = [ "std" ]
std = [
"codec/std",
"cumulus-primitives-core/std",
"polkadot-primitives/std",
"sp-runtime/std",
"sp-state-machine/std",
"sp-std/std",
......
......@@ -49,7 +49,6 @@ std = [
"frame-system/std",
"pallet-balances/std",
"pallet-glutton/std",
"pallet-glutton/std",
"pallet-sudo/std",
"pallet-timestamp/std",
"pallet-transaction-payment/std",
......
......@@ -96,7 +96,19 @@ sc-cli = { path = "../../../substrate/client/cli" }
substrate-test-utils = { path = "../../../substrate/test-utils" }
[features]
runtime-benchmarks = [ "polkadot-test-service/runtime-benchmarks" ]
runtime-benchmarks = [
"cumulus-pallet-parachain-system/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-im-online/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"polkadot-cli/runtime-benchmarks",
"polkadot-primitives/runtime-benchmarks",
"polkadot-service/runtime-benchmarks",
"polkadot-test-service/runtime-benchmarks",
"rococo-parachain-runtime/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
[[bench]]
name = "transaction_throughput"
......
......@@ -55,8 +55,10 @@ cli = [
"try-runtime-cli",
]
runtime-benchmarks = [
"frame-benchmarking-cli?/runtime-benchmarks",
"polkadot-node-metrics/runtime-benchmarks",
"polkadot-performance-test?/runtime-benchmarks",
"sc-service?/runtime-benchmarks",
"service/runtime-benchmarks",
]
full-node = [ "service/full-node" ]
......
......@@ -17,7 +17,6 @@ default = [ "std" ]
std = [
"parity-scale-codec/std",
"scale-info/std",
"scale-info/std",
"sp-core/std",
"sp-runtime/std",
"sp-std/std",
......
......@@ -38,4 +38,8 @@ prometheus-parse = {version = "0.2.2"}
[features]
default = []
runtime-metrics = []
runtime-benchmarks = []
runtime-benchmarks = [
"polkadot-test-service/runtime-benchmarks",
"primitives/runtime-benchmarks",
"sc-service/runtime-benchmarks",
]
......@@ -192,16 +192,39 @@ westend-native = [ "westend-runtime", "westend-runtime-constants" ]
rococo-native = [ "rococo-runtime", "rococo-runtime-constants" ]
runtime-benchmarks = [
"frame-benchmarking-cli/runtime-benchmarks",
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"kusama-runtime?/runtime-benchmarks",
"pallet-babe/runtime-benchmarks",
"pallet-im-online/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"polkadot-parachain/runtime-benchmarks",
"polkadot-primitives/runtime-benchmarks",
"polkadot-runtime-common/runtime-benchmarks",
"polkadot-runtime-parachains/runtime-benchmarks",
"polkadot-runtime?/runtime-benchmarks",
"polkadot-test-client/runtime-benchmarks",
"rococo-runtime?/runtime-benchmarks",
"sc-client-db/runtime-benchmarks",
"service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"westend-runtime?/runtime-benchmarks",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"kusama-runtime?/try-runtime",
"pallet-babe/try-runtime",
"pallet-im-online/try-runtime",
"pallet-staking/try-runtime",
"pallet-transaction-payment/try-runtime",
"polkadot-runtime-common/try-runtime",
"polkadot-runtime-parachains/try-runtime",
"polkadot-runtime?/try-runtime",
"rococo-runtime?/try-runtime",
"sp-runtime/try-runtime",
"westend-runtime?/try-runtime",
]
fast-runtime = [
......
......@@ -38,4 +38,11 @@ sp-keyring = { path = "../../../../substrate/primitives/keyring" }
futures = "0.3.21"
[features]
runtime-benchmarks=[ "polkadot-test-runtime/runtime-benchmarks" ]
runtime-benchmarks= [
"frame-benchmarking/runtime-benchmarks",
"polkadot-primitives/runtime-benchmarks",
"polkadot-test-runtime/runtime-benchmarks",
"polkadot-test-service/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
......@@ -27,4 +27,7 @@ name = "gen-ref-constants"
path = "src/gen_ref_constants.rs"
[features]
runtime-benchmarks = [ "kusama-runtime/runtime-benchmarks" ]
runtime-benchmarks = [
"kusama-runtime/runtime-benchmarks",
"polkadot-primitives/runtime-benchmarks",
]
......@@ -65,6 +65,15 @@ tokio = { version = "1.24.2", features = ["macros"] }
[features]
runtime-metrics=[ "polkadot-test-runtime/runtime-metrics" ]
runtime-benchmarks= [
"frame-system/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"polkadot-parachain/runtime-benchmarks",
"polkadot-primitives/runtime-benchmarks",
"polkadot-runtime-common/runtime-benchmarks",
"polkadot-runtime-parachains/runtime-benchmarks",
"polkadot-service/runtime-benchmarks",
"polkadot-test-runtime/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
......@@ -37,4 +37,7 @@ std = [
"sp-runtime/std",
"sp-std/std",
]
runtime-benchmarks = []
runtime-benchmarks = [
"frame-support/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
......@@ -23,4 +23,4 @@ substrate-wasm-builder = { path = "../../../../substrate/utils/wasm-builder" }
[features]
default = [ "std" ]
std = [ "parachain/std", "sp-std/std" ]
std = [ "parachain/std", "sp-io/std", "sp-std/std" ]
......@@ -24,4 +24,4 @@ substrate-wasm-builder = { path = "../../../../substrate/utils/wasm-builder" }
[features]
default = [ "std" ]
std = [ "parachain/std", "sp-std/std" ]
std = [ "parachain/std", "sp-io/std", "sp-std/std" ]
......@@ -50,4 +50,8 @@ std = [
"sp-staking/std",
"sp-std/std",
]
runtime-benchmarks = []
runtime-benchmarks = [
"polkadot-parachain/runtime-benchmarks",
"runtime_primitives/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
]
......@@ -68,6 +68,8 @@ experimental = [ "frame-support/experimental" ]
no_std = []
std = [
"bitvec/std",
"frame-benchmarking?/std",
"frame-election-provider-support/std",
"frame-support/std",
"frame-system/std",
"inherents/std",
......@@ -103,17 +105,33 @@ std = [
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-election-provider-support/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"libsecp256k1/hmac",
"libsecp256k1/static-context",
"pallet-babe/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-election-provider-multi-phase/runtime-benchmarks",
"pallet-fast-unstake/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"pallet-vesting/runtime-benchmarks",
"primitives/runtime-benchmarks",
"runtime-parachains/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
]
try-runtime = [
"frame-election-provider-support/try-runtime",
"frame-support-test/try-runtime",
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-authorship/try-runtime",
"pallet-babe?/try-runtime",
"pallet-balances/try-runtime",
"pallet-election-provider-multi-phase/try-runtime",
"pallet-fast-unstake/try-runtime",
"pallet-session/try-runtime",
"pallet-staking/try-runtime",
......@@ -122,4 +140,5 @@ try-runtime = [
"pallet-treasury/try-runtime",
"pallet-vesting/try-runtime",
"runtime-parachains/try-runtime",
"sp-runtime/try-runtime",
]
......@@ -132,11 +132,14 @@ std = [
"authority-discovery-primitives/std",
"babe-primitives/std",
"beefy-primitives/std",
"binary-merkle-tree/std",
"bitvec/std",
"block-builder-api/std",
"frame-benchmarking?/std",
"frame-election-provider-support/std",
"frame-executive/std",
"frame-support/std",
"frame-system-benchmarking?/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"frame-try-runtime/std",
......@@ -157,6 +160,7 @@ std = [
"pallet-conviction-voting/std",
"pallet-democracy/std",
"pallet-election-provider-multi-phase/std",
"pallet-election-provider-support-benchmarking?/std",
"pallet-elections-phragmen/std",
"pallet-fast-unstake/std",
"pallet-grandpa/std",
......@@ -168,8 +172,10 @@ std = [
"pallet-mmr/std",
"pallet-multisig/std",
"pallet-nis/std",
"pallet-nomination-pools-benchmarking?/std",
"pallet-nomination-pools-runtime-api/std",
"pallet-nomination-pools/std",
"pallet-offences-benchmarking?/std",
"pallet-offences/std",
"pallet-preimage/std",
"pallet-proxy/std",
......@@ -177,6 +183,7 @@ std = [
"pallet-recovery/std",
"pallet-referenda/std",
"pallet-scheduler/std",
"pallet-session-benchmarking?/std",
"pallet-session/std",
"pallet-society/std",
"pallet-staking-runtime-api/std",
......@@ -190,6 +197,7 @@ std = [
"pallet-utility/std",
"pallet-vesting/std",
"pallet-whitelist/std",
"pallet-xcm-benchmarks?/std",
"pallet-xcm/std",
"parity-scale-codec/std",
"primitives/std",
......@@ -210,6 +218,8 @@ std = [
"sp-session/std",
"sp-staking/std",
"sp-std/std",
"sp-storage/std",
"sp-tracing/std",
"sp-version/std",
"tx-pool-api/std",
"xcm-builder/std",
......@@ -240,11 +250,13 @@ runtime-benchmarks = [
"pallet-indices/runtime-benchmarks",
"pallet-membership/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
"pallet-mmr/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
"pallet-nis/runtime-benchmarks",
"pallet-nomination-pools-benchmarking/runtime-benchmarks",
"pallet-nomination-pools/runtime-benchmarks",
"pallet-offences-benchmarking/runtime-benchmarks",
"pallet-offences/runtime-benchmarks",
"pallet-preimage/runtime-benchmarks",
"pallet-proxy/runtime-benchmarks",
"pallet-ranked-collective/runtime-benchmarks",
......@@ -254,6 +266,7 @@ runtime-benchmarks = [
"pallet-session-benchmarking/runtime-benchmarks",
"pallet-society/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"pallet-state-trie-migration/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-tips/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
......@@ -262,15 +275,21 @@ runtime-benchmarks = [
"pallet-whitelist/runtime-benchmarks",
"pallet-xcm-benchmarks/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"primitives/runtime-benchmarks",
"runtime-common/runtime-benchmarks",
"runtime-parachains/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
]
try-runtime = [
"frame-election-provider-support/try-runtime",
"frame-executive/try-runtime",
"frame-support/try-runtime",
"frame-system/try-runtime",
"frame-try-runtime",
"frame-try-runtime/try-runtime",
"pallet-authority-discovery/try-runtime",
"pallet-authorship/try-runtime",
"pallet-babe/try-runtime",
......@@ -316,6 +335,8 @@ try-runtime = [
"pallet-whitelist/try-runtime",
"pallet-xcm/try-runtime",
"runtime-common/try-runtime",
"runtime-parachains/try-runtime",
"sp-runtime/try-runtime",
]
# When enabled, the runtime API will not be build.
#
......
......@@ -18,6 +18,7 @@ bs58 = { version = "0.4.0", default-features = false, features = ["alloc"] }
default = [ "std" ]
std = [
"bs58/std",
"frame-benchmarking?/std",
"parity-scale-codec/std",
"primitives/std",
"sp-std/std",
......
......@@ -67,6 +67,7 @@ default = [ "std" ]
no_std = []
std = [
"bitvec/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"inherents/std",
......@@ -81,12 +82,14 @@ std = [
"pallet-timestamp/std",
"pallet-vesting/std",
"parity-scale-codec/std",
"polkadot-parachain/std",
"polkadot-runtime-metrics/std",
"primitives/std",
"rustc-hex/std",
"scale-info/std",
"serde/std",
"sp-api/std",
"sp-application-crypto?/std",
"sp-core/std",
"sp-io/std",
"sp-keystore",
......@@ -107,12 +110,18 @@ runtime-benchmarks = [
"pallet-staking/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-vesting/runtime-benchmarks",
"polkadot-parachain/runtime-benchmarks",
"primitives/runtime-benchmarks",
"sp-application-crypto",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
"static_assertions",
"xcm-executor/runtime-benchmarks",
]
try-runtime = [
"frame-support-test/try-runtime",
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-authority-discovery/try-runtime",
"pallet-authorship/try-runtime",
"pallet-babe/try-runtime",
......@@ -122,6 +131,7 @@ try-runtime = [
"pallet-staking/try-runtime",
"pallet-timestamp/try-runtime",
"pallet-vesting/try-runtime",
"sp-runtime/try-runtime",
]
runtime-metrics = [
"polkadot-runtime-metrics/runtime-metrics",
......
......@@ -126,9 +126,11 @@ std = [
"beefy-primitives/std",
"bitvec/std",
"block-builder-api/std",
"frame-benchmarking?/std",
"frame-election-provider-support/std",
"frame-executive/std",
"frame-support/std",
"frame-system-benchmarking?/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"frame-try-runtime/std",
......@@ -146,6 +148,7 @@ std = [
"pallet-conviction-voting/std",
"pallet-democracy/std",
"pallet-election-provider-multi-phase/std",
"pallet-election-provider-support-benchmarking?/std",
"pallet-elections-phragmen/std",
"pallet-fast-unstake/std",
"pallet-grandpa/std",
......@@ -155,13 +158,16 @@ std = [
"pallet-membership/std",
"pallet-message-queue/std",
"pallet-multisig/std",
"pallet-nomination-pools-benchmarking?/std",
"pallet-nomination-pools-runtime-api/std",
"pallet-nomination-pools/std",
"pallet-offences-benchmarking?/std",
"pallet-offences/std",
"pallet-preimage/std",
"pallet-proxy/std",
"pallet-referenda/std",
"pallet-scheduler/std",
"pallet-session-benchmarking?/std",
"pallet-session/std",
"pallet-staking-runtime-api/std",
"pallet-staking/std",
......@@ -173,25 +179,29 @@ std = [
"pallet-utility/std",
"pallet-vesting/std",
"pallet-whitelist/std",
"pallet-xcm-benchmarks?/std",
"pallet-xcm/std",
"parity-scale-codec/std",
"polkadot-runtime-constants/std",
"primitives/std",
"runtime-common/std",
"runtime-parachains/std",
"rustc-hex/std",
"scale-info/std",
"serde/std",
"serde_derive",
"sp-api/std",
"sp-arithmetic/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-io/std",
"sp-mmr-primitives/std",
"sp-npos-elections/std",
"sp-runtime/std",
"sp-session/std",
"sp-staking/std",
"sp-std/std",
"sp-storage/std",
"sp-tracing/std",
"sp-version/std",
"tx-pool-api/std",
"xcm-builder/std",
......@@ -227,6 +237,7 @@ runtime-benchmarks = [
"pallet-nomination-pools-benchmarking/runtime-benchmarks",
"pallet-nomination-pools/runtime-benchmarks",
"pallet-offences-benchmarking/runtime-benchmarks",
"pallet-offences/runtime-benchmarks",
"pallet-preimage/runtime-benchmarks",
"pallet-proxy/runtime-benchmarks",
"pallet-referenda/runtime-benchmarks",
......@@ -241,15 +252,21 @@ runtime-benchmarks = [
"pallet-whitelist/runtime-benchmarks",
"pallet-xcm-benchmarks/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"primitives/runtime-benchmarks",
"runtime-common/runtime-benchmarks",
"runtime-parachains/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
]
try-runtime = [
"frame-election-provider-support/try-runtime",
"frame-executive/try-runtime",
"frame-support/try-runtime",
"frame-system/try-runtime",
"frame-try-runtime",
"frame-try-runtime/try-runtime",
"pallet-authority-discovery/try-runtime",
"pallet-authorship/try-runtime",
"pallet-babe/try-runtime",
......@@ -287,6 +304,8 @@ try-runtime = [
"pallet-whitelist/try-runtime",
"pallet-xcm/try-runtime",
"runtime-common/try-runtime",
"runtime-parachains/try-runtime",
"sp-runtime/try-runtime",
]
# When enabled, the runtime API will not be build.
#
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment