polkadot 21.0.0

Implementation of a `https://polkadot.network` node in Rust based on the Substrate framework.
[badges.maintenance]
status = "actively-developed"

[[bin]]
name = "polkadot"
path = "src/main.rs"

[[bin]]
name = "polkadot-execute-worker"
path = "src/bin/execute-worker.rs"

[[bin]]
name = "polkadot-prepare-worker"
path = "src/bin/prepare-worker.rs"

[build-dependencies.substrate-build-script-utils]
default-features = true
version = "11.0.0"

[dependencies.color-eyre]
default-features = false
version = "0.6.3"

[dependencies.polkadot-cli]
default-features = true
features = ["rococo-native", "westend-native"]
version = "22.0.0"

[dependencies.polkadot-node-core-pvf]
default-features = true
version = "21.0.0"

[dependencies.polkadot-node-core-pvf-common]
default-features = true
version = "17.0.0"

[dependencies.polkadot-node-core-pvf-execute-worker]
default-features = true
version = "17.0.0"

[dependencies.polkadot-node-core-pvf-prepare-worker]
default-features = true
version = "17.0.0"

[dependencies.polkadot-overseer]
default-features = true
version = "21.0.0"

[dependencies.tikv-jemallocator]
features = ["unprefixed_malloc_on_supported_platforms"]
optional = true
version = "0.5.0"

[dev-dependencies.assert_cmd]
version = "2.0.14"

[dev-dependencies.nix]
features = ["signal"]
version = "0.28.0"

[dev-dependencies.tempfile]
version = "3.8.1"

[dev-dependencies.tokio]
default-features = true
version = "1.40.0"

[features]
ci-only-tests = ["polkadot-node-core-pvf/ci-only-tests"]
fast-runtime = ["polkadot-cli/fast-runtime"]
jemalloc-allocator = ["dep:tikv-jemallocator", "polkadot-node-core-pvf-prepare-worker/jemalloc-allocator", "polkadot-node-core-pvf/jemalloc-allocator", "polkadot-overseer/jemalloc-allocator"]
metadata-hash = ["polkadot-cli/metadata-hash"]
pyroscope = ["polkadot-cli/pyroscope"]
runtime-benchmarks = ["polkadot-cli/runtime-benchmarks"]
runtime-metrics = ["polkadot-cli/runtime-metrics"]
try-runtime = ["polkadot-cli/try-runtime"]

[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]
check-cfg = ['cfg(build_opt_level, values("3"))', 'cfg(build_profile, values("debug", "release"))', "cfg(enable_alloc_error_handler)", "cfg(fuzzing)", "cfg(substrate_runtime)"]
level = "warn"
priority = 0

[package]
authors = ["Parity Technologies <admin@parity.io>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
default-run = "polkadot"
description = "Implementation of a `https://polkadot.network` node in Rust based on the Substrate framework."
edition = "2021"
license = "GPL-3.0-only"
name = "polkadot"
readme = "README.md"
rust-version = "1.64.0"
version = "21.0.0"

[package.metadata.deb]
assets = [["target/release/polkadot", "/usr/bin/", "755"], ["target/release/polkadot-prepare-worker", "/usr/lib/polkadot/", "755"], ["target/release/polkadot-execute-worker", "/usr/lib/polkadot/", "755"], ["scripts/packaging/polkadot.service", "/lib/systemd/system/", "644"]]
conf-files = ["/etc/default/polkadot"]
extended-description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
license-file = ["LICENSE", "0"]
maintainer = "security@parity.io"
maintainer-scripts = "scripts/packaging/deb-maintainer-scripts"
name = "polkadot"
section = "misc"

[package.metadata.spellcheck]
config = "./scripts/ci/gitlab/spellcheck.toml"

[target.'cfg(target_os = "linux")'.dependencies.tikv-jemallocator]
features = ["unprefixed_malloc_on_supported_platforms"]
version = "0.5.0"

[[test]]
name = "benchmark_block"
path = "tests/benchmark_block.rs"

[[test]]
name = "benchmark_extrinsic"
path = "tests/benchmark_extrinsic.rs"

[[test]]
name = "benchmark_overhead"
path = "tests/benchmark_overhead.rs"

[[test]]
name = "benchmark_storage_works"
path = "tests/benchmark_storage_works.rs"

[[test]]
name = "common"
path = "tests/common.rs"

[[test]]
name = "invalid_order_arguments"
path = "tests/invalid_order_arguments.rs"

[[test]]
name = "purge_chain_works"
path = "tests/purge_chain_works.rs"

[[test]]
name = "running_the_node_and_interrupt"
path = "tests/running_the_node_and_interrupt.rs"

[[test]]
name = "workers"
path = "tests/workers.rs"