-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (116 loc) · 3.19 KB
/
Copy pathCargo.toml
File metadata and controls
129 lines (116 loc) · 3.19 KB
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
[package]
name = "babe-node"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Generic Substrate node implementation in Rust."
build = "build.rs"
edition = "2021"
license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
default-run = "babe-node"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
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" }
[[bin]]
name = "babe-node"
path = "src/main.rs"
required-features = ["cli"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# third-party dependencies
array-bytes = "4.1"
async-trait = "0.1"
clap = { version = "4.0.9", features = ["derive"], optional = true }
codec = { workspace = true }
serde = { version = "1.0.136", features = ["derive"] }
jsonrpsee = { workspace = true, features = ["server"] }
futures = "0.3.21"
log = "0.4.17"
rand = "0.8"
# node-specific dependencies
babe-runtime = { path = "../runtime" }
node-rpc = { package = "babe-node-rpc", path = "../rpc" }
sc-simnode = { workspace = true, features = ["babe"] }
# CLI-specific dependencies
sc-service = { workspace = true }
serde_json = "1.0"
[dependencies.polkadot-sdk]
workspace = true
default-features = true
features = [
"sp-consensus-babe",
"sp-consensus-grandpa",
"sp-api",
"sp-core",
"sp-runtime",
"sp-timestamp",
"sp-inherents",
"sp-keystore",
"sp-consensus",
"sp-transaction-pool",
"sc-client-api",
"sc-chain-spec",
"sc-consensus",
"sc-transaction-pool",
"sc-transaction-pool-api",
"sc-network-common",
"sc-consensus-slots",
"sc-consensus-babe",
"sc-consensus-grandpa",
"sc-rpc",
"sc-cli",
"sc-basic-authorship",
"sc-telemetry",
"sc-executor",
"sc-sync-state-rpc",
"sc-sysinfo",
"sc-storage-monitor",
"sc-offchain",
"frame-system",
"frame-benchmarking",
"frame-system-rpc-runtime-api",
"pallet-transaction-payment",
"sp-keyring",
"sp-transaction-storage-proof",
"sp-io",
"sc-network",
"sc-network-sync",
"frame-benchmarking-cli",
]
[dev-dependencies]
tempfile = "3.1.0"
[dev-dependencies.polkadot-sdk]
workspace = true
default-features = true
features = [
"sc-keystore",
"sc-consensus-epochs"
]
[build-dependencies]
polkadot-sdk = { workspace = true, default-features = true, features = ["substrate-build-script-utils"] }
[features]
default = ["cli"]
cli = [
"polkadot-sdk/sc-cli",
"polkadot-sdk/frame-benchmarking-cli",
"sc-service/rocksdb",
"clap",
]
runtime-benchmarks = [
"polkadot-sdk/runtime-benchmarks",
"babe-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 = ["babe-runtime/try-runtime"]