Cargo.toml 4.08 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.9"
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
polkadot-cli = { path = "cli", features = [ "kusama-native", "westend-native", "rococo-native" ]  }
16
color-eyre = { version = "0.5.11", default-features = false }
Fedor Sakharov's avatar
Fedor Sakharov committed
17
parity-util-mem = { version = "*", default-features = false, features = ["jemalloc-global"] }
asynchronous rob's avatar
asynchronous rob committed
18

19
[dev-dependencies]
20
assert_cmd = "1.0.2"
21
nix = "0.19.1"
22
tempfile = "3.2.0"
23

asynchronous rob's avatar
asynchronous rob committed
24
25
26
[workspace]
members = [
	"cli",
27
	"core-primitives",
28
	"erasure-coding",
asynchronous rob's avatar
asynchronous rob committed
29
	"primitives",
30
	"runtime/common",
31
	"runtime/common/slot_range_helper",
32
	"runtime/parachains",
33
34
	"runtime/polkadot",
	"runtime/kusama",
35
	"runtime/rococo",
ddorgan's avatar
ddorgan committed
36
	"runtime/westend",
37
	"runtime/test-runtime",
asynchronous rob's avatar
asynchronous rob committed
38
	"statement-table",
39
	"xcm",
Shawn Tabrizi's avatar
Shawn Tabrizi committed
40
	"xcm/xcm-builder",
41
	"xcm/xcm-executor",
42
	"xcm/xcm-executor/integration-tests",
Shaun W's avatar
Shaun W committed
43
44
	"xcm/xcm-simulator",
	"xcm/xcm-simulator/example",
Gavin Wood's avatar
Gavin Wood committed
45
	"xcm/pallet-xcm",
46
	"node/client",
47
	"node/collation-generation",
48
	"node/core/approval-voting",
49
	"node/core/av-store",
50
	"node/core/backing",
51
	"node/core/bitfield-signing",
52
	"node/core/candidate-validation",
Andronik Ordian's avatar
Andronik Ordian committed
53
	"node/core/chain-api",
54
	"node/core/chain-selection",
55
	"node/core/dispute-coordinator",
56
	"node/core/dispute-participation",
57
	"node/core/parachains-inherent",
58
	"node/core/provisioner",
59
	"node/core/pvf",
60
	"node/core/runtime-api",
61
	"node/network/approval-distribution",
62
	"node/network/bridge",
63
	"node/network/protocol",
64
	"node/network/statement-distribution",
65
	"node/network/bitfield-distribution",
66
	"node/network/availability-distribution",
67
	"node/network/availability-recovery",
68
	"node/network/collator-protocol",
69
	"node/network/gossip-support",
70
	"node/network/dispute-distribution",
71
	"node/overseer",
72
73
74
	"node/overseer/overseer-gen",
	"node/overseer/overseer-gen/proc-macro",
	"node/overseer/all-subsystems-gen",
75
	"node/malus",
76
	"node/primitives",
77
	"node/service",
78
	"node/subsystem",
79
	"node/subsystem-types",
80
81
	"node/subsystem-test-helpers",
	"node/subsystem-util",
82
	"node/jaeger",
83
	"node/metrics",
84
	"node/metered-channel",
85
86
	"node/test/client",
	"node/test/service",
87
88
89
	"node/test/polkadot-simnet/common",
	"node/test/polkadot-simnet/node",
	"node/test/polkadot-simnet/test",
90
91
	"parachain/test-parachains",
	"parachain/test-parachains/adder",
92
	"parachain/test-parachains/adder/collator",
Kian Paimani's avatar
Kian Paimani committed
93
	"utils/staking-miner",
asynchronous rob's avatar
asynchronous rob committed
94
95
]

96
97
98
99
# 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
100
101
102
[badges]
maintenance = { status = "actively-developed" }

103
104
105
106
107
# 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
108
[profile.release]
109
# Polkadot runtime requires unwinding.
asynchronous rob's avatar
asynchronous rob committed
110
panic = "unwind"
111
112

[features]
113
114
runtime-benchmarks= [ "polkadot-cli/runtime-benchmarks" ]
try-runtime = [ "polkadot-cli/try-runtime" ]
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144

# 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" }
145
146
147
148


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