Skip to content

Commit 87b26ed

Browse files
ggwpezxlc
andauthored
Remove dev-only features (#967)
* Update Zepter config Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove dep features zepter transpose features strip-dev-only Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Bump version Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fix bad deps * fix runtime-benchmarks feature * fix features --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Bryan Chen <[email protected]>
1 parent b45942e commit 87b26ed

File tree

17 files changed

+12
-116
lines changed

17 files changed

+12
-116
lines changed

.config/zepter.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version:
66
format: 1
77
# Minimum version of the binary that is expected to work. This is just for printing a nice error
88
# message when someone tries to use an older version.
9-
binary: 0.13.2
9+
binary: 0.15.0
1010

1111
# The examples in this file assume crate `A` to have a dependency on crate `B`.
1212
workflows:
@@ -18,6 +18,8 @@ workflows:
1818
'propagate-feature',
1919
# These are the features to check:
2020
'--features=try-runtime,runtime-benchmarks,std',
21+
# Ignore the features of dependencies that are exclusively used as dev or build.
22+
'--dep-kinds=normal:check,dev:ignore,build:ignore',
2123
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually.
2224
'--left-side-feature-missing=ignore',
2325
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Check for Wasm
4141
run: make dev-check
4242
- name: Install Zepter
43-
run: cargo install zepter --version 0.14.0 --locked -q -f --no-default-features && zepter --version
43+
run: cargo install zepter --version 0.15.0 --locked -q -f --no-default-features && zepter --version
4444
- name: Check Rust features
4545
run: make dev-features-check
4646
- name: Run tests

asset-registry/Cargo.toml

+6-34
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ xcm-executor = { workspace = true }
2929
# orml
3030
orml-traits = { path = "../traits", version = "0.5.0-dev", default-features = false }
3131

32+
# for runtime-benchmarks
33+
polkadot-runtime-common = { workspace = true, optional = true }
34+
3235
[dev-dependencies]
3336
# substrate
3437
pallet-balances = { workspace = true, features = ["std"] }
@@ -53,33 +56,21 @@ xcm-simulator = { workspace = true }
5356
# orml
5457
orml-tokens = { path = "../tokens" }
5558
orml-xcm = { path = "../xcm" }
56-
orml-xcm-support = { path = "../xcm-support", default-features = false }
59+
orml-xcm-support = { path = "../xcm-support" }
5760
orml-xtokens = { path = "../xtokens" }
5861

5962
[features]
6063
default = [ "std" ]
6164
std = [
62-
"cumulus-pallet-dmp-queue/std",
63-
"cumulus-pallet-parachain-system/std",
64-
"cumulus-pallet-xcm/std",
65-
"cumulus-pallet-xcmp-queue/std",
66-
"cumulus-primitives-core/std",
6765
"frame-support/std",
6866
"frame-system/std",
6967
"log/std",
7068
"orml-traits/std",
71-
"orml-xcm-support/std",
72-
"pallet-balances/std",
73-
"pallet-message-queue/std",
7469
"pallet-xcm/std",
75-
"parachain-info/std",
7670
"parity-scale-codec/std",
77-
"polkadot-parachain-primitives/std",
78-
"polkadot-runtime-common/std",
79-
"polkadot-runtime-parachains/std",
71+
"polkadot-runtime-common?/std",
8072
"scale-info/std",
8173
"serde",
82-
"sp-core/std",
8374
"sp-io/std",
8475
"sp-runtime/std",
8576
"sp-std/std",
@@ -88,37 +79,18 @@ std = [
8879
"xcm/std",
8980
]
9081
runtime-benchmarks = [
91-
"cumulus-pallet-parachain-system/runtime-benchmarks",
92-
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
9382
"frame-support/runtime-benchmarks",
9483
"frame-system/runtime-benchmarks",
95-
"orml-tokens/runtime-benchmarks",
96-
"orml-xtokens/runtime-benchmarks",
97-
"pallet-balances/runtime-benchmarks",
98-
"pallet-message-queue/runtime-benchmarks",
9984
"pallet-xcm/runtime-benchmarks",
100-
"polkadot-parachain-primitives/runtime-benchmarks",
10185
"polkadot-runtime-common/runtime-benchmarks",
102-
"polkadot-runtime-parachains/runtime-benchmarks",
10386
"sp-runtime/runtime-benchmarks",
10487
"xcm-builder/runtime-benchmarks",
10588
"xcm-executor/runtime-benchmarks",
10689
]
10790
try-runtime = [
108-
"cumulus-pallet-dmp-queue/try-runtime",
109-
"cumulus-pallet-parachain-system/try-runtime",
110-
"cumulus-pallet-xcm/try-runtime",
111-
"cumulus-pallet-xcmp-queue/try-runtime",
11291
"frame-support/try-runtime",
11392
"frame-system/try-runtime",
114-
"orml-tokens/try-runtime",
115-
"orml-xcm/try-runtime",
116-
"orml-xtokens/try-runtime",
117-
"pallet-balances/try-runtime",
118-
"pallet-message-queue/try-runtime",
11993
"pallet-xcm/try-runtime",
120-
"parachain-info/try-runtime",
121-
"polkadot-runtime-common/try-runtime",
122-
"polkadot-runtime-parachains/try-runtime",
94+
"polkadot-runtime-common?/try-runtime",
12395
"sp-runtime/try-runtime",
12496
]

auction/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ std = [
3232
"parity-scale-codec/std",
3333
"scale-info/std",
3434
"serde",
35-
"sp-core/std",
36-
"sp-io/std",
3735
"sp-runtime/std",
3836
"sp-std/std",
3937
]

authority/Cargo.toml

-8
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ default = [ "std" ]
3030
std = [
3131
"frame-support/std",
3232
"frame-system/std",
33-
"pallet-preimage/std",
34-
"pallet-root-testing/std",
35-
"pallet-scheduler/std",
3633
"parity-scale-codec/std",
3734
"scale-info/std",
3835
"serde",
@@ -44,15 +41,10 @@ std = [
4441
runtime-benchmarks = [
4542
"frame-support/runtime-benchmarks",
4643
"frame-system/runtime-benchmarks",
47-
"pallet-preimage/runtime-benchmarks",
48-
"pallet-scheduler/runtime-benchmarks",
4944
"sp-runtime/runtime-benchmarks",
5045
]
5146
try-runtime = [
5247
"frame-support/try-runtime",
5348
"frame-system/try-runtime",
54-
"pallet-preimage/try-runtime",
55-
"pallet-root-testing/try-runtime",
56-
"pallet-scheduler/try-runtime",
5749
"sp-runtime/try-runtime",
5850
]

benchmarking/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ default = [ "std" ]
3333
std = [
3434
"frame-benchmarking/std",
3535
"frame-support/std",
36-
"frame-system/std",
3736
"log/std",
3837
"parity-scale-codec/std",
3938
"scale-info/std",

currencies/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,15 @@ std = [
3434
"frame-system/std",
3535
"orml-traits/std",
3636
"orml-utilities/std",
37-
"pallet-balances/std",
3837
"parity-scale-codec/std",
3938
"scale-info/std",
4039
"serde",
41-
"sp-core/std",
4240
"sp-io/std",
4341
"sp-runtime/std",
4442
"sp-std/std",
4543
]
4644
try-runtime = [
4745
"frame-support/try-runtime",
4846
"frame-system/try-runtime",
49-
"orml_tokens/try-runtime",
50-
"pallet-balances/try-runtime",
5147
"sp-runtime/try-runtime",
5248
]

nft/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ std = [
2929
"parity-scale-codec/std",
3030
"scale-info/std",
3131
"serde",
32-
"sp-core/std",
33-
"sp-io/std",
3432
"sp-runtime/std",
3533
"sp-std/std",
3634
]

oracle/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ std = [
3636
"scale-info/std",
3737
"serde",
3838
"sp-application-crypto/std",
39-
"sp-core/std",
4039
"sp-io/std",
4140
"sp-runtime/std",
4241
"sp-std/std",

parameters/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ std = [
3434
"scale-info/std",
3535
"serde",
3636
"sp-core/std",
37-
"sp-io/std",
3837
"sp-runtime/std",
3938
"sp-std/std",
4039
]

payments/Cargo.toml

+1-5
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,22 @@ serde = "1.0.136"
2727
sp-core = { workspace = true }
2828
sp-io = { workspace = true }
2929

30-
orml-tokens = { path = "../tokens", version = "0.5.0-dev", default-features = false }
30+
orml-tokens = { path = "../tokens", version = "0.5.0-dev" }
3131

3232
[features]
3333
default = [ 'std' ]
3434
std = [
3535
'frame-support/std',
3636
'frame-system/std',
3737
'log/std',
38-
'orml-tokens/std',
3938
'orml-traits/std',
4039
'parity-scale-codec/std',
4140
'scale-info/std',
42-
"sp-core/std",
43-
"sp-io/std",
4441
'sp-runtime/std',
4542
'sp-std/std',
4643
]
4744
try-runtime = [
4845
"frame-support/try-runtime",
4946
"frame-system/try-runtime",
50-
"orml-tokens/try-runtime",
5147
"sp-runtime/try-runtime",
5248
]

tokens/Cargo.toml

-10
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,20 @@ std = [
3535
"frame-system/std",
3636
"log/std",
3737
"orml-traits/std",
38-
"pallet-elections-phragmen/std",
39-
"pallet-treasury/std",
4038
"parity-scale-codec/std",
4139
"scale-info/std",
4240
"serde",
4341
"sp-arithmetic/std",
44-
"sp-core/std",
45-
"sp-io/std",
4642
"sp-runtime/std",
47-
"sp-staking/std",
4843
"sp-std/std",
4944
]
5045
runtime-benchmarks = [
5146
"frame-support/runtime-benchmarks",
5247
"frame-system/runtime-benchmarks",
53-
"pallet-elections-phragmen/runtime-benchmarks",
54-
"pallet-treasury/runtime-benchmarks",
5548
"sp-runtime/runtime-benchmarks",
56-
"sp-staking/runtime-benchmarks",
5749
]
5850
try-runtime = [
5951
"frame-support/try-runtime",
6052
"frame-system/try-runtime",
61-
"pallet-elections-phragmen/try-runtime",
62-
"pallet-treasury/try-runtime",
6353
"sp-runtime/try-runtime",
6454
]

unknown-tokens/Cargo.toml

+1-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,7 @@ std = [
3535
"parity-scale-codec/std",
3636
"scale-info/std",
3737
"serde",
38-
"sp-core/std",
39-
"sp-io/std",
40-
"sp-runtime/std",
4138
"sp-std/std",
4239
"xcm/std",
4340
]
44-
try-runtime = [
45-
"frame-support/try-runtime",
46-
"frame-system/try-runtime",
47-
"sp-runtime/try-runtime",
48-
]
41+
try-runtime = [ "frame-support/try-runtime", "frame-system/try-runtime" ]

utilities/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ frame-system = { workspace = true, features = ["std"] }
2727
default = [ "std" ]
2828
std = [
2929
"frame-support/std",
30-
"frame-system/std",
3130
"parity-scale-codec/std",
3231
"scale-info/std",
3332
"serde",

vesting/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,20 @@ default = [ "std" ]
2727
std = [
2828
"frame-support/std",
2929
"frame-system/std",
30-
"pallet-balances/std",
3130
"parity-scale-codec/std",
3231
"scale-info/std",
3332
"serde",
34-
"sp-core/std",
3533
"sp-io/std",
3634
"sp-runtime/std",
3735
"sp-std/std",
3836
]
3937
runtime-benchmarks = [
4038
"frame-support/runtime-benchmarks",
4139
"frame-system/runtime-benchmarks",
42-
"pallet-balances/runtime-benchmarks",
4340
"sp-runtime/runtime-benchmarks",
4441
]
4542
try-runtime = [
4643
"frame-support/try-runtime",
4744
"frame-system/try-runtime",
48-
"pallet-balances/try-runtime",
4945
"sp-runtime/try-runtime",
5046
]

xcm/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ std = [
3030
"parity-scale-codec/std",
3131
"scale-info/std",
3232
"sp-std/std",
33-
"xcm-executor/std",
3433
"xcm/std",
3534
]
3635
try-runtime = [

xtokens/Cargo.toml

-32
Original file line numberDiff line numberDiff line change
@@ -60,64 +60,32 @@ orml-xcm = { path = "../xcm" }
6060
[features]
6161
default = [ "std" ]
6262
std = [
63-
"cumulus-pallet-dmp-queue/std",
64-
"cumulus-pallet-parachain-system/std",
65-
"cumulus-pallet-xcm/std",
66-
"cumulus-pallet-xcmp-queue/std",
6763
"cumulus-primitives-core/std",
6864
"frame-support/std",
6965
"frame-system/std",
7066
"log/std",
7167
"orml-traits/std",
7268
"orml-xcm-support/std",
73-
"pallet-balances/std",
74-
"pallet-message-queue/std",
7569
"pallet-xcm/std",
76-
"parachain-info/std",
7770
"parity-scale-codec/std",
78-
"polkadot-parachain-primitives/std",
79-
"polkadot-runtime-common/std",
80-
"polkadot-runtime-parachains/std",
8171
"scale-info/std",
8272
"serde",
83-
"sp-core/std",
8473
"sp-io/std",
8574
"sp-runtime/std",
8675
"sp-std/std",
87-
"xcm-builder/std",
8876
"xcm-executor/std",
8977
"xcm/std",
9078
]
9179
runtime-benchmarks = [
92-
"cumulus-pallet-parachain-system/runtime-benchmarks",
93-
"cumulus-pallet-xcmp-queue/runtime-benchmarks",
9480
"frame-support/runtime-benchmarks",
9581
"frame-system/runtime-benchmarks",
96-
"orml-tokens/runtime-benchmarks",
97-
"pallet-balances/runtime-benchmarks",
98-
"pallet-message-queue/runtime-benchmarks",
9982
"pallet-xcm/runtime-benchmarks",
100-
"polkadot-parachain-primitives/runtime-benchmarks",
101-
"polkadot-runtime-common/runtime-benchmarks",
102-
"polkadot-runtime-parachains/runtime-benchmarks",
10383
"sp-runtime/runtime-benchmarks",
104-
"xcm-builder/runtime-benchmarks",
10584
"xcm-executor/runtime-benchmarks",
10685
]
10786
try-runtime = [
108-
"cumulus-pallet-dmp-queue/try-runtime",
109-
"cumulus-pallet-parachain-system/try-runtime",
110-
"cumulus-pallet-xcm/try-runtime",
111-
"cumulus-pallet-xcmp-queue/try-runtime",
11287
"frame-support/try-runtime",
11388
"frame-system/try-runtime",
114-
"orml-tokens/try-runtime",
115-
"orml-xcm/try-runtime",
116-
"pallet-balances/try-runtime",
117-
"pallet-message-queue/try-runtime",
11889
"pallet-xcm/try-runtime",
119-
"parachain-info/try-runtime",
120-
"polkadot-runtime-common/try-runtime",
121-
"polkadot-runtime-parachains/try-runtime",
12290
"sp-runtime/try-runtime",
12391
]

0 commit comments

Comments
 (0)