mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
be8e626806
We currently use a bit of a hack in `.cargo/config` to make sure that clippy isn't too annoying by specifying the list of lints. There is now a stable way to define lints for a workspace. The only down side is that every crate seems to have to opt into this so there's a *few* files modified in this PR. Dependencies: - [x] PR that upgrades CI to use rust 1.74 is merged. --------- Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
166 lines
7.2 KiB
TOML
166 lines
7.2 KiB
TOML
[package]
|
|
name = "polkadot-runtime-common"
|
|
version = "1.0.0"
|
|
description = "Pallets and constants used in Relay Chain networks."
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
impl-trait-for-tuples = "0.2.2"
|
|
bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] }
|
|
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive"] }
|
|
log = { version = "0.4.17", default-features = false }
|
|
rustc-hex = { version = "2.1.0", default-features = false }
|
|
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
|
serde = { version = "1.0.193", default-features = false, features = ["alloc"] }
|
|
serde_derive = { version = "1.0.117" }
|
|
static_assertions = "1.1.0"
|
|
|
|
sp-api = { path = "../../../substrate/primitives/api", default-features = false }
|
|
inherents = { package = "sp-inherents", path = "../../../substrate/primitives/inherents", default-features = false }
|
|
sp-std = { package = "sp-std", path = "../../../substrate/primitives/std", default-features = false }
|
|
sp-io = { path = "../../../substrate/primitives/io", default-features = false }
|
|
sp-runtime = { path = "../../../substrate/primitives/runtime", default-features = false, features = ["serde"] }
|
|
sp-session = { path = "../../../substrate/primitives/session", default-features = false }
|
|
sp-staking = { path = "../../../substrate/primitives/staking", default-features = false, features = ["serde"] }
|
|
sp-core = { path = "../../../substrate/primitives/core", default-features = false, features = ["serde"] }
|
|
sp-npos-elections = { path = "../../../substrate/primitives/npos-elections", default-features = false, features = ["serde"] }
|
|
|
|
pallet-authorship = { path = "../../../substrate/frame/authorship", default-features = false }
|
|
pallet-balances = { path = "../../../substrate/frame/balances", default-features = false }
|
|
pallet-fast-unstake = { path = "../../../substrate/frame/fast-unstake", default-features = false }
|
|
pallet-identity = { path = "../../../substrate/frame/identity", default-features = false }
|
|
pallet-session = { path = "../../../substrate/frame/session", default-features = false }
|
|
frame-support = { path = "../../../substrate/frame/support", default-features = false }
|
|
pallet-staking = { path = "../../../substrate/frame/staking", default-features = false }
|
|
pallet-staking-reward-fn = { path = "../../../substrate/frame/staking/reward-fn", default-features = false }
|
|
frame-system = { path = "../../../substrate/frame/system", default-features = false }
|
|
pallet-timestamp = { path = "../../../substrate/frame/timestamp", default-features = false }
|
|
pallet-vesting = { path = "../../../substrate/frame/vesting", default-features = false }
|
|
pallet-transaction-payment = { path = "../../../substrate/frame/transaction-payment", default-features = false }
|
|
pallet-treasury = { path = "../../../substrate/frame/treasury", default-features = false }
|
|
pallet-asset-rate = { path = "../../../substrate/frame/asset-rate", default-features = false, optional = true }
|
|
pallet-election-provider-multi-phase = { path = "../../../substrate/frame/election-provider-multi-phase", default-features = false }
|
|
frame-election-provider-support = { path = "../../../substrate/frame/election-provider-support", default-features = false }
|
|
|
|
frame-benchmarking = { path = "../../../substrate/frame/benchmarking", default-features = false, optional = true }
|
|
pallet-babe = { path = "../../../substrate/frame/babe", default-features = false, optional = true }
|
|
|
|
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
|
|
libsecp256k1 = { version = "0.7.0", default-features = false }
|
|
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../parachains", default-features = false }
|
|
|
|
slot-range-helper = { path = "slot_range_helper", default-features = false }
|
|
xcm = { package = "staging-xcm", path = "../../xcm", default-features = false }
|
|
xcm-executor = { package = "staging-xcm-executor", path = "../../xcm/xcm-executor", default-features = false, optional = true }
|
|
|
|
pallet-xcm-benchmarks = { path = "../../xcm/pallet-xcm-benchmarks", default-features = false, optional = true }
|
|
xcm-builder = { package = "staging-xcm-builder", path = "../../xcm/xcm-builder", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.4.1"
|
|
frame-support-test = { path = "../../../substrate/frame/support/test" }
|
|
pallet-babe = { path = "../../../substrate/frame/babe" }
|
|
pallet-treasury = { path = "../../../substrate/frame/treasury" }
|
|
sp-keystore = { path = "../../../substrate/primitives/keystore" }
|
|
sp-keyring = { path = "../../../substrate/primitives/keyring" }
|
|
serde_json = "1.0.108"
|
|
libsecp256k1 = "0.7.0"
|
|
test-helpers = { package = "polkadot-primitives-test-helpers", path = "../../primitives/test-helpers" }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
no_std = []
|
|
std = [
|
|
"bitvec/std",
|
|
"frame-benchmarking?/std",
|
|
"frame-election-provider-support/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"inherents/std",
|
|
"libsecp256k1/std",
|
|
"log/std",
|
|
"pallet-asset-rate?/std",
|
|
"pallet-authorship/std",
|
|
"pallet-balances/std",
|
|
"pallet-election-provider-multi-phase/std",
|
|
"pallet-fast-unstake/std",
|
|
"pallet-identity/std",
|
|
"pallet-session/std",
|
|
"pallet-staking-reward-fn/std",
|
|
"pallet-staking/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-transaction-payment/std",
|
|
"pallet-treasury/std",
|
|
"pallet-vesting/std",
|
|
"pallet-xcm-benchmarks/std",
|
|
"parity-scale-codec/std",
|
|
"primitives/std",
|
|
"runtime-parachains/std",
|
|
"rustc-hex/std",
|
|
"scale-info/std",
|
|
"serde/std",
|
|
"slot-range-helper/std",
|
|
"sp-api/std",
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-npos-elections/std",
|
|
"sp-runtime/std",
|
|
"sp-session/std",
|
|
"sp-staking/std",
|
|
"sp-std/std",
|
|
"xcm-builder/std",
|
|
"xcm-executor/std",
|
|
"xcm/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
"frame-election-provider-support/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"libsecp256k1/hmac",
|
|
"libsecp256k1/static-context",
|
|
"pallet-asset-rate/runtime-benchmarks",
|
|
"pallet-babe/runtime-benchmarks",
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-election-provider-multi-phase/runtime-benchmarks",
|
|
"pallet-fast-unstake/runtime-benchmarks",
|
|
"pallet-identity/runtime-benchmarks",
|
|
"pallet-staking/runtime-benchmarks",
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
"pallet-treasury/runtime-benchmarks",
|
|
"pallet-vesting/runtime-benchmarks",
|
|
"pallet-xcm-benchmarks/runtime-benchmarks",
|
|
"primitives/runtime-benchmarks",
|
|
"runtime-parachains/runtime-benchmarks",
|
|
"sp-runtime/runtime-benchmarks",
|
|
"sp-staking/runtime-benchmarks",
|
|
"xcm-builder/runtime-benchmarks",
|
|
"xcm-executor/runtime-benchmarks",
|
|
]
|
|
try-runtime = [
|
|
"frame-election-provider-support/try-runtime",
|
|
"frame-support-test/try-runtime",
|
|
"frame-support/try-runtime",
|
|
"frame-system/try-runtime",
|
|
"pallet-asset-rate/try-runtime",
|
|
"pallet-authorship/try-runtime",
|
|
"pallet-babe?/try-runtime",
|
|
"pallet-balances/try-runtime",
|
|
"pallet-election-provider-multi-phase/try-runtime",
|
|
"pallet-fast-unstake/try-runtime",
|
|
"pallet-identity/try-runtime",
|
|
"pallet-session/try-runtime",
|
|
"pallet-staking/try-runtime",
|
|
"pallet-timestamp/try-runtime",
|
|
"pallet-transaction-payment/try-runtime",
|
|
"pallet-treasury/try-runtime",
|
|
"pallet-vesting/try-runtime",
|
|
"runtime-parachains/try-runtime",
|
|
"sp-runtime/try-runtime",
|
|
]
|