Skip to content

Commit

Permalink
make it work with taplo
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Jun 23, 2024
1 parent c42b491 commit ac509e1
Show file tree
Hide file tree
Showing 47 changed files with 99 additions and 56 deletions.
3 changes: 0 additions & 3 deletions .config/zepter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ workflows:
'--locked',
'--quiet',
]
# Format the features into canonical format:
- ['format', 'features', '--offline', '--locked', '--quiet']
# Same as `check`, but actually fix the issues instead of just reporting them:
default:
- [ $check.0, '--fix' ]
- [ $check.1, '--fix' ]

# Will be displayed when any workflow fails:
help:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ jobs:
- name: Check fmt
run: cargo fmt -- --check

- name: Check Cargo.toml format
run: |
if taplo --version &> /dev/null; then
echo "taplo-cli is already installed"
else
cargo install taplo-cli
fi
taplo fmt --check
clippy:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, Linux, X64]
Expand Down
6 changes: 3 additions & 3 deletions bin/collator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ sc-service = { workspace = true, optional = true }
substrate-build-script-utils = { workspace = true }

[features]
default = [ "polkadot-cli", "sc-cli", "sc-service", "sc-service/rocksdb" ]
default = ["polkadot-cli", "sc-cli", "sc-service", "sc-service/rocksdb"]
runtime-benchmarks = [
"astar-primitives/runtime-benchmarks",
"astar-runtime/runtime-benchmarks",
Expand All @@ -179,7 +179,7 @@ runtime-benchmarks = [
"sp-keyring",
"sp-runtime/runtime-benchmarks",
]
cli = [ "try-runtime-cli" ]
cli = ["try-runtime-cli"]
try-runtime = [
"astar-primitives/try-runtime",
"astar-runtime/try-runtime",
Expand Down Expand Up @@ -208,4 +208,4 @@ evm-tracing = [
"shibuya-runtime/evm-tracing",
"shiden-runtime/evm-tracing",
]
manual-seal = [ "sc-consensus-manual-seal" ]
manual-seal = ["sc-consensus-manual-seal"]
2 changes: 1 addition & 1 deletion chain-extensions/pallet-assets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pallet-timestamp = { workspace = true }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"assets-chain-extension-types/std",
"frame-support/std",
Expand Down
2 changes: 1 addition & 1 deletion chain-extensions/types/assets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ scale-info = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"num_enum/std",
"parity-scale-codec/std",
Expand Down
2 changes: 1 addition & 1 deletion chain-extensions/types/unified-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sp-core = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"num_enum/std",
"parity-scale-codec/std",
Expand Down
2 changes: 1 addition & 1 deletion chain-extensions/types/xvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sp-runtime = { workspace = true }
sp-std = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"parity-scale-codec/std",
Expand Down
2 changes: 1 addition & 1 deletion chain-extensions/unified-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pallet-unified-accounts = { workspace = true }
unified-accounts-chain-extension-types = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
# Astar
"astar-primitives/std",
Expand Down
2 changes: 1 addition & 1 deletion chain-extensions/xvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ astar-primitives = { workspace = true }
xvm-chain-extension-types = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
# Astar
"astar-primitives/std",
Expand Down
4 changes: 2 additions & 2 deletions pallets/astar-xcm-benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serde = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
parity-scale-codec = { workspace = true, optional = true, features = [
"derive",
"derive",
] }
scale-info = { workspace = true }
sp-runtime = { workspace = true }
Expand All @@ -42,7 +42,7 @@ sp-io = { workspace = true, features = ["std"] }
xcm-builder = { workspace = true, features = ["std"] }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/collator-selection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sp-io = { workspace = true }
sp-tracing = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
runtime-benchmarks = [
"frame-benchmarking",
"frame-benchmarking/runtime-benchmarks",
Expand Down
2 changes: 1 addition & 1 deletion pallets/dapp-staking-migration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sp-arithmetic = { workspace = true }
sp-core = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/dapp-staking-v3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ frame-benchmarking = { workspace = true, optional = true }
pallet-balances = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking/std",
Expand Down
4 changes: 2 additions & 2 deletions pallets/dapp-staking-v3/rpc/runtime-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ sp-std = { workspace = true }
astar-primitives = { workspace = true }

[features]
default = [ "std" ]
std = [ "astar-primitives/std", "sp-api/std", "sp-std/std" ]
default = ["std"]
std = ["astar-primitives/std", "sp-api/std", "sp-std/std"]
2 changes: 1 addition & 1 deletion pallets/dynamic-evm-base-fee/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pallet-timestamp = { workspace = true }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
# Frontier
"fp-evm/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/ethereum-checked/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pallet-timestamp = { workspace = true }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"ethereum-types/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/inflation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sp-core = { workspace = true }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking?/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/oracle-benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ astar-primitives = { workspace = true }
frame-benchmarking = { workspace = true, optional = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking?/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/price-aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sp-core = { workspace = true }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking?/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/static-price-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sp-core = { workspace = true }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking?/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/unified-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pallet-evm = { workspace = true }
pallet-timestamp = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"frame-benchmarking?/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/xc-asset-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pallet-timestamp = { workspace = true }
sp-core = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"frame-benchmarking?/std",
"frame-support/std",
Expand Down
2 changes: 1 addition & 1 deletion pallets/xvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pallet-timestamp = { workspace = true, features = ["std"] }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"environmental/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/assets-erc20/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pallet-timestamp = { workspace = true }
scale-info = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"fp-evm/std",
"frame-support/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/dapp-staking-v3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sp-arithmetic = { workspace = true }
sp-io = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"fp-evm/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/dispatch-lockdrop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ sp-runtime = { workspace = true }
sp-std = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"fp-evm/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/sr25519/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pallet-timestamp = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"fp-evm/std",
"log/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/substrate-ecdsa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pallet-timestamp = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"fp-evm/std",
"log/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/unified-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pallet-timestamp = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"fp-evm/std",
Expand Down
4 changes: 2 additions & 2 deletions precompiles/utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ hex-literal = { workspace = true }
xcm = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"environmental/std",
"evm/std",
Expand All @@ -62,7 +62,7 @@ std = [
"sp-std/std",
"xcm?/std",
]
codec-xcm = [ "xcm" ]
codec-xcm = ["xcm"]
testing = [
"derive_more",
"hex-literal",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/utils/macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sp-core-hashing = { workspace = true }
sp-std = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"fp-evm/std",
"frame-support/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/xcm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pallet-timestamp = { workspace = true }
xcm-builder = { workspace = true, features = ["std"] }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"fp-evm/std",
Expand Down
2 changes: 1 addition & 1 deletion precompiles/xvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pallet-timestamp = { workspace = true }
sp-runtime = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"fp-evm/std",
Expand Down
2 changes: 1 addition & 1 deletion primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pallet-evm-precompile-dispatch = { workspace = true }
pallet-xc-asset-config = { workspace = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"ethereum-types/std",
"ethereum/std",
Expand Down
2 changes: 1 addition & 1 deletion runtime/astar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pallet-chain-extension-assets = { workspace = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"astar-xcm-benchmarks?/std",
Expand Down
2 changes: 1 addition & 1 deletion runtime/local/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ frame-try-runtime = { workspace = true, optional = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"dapp-staking-v3-runtime-api/std",
Expand Down
2 changes: 1 addition & 1 deletion runtime/shibuya/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ frame-try-runtime = { workspace = true, optional = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"astar-xcm-benchmarks?/std",
Expand Down
2 changes: 1 addition & 1 deletion runtime/shiden/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pallet-chain-extension-assets = { workspace = true }
substrate-wasm-builder = { workspace = true, optional = true }

[features]
default = [ "std" ]
default = ["std"]
std = [
"astar-primitives/std",
"astar-xcm-benchmarks?/std",
Expand Down
Loading

0 comments on commit ac509e1

Please sign in to comment.