Cargo.toml 3.5 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.9.4"
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.12"
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/common/slot_range_helper",
35
	"runtime/parachains",
36
37
	"runtime/polkadot",
	"runtime/kusama",
38
	"runtime/rococo",
ddorgan's avatar
ddorgan committed
39
	"runtime/westend",
40
	"runtime/test-runtime",
asynchronous rob's avatar
asynchronous rob committed
41
	"statement-table",
42
	"xcm",
Shawn Tabrizi's avatar
Shawn Tabrizi committed
43
	"xcm/xcm-builder",
44
	"xcm/xcm-executor",
Gavin Wood's avatar
Gavin Wood committed
45
	"xcm/pallet-xcm",
46
	"node/collation-generation",
47
	"node/core/approval-voting",
48
	"node/core/av-store",
49
	"node/core/backing",
50
	"node/core/bitfield-signing",
51
	"node/core/candidate-validation",
Andronik Ordian's avatar
Andronik Ordian committed
52
	"node/core/chain-api",
53
	"node/core/parachains-inherent",
54
	"node/core/provisioner",
55
	"node/core/pvf",
56
	"node/core/runtime-api",
57
	"node/network/approval-distribution",
58
	"node/network/bridge",
59
	"node/network/protocol",
60
	"node/network/statement-distribution",
61
	"node/network/bitfield-distribution",
62
	"node/network/availability-distribution",
63
	"node/network/availability-recovery",
64
	"node/network/collator-protocol",
65
	"node/network/gossip-support",
66
	"node/overseer",
67
	"node/primitives",
68
	"node/service",
69
	"node/subsystem",
70
	"node/subsystem/dispatch-gen",
71
72
	"node/subsystem-test-helpers",
	"node/subsystem-util",
73
	"node/jaeger",
74
	"node/metered-channel",
75
76
	"node/test/client",
	"node/test/service",
77
78
	"parachain/test-parachains",
	"parachain/test-parachains/adder",
79
	"parachain/test-parachains/adder/collator",
asynchronous rob's avatar
asynchronous rob committed
80
81
]

82
83
84
85
# We want to be able to build the bridge relayer without pulling it (and all of its
# dependencies into the Polkadot workspace)
exclude = ["bridges/relays/bin-substrate", "bridges/bin/rialto/runtime", "bridges/bin/millau/runtime"]

asynchronous rob's avatar
asynchronous rob committed
86
87
88
[badges]
maintenance = { status = "actively-developed" }

89
90
91
92
93
# 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
94
[profile.release]
95
# Polkadot runtime requires unwinding.
asynchronous rob's avatar
asynchronous rob committed
96
panic = "unwind"
97
98
99

[features]
runtime-benchmarks=["cli/runtime-benchmarks"]
Kian Paimani's avatar
Kian Paimani committed
100
try-runtime = ["cli/try-runtime"]
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130

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