-
Notifications
You must be signed in to change notification settings - Fork 97
/
Cargo.toml
352 lines (340 loc) · 14.9 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
[package]
authors.workspace = true
build = "build.rs"
description = "Runtime of the Kusama Network"
edition.workspace = true
license.workspace = true
name = "staging-kusama-runtime"
repository.workspace = true
version.workspace = true
[dependencies]
bitvec = { version = "1.0.0", default-features = false, features = ["alloc"] }
parity-scale-codec = { version = "3.6.1", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
log = { version = "0.4.17", default-features = false }
rustc-hex = { version = "2.1.0", default-features = false }
serde = { version = "1.0.188", default-features = false }
serde_derive = { version = "1.0.117", optional = true }
static_assertions = "1.1.0"
smallvec = "1.8.0"
authority-discovery-primitives = { package = "sp-authority-discovery", default-features = false , version = "21.0.0" }
babe-primitives = { package = "sp-consensus-babe", default-features = false , version = "0.27.0" }
beefy-primitives = { package = "sp-consensus-beefy", default-features = false , version = "8.0.0" }
binary-merkle-tree = { default-features = false , version = "8.0.0" }
kusama-runtime-constants = { package = "kusama-runtime-constants", path = "constants", default-features = false }
sp-api = { default-features = false , version = "21.0.0" }
inherents = { package = "sp-inherents", default-features = false , version = "21.0.0" }
offchain-primitives = { package = "sp-offchain", default-features = false , version = "21.0.0" }
sp-std = { package = "sp-std", default-features = false , version = "10.0.0" }
sp-application-crypto = { default-features = false , version = "25.0.0" }
sp-arithmetic = { default-features = false , version = "18.0.0" }
sp-io = { default-features = false , version = "25.0.0" }
sp-mmr-primitives = { default-features = false , version = "21.0.0" }
sp-runtime = { default-features = false , version = "26.0.0" }
sp-staking = { default-features = false , version = "21.0.0" }
sp-core = { default-features = false , version = "23.0.0" }
sp-session = { default-features = false , version = "22.0.0" }
sp-storage = { default-features = false , version = "15.0.0" }
sp-version = { default-features = false , version = "24.0.0" }
tx-pool-api = { package = "sp-transaction-pool", default-features = false , version = "21.0.0" }
block-builder-api = { package = "sp-block-builder", default-features = false , version = "21.0.0" }
sp-npos-elections = { default-features = false , version = "21.0.0" }
pallet-authority-discovery = { default-features = false , version = "23.0.0" }
pallet-authorship = { default-features = false , version = "23.0.0" }
pallet-babe = { default-features = false , version = "23.0.0" }
pallet-bags-list = { default-features = false , version = "22.0.0" }
pallet-balances = { default-features = false , version = "23.0.0" }
pallet-beefy = { default-features = false , version = "23.0.0" }
pallet-beefy-mmr = { default-features = false , version = "23.0.0" }
pallet-bounties = { default-features = false , version = "22.0.0" }
pallet-child-bounties = { default-features = false , version = "22.0.0" }
pallet-transaction-payment = { default-features = false , version = "23.0.0" }
pallet-transaction-payment-rpc-runtime-api = { default-features = false , version = "23.0.0" }
pallet-nomination-pools-runtime-api = { default-features = false , version = "18.0.0" }
pallet-collective = { default-features = false , version = "23.0.0" }
pallet-conviction-voting = { default-features = false , version = "23.0.0" }
pallet-democracy = { default-features = false , version = "23.0.0" }
pallet-elections-phragmen = { default-features = false , version = "24.0.0" }
pallet-election-provider-multi-phase = { default-features = false , version = "22.0.0" }
pallet-fast-unstake = { default-features = false , version = "22.0.0" }
frame-executive = { default-features = false , version = "23.0.0" }
pallet-grandpa = { default-features = false , version = "23.0.0" }
pallet-nis = { default-features = false , version = "23.0.0" }
pallet-identity = { default-features = false , version = "23.0.0" }
pallet-im-online = { default-features = false , version = "22.0.0" }
pallet-indices = { default-features = false , version = "23.0.0" }
pallet-membership = { default-features = false , version = "23.0.0" }
pallet-message-queue = { default-features = false , version = "26.0.0" }
pallet-mmr = { default-features = false , version = "22.0.0" }
pallet-multisig = { default-features = false , version = "23.0.0" }
pallet-nomination-pools = { default-features = false , version = "20.0.0" }
pallet-offences = { default-features = false , version = "22.0.0" }
pallet-preimage = { default-features = false , version = "23.0.0" }
pallet-proxy = { default-features = false , version = "23.0.0" }
pallet-ranked-collective = { default-features = false , version = "23.0.0" }
pallet-recovery = { default-features = false , version = "23.0.0" }
pallet-referenda = { default-features = false , version = "23.0.0" }
pallet-scheduler = { default-features = false , version = "24.0.0" }
pallet-session = { default-features = false , version = "23.0.0" }
pallet-society = { default-features = false, features = ["experimental"] , version = "23.0.0" }
frame-support = { default-features = false , version = "23.0.0" }
pallet-staking = { default-features = false , version = "23.0.0" }
pallet-state-trie-migration = { default-features = false , version = "24.0.0" }
pallet-staking-runtime-api = { default-features = false , version = "9.0.0" }
frame-system = { default-features = false , version = "23.0.0" }
frame-system-rpc-runtime-api = { default-features = false , version = "21.0.0" }
pallet-timestamp = { default-features = false , version = "22.0.0" }
pallet-tips = { default-features = false , version = "22.0.0" }
pallet-treasury = { default-features = false , version = "22.0.0" }
pallet-utility = { default-features = false , version = "23.0.0" }
pallet-vesting = { default-features = false , version = "23.0.0" }
pallet-whitelist = { default-features = false , version = "22.0.0" }
pallet-xcm = { default-features = false , version = "2.0.0" }
pallet-xcm-benchmarks = { default-features = false, optional = true , version = "2.0.0" }
frame-election-provider-support = { default-features = false , version = "23.0.0" }
frame-benchmarking = { default-features = false, optional = true , version = "23.0.0" }
frame-try-runtime = { default-features = false, optional = true , version = "0.29.0" }
pallet-offences-benchmarking = { default-features = false, optional = true , version = "23.0.0" }
pallet-session-benchmarking = { default-features = false, optional = true , version = "23.0.0" }
pallet-nomination-pools-benchmarking = { default-features = false, optional = true , version = "21.0.0" }
frame-system-benchmarking = { default-features = false, optional = true , version = "23.0.0" }
pallet-election-provider-support-benchmarking = { default-features = false, optional = true , version = "22.0.0" }
hex-literal = "0.4.1"
runtime-common = { package = "polkadot-runtime-common", default-features = false, features = ["experimental"] , version = "2.0.0" }
runtime-parachains = { package = "polkadot-runtime-parachains", default-features = false , version = "2.0.0" }
primitives = { package = "polkadot-primitives", default-features = false , version = "2.0.0" }
xcm = { package = "staging-xcm", default-features = false , version = "2.0.1" }
xcm-executor = { package = "staging-xcm-executor", default-features = false , version = "2.0.0" }
xcm-builder = { package = "staging-xcm-builder", default-features = false , version = "2.0.1" }
[dev-dependencies]
tiny-keccak = { version = "2.0.2", features = ["keccak"] }
keyring = { package = "sp-keyring", version = "26.0.0" }
sp-trie = { version = "24.0.0" }
separator = "0.4.1"
serde_json = "1.0.96"
remote-externalities = { package = "frame-remote-externalities" , version = "0.30.0" }
tokio = { version = "1.24.2", features = ["macros"] }
sp-tracing = { default-features = false , version = "12.0.0" }
[build-dependencies]
substrate-wasm-builder = { version = "12.0.0" }
[features]
default = [ "std" ]
no_std = []
only-staking = []
std = [
"authority-discovery-primitives/std",
"babe-primitives/std",
"beefy-primitives/std",
"binary-merkle-tree/std",
"bitvec/std",
"block-builder-api/std",
"frame-benchmarking?/std",
"frame-election-provider-support/std",
"frame-executive/std",
"frame-support/std",
"frame-system-benchmarking?/std",
"frame-system-rpc-runtime-api/std",
"frame-system/std",
"frame-try-runtime/std",
"inherents/std",
"kusama-runtime-constants/std",
"log/std",
"offchain-primitives/std",
"pallet-authority-discovery/std",
"pallet-authorship/std",
"pallet-babe/std",
"pallet-bags-list/std",
"pallet-balances/std",
"pallet-beefy-mmr/std",
"pallet-beefy/std",
"pallet-bounties/std",
"pallet-child-bounties/std",
"pallet-collective/std",
"pallet-conviction-voting/std",
"pallet-democracy/std",
"pallet-election-provider-multi-phase/std",
"pallet-election-provider-support-benchmarking?/std",
"pallet-elections-phragmen/std",
"pallet-fast-unstake/std",
"pallet-grandpa/std",
"pallet-identity/std",
"pallet-im-online/std",
"pallet-indices/std",
"pallet-membership/std",
"pallet-message-queue/std",
"pallet-mmr/std",
"pallet-multisig/std",
"pallet-nis/std",
"pallet-nomination-pools-benchmarking?/std",
"pallet-nomination-pools-runtime-api/std",
"pallet-nomination-pools/std",
"pallet-offences-benchmarking?/std",
"pallet-offences/std",
"pallet-preimage/std",
"pallet-proxy/std",
"pallet-ranked-collective/std",
"pallet-recovery/std",
"pallet-referenda/std",
"pallet-scheduler/std",
"pallet-session-benchmarking?/std",
"pallet-session/std",
"pallet-society/std",
"pallet-staking-runtime-api/std",
"pallet-staking/std",
"pallet-state-trie-migration/std",
"pallet-timestamp/std",
"pallet-tips/std",
"pallet-transaction-payment-rpc-runtime-api/std",
"pallet-transaction-payment/std",
"pallet-treasury/std",
"pallet-utility/std",
"pallet-vesting/std",
"pallet-whitelist/std",
"pallet-xcm-benchmarks?/std",
"pallet-xcm/std",
"parity-scale-codec/std",
"primitives/std",
"runtime-common/std",
"runtime-parachains/std",
"rustc-hex/std",
"scale-info/std",
"serde/std",
"serde_derive",
"sp-api/std",
"sp-application-crypto/std",
"sp-arithmetic/std",
"sp-core/std",
"sp-io/std",
"sp-mmr-primitives/std",
"sp-npos-elections/std",
"sp-runtime/std",
"sp-session/std",
"sp-staking/std",
"sp-std/std",
"sp-storage/std",
"sp-tracing/std",
"sp-version/std",
"tx-pool-api/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm/std",
]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-election-provider-support/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-babe/runtime-benchmarks",
"pallet-bags-list/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-bounties/runtime-benchmarks",
"pallet-child-bounties/runtime-benchmarks",
"pallet-collective/runtime-benchmarks",
"pallet-conviction-voting/runtime-benchmarks",
"pallet-democracy/runtime-benchmarks",
"pallet-election-provider-multi-phase/runtime-benchmarks",
"pallet-election-provider-support-benchmarking/runtime-benchmarks",
"pallet-elections-phragmen/runtime-benchmarks",
"pallet-fast-unstake/runtime-benchmarks",
"pallet-grandpa/runtime-benchmarks",
"pallet-identity/runtime-benchmarks",
"pallet-im-online/runtime-benchmarks",
"pallet-indices/runtime-benchmarks",
"pallet-membership/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
"pallet-mmr/runtime-benchmarks",
"pallet-multisig/runtime-benchmarks",
"pallet-nis/runtime-benchmarks",
"pallet-nomination-pools-benchmarking/runtime-benchmarks",
"pallet-nomination-pools/runtime-benchmarks",
"pallet-offences-benchmarking/runtime-benchmarks",
"pallet-offences/runtime-benchmarks",
"pallet-preimage/runtime-benchmarks",
"pallet-proxy/runtime-benchmarks",
"pallet-ranked-collective/runtime-benchmarks",
"pallet-recovery/runtime-benchmarks",
"pallet-referenda/runtime-benchmarks",
"pallet-scheduler/runtime-benchmarks",
"pallet-session-benchmarking/runtime-benchmarks",
"pallet-society/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"pallet-state-trie-migration/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-tips/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-vesting/runtime-benchmarks",
"pallet-whitelist/runtime-benchmarks",
"pallet-xcm-benchmarks/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"primitives/runtime-benchmarks",
"runtime-common/runtime-benchmarks",
"runtime-parachains/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-staking/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
]
try-runtime = [
"frame-election-provider-support/try-runtime",
"frame-executive/try-runtime",
"frame-support/try-runtime",
"frame-system/try-runtime",
"frame-try-runtime",
"frame-try-runtime/try-runtime",
"pallet-authority-discovery/try-runtime",
"pallet-authorship/try-runtime",
"pallet-babe/try-runtime",
"pallet-bags-list/try-runtime",
"pallet-balances/try-runtime",
"pallet-beefy-mmr/try-runtime",
"pallet-beefy/try-runtime",
"pallet-bounties/try-runtime",
"pallet-child-bounties/try-runtime",
"pallet-collective/try-runtime",
"pallet-conviction-voting/try-runtime",
"pallet-democracy/try-runtime",
"pallet-election-provider-multi-phase/try-runtime",
"pallet-elections-phragmen/try-runtime",
"pallet-fast-unstake/try-runtime",
"pallet-grandpa/try-runtime",
"pallet-identity/try-runtime",
"pallet-im-online/try-runtime",
"pallet-indices/try-runtime",
"pallet-membership/try-runtime",
"pallet-message-queue/try-runtime",
"pallet-mmr/try-runtime",
"pallet-multisig/try-runtime",
"pallet-nis/try-runtime",
"pallet-nomination-pools/try-runtime",
"pallet-offences/try-runtime",
"pallet-preimage/try-runtime",
"pallet-proxy/try-runtime",
"pallet-ranked-collective/try-runtime",
"pallet-recovery/try-runtime",
"pallet-referenda/try-runtime",
"pallet-scheduler/try-runtime",
"pallet-session/try-runtime",
"pallet-society/try-runtime",
"pallet-staking/try-runtime",
"pallet-state-trie-migration/try-runtime",
"pallet-timestamp/try-runtime",
"pallet-tips/try-runtime",
"pallet-transaction-payment/try-runtime",
"pallet-treasury/try-runtime",
"pallet-utility/try-runtime",
"pallet-vesting/try-runtime",
"pallet-whitelist/try-runtime",
"pallet-xcm/try-runtime",
"runtime-common/try-runtime",
"runtime-parachains/try-runtime",
"sp-runtime/try-runtime",
]
# 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" ]
# Set timing constants (e.g. session period) to faster versions to speed up testing.
fast-runtime = []
runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ]