Cargo.toml 8.58 KB
Newer Older
1
[package]
2
name = "polkadot-service"
3
version = "0.9.5"
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-finality-grandpa-warp-sync = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
23
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
24
sc-transaction-pool = { 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.1"
65
tracing = "0.1.26"
66
serde = { version = "1.0.123", features = ["derive"] }
67
thiserror = "1.0.23"
68
69
kvdb = "0.9.0"
kvdb-rocksdb = { version = "0.11.0", optional = true }
70
71

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

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

# Polkadot Subsystems
polkadot-availability-bitfield-distribution = { path = "../network/bitfield-distribution", optional = true }
polkadot-availability-distribution = { path = "../network/availability-distribution", optional = true }
92
polkadot-availability-recovery = { path = "../network/availability-recovery", optional = true }
93
polkadot-collator-protocol = { path = "../network/collator-protocol", optional = true }
94
polkadot-gossip-support = { path = "../network/gossip-support", optional = true }
95
96
97
98
99
100
101
102
103
104
polkadot-network-bridge = { path = "../network/bridge", optional = true }
polkadot-node-collation-generation = { path = "../collation-generation", optional = true }
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 }
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 }
105
polkadot-approval-distribution = { path = "../network/approval-distribution", optional = true }
106
polkadot-node-core-approval-voting = { path = "../core/approval-voting", optional = true }
107
108

[dev-dependencies]
109
polkadot-test-client = { path = "../test/client" }
110
env_logger = "0.8.2"
111
112
113

[features]
default = ["db", "full-node"]
114
115
116
117
118

db = [
	"service/db"
]

119
full-node = [
120
	"polkadot-node-core-av-store",
121
	"polkadot-node-core-approval-voting",
122
123
	"polkadot-availability-bitfield-distribution",
	"polkadot-availability-distribution",
124
	"polkadot-availability-recovery",
125
	"polkadot-collator-protocol",
126
	"polkadot-gossip-support",
127
128
129
130
131
132
133
134
135
	"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",
	"polkadot-node-core-provisioner",
	"polkadot-node-core-runtime-api",
	"polkadot-statement-distribution",
136
	"polkadot-approval-distribution",
137
138
139
140
	"sc-finality-grandpa-warp-sync",
	"kvdb-rocksdb"
]

141
142
143
144
145
146
147
148
149
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" ]

150
151
152
153
154
155
156
157
158
159
160
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",
161
]
162
malus = ["full-node"]