Files
pezkuwi-subxt/substrate/frame/nomination-pools/benchmarking/Cargo.toml
T
Oliver Tale-Yazdi 4a44356773 Improve features dev-ex (#1831)
Adds a config file that allows to run `zepter` without any arguments in
the workspace to address all issues.
A secondary workflow for the CI is provided as `zepter run check`. Both
the formatting and linting are now in one check for efficiancy.

The latest version also detects some more things that `featalign` was
already showing.

Error message [in the
CI](https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3916205)
now looks like this:
```pre
...
crate 'test-parachains' (/Users/vados/Documents/work/polkadot-sdk/polkadot/parachain/test-parachains/Cargo.toml)
  feature 'std'
    must propagate to:
      parity-scale-codec
Found 55 issues (run with --fix to fix).
Error: Command 'lint propagate-feature' failed with exit code 1

Polkadot-SDK uses the Zepter CLI to detect abnormalities in the feature configuration.
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`.
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you.

For more information, see:
  - https://github.com/paritytech/polkadot-sdk/issues/1831
  - https://github.com/ggwpez/zepter
```

TODO:
- [x] Check that CI fails correctly

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
2023-10-24 17:59:38 +02:00

78 lines
2.6 KiB
TOML

[package]
name = "pallet-nomination-pools-benchmarking"
version = "1.0.0"
authors.workspace = true
edition.workspace = true
license = "Apache-2.0"
homepage = "https://substrate.io"
repository.workspace = true
description = "FRAME nomination pools pallet benchmarking"
readme = "README.md"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
# parity
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
# FRAME
frame-benchmarking = { path = "../../benchmarking", default-features = false}
frame-election-provider-support = { path = "../../election-provider-support", default-features = false}
frame-support = { path = "../../support", default-features = false}
frame-system = { path = "../../system", default-features = false}
pallet-bags-list = { path = "../../bags-list", default-features = false}
pallet-staking = { path = "../../staking", default-features = false}
pallet-nomination-pools = { path = "..", default-features = false}
# Substrate Primitives
sp-runtime = { path = "../../../primitives/runtime", default-features = false}
sp-runtime-interface = { path = "../../../primitives/runtime-interface", default-features = false}
sp-staking = { path = "../../../primitives/staking", default-features = false}
sp-std = { path = "../../../primitives/std", default-features = false}
[dev-dependencies]
pallet-balances = { path = "../../balances", default-features = false}
pallet-timestamp = { path = "../../timestamp" }
pallet-staking-reward-curve = { path = "../../staking/reward-curve" }
sp-core = { path = "../../../primitives/core" }
sp-io = { path = "../../../primitives/io" }
[features]
default = [ "std" ]
std = [
"codec/std",
"frame-benchmarking/std",
"frame-election-provider-support/std",
"frame-support/std",
"frame-system/std",
"pallet-bags-list/std",
"pallet-balances/std",
"pallet-nomination-pools/std",
"pallet-staking/std",
"pallet-timestamp/std",
"scale-info/std",
"sp-core/std",
"sp-io/std",
"sp-runtime-interface/std",
"sp-runtime/std",
"sp-staking/std",
"sp-std/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-election-provider-support/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-bags-list/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-nomination-pools/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
]