-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCargo.toml
191 lines (175 loc) · 9.84 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
[package]
name = "node-cli"
version = "27.0.0"
authors.workspace = true
description = "Liberland node implementation in Rust."
build = "build.rs"
edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
default-run = "substrate-node"
homepage = "https://substrate.io"
repository.workspace = true
publish = false
[package.metadata.wasm-pack.profile.release]
# `wasm-opt` has some problems on linux, see
# https://github.com/rustwasm/wasm-pack/issues/781 etc.
wasm-opt = false
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[badges]
travis-ci = { repository = "paritytech/substrate" }
maintenance = { status = "actively-developed" }
is-it-maintained-issue-resolution = { repository = "paritytech/substrate" }
is-it-maintained-open-issues = { repository = "paritytech/substrate" }
# The same node binary as the `substrate` (defined in the workspace `Cargo.toml`) binary,
# but just exposed by this crate here.
[[bin]]
name = "substrate-node"
path = "bin/main.rs"
required-features = ["cli"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# third-party dependencies
array-bytes = "6.1"
clap = { version = "4.4.2", features = ["derive"], optional = true }
codec = { package = "parity-scale-codec", version = "3.6.1" }
serde = { version = "1.0.188", features = ["derive"] }
jsonrpsee = { version = "0.16.2", features = ["server"] }
futures = "0.3.21"
log = "0.4.17"
rand = "0.8"
# primitives
sp-authority-discovery = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-consensus-babe = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
grandpa-primitives = { package = "sp-consensus-grandpa", tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-api = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-core = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-runtime = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-timestamp = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-inherents = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-keyring = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-keystore = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-consensus = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-transaction-storage-proof = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-io = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
# client dependencies
sc-client-api = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-chain-spec = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-consensus = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-transaction-pool = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-transaction-pool-api = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-network = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-network-common = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-network-sync = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-consensus-slots = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-consensus-babe = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
grandpa = { package = "sc-consensus-grandpa", tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-rpc = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-basic-authorship = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-service = { default-features = false, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-telemetry = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-executor = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-authority-discovery = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-sync-state-rpc = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-sysinfo = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-storage-monitor = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-offchain = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
# frame dependencies
frame-system = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
frame-system-rpc-runtime-api = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
pallet-assets = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
pallet-asset-conversion-tx-payment = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
pallet-im-online = { default-features = false, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
# node-specific dependencies
kitchensink-runtime = { path = "../runtime" }
node-rpc = { path = "../rpc" }
node-primitives = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
node-executor = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
# CLI-specific dependencies
sc-cli = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
frame-benchmarking-cli = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
node-inspect = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
try-runtime-cli = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
serde_json = "1.0.85"
[dev-dependencies]
sc-keystore = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-client-db = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-consensus = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-consensus-babe = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-consensus-epochs = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-service-test = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-block-builder = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-tracing = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sp-blockchain = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
futures = "0.3.21"
tempfile = "3.1.0"
assert_cmd = "2.0.2"
nix = { version = "0.26.1", features = ["signal"] }
serde_json = "1.0"
regex = "1.6.0"
platforms = "3.0"
soketto = "0.7.1"
criterion = { version = "0.4.0", features = ["async_tokio"] }
tokio = { version = "1.22.0", features = ["macros", "time", "parking_lot"] }
tokio-util = { version = "0.7.4", features = ["compat"] }
wait-timeout = "0.2"
substrate-rpc-client = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
pallet-timestamp = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
substrate-cli-test-utils = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
[build-dependencies]
clap = { version = "4.4.2", optional = true }
clap_complete = { version = "4.0.2", optional = true }
node-inspect = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
frame-benchmarking-cli = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
substrate-build-script-utils = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
substrate-frame-cli = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
try-runtime-cli = { optional = true, tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-cli = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk", optional = true }
pallet-balances = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
sc-storage-monitor = { tag = "polkadot-v1.1.0", git = "https://github.com/paritytech/polkadot-sdk" }
[features]
default = [ "cli" ]
cli = [
"clap",
"clap_complete",
"frame-benchmarking-cli",
"node-inspect",
"sc-cli",
"sc-service/rocksdb",
"substrate-build-script-utils",
"substrate-frame-cli",
"try-runtime-cli",
]
runtime-benchmarks = [
"frame-benchmarking-cli/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"kitchensink-runtime/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-im-online/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"sc-client-db/runtime-benchmarks",
"sc-service/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
# Enable features that allow the runtime to be tried and debugged. Name might be subject to change
# in the near future.
try-runtime = [
"frame-system/try-runtime",
"kitchensink-runtime/try-runtime",
"pallet-asset-conversion-tx-payment/try-runtime",
"pallet-assets/try-runtime",
"pallet-balances/try-runtime",
"pallet-im-online/try-runtime",
"pallet-timestamp/try-runtime",
"sp-runtime/try-runtime",
"substrate-cli-test-utils/try-runtime",
"try-runtime-cli/try-runtime",
]
[[bench]]
name = "transaction_pool"
harness = false
[[bench]]
name = "block_production"
harness = false