Skip to content

Commit ac509e1

Browse files
committed
make it work with taplo
1 parent c42b491 commit ac509e1

File tree

47 files changed

+99
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+99
-56
lines changed

.config/zepter.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@ workflows:
3333
'--locked',
3434
'--quiet',
3535
]
36-
# Format the features into canonical format:
37-
- ['format', 'features', '--offline', '--locked', '--quiet']
3836
# Same as `check`, but actually fix the issues instead of just reporting them:
3937
default:
4038
- [ $check.0, '--fix' ]
41-
- [ $check.1, '--fix' ]
4239

4340
# Will be displayed when any workflow fails:
4441
help:

.github/workflows/static-analysis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ jobs:
2424
- name: Check fmt
2525
run: cargo fmt -- --check
2626

27+
- name: Check Cargo.toml format
28+
run: |
29+
if taplo --version &> /dev/null; then
30+
echo "taplo-cli is already installed"
31+
else
32+
cargo install taplo-cli
33+
fi
34+
taplo fmt --check
35+
2736
clippy:
2837
if: github.event.pull_request.draft == false
2938
runs-on: [self-hosted, Linux, X64]

bin/collator/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ sc-service = { workspace = true, optional = true }
154154
substrate-build-script-utils = { workspace = true }
155155

156156
[features]
157-
default = [ "polkadot-cli", "sc-cli", "sc-service", "sc-service/rocksdb" ]
157+
default = ["polkadot-cli", "sc-cli", "sc-service", "sc-service/rocksdb"]
158158
runtime-benchmarks = [
159159
"astar-primitives/runtime-benchmarks",
160160
"astar-runtime/runtime-benchmarks",
@@ -179,7 +179,7 @@ runtime-benchmarks = [
179179
"sp-keyring",
180180
"sp-runtime/runtime-benchmarks",
181181
]
182-
cli = [ "try-runtime-cli" ]
182+
cli = ["try-runtime-cli"]
183183
try-runtime = [
184184
"astar-primitives/try-runtime",
185185
"astar-runtime/try-runtime",
@@ -208,4 +208,4 @@ evm-tracing = [
208208
"shibuya-runtime/evm-tracing",
209209
"shiden-runtime/evm-tracing",
210210
]
211-
manual-seal = [ "sc-consensus-manual-seal" ]
211+
manual-seal = ["sc-consensus-manual-seal"]

chain-extensions/pallet-assets/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pallet-timestamp = { workspace = true }
3030
sp-io = { workspace = true }
3131

3232
[features]
33-
default = [ "std" ]
33+
default = ["std"]
3434
std = [
3535
"assets-chain-extension-types/std",
3636
"frame-support/std",

chain-extensions/types/assets/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ scale-info = { workspace = true }
1515
sp-runtime = { workspace = true }
1616

1717
[features]
18-
default = [ "std" ]
18+
default = ["std"]
1919
std = [
2020
"num_enum/std",
2121
"parity-scale-codec/std",

chain-extensions/types/unified-accounts/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sp-core = { workspace = true }
1717
sp-runtime = { workspace = true }
1818

1919
[features]
20-
default = [ "std" ]
20+
default = ["std"]
2121
std = [
2222
"num_enum/std",
2323
"parity-scale-codec/std",

chain-extensions/types/xvm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sp-runtime = { workspace = true }
1616
sp-std = { workspace = true }
1717

1818
[features]
19-
default = [ "std" ]
19+
default = ["std"]
2020
std = [
2121
"astar-primitives/std",
2222
"parity-scale-codec/std",

chain-extensions/unified-accounts/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pallet-unified-accounts = { workspace = true }
2727
unified-accounts-chain-extension-types = { workspace = true }
2828

2929
[features]
30-
default = [ "std" ]
30+
default = ["std"]
3131
std = [
3232
# Astar
3333
"astar-primitives/std",

chain-extensions/xvm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ astar-primitives = { workspace = true }
2727
xvm-chain-extension-types = { workspace = true }
2828

2929
[features]
30-
default = [ "std" ]
30+
default = ["std"]
3131
std = [
3232
# Astar
3333
"astar-primitives/std",

pallets/astar-xcm-benchmarks/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ serde = { workspace = true, optional = true }
1717
frame-support = { workspace = true }
1818
frame-system = { workspace = true }
1919
parity-scale-codec = { workspace = true, optional = true, features = [
20-
"derive",
20+
"derive",
2121
] }
2222
scale-info = { workspace = true }
2323
sp-runtime = { workspace = true }
@@ -42,7 +42,7 @@ sp-io = { workspace = true, features = ["std"] }
4242
xcm-builder = { workspace = true, features = ["std"] }
4343

4444
[features]
45-
default = [ "std" ]
45+
default = ["std"]
4646
std = [
4747
"astar-primitives/std",
4848
"frame-benchmarking/std",

pallets/collator-selection/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ sp-io = { workspace = true }
3939
sp-tracing = { workspace = true }
4040

4141
[features]
42-
default = [ "std" ]
42+
default = ["std"]
4343
runtime-benchmarks = [
4444
"frame-benchmarking",
4545
"frame-benchmarking/runtime-benchmarks",

pallets/dapp-staking-migration/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sp-arithmetic = { workspace = true }
2828
sp-core = { workspace = true }
2929

3030
[features]
31-
default = [ "std" ]
31+
default = ["std"]
3232
std = [
3333
"astar-primitives/std",
3434
"frame-benchmarking/std",

pallets/dapp-staking-v3/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ frame-benchmarking = { workspace = true, optional = true }
3131
pallet-balances = { workspace = true }
3232

3333
[features]
34-
default = [ "std" ]
34+
default = ["std"]
3535
std = [
3636
"astar-primitives/std",
3737
"frame-benchmarking/std",

pallets/dapp-staking-v3/rpc/runtime-api/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ sp-std = { workspace = true }
1717
astar-primitives = { workspace = true }
1818

1919
[features]
20-
default = [ "std" ]
21-
std = [ "astar-primitives/std", "sp-api/std", "sp-std/std" ]
20+
default = ["std"]
21+
std = ["astar-primitives/std", "sp-api/std", "sp-std/std"]

pallets/dynamic-evm-base-fee/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pallet-timestamp = { workspace = true }
3131
sp-io = { workspace = true }
3232

3333
[features]
34-
default = [ "std" ]
34+
default = ["std"]
3535
std = [
3636
# Frontier
3737
"fp-evm/std",

pallets/ethereum-checked/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pallet-timestamp = { workspace = true }
3535
sp-io = { workspace = true }
3636

3737
[features]
38-
default = [ "std" ]
38+
default = ["std"]
3939
std = [
4040
"astar-primitives/std",
4141
"ethereum-types/std",

pallets/inflation/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sp-core = { workspace = true }
2828
sp-io = { workspace = true }
2929

3030
[features]
31-
default = [ "std" ]
31+
default = ["std"]
3232
std = [
3333
"astar-primitives/std",
3434
"frame-benchmarking?/std",

pallets/oracle-benchmarks/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ astar-primitives = { workspace = true }
2828
frame-benchmarking = { workspace = true, optional = true }
2929

3030
[features]
31-
default = [ "std" ]
31+
default = ["std"]
3232
std = [
3333
"astar-primitives/std",
3434
"frame-benchmarking?/std",

pallets/price-aggregator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ sp-core = { workspace = true }
3232
sp-io = { workspace = true }
3333

3434
[features]
35-
default = [ "std" ]
35+
default = ["std"]
3636
std = [
3737
"astar-primitives/std",
3838
"frame-benchmarking?/std",

pallets/static-price-provider/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ sp-core = { workspace = true }
2929
sp-io = { workspace = true }
3030

3131
[features]
32-
default = [ "std" ]
32+
default = ["std"]
3333
std = [
3434
"astar-primitives/std",
3535
"frame-benchmarking?/std",

pallets/unified-accounts/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pallet-evm = { workspace = true }
4242
pallet-timestamp = { workspace = true }
4343

4444
[features]
45-
default = [ "std" ]
45+
default = ["std"]
4646
std = [
4747
"astar-primitives/std",
4848
"frame-benchmarking?/std",

pallets/xc-asset-config/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pallet-timestamp = { workspace = true }
3131
sp-core = { workspace = true }
3232

3333
[features]
34-
default = [ "std" ]
34+
default = ["std"]
3535
std = [
3636
"frame-benchmarking?/std",
3737
"frame-support/std",

pallets/xvm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pallet-timestamp = { workspace = true, features = ["std"] }
4242
sp-io = { workspace = true }
4343

4444
[features]
45-
default = [ "std" ]
45+
default = ["std"]
4646
std = [
4747
"astar-primitives/std",
4848
"environmental/std",

precompiles/assets-erc20/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pallet-timestamp = { workspace = true }
4040
scale-info = { workspace = true }
4141

4242
[features]
43-
default = [ "std" ]
43+
default = ["std"]
4444
std = [
4545
"fp-evm/std",
4646
"frame-support/std",

precompiles/dapp-staking-v3/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ sp-arithmetic = { workspace = true }
4242
sp-io = { workspace = true }
4343

4444
[features]
45-
default = [ "std" ]
45+
default = ["std"]
4646
std = [
4747
"astar-primitives/std",
4848
"fp-evm/std",

precompiles/dispatch-lockdrop/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sp-runtime = { workspace = true }
3838
sp-std = { workspace = true }
3939

4040
[features]
41-
default = [ "std" ]
41+
default = ["std"]
4242
std = [
4343
"astar-primitives/std",
4444
"fp-evm/std",

precompiles/sr25519/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pallet-timestamp = { workspace = true }
3737
sp-runtime = { workspace = true }
3838

3939
[features]
40-
default = [ "std" ]
40+
default = ["std"]
4141
std = [
4242
"fp-evm/std",
4343
"log/std",

precompiles/substrate-ecdsa/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pallet-timestamp = { workspace = true }
3838
sp-runtime = { workspace = true }
3939

4040
[features]
41-
default = [ "std" ]
41+
default = ["std"]
4242
std = [
4343
"fp-evm/std",
4444
"log/std",

precompiles/unified-accounts/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pallet-timestamp = { workspace = true }
4545
sp-runtime = { workspace = true }
4646

4747
[features]
48-
default = [ "std" ]
48+
default = ["std"]
4949
std = [
5050
"astar-primitives/std",
5151
"fp-evm/std",

precompiles/utils/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ hex-literal = { workspace = true }
4242
xcm = { workspace = true }
4343

4444
[features]
45-
default = [ "std" ]
45+
default = ["std"]
4646
std = [
4747
"environmental/std",
4848
"evm/std",
@@ -62,7 +62,7 @@ std = [
6262
"sp-std/std",
6363
"xcm?/std",
6464
]
65-
codec-xcm = [ "xcm" ]
65+
codec-xcm = ["xcm"]
6666
testing = [
6767
"derive_more",
6868
"hex-literal",

precompiles/utils/macro/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ sp-core-hashing = { workspace = true }
3333
sp-std = { workspace = true }
3434

3535
[features]
36-
default = [ "std" ]
36+
default = ["std"]
3737
std = [
3838
"fp-evm/std",
3939
"frame-support/std",

precompiles/xcm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pallet-timestamp = { workspace = true }
5050
xcm-builder = { workspace = true, features = ["std"] }
5151

5252
[features]
53-
default = [ "std" ]
53+
default = ["std"]
5454
std = [
5555
"astar-primitives/std",
5656
"fp-evm/std",

precompiles/xvm/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pallet-timestamp = { workspace = true }
4242
sp-runtime = { workspace = true }
4343

4444
[features]
45-
default = [ "std" ]
45+
default = ["std"]
4646
std = [
4747
"astar-primitives/std",
4848
"fp-evm/std",

primitives/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pallet-evm-precompile-dispatch = { workspace = true }
4848
pallet-xc-asset-config = { workspace = true }
4949

5050
[features]
51-
default = [ "std" ]
51+
default = ["std"]
5252
std = [
5353
"ethereum-types/std",
5454
"ethereum/std",

runtime/astar/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pallet-chain-extension-assets = { workspace = true }
136136
substrate-wasm-builder = { workspace = true, optional = true }
137137

138138
[features]
139-
default = [ "std" ]
139+
default = ["std"]
140140
std = [
141141
"astar-primitives/std",
142142
"astar-xcm-benchmarks?/std",

runtime/local/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ frame-try-runtime = { workspace = true, optional = true }
105105
substrate-wasm-builder = { workspace = true, optional = true }
106106

107107
[features]
108-
default = [ "std" ]
108+
default = ["std"]
109109
std = [
110110
"astar-primitives/std",
111111
"dapp-staking-v3-runtime-api/std",

runtime/shibuya/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ frame-try-runtime = { workspace = true, optional = true }
147147
substrate-wasm-builder = { workspace = true, optional = true }
148148

149149
[features]
150-
default = [ "std" ]
150+
default = ["std"]
151151
std = [
152152
"astar-primitives/std",
153153
"astar-xcm-benchmarks?/std",

runtime/shiden/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pallet-chain-extension-assets = { workspace = true }
139139
substrate-wasm-builder = { workspace = true, optional = true }
140140

141141
[features]
142-
default = [ "std" ]
142+
default = ["std"]
143143
std = [
144144
"astar-primitives/std",
145145
"astar-xcm-benchmarks?/std",

0 commit comments

Comments
 (0)