Cargo.toml 2.98 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.26"
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.6"
17
thiserror = "1"
Gavin Wood's avatar
Gavin Wood committed
18
futures = "0.3.4"
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
23
24
[dev-dependencies]
assert_cmd = "0.12"
nix = "0.17"
pscott's avatar
pscott committed
25
tempfile = "3.1.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-v1",
ddorgan's avatar
ddorgan committed
38
	"runtime/westend",
39
	"runtime/test-runtime",
asynchronous rob's avatar
asynchronous rob committed
40
	"statement-table",
41
	"validation",
42
	"xcm",
Shawn Tabrizi's avatar
Shawn Tabrizi committed
43
	"xcm/xcm-builder",
44
	"xcm/xcm-executor",
45
	"node/collation-generation",
46
	"node/core/av-store",
47
	"node/core/backing",
48
	"node/core/bitfield-signing",
49
	"node/core/candidate-selection",
50
	"node/core/candidate-validation",
Andronik Ordian's avatar
Andronik Ordian committed
51
	"node/core/chain-api",
52
	"node/core/proposer",
53
	"node/core/provisioner",
54
	"node/core/runtime-api",
55
	"node/network/bridge",
56
	"node/network/pov-distribution",
57
	"node/network/protocol",
58
	"node/network/statement-distribution",
59
	"node/network/bitfield-distribution",
60
	"node/network/availability-distribution",
61
	"node/network/collator-protocol",
62
	"node/overseer",
63
	"node/primitives",
64
	"node/service",
65
	"node/subsystem",
66
67
	"node/subsystem-test-helpers",
	"node/subsystem-util",
68
69
	"node/test/client",
	"node/test/service",
70
71
	"parachain/test-parachains",
	"parachain/test-parachains/adder",
asynchronous rob's avatar
asynchronous rob committed
72
73
74
75
76
]

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

77
78
79
80
81
# 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
82
[profile.release]
83
# Polkadot runtime requires unwinding.
asynchronous rob's avatar
asynchronous rob committed
84
panic = "unwind"
85
86
87

[features]
runtime-benchmarks=["cli/runtime-benchmarks"]
88
89
90
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

# 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" }