# 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.64.0" name = "polkadot" version = "18.0.0" authors = ["Parity Technologies "] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false default-run = "polkadot" description = "Implementation of a `https://polkadot.network` node in Rust based on the Substrate framework." readme = "README.md" license = "GPL-3.0-only" [package.metadata.deb] name = "polkadot" extended-description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework." section = "misc" maintainer = "security@parity.io" license-file = [ "LICENSE", "0", ] maintainer-scripts = "scripts/packaging/deb-maintainer-scripts" 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"] [package.metadata.spellcheck] config = "./scripts/ci/gitlab/spellcheck.toml" [[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" [[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" [dependencies.color-eyre] version = "0.6.3" default-features = false [dependencies.polkadot-cli] version = "19.0.0" features = [ "rococo-native", "westend-native", ] default-features = true [dependencies.polkadot-node-core-pvf] version = "18.0.0" default-features = true [dependencies.polkadot-node-core-pvf-common] version = "16.0.0" default-features = true [dependencies.polkadot-node-core-pvf-execute-worker] version = "16.0.0" default-features = true [dependencies.polkadot-node-core-pvf-prepare-worker] version = "16.0.0" default-features = true [dependencies.polkadot-overseer] version = "18.0.0" default-features = true [dependencies.tikv-jemallocator] version = "0.5.0" features = ["unprefixed_malloc_on_supported_platforms"] optional = true [dev-dependencies.assert_cmd] version = "2.0.14" [dev-dependencies.nix] version = "0.28.0" features = ["signal"] [dev-dependencies.tempfile] version = "3.8.1" [dev-dependencies.tokio] version = "1.37.0" default-features = true [build-dependencies.substrate-build-script-utils] version = "11.0.0" default-features = true [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"] [target.'cfg(target_os = "linux")'.dependencies.tikv-jemallocator] version = "0.5.0" features = ["unprefixed_malloc_on_supported_platforms"] [badges.maintenance] status = "actively-developed" [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)"]