Cargo.toml 12.3 KB
Newer Older
Gav's avatar
Gav committed
1
2
[package]
name = "polkadot-runtime"
3
version = "0.9.4"
Gav's avatar
Gav committed
4
authors = ["Parity Technologies <admin@parity.io>"]
5
edition = "2018"
6
build = "build.rs"
Gav's avatar
Gav committed
7
8

[dependencies]
9
10
bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] }
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
11
log = { version = "0.4.14", default-features = false }
12
rustc-hex = { version = "2.1.0", default-features = false }
13
serde = { version = "1.0.123", default-features = false }
14
serde_derive = { version = "1.0.117", optional = true }
15
static_assertions = "1.1.0"
16
smallvec = "1.6.1"
Gavin Wood's avatar
Gavin Wood committed
17

18
19
authority-discovery-primitives = { package = "sp-authority-discovery", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
babe-primitives = { package = "sp-consensus-babe", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
20
beefy-primitives = { git = "https://github.com/paritytech/grandpa-bridge-gadget", branch = "master", default-features = false }
21
block-builder-api = { package = "sp-block-builder", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
22
23
inherents = { package = "sp-inherents", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
offchain-primitives = { package = "sp-offchain", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
24
25
tx-pool-api = { package = "sp-transaction-pool", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
Gavin Wood's avatar
Gavin Wood committed
26
27
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
28
29
30
31
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
sp-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
sp-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
32
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
33
sp-npos-elections = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
Gavin Wood's avatar
Gavin Wood committed
34

35
36
37
38
pallet-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
39
pallet-bounties = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
40
41
42
43
44
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-collective = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-democracy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-elections-phragmen = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
45
pallet-election-provider-multi-phase = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
46
47
48
49
50
51
frame-executive = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-grandpa = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-identity = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-im-online = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-indices = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-membership = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
52
pallet-mmr-primitives = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
53
54
55
56
57
58
59
pallet-multisig = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-nicks = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-offences = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-proxy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-scheduler = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
60
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
61
pallet-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
62
pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate", branch = "master" }
63
64
65
frame-system = {git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
66
pallet-tips = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
67
68
69
pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
70
frame-election-provider-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
71

72
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
Kian Paimani's avatar
Kian Paimani committed
73
frame-try-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
74
frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
75
76
pallet-offences-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
pallet-session-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
77
hex-literal = { version = "0.3.1", optional = true }
Gavin Wood's avatar
Gavin Wood committed
78

79
80
runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
81

82
83
max-encoded-len = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }

84
[dev-dependencies]
85
86
87
hex-literal = "0.3.1"
libsecp256k1 = "0.3.5"
tiny-keccak = "2.0.2"
88
89
keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate", branch = "master" }
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
90
trie-db = "0.22.3"
91
serde_json = "1.0.61"
92
separator = "0.4.1"
93
94

[build-dependencies]
95
substrate-wasm-builder = "3.0.0"
96

Gav's avatar
Gav committed
97
98
[features]
default = ["std"]
99
no_std = []
100
only-staking = []
Gav's avatar
Gav committed
101
std = [
102
	"authority-discovery-primitives/std",
103
	"bitvec/std",
104
	"primitives/std",
105
	"rustc-hex/std",
106
	"parity-scale-codec/std",
107
	"inherents/std",
108
109
	"sp-core/std",
	"sp-api/std",
Gavin Wood's avatar
Gavin Wood committed
110
111
	"tx-pool-api/std",
	"block-builder-api/std",
112
	"offchain-primitives/std",
113
	"sp-std/std",
114
	"frame-support/std",
115
116
	"frame-executive/std",
	"pallet-authority-discovery/std",
117
118
	"pallet-authorship/std",
	"pallet-balances/std",
119
	"pallet-bounties/std",
120
121
122
123
	"pallet-transaction-payment/std",
	"pallet-transaction-payment-rpc-runtime-api/std",
	"pallet-collective/std",
	"pallet-elections-phragmen/std",
124
	"pallet-election-provider-multi-phase/std",
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
	"pallet-democracy/std",
	"pallet-grandpa/std",
	"pallet-identity/std",
	"pallet-im-online/std",
	"pallet-indices/std",
	"pallet-membership/std",
	"pallet-multisig/std",
	"pallet-nicks/std",
	"pallet-offences/std",
	"pallet-proxy/std",
	"pallet-scheduler/std",
	"pallet-session/std",
	"pallet-staking/std",
	"pallet-timestamp/std",
	"pallet-treasury/std",
140
	"pallet-tips/std",
141
142
143
144
145
146
147
148
	"pallet-babe/std",
	"pallet-randomness-collective-flip/std",
	"pallet-vesting/std",
	"pallet-utility/std",
	"sp-runtime/std",
	"sp-staking/std",
	"frame-system/std",
	"frame-system-rpc-runtime-api/std",
149
	"sp-version/std",
150
151
	"serde_derive",
	"serde/std",
152
	"log/std",
153
	"babe-primitives/std",
Gavin Wood's avatar
Gavin Wood committed
154
	"sp-session/std",
155
	"runtime-common/std",
156
	"frame-try-runtime/std",
157
	"sp-npos-elections/std",
158
159
	"beefy-primitives/std",
	"pallet-mmr-primitives/std",
160
	"max-encoded-len/std",
161
	"frame-election-provider-support/std",
Gav's avatar
Gav committed
162
]
163
runtime-benchmarks = [
164
	"runtime-common/runtime-benchmarks",
165
166
	"frame-benchmarking",
	"frame-support/runtime-benchmarks",
167
	"frame-system/runtime-benchmarks",
168
	"sp-runtime/runtime-benchmarks",
169
	"pallet-babe/runtime-benchmarks",
170
171
172
173
	"pallet-balances/runtime-benchmarks",
	"pallet-collective/runtime-benchmarks",
	"pallet-democracy/runtime-benchmarks",
	"pallet-elections-phragmen/runtime-benchmarks",
174
	"pallet-election-provider-multi-phase/runtime-benchmarks",
175
176
	"pallet-grandpa/runtime-benchmarks",
	"pallet-identity/runtime-benchmarks",
177
	"pallet-im-online/runtime-benchmarks",
178
	"pallet-indices/runtime-benchmarks",
179
	"pallet-membership/runtime-benchmarks",
180
181
	"pallet-multisig/runtime-benchmarks",
	"pallet-proxy/runtime-benchmarks",
182
183
184
185
	"pallet-scheduler/runtime-benchmarks",
	"pallet-staking/runtime-benchmarks",
	"pallet-timestamp/runtime-benchmarks",
	"pallet-treasury/runtime-benchmarks",
186
187
	"pallet-bounties/runtime-benchmarks",
	"pallet-tips/runtime-benchmarks",
188
	"pallet-utility/runtime-benchmarks",
189
	"pallet-vesting/runtime-benchmarks",
190
191
	"pallet-offences-benchmarking",
	"pallet-session-benchmarking",
192
193
	"frame-system-benchmarking",
	"hex-literal",
194
	"frame-election-provider-support/runtime-benchmarks",
195
]
Kian Paimani's avatar
Kian Paimani committed
196
197
198
try-runtime = [
	"frame-executive/try-runtime",
	"frame-try-runtime",
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
	"frame-system/try-runtime",
	"pallet-authority-discovery/try-runtime",
	"pallet-authorship/try-runtime",
	"pallet-balances/try-runtime",
	"pallet-bounties/try-runtime",
	"pallet-transaction-payment/try-runtime",
	"pallet-collective/try-runtime",
	"pallet-elections-phragmen/try-runtime",
	"pallet-election-provider-multi-phase/try-runtime",
	"pallet-democracy/try-runtime",
	"pallet-grandpa/try-runtime",
	"pallet-identity/try-runtime",
	"pallet-im-online/try-runtime",
	"pallet-indices/try-runtime",
	"pallet-membership/try-runtime",
	"pallet-multisig/try-runtime",
	"pallet-nicks/try-runtime",
	"pallet-offences/try-runtime",
	"pallet-proxy/try-runtime",
	"pallet-scheduler/try-runtime",
	"pallet-session/try-runtime",
	"pallet-staking/try-runtime",
	"pallet-timestamp/try-runtime",
	"pallet-treasury/try-runtime",
	"pallet-tips/try-runtime",
	"pallet-babe/try-runtime",
	"pallet-randomness-collective-flip/try-runtime",
	"pallet-vesting/try-runtime",
	"pallet-utility/try-runtime",
	"runtime-common/try-runtime",
Kian Paimani's avatar
Kian Paimani committed
229
]
230
231
232
233
234
235
# When enabled, the runtime api will not be build.
#
# This is required by Cumulus to access certain types of the
# runtime without clashing with the runtime api exported functions
# in WASM.
disable-runtime-api = []
236
237
238
239
240
241
242

# A feature that should be enabled when the runtime should be build for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
# to make it smaller like logging for example.
on-chain-release-build = [
	"sp-api/disable-logging",
]