Cargo.toml 3.09 KB
Newer Older
asynchronous rob's avatar
asynchronous rob committed
1
2
3
4
5
6
[[bin]]
name = "polkadot"
path = "src/main.rs"

[package]
name = "polkadot"
7
8
description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
license = "GPL-3.0-only"
9
version = "0.8.27"
asynchronous rob's avatar
asynchronous rob committed
10
authors = ["Parity Technologies <admin@parity.io>"]
11
edition = "2018"
12
readme = "README.md"
asynchronous rob's avatar
asynchronous rob committed
13
14

[dependencies]
15
cli = { package = "polkadot-cli", path = "cli" }
16
color-eyre = "0.5.10"
17
thiserror = "1.0.23"
18
futures = "0.3.8"
19
service = { package = "polkadot-service", path = "node/service" }
Fedor Sakharov's avatar
Fedor Sakharov committed
20
parity-util-mem = { version = "*", default-features = false, features = ["jemalloc-global"] }
asynchronous rob's avatar
asynchronous rob committed
21

22
[dev-dependencies]
23
assert_cmd = "1.0.2"
24
nix = "0.19.1"
25
tempfile = "3.2.0"
26

asynchronous rob's avatar
asynchronous rob committed
27
28
29
[workspace]
members = [
	"cli",
30
	"core-primitives",
31
	"erasure-coding",
asynchronous rob's avatar
asynchronous rob committed
32
	"primitives",
33
	"runtime/common",
34
	"runtime/parachains",
35
36
	"runtime/polkadot",
	"runtime/kusama",
37
	"runtime/rococo",
ddorgan's avatar
ddorgan committed
38
	"runtime/westend",
39
	"runtime/test-runtime",
asynchronous rob's avatar
asynchronous rob committed
40
	"statement-table",
41
	"xcm",
Shawn Tabrizi's avatar
Shawn Tabrizi committed
42
	"xcm/xcm-builder",
43
	"xcm/xcm-executor",
44
	"node/collation-generation",
45
	"node/core/av-store",
46
	"node/core/backing",
47
	"node/core/bitfield-signing",
48
	"node/core/candidate-selection",
49
	"node/core/candidate-validation",
Andronik Ordian's avatar
Andronik Ordian committed
50
	"node/core/chain-api",
51
	"node/core/proposer",
52
	"node/core/provisioner",
53
	"node/core/runtime-api",
54
	"node/network/bridge",
55
	"node/network/pov-distribution",
56
	"node/network/protocol",
57
	"node/network/statement-distribution",
58
	"node/network/bitfield-distribution",
59
	"node/network/availability-distribution",
60
	"node/network/collator-protocol",
61
	"node/overseer",
62
	"node/primitives",
63
	"node/service",
64
	"node/subsystem",
65
66
	"node/subsystem-test-helpers",
	"node/subsystem-util",
67
	"node/jaeger",
68
	"node/metered-channel",
69
70
	"node/test/client",
	"node/test/service",
71
72
	"parachain/test-parachains",
	"parachain/test-parachains/adder",
73
	"parachain/test-parachains/adder/collator",
asynchronous rob's avatar
asynchronous rob committed
74
75
76
77
78
]

[badges]
maintenance = { status = "actively-developed" }

79
80
81
82
83
# make sure dev builds with backtrace do
# not slow us down
[profile.dev.package.backtrace]
opt-level = 3

asynchronous rob's avatar
asynchronous rob committed
84
[profile.release]
85
# Polkadot runtime requires unwinding.
asynchronous rob's avatar
asynchronous rob committed
86
panic = "unwind"
87
88
89

[features]
runtime-benchmarks=["cli/runtime-benchmarks"]
90
real-overseer=["cli/real-overseer"]
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

# Configuration for building a .deb package - for use with `cargo-deb`
[package.metadata.deb]
name = "polkadot"
extended-description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
section = "misc"
maintainer = "martin@parity.io"
license-file = ["LICENSE", "0"]
# https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
maintainer-scripts = "scripts/packaging/deb-maintainer-scripts"
assets = [
	["target/release/polkadot", "/usr/bin/", "755"],
	["scripts/packaging/polkadot.service", "/lib/systemd/system/", "644"]
]
conf-files = [
	"/etc/default/polkadot"
]

# Configuration for building an .rpm package - for use with `cargo-rpm`
[package.metadata.rpm]
package = "polkadot"

[package.metadata.rpm.cargo]
buildflags = ["--release"]

[package.metadata.rpm.targets]
polkadot = { path = "/usr/bin/polkadot" }

[package.metadata.rpm.files]
"../scripts/packaging/polkadot.service" = { path = "/usr/lib/systemd/system/polkadot.service", mode = "644" }