# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.60" name = "polkadot-service" version = "19.0.0" authors = ["Parity Technologies "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Utils to tie different Polkadot components together and allow instantiation of a node." readme = "README.md" license = "GPL-3.0-only" [lib] name = "polkadot_service" path = "src/lib.rs" [dependencies.async-trait] version = "0.1.79" [dependencies.codec] version = "3.6.12" default-features = true package = "parity-scale-codec" [dependencies.frame-benchmarking] version = "38.0.0" default-features = true [dependencies.frame-benchmarking-cli] version = "43.0.0" default-features = true [dependencies.frame-metadata-hash-extension] version = "0.6.0" optional = true default-features = true [dependencies.frame-system] version = "38.0.0" default-features = true [dependencies.frame-system-rpc-runtime-api] version = "34.0.0" default-features = true [dependencies.futures] version = "0.3.30" [dependencies.gum] version = "16.0.0" default-features = true package = "tracing-gum" [dependencies.is_executable] version = "1.0.1" [dependencies.kvdb] version = "0.13.0" [dependencies.kvdb-rocksdb] version = "0.19.0" optional = true [dependencies.log] version = "0.4.22" default-features = true [dependencies.mmr-gadget] version = "40.0.0" default-features = true [dependencies.pallet-transaction-payment] version = "38.0.0" default-features = true [dependencies.pallet-transaction-payment-rpc-runtime-api] version = "38.0.0" default-features = true [dependencies.parity-db] version = "0.4.12" optional = true [dependencies.parking_lot] version = "0.12.1" default-features = true [dependencies.polkadot-approval-distribution] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-availability-bitfield-distribution] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-availability-distribution] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-availability-recovery] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-collator-protocol] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-core-primitives] version = "15.0.0" default-features = true [dependencies.polkadot-dispute-distribution] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-gossip-support] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-network-bridge] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-collation-generation] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-approval-voting] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-av-store] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-backing] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-bitfield-signing] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-candidate-validation] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-chain-api] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-chain-selection] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-dispute-coordinator] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-parachains-inherent] version = "18.0.0" default-features = true [dependencies.polkadot-node-core-prospective-parachains] version = "17.0.0" optional = true default-features = true [dependencies.polkadot-node-core-provisioner] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-pvf] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-pvf-checker] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-core-runtime-api] version = "18.0.0" optional = true default-features = true [dependencies.polkadot-node-network-protocol] version = "18.0.0" default-features = true [dependencies.polkadot-node-primitives] version = "16.0.0" default-features = true [dependencies.polkadot-node-subsystem] version = "18.0.0" default-features = true [dependencies.polkadot-node-subsystem-types] version = "18.0.0" default-features = true [dependencies.polkadot-node-subsystem-util] version = "18.0.0" default-features = true [dependencies.polkadot-overseer] version = "18.0.0" default-features = true [dependencies.polkadot-primitives] version = "16.0.0" default-features = true [dependencies.polkadot-rpc] version = "19.0.0" default-features = true [dependencies.polkadot-runtime-parachains] version = "17.0.0" default-features = true [dependencies.polkadot-statement-distribution] version = "18.0.0" optional = true default-features = true [dependencies.prometheus-endpoint] version = "0.17.0" default-features = true package = "substrate-prometheus-endpoint" [dependencies.rococo-runtime] version = "18.0.0" optional = true [dependencies.rococo-runtime-constants] version = "17.0.0" optional = true default-features = true [dependencies.sc-authority-discovery] version = "0.45.0" default-features = true [dependencies.sc-basic-authorship] version = "0.45.0" default-features = true [dependencies.sc-chain-spec] version = "38.0.0" default-features = true [dependencies.sc-client-api] version = "37.0.0" default-features = true [dependencies.sc-consensus] version = "0.44.0" default-features = true [dependencies.sc-consensus-babe] version = "0.45.0" default-features = true [dependencies.sc-consensus-beefy] version = "24.0.0" default-features = true [dependencies.sc-consensus-grandpa] version = "0.30.0" default-features = true [dependencies.sc-consensus-slots] version = "0.44.0" default-features = true [dependencies.sc-executor] version = "0.40.1" default-features = true [dependencies.sc-keystore] version = "33.0.0" default-features = true [dependencies.sc-network] version = "0.45.0" default-features = true [dependencies.sc-network-sync] version = "0.44.0" default-features = true [dependencies.sc-offchain] version = "40.0.0" default-features = true [dependencies.sc-service] version = "0.46.0" default-features = false [dependencies.sc-sync-state-rpc] version = "0.45.0" default-features = true [dependencies.sc-sysinfo] version = "38.0.0" default-features = true [dependencies.sc-telemetry] version = "25.0.0" default-features = true [dependencies.sc-transaction-pool] version = "37.0.0" default-features = true [dependencies.sc-transaction-pool-api] version = "37.0.0" default-features = true [dependencies.serde] version = "1.0.209" features = ["derive"] default-features = true [dependencies.serde_json] version = "1.0.127" default-features = true [dependencies.sp-api] version = "34.0.0" default-features = true [dependencies.sp-authority-discovery] version = "34.0.0" default-features = true [dependencies.sp-block-builder] version = "34.0.0" default-features = true [dependencies.sp-blockchain] version = "37.0.1" default-features = true [dependencies.sp-consensus] version = "0.40.0" default-features = true [dependencies.sp-consensus-babe] version = "0.40.0" default-features = true [dependencies.sp-consensus-beefy] version = "22.1.0" default-features = true [dependencies.sp-consensus-grandpa] version = "21.0.0" default-features = true [dependencies.sp-core] version = "34.0.0" default-features = true [dependencies.sp-genesis-builder] version = "0.15.1" default-features = true [dependencies.sp-inherents] version = "34.0.0" default-features = true [dependencies.sp-io] version = "38.0.0" default-features = true [dependencies.sp-keyring] version = "39.0.0" default-features = true [dependencies.sp-mmr-primitives] version = "34.1.0" default-features = true [dependencies.sp-offchain] version = "34.0.0" default-features = true [dependencies.sp-runtime] version = "39.0.1" default-features = true [dependencies.sp-session] version = "36.0.0" default-features = true [dependencies.sp-timestamp] version = "34.0.0" default-features = true [dependencies.sp-transaction-pool] version = "34.0.0" default-features = true [dependencies.sp-version] version = "37.0.0" default-features = true [dependencies.sp-weights] version = "31.0.0" default-features = true [dependencies.thiserror] version = "1.0.48" [dependencies.westend-runtime] version = "18.0.0" optional = true [dependencies.westend-runtime-constants] version = "17.0.0" optional = true default-features = true [dependencies.xcm] version = "14.2.0" default-features = true package = "staging-xcm" [dependencies.xcm-runtime-apis] version = "0.4.0" default-features = true [dev-dependencies.assert_matches] version = "1.5.0" [dev-dependencies.serial_test] version = "2.0.0" [dev-dependencies.tempfile] version = "3.8.1" [features] db = ["sc-service/rocksdb"] default = [ "db", "full-node", ] fast-runtime = [ "rococo-runtime?/fast-runtime", "westend-runtime?/fast-runtime", ] full-node = [ "kvdb-rocksdb", "parity-db", "polkadot-approval-distribution", "polkadot-availability-bitfield-distribution", "polkadot-availability-distribution", "polkadot-availability-recovery", "polkadot-collator-protocol", "polkadot-dispute-distribution", "polkadot-gossip-support", "polkadot-network-bridge", "polkadot-node-collation-generation", "polkadot-node-core-approval-voting", "polkadot-node-core-av-store", "polkadot-node-core-backing", "polkadot-node-core-bitfield-signing", "polkadot-node-core-candidate-validation", "polkadot-node-core-chain-api", "polkadot-node-core-chain-selection", "polkadot-node-core-dispute-coordinator", "polkadot-node-core-prospective-parachains", "polkadot-node-core-provisioner", "polkadot-node-core-pvf", "polkadot-node-core-pvf-checker", "polkadot-node-core-runtime-api", "polkadot-statement-distribution", ] malus = ["full-node"] metadata-hash = [ "rococo-runtime?/metadata-hash", "westend-runtime?/metadata-hash", ] rococo-native = [ "frame-metadata-hash-extension", "rococo-runtime", "rococo-runtime-constants", ] runtime-benchmarks = [ "frame-benchmarking-cli/runtime-benchmarks", "frame-benchmarking/runtime-benchmarks", "frame-system/runtime-benchmarks", "polkadot-primitives/runtime-benchmarks", "polkadot-runtime-parachains/runtime-benchmarks", "rococo-runtime?/runtime-benchmarks", "sc-service/runtime-benchmarks", "sp-runtime/runtime-benchmarks", "westend-runtime?/runtime-benchmarks", "xcm-runtime-apis/runtime-benchmarks", ] runtime-metrics = [ "polkadot-runtime-parachains/runtime-metrics", "rococo-runtime?/runtime-metrics", "westend-runtime?/runtime-metrics", ] try-runtime = [ "frame-system/try-runtime", "pallet-transaction-payment/try-runtime", "polkadot-runtime-parachains/try-runtime", "rococo-runtime?/try-runtime", "sp-runtime/try-runtime", "westend-runtime?/try-runtime", ] westend-native = [ "frame-metadata-hash-extension", "westend-runtime", "westend-runtime-constants", ] [lints.clippy.all] level = "allow" priority = 0 [lints.clippy.bind_instead_of_map] level = "allow" priority = 2 [lints.clippy.borrowed-box] level = "allow" priority = 2 [lints.clippy.complexity] level = "warn" priority = 1 [lints.clippy.correctness] level = "warn" priority = 1 [lints.clippy.default_constructed_unit_structs] level = "allow" priority = 2 [lints.clippy.derivable_impls] level = "allow" priority = 2 [lints.clippy.eq_op] level = "allow" priority = 2 [lints.clippy.erasing_op] level = "allow" priority = 2 [lints.clippy.extra-unused-type-parameters] level = "allow" priority = 2 [lints.clippy.identity-op] level = "allow" priority = 2 [lints.clippy.if-same-then-else] level = "allow" priority = 2 [lints.clippy.needless-lifetimes] level = "allow" priority = 2 [lints.clippy.needless_option_as_deref] level = "allow" priority = 2 [lints.clippy.nonminimal-bool] level = "allow" priority = 2 [lints.clippy.option-map-unit-fn] level = "allow" priority = 2 [lints.clippy.stable_sort_primitive] level = "allow" priority = 2 [lints.clippy.too-many-arguments] level = "allow" priority = 2 [lints.clippy.type_complexity] level = "allow" priority = 2 [lints.clippy.unit_arg] level = "allow" priority = 2 [lints.clippy.unnecessary_cast] level = "allow" priority = 2 [lints.clippy.useless_conversion] level = "allow" priority = 2 [lints.clippy.while_immutable_condition] level = "allow" priority = 2 [lints.clippy.zero-prefixed-literal] level = "allow" priority = 2 [lints.rust.suspicious_double_ref_op] level = "allow" priority = 2 [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(substrate_runtime)"]