Cargo.toml 10.5 KB
Newer Older
Gav's avatar
Gav committed
1
2
[package]
name = "polkadot-runtime"
3
version = "0.8.29"
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
20
21
22
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 }
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
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 }
Gavin Wood's avatar
Gavin Wood committed
23
24
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 }
25
26
27
28
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 }
29
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
30
31
tx-pool-api = { package = "sp-transaction-pool", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
block-builder-api = { package = "sp-block-builder", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
Gavin Wood's avatar
Gavin Wood committed
32

33
34
35
36
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 }
37
pallet-bounties = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
38
39
40
41
42
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 }
43
pallet-election-provider-multi-phase = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
44
45
46
47
48
49
50
51
52
53
54
55
56
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 }
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 }
57
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
58
pallet-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
59
pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate", branch = "master" }
60
61
62
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 }
63
pallet-tips = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
64
65
66
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 }
67

68
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
Kian Paimani's avatar
Kian Paimani committed
69
frame-try-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
70
frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
71
72
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 }
73
hex-literal = { version = "0.3.1", optional = true }
Gavin Wood's avatar
Gavin Wood committed
74

75
76
runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
77

78
[dev-dependencies]
79
80
81
hex-literal = "0.3.1"
libsecp256k1 = "0.3.5"
tiny-keccak = "2.0.2"
82
83
keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate", branch = "master" }
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
84
trie-db = "0.22.3"
85
serde_json = "1.0.61"
86
separator = "0.4.1"
87
88

[build-dependencies]
89
substrate-wasm-builder = "3.0.0"
90

Gav's avatar
Gav committed
91
92
[features]
default = ["std"]
93
no_std = []
94
only-staking = []
Gav's avatar
Gav committed
95
std = [
96
	"authority-discovery-primitives/std",
97
	"pallet-authority-discovery/std",
98
	"bitvec/std",
99
	"primitives/std",
100
	"rustc-hex/std",
101
	"parity-scale-codec/std",
102
	"inherents/std",
103
104
	"sp-core/std",
	"sp-api/std",
Gavin Wood's avatar
Gavin Wood committed
105
106
	"tx-pool-api/std",
	"block-builder-api/std",
107
	"offchain-primitives/std",
108
	"sp-std/std",
109
	"frame-support/std",
110
111
	"pallet-authorship/std",
	"pallet-balances/std",
112
	"pallet-bounties/std",
113
114
115
116
	"pallet-transaction-payment/std",
	"pallet-transaction-payment-rpc-runtime-api/std",
	"pallet-collective/std",
	"pallet-elections-phragmen/std",
117
	"pallet-election-provider-multi-phase/std",
118
119
120
121
122
123
124
125
126
127
128
	"pallet-democracy/std",
	"frame-executive/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",
129
130
	"sp-runtime/std",
	"sp-staking/std",
131
132
133
134
135
136
137
	"pallet-scheduler/std",
	"pallet-session/std",
	"pallet-staking/std",
	"frame-system/std",
	"frame-system-rpc-runtime-api/std",
	"pallet-timestamp/std",
	"pallet-treasury/std",
138
	"pallet-tips/std",
139
	"sp-version/std",
140
141
	"serde_derive",
	"serde/std",
142
	"log/std",
143
	"pallet-babe/std",
144
	"babe-primitives/std",
Gavin Wood's avatar
Gavin Wood committed
145
	"sp-session/std",
146
	"pallet-randomness-collective-flip/std",
147
	"runtime-common/std",
148
149
	"pallet-vesting/std",
	"pallet-utility/std",
Gav's avatar
Gav committed
150
]
151
runtime-benchmarks = [
152
	"runtime-common/runtime-benchmarks",
153
154
	"frame-benchmarking",
	"frame-support/runtime-benchmarks",
155
	"frame-system/runtime-benchmarks",
156
	"sp-runtime/runtime-benchmarks",
157
	"pallet-babe/runtime-benchmarks",
158
159
160
161
	"pallet-balances/runtime-benchmarks",
	"pallet-collective/runtime-benchmarks",
	"pallet-democracy/runtime-benchmarks",
	"pallet-elections-phragmen/runtime-benchmarks",
162
	"pallet-election-provider-multi-phase/runtime-benchmarks",
163
164
	"pallet-grandpa/runtime-benchmarks",
	"pallet-identity/runtime-benchmarks",
165
	"pallet-im-online/runtime-benchmarks",
166
167
168
	"pallet-indices/runtime-benchmarks",
	"pallet-multisig/runtime-benchmarks",
	"pallet-proxy/runtime-benchmarks",
169
170
171
172
	"pallet-scheduler/runtime-benchmarks",
	"pallet-staking/runtime-benchmarks",
	"pallet-timestamp/runtime-benchmarks",
	"pallet-treasury/runtime-benchmarks",
173
174
	"pallet-bounties/runtime-benchmarks",
	"pallet-tips/runtime-benchmarks",
175
	"pallet-utility/runtime-benchmarks",
176
	"pallet-vesting/runtime-benchmarks",
177
178
	"pallet-offences-benchmarking",
	"pallet-session-benchmarking",
179
180
	"frame-system-benchmarking",
	"hex-literal",
181
]
Kian Paimani's avatar
Kian Paimani committed
182
183
184
185
try-runtime = [
	"frame-executive/try-runtime",
	"frame-try-runtime",
]
186
187
188
189
190
191
# 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 = []
192
193
194
195
196
197
198

# 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",
]