Cargo.toml 9.38 KB
Newer Older
Gav's avatar
Gav committed
1
2
[package]
name = "polkadot-runtime"
3
version = "0.8.24"
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
bitvec = { version = "0.17.4", default-features = false, features = ["alloc"] }
10
codec = { package = "parity-scale-codec", version = "1.3.4", default-features = false, features = ["derive"] }
11
log = { version = "0.3.9", optional = true }
Gavin Wood's avatar
Gavin Wood committed
12
rustc-hex = { version = "2.0.1", default-features = false }
13
14
serde = { version = "1.0.102", default-features = false }
serde_derive = { version = "1.0.102", optional = true }
15
static_assertions = "1.1.0"
Bastian Köcher's avatar
Bastian Köcher committed
16
smallvec = "1.4.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 }
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 }
frame-executive = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
pallet-finality-tracker = { 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 }
56
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
57
pallet-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
58
pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate", branch = "master" }
59
60
61
62
63
64
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 }
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 }
65

66
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
67
frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
68
69
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 }
Shawn Tabrizi's avatar
Shawn Tabrizi committed
70
hex-literal = { version = "0.2.1" }
Gavin Wood's avatar
Gavin Wood committed
71

72
73
runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
74

75
[dev-dependencies]
76
77
78
hex-literal = "0.2.1"
libsecp256k1 = "0.3.2"
tiny-keccak = "1.5.0"
79
80
keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate", branch = "master" }
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
Bastian Köcher's avatar
Bastian Köcher committed
81
trie-db = "0.22.0"
82
serde_json = "1.0.41"
83
84

[build-dependencies]
85
wasm-builder-runner = { package = "substrate-wasm-builder-runner", version = "1.0.6" }
86

Gav's avatar
Gav committed
87
88
[features]
default = ["std"]
89
no_std = []
90
only-staking = []
Gav's avatar
Gav committed
91
std = [
92
	"authority-discovery-primitives/std",
93
	"pallet-authority-discovery/std",
94
	"bitvec/std",
95
	"primitives/std",
96
	"rustc-hex/std",
97
	"codec/std",
98
	"inherents/std",
99
100
	"sp-core/std",
	"sp-api/std",
Gavin Wood's avatar
Gavin Wood committed
101
102
	"tx-pool-api/std",
	"block-builder-api/std",
103
	"offchain-primitives/std",
104
	"sp-std/std",
105
	"frame-support/std",
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
	"pallet-authorship/std",
	"pallet-balances/std",
	"pallet-transaction-payment/std",
	"pallet-transaction-payment-rpc-runtime-api/std",
	"pallet-collective/std",
	"pallet-elections-phragmen/std",
	"pallet-democracy/std",
	"frame-executive/std",
	"pallet-finality-tracker/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",
124
125
	"sp-runtime/std",
	"sp-staking/std",
126
127
128
129
130
131
132
133
	"pallet-scheduler/std",
	"pallet-session/std",
	"pallet-staking/std",
	"frame-system/std",
	"frame-system-rpc-runtime-api/std",
	"pallet-timestamp/std",
	"pallet-treasury/std",
	"sp-version/std",
134
135
136
	"serde_derive",
	"serde/std",
	"log",
137
	"pallet-babe/std",
138
	"babe-primitives/std",
Gavin Wood's avatar
Gavin Wood committed
139
	"sp-session/std",
140
	"pallet-randomness-collective-flip/std",
141
	"runtime-common/std",
142
143
	"pallet-vesting/std",
	"pallet-utility/std",
Gav's avatar
Gav committed
144
]
145
runtime-benchmarks = [
146
	"runtime-common/runtime-benchmarks",
147
148
	"frame-benchmarking",
	"frame-support/runtime-benchmarks",
149
	"frame-system-benchmarking",
150
	"frame-system/runtime-benchmarks",
151
	"sp-runtime/runtime-benchmarks",
152
153
154
155
156
157
158
159
160
161
	"pallet-balances/runtime-benchmarks",
	"pallet-collective/runtime-benchmarks",
	"pallet-democracy/runtime-benchmarks",
	"pallet-elections-phragmen/runtime-benchmarks",
	"pallet-im-online/runtime-benchmarks",
	"pallet-scheduler/runtime-benchmarks",
	"pallet-staking/runtime-benchmarks",
	"pallet-timestamp/runtime-benchmarks",
	"pallet-treasury/runtime-benchmarks",
	"pallet-vesting/runtime-benchmarks",
162
163
	"pallet-offences-benchmarking",
	"pallet-session-benchmarking",
Shawn Tabrizi's avatar
Shawn Tabrizi committed
164
165
	# renable when optional
	# "hex-literal",
166
]
167
168
169
170
171
172
# 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 = []