Skip to content

Commit

Permalink
chore: fix cargo features (#4249)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen committed Nov 17, 2023
1 parent 7e4b06a commit f4975c8
Show file tree
Hide file tree
Showing 23 changed files with 60 additions and 5 deletions.
1 change: 1 addition & 0 deletions state-chain/chains/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ rand = { version = '0.8.4' }
[features]
default = ['std']
std = [
'bech32/std',
'cf-primitives/std',
'cf-utilities/std',
'scale-info/std',
Expand Down
14 changes: 13 additions & 1 deletion state-chain/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,20 @@ runtime-benchmarks = [
"state-chain-runtime/runtime-benchmarks",
"frame-benchmarking/runtime-benchmarks",
"frame-benchmarking-cli/runtime-benchmarks",
"cf-chains/runtime-benchmarks",
"cf-primitives/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
try-runtime = [
"state-chain-runtime/try-runtime",
"try-runtime-cli/try-runtime",
"frame-system/try-runtime",
"pallet-transaction-payment/try-runtime",
"sp-runtime/try-runtime",

]
try-runtime = ["state-chain-runtime/try-runtime", "try-runtime-cli/try-runtime"]

[package.metadata.deb]
depends = "$auto, systemd"
Expand Down
1 change: 1 addition & 0 deletions state-chain/pallets/cf-account-roles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ runtime-benchmarks = [
]
try-runtime = [
'frame-support/try-runtime',
'frame-system/try-runtime',
'cf-runtime-upgrade-utilities/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-broadcast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-chain-tracking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-emissions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-environment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
8 changes: 7 additions & 1 deletion state-chain/pallets/cf-flip/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,11 @@ runtime-benchmarks = [
'frame-system/runtime-benchmarks',
'cf-primitives/runtime-benchmarks',
'cf-traits/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
]
try-runtime = [
'frame-support/try-runtime',
'frame-system/try-runtime',
'sp-runtime/try-runtime',
'pallet-transaction-payment/try-runtime',
]
try-runtime = ['frame-support/try-runtime']
1 change: 1 addition & 0 deletions state-chain/pallets/cf-funding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ std = [
'frame-system/std',
'log/std',
'scale-info/std',
'sp-std/std',
]
runtime-benchmarks = [
'cf-chains/runtime-benchmarks',
Expand Down
1 change: 1 addition & 0 deletions state-chain/pallets/cf-governance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ runtime-benchmarks = [
]
try-runtime = [
'frame-support/try-runtime',
'frame-system/try-runtime',
'cf-runtime-upgrade-utilities/try-runtime',
]
5 changes: 5 additions & 0 deletions state-chain/pallets/cf-ingress-egress/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ std = [
'cf-primitives/std',
'cf-traits/std',
'cf-runtime-upgrade-utilities/std',
'cf-runtime-utilities/std',
'codec/std',
'frame-benchmarking?/std',
'frame-support/std',
'frame-system/std',
'scale-info/std',
'sp-runtime/std',
'sp-std/std',
'log/std',
]
runtime-benchmarks = [
'cf-chains/runtime-benchmarks',
Expand All @@ -65,8 +67,11 @@ runtime-benchmarks = [
'frame-support/runtime-benchmarks',
'frame-system/runtime-benchmarks',
'pallet-cf-governance/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
]
try-runtime = [
'frame-support/try-runtime',
'frame-system/try-runtime',
'sp-runtime/try-runtime',
'cf-runtime-upgrade-utilities/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-lp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
2 changes: 1 addition & 1 deletion state-chain/pallets/cf-pools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ runtime-benchmarks = [
'frame-system/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
]
try-runtime = ['frame-support/try-runtime']
try-runtime = ['frame-support/try-runtime', 'frame-system/try-runtime']
2 changes: 2 additions & 0 deletions state-chain/pallets/cf-reputation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ runtime-benchmarks = [
'frame-benchmarking/runtime-benchmarks',
'frame-support/runtime-benchmarks',
'frame-system/runtime-benchmarks',
'sp-staking/runtime-benchmarks',
]
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-swapping/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
4 changes: 4 additions & 0 deletions state-chain/pallets/cf-threshold-signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ default = ['std']
std = [
'cf-chains/std',
'cf-primitives/std',
'cf-runtime-utilities/std',
'cf-runtime-upgrade-utilities/std',
'cf-traits/std',
'codec/std',
Expand All @@ -76,4 +77,7 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
'pallet-cf-reputation/try-runtime',
'pallet-cf-validator/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-tokenholder-governance/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
11 changes: 10 additions & 1 deletion state-chain/pallets/cf-validator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ std = [
'frame-support/std',
'frame-system/std',
'log/std',
'nanorand/std',
'pallet-cf-vaults/std',
'pallet-cf-funding/std',
'pallet-cf-reputation/std',
'pallet-session/std',
'scale-info/std',
'serde/std',
'sp-application-crypto/std',
'sp-core/std',
'sp-std/std',
]
Expand All @@ -81,11 +85,16 @@ runtime-benchmarks = [
'frame-support/runtime-benchmarks',
'frame-system/runtime-benchmarks',
'pallet-cf-funding/runtime-benchmarks',
'pallet-cf-reputation',
'pallet-cf-reputation/runtime-benchmarks',
'pallet-cf-vaults/runtime-benchmarks',
'dep:sp-application-crypto',
]
try-runtime = [
'frame-support/try-runtime',
'frame-system/try-runtime',
'cf-runtime-upgrade-utilities/try-runtime',
'pallet-cf-funding/try-runtime',
'pallet-cf-reputation/try-runtime',
'pallet-cf-vaults/try-runtime',
'pallet-session/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/pallets/cf-vaults/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ runtime-benchmarks = [
try-runtime = [
'cf-runtime-upgrade-utilities/try-runtime',
'frame-support/try-runtime',
'frame-system/try-runtime',
]
3 changes: 2 additions & 1 deletion state-chain/pallets/cf-witnesser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ std = [
'frame-benchmarking?/std',
'frame-support/std',
'frame-system/std',
'hex/std',
'scale-info/std',
'sp-std/std',
]
Expand All @@ -65,4 +66,4 @@ runtime-benchmarks = [
'frame-support/runtime-benchmarks',
'frame-system/runtime-benchmarks',
]
try-runtime = ['frame-support/try-runtime']
try-runtime = ['frame-support/try-runtime', 'frame-system/try-runtime']
1 change: 1 addition & 0 deletions state-chain/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sp-core = { git = "https://github.com/chainflip-io/substrate.git", tag = "chainf
default = ['std']
std = [
'codec/std',
'ethabi/std',
'frame-support/std',
'dep:hex',
'scale-info/std',
Expand Down
2 changes: 2 additions & 0 deletions state-chain/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ runtime-benchmarks = [
'pallet-cf-validator/runtime-benchmarks',
'pallet-cf-vaults/runtime-benchmarks',
'pallet-cf-witnesser/runtime-benchmarks',
'pallet-grandpa/runtime-benchmarks',
'pallet-timestamp/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
]
Expand Down Expand Up @@ -220,4 +221,5 @@ try-runtime = [
'pallet-grandpa/try-runtime',
'pallet-session/try-runtime',
'pallet-authorship/try-runtime',
'sp-runtime/try-runtime',
]
1 change: 1 addition & 0 deletions state-chain/traits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ runtime-benchmarks = [
'frame-benchmarking/runtime-benchmarks',
'frame-support/runtime-benchmarks',
'frame-system/runtime-benchmarks',
'sp-runtime/runtime-benchmarks',
]

0 comments on commit f4975c8

Please sign in to comment.