Cargo.toml 9.19 KB
Newer Older
1
[package]
2
name = "polkadot-service"
3
version = "0.9.9"
4
5
6
7
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
8
# Substrate Client
9
sc-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master" }
10
babe = { package = "sc-consensus-babe", git = "https://github.com/paritytech/substrate", branch = "master" }
11
12
beefy-primitives = { git = "https://github.com/paritytech/grandpa-bridge-gadget", branch = "master" }
beefy-gadget = { git = "https://github.com/paritytech/grandpa-bridge-gadget", branch = "master" }
13
14
15
grandpa = { package = "sc-finality-grandpa", git = "https://github.com/paritytech/substrate", branch = "master" }
sc-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "master" }
16
17
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-client-db = { git = "https://github.com/paritytech/substrate", branch = "master" }
18
sc-consensus-uncles = { git = "https://github.com/paritytech/substrate", branch = "master" }
19
sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" }
20
sc-consensus-slots = { git = "https://github.com/paritytech/substrate", branch = "master" }
21
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
22
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
23
sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" }
24
sc-sync-state-rpc = { git = "https://github.com/paritytech/substrate", branch = "master" }
25
sc-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
26
sc-basic-authorship = { git = "https://github.com/paritytech/substrate", branch = "master" }
27
28
29
30
service = { package = "sc-service", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
telemetry = { package = "sc-telemetry", git = "https://github.com/paritytech/substrate", branch = "master" }

# Substrate Primitives
31
sp-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master" }
32
33
34
consensus_common = { package = "sp-consensus", git = "https://github.com/paritytech/substrate", branch = "master" }
grandpa_primitives = { package = "sp-finality-grandpa", git = "https://github.com/paritytech/substrate", branch = "master" }
inherents = { package = "sp-inherents", git = "https://github.com/paritytech/substrate", branch = "master" }
35
36
37
38
39
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-block-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" }
40
sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
41
42
43
44
sp-offchain = { package = "sp-offchain", git = "https://github.com/paritytech/substrate", branch = "master" }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-session = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-storage = { git = "https://github.com/paritytech/substrate", branch = "master" }
45
sp-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" }
46
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
47
48
sp-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-consensus-babe = { git = "https://github.com/paritytech/substrate", branch = "master" }
49
sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "master" }
50
51

# Substrate Pallets
52
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master" }
53
pallet-im-online = { git = "https://github.com/paritytech/substrate", branch = "master" }
54
pallet-staking = { git = "https://github.com/paritytech/substrate", branch = "master" }
55
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
56
pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branch = "master" }
57
58

# Substrate Other
59
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
60
prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https://github.com/paritytech/substrate", branch = "master" }
61
62

# External Crates
63
futures = "0.3.15"
64
hex-literal = "0.3.3"
65
tracing = "0.1.26"
66
serde = { version = "1.0.123", features = ["derive"] }
67
thiserror = "1.0.26"
68
kvdb = "0.10.0"
69
kvdb-rocksdb = { version = "0.14.0", optional = true }
70
async-trait = "0.1.42"
71
72

# Polkadot
73
polkadot-node-core-parachains-inherent = { path = "../core/parachains-inherent" }
74
polkadot-overseer = { path = "../overseer" }
75
polkadot-client = { path = "../client" }
76
77
polkadot-parachain = { path = "../../parachain" }
polkadot-primitives = { path = "../../primitives" }
78
polkadot-node-primitives = { path = "../primitives" }
79
80
polkadot-rpc = { path = "../../rpc" }
polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../subsystem" }
81
polkadot-node-subsystem-util = { path = "../subsystem-util" }
82
polkadot-runtime-parachains = { path = "../../runtime/parachains" }
83
84
85

# Polkadot Runtimes
polkadot-runtime = { path = "../../runtime/polkadot" }
86
87
88
kusama-runtime = { path = "../../runtime/kusama", optional = true }
westend-runtime = { path = "../../runtime/westend", optional = true }
rococo-runtime = { path = "../../runtime/rococo", optional = true }
89
90

# Polkadot Subsystems
91
polkadot-approval-distribution = { path = "../network/approval-distribution", optional = true }
92
93
polkadot-availability-bitfield-distribution = { path = "../network/bitfield-distribution", optional = true }
polkadot-availability-distribution = { path = "../network/availability-distribution", optional = true }
94
polkadot-availability-recovery = { path = "../network/availability-recovery", optional = true }
95
polkadot-collator-protocol = { path = "../network/collator-protocol", optional = true }
96
polkadot-dispute-distribution = { path = "../network/dispute-distribution", optional = true }
97
polkadot-gossip-support = { path = "../network/gossip-support", optional = true }
98
99
polkadot-network-bridge = { path = "../network/bridge", optional = true }
polkadot-node-collation-generation = { path = "../collation-generation", optional = true }
100
polkadot-node-core-approval-voting = { path = "../core/approval-voting", optional = true }
101
102
103
104
105
polkadot-node-core-av-store = { path = "../core/av-store", optional = true }
polkadot-node-core-backing = { path = "../core/backing", optional = true }
polkadot-node-core-bitfield-signing = { path = "../core/bitfield-signing", optional = true }
polkadot-node-core-candidate-validation = { path = "../core/candidate-validation", optional = true }
polkadot-node-core-chain-api = { path = "../core/chain-api", optional = true }
Andronik Ordian's avatar
Andronik Ordian committed
106
107
108
polkadot-node-core-chain-selection = { path = "../core/chain-selection", optional = true }
polkadot-node-core-dispute-coordinator = { path = "../core/dispute-coordinator", optional = true }
polkadot-node-core-dispute-participation = { path = "../core/dispute-participation", optional = true }
109
110
111
polkadot-node-core-provisioner = { path = "../core/provisioner", optional = true }
polkadot-node-core-runtime-api = { path = "../core/runtime-api", optional = true }
polkadot-statement-distribution = { path = "../network/statement-distribution", optional = true }
112
113

[dev-dependencies]
114
polkadot-test-client = { path = "../test/client" }
115
116
117
118
polkadot-node-subsystem-test-helpers = { path = "../subsystem-test-helpers" }
env_logger = "0.9.0"
log = "0.4.14"
assert_matches = "1.5.0"
119
120
121

[features]
default = ["db", "full-node"]
122
123
124
125
126

db = [
	"service/db"
]

127
full-node = [
128
	"polkadot-node-core-av-store",
129
	"polkadot-node-core-approval-voting",
130
131
	"polkadot-availability-bitfield-distribution",
	"polkadot-availability-distribution",
132
	"polkadot-availability-recovery",
133
	"polkadot-collator-protocol",
134
	"polkadot-dispute-distribution",
135
	"polkadot-gossip-support",
136
137
138
139
140
141
	"polkadot-network-bridge",
	"polkadot-node-collation-generation",
	"polkadot-node-core-backing",
	"polkadot-node-core-bitfield-signing",
	"polkadot-node-core-candidate-validation",
	"polkadot-node-core-chain-api",
Andronik Ordian's avatar
Andronik Ordian committed
142
143
144
	"polkadot-node-core-chain-selection",
	"polkadot-node-core-dispute-coordinator",
	"polkadot-node-core-dispute-participation",
145
146
147
	"polkadot-node-core-provisioner",
	"polkadot-node-core-runtime-api",
	"polkadot-statement-distribution",
148
	"polkadot-approval-distribution",
149
150
151
	"kvdb-rocksdb"
]

152
153
154
155
156
157
158
159
160
light-node = []

# Configure the native runtimes to use. Polkadot is always enabled by default.
#
# Validators require the native runtime currently
kusama-native = [ "kusama-runtime", "polkadot-client/kusama" ]
westend-native = [ "westend-runtime", "polkadot-client/westend" ]
rococo-native = [ "rococo-runtime", "polkadot-client/rococo" ]

161
162
163
164
165
166
167
168
169
170
171
runtime-benchmarks = [
	"polkadot-runtime/runtime-benchmarks",
	"kusama-runtime/runtime-benchmarks",
	"westend-runtime/runtime-benchmarks",
	"rococo-runtime/runtime-benchmarks"
]
try-runtime = [
	"polkadot-runtime/try-runtime",
	"kusama-runtime/try-runtime",
	"westend-runtime/try-runtime",
	"rococo-runtime/try-runtime",
172
]
173
malus = ["full-node"]