-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathCargo.toml
More file actions
293 lines (263 loc) · 8 KB
/
Copy pathCargo.toml
File metadata and controls
293 lines (263 loc) · 8 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
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
[package]
name = "dolos"
description = "A Cardano data-node built in Rust"
version.workspace = true
edition.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
license.workspace = true
readme.workspace = true
authors.workspace = true
[dependencies]
base64.workspace = true
bech32.workspace = true
bincode.workspace = true
chrono.workspace = true
futures-core.workspace = true
futures-util.workspace = true
hex.workspace = true
itertools.workspace = true
pallas.workspace = true
rayon.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio-stream.workspace = true
tokio-util.workspace = true
tokio.workspace = true
tower-http.workspace = true
tower.workspace = true
tracing.workspace = true
trait-variant.workspace = true
xxhash-rust.workspace = true
axum = { version = "0.8.4", optional = true }
http-body-util = { version = "0.1.2", optional = true }
opentelemetry.workspace = true
opentelemetry_sdk.workspace = true
opentelemetry-otlp.workspace = true
tracing-opentelemetry.workspace = true
dolos-core = { path = "crates/core" }
dolos-cardano = { path = "crates/cardano", features = ["include-genesis"] }
dolos-redb3 = { path = "crates/redb3" }
dolos-fjall = { path = "crates/fjall" }
dolos-snapshot = { path = "crates/snapshot", features = ["oci"] }
dolos-minibf = { path = "crates/minibf", optional = true }
dolos-minikupo = { path = "crates/minikupo", optional = true }
dolos-trp = { path = "crates/trp", optional = true }
# gasket = { git = "https://github.com/construkts/gasket-rs.git", features = ["derive"] }
gasket = { version = "^0.9", features = ["derive"] }
# gasket = { path = "../../construkts/gasket-rs/gasket", features = ["derive"] }
clap = { version = "4.5.37", features = ["derive"] }
log = "0.4.18"
config = { version = "0.15.19", default-features = false, features = [
"toml",
"json",
] }
lazy_static = "1.4.0"
tracing-subscriber = "0.3.17"
tracing-log = "0.2"
miette = { version = "7.6.0", features = ["fancy"] }
async-trait = "0.1.81"
bytes = "1.11"
async-stream = "0.3.5"
protoc-wkt = "1.0.0"
indicatif = "0.17.8"
comfy-table = { version = "7.1.1", optional = true }
inquire = { version = "0.9.4", optional = true }
toml = { version = "0.8.13", optional = true }
console-subscriber = { version = "0.3.0", optional = true }
flate2 = "1.0.34"
tar = "0.4.41"
paste = "1.0.15"
redb-extras = "0.6.1"
# gRPC dependencies
tonic = { version = "0.12.3", features = ["tls"], optional = true }
tonic-web = { version = "0.12.3", optional = true }
tonic-reflection = { version = "0.12.3", optional = true }
# Common HTTP dependencies
http = "1.3.1"
hyper = "1.5"
# `rustls-no-provider` keeps reqwest 0.13's hard-wired aws-lc-rs crypto provider
# (a large C dependency requiring cmake) out of the build; main() installs ring
# as the process-default provider instead.
mithril-client = { version = "0.14.5", optional = true, default-features = false, features = [
"fs",
"num-integer-backend",
"rustls-no-provider",
] }
rustls = { version = "0.23", default-features = false, features = [
"ring",
"logging",
"std",
"tls12",
] }
[dev-dependencies]
anyhow = "1.0"
comfy-table = "7.1.1"
csv = "1"
csv-diff = "0.1"
nix = { version = "0.30.1", features = ["signal"] }
serde = { workspace = true }
tempfile = "3.20.0"
toml = "0.8.13"
dolos-cardano = { path = "crates/cardano" }
dolos-core = { path = "crates/core" }
dolos-testing = { path = "crates/testing" }
bech32 = { workspace = true }
hex = { workspace = true }
pallas = { workspace = true }
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
stats_alloc = "0.1"
serial_test = "3"
dolos-redb3 = { path = "crates/redb3" }
stelae = { path = "crates/stelae" }
[build-dependencies]
vergen-gitcl = "9.1.0"
[[test]]
name = "smoke"
path = "tests/e2e/smoke.rs"
[[test]]
name = "sync"
path = "tests/e2e/sync.rs"
[[test]]
name = "snapshot"
path = "tests/e2e/snapshot.rs"
[[test]]
name = "epoch_pots"
path = "tests/epoch_pots/main.rs"
[[test]]
name = "memory"
path = "tests/memory.rs"
[[test]]
name = "mempool"
path = "tests/mempool.rs"
[[test]]
name = "bootstrap"
path = "tests/bootstrap.rs"
[features]
strict = ["dolos-cardano/strict"]
mithril = ["mithril-client"]
utils = ["comfy-table", "inquire", "toml"]
debug = ["console-subscriber", "tokio/tracing"]
# Service features
grpc = ["tonic", "tonic-web", "tonic-reflection", "tower-http/cors"]
minibf = [
"dolos-minibf",
"axum",
"http-body-util",
"tower-http/cors",
"tower-http/trace",
"tower-http/normalize-path",
]
minikupo = [
"dolos-minikupo",
"axum",
"http-body-util",
"tower-http/cors",
"tower-http/trace",
"tower-http/normalize-path",
]
trp = ["dolos-trp"]
# Default features - includes all services
default = ["mithril", "utils", "grpc", "minibf", "minikupo", "trp"]
# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
[workspace]
members = [
"crates/cardano",
"crates/core",
"crates/fjall",
"crates/snapshot",
"crates/stelae",
"crates/testing",
"crates/minibf",
"crates/redb3",
"xtask", "crates/minikupo",
]
[workspace.package]
version = "1.7.0-alpha.0"
edition = "2021"
repository = "https://github.com/txpipe/dolos"
homepage = "https://github.com/txpipe/dolos"
documentation = "https://docs.rs/dolos"
license = "Apache-2.0"
readme = "README.md"
authors = ["TxPipe <hello@txpipe.io>"]
[workspace.dependencies]
pallas = { version = "1.1.1", features = ["hardano", "phase2", "unstable"] }
# pallas = { git = "https://github.com/txpipe/pallas.git", rev = "a7b5a86", features = ["hardano", "phase2", "unstable"] }
# pallas = { path = "../pallas/pallas", features = ["hardano", "phase2", "unstable"] }
thiserror = "2.0.12"
hex = "0.4.3"
regex = "1.10.0"
tracing = "0.1.37"
itertools = "0.14.0"
bincode = "1.3.3"
futures-core = "0.3.31"
futures-util = "0.3.28"
trait-variant = "0.1.2"
serde = { version = "1.0.136", features = ["derive", "rc"] }
chrono = { version = "0.4.39", default-features = false }
tokio = { version = "^1.47", features = ["rt", "rt-multi-thread", "signal"] }
tokio-util = { version = "0.7.11", features = ["rt"] }
tokio-stream = { version = "0.1.14", features = ["sync"] }
tower = "0.4"
tower-http = { version = "0.6.1", features = [
"cors",
"trace",
"normalize-path",
] }
serde_json = "1.0.122"
base64 = "0.22.1"
bech32 = "0.11.1"
reqwest = { version = "0.12.7", default-features = false, features = [
"blocking",
"json",
"rustls-tls",
] }
rayon = "1.11.0"
indexmap = "2.9.0"
xxhash-rust = { version = "0.8.15", features = ["xxh3", "const_xxh3"] }
num-rational = "0.4.2"
num-bigint = "0.4.6"
opentelemetry = "0.32.0"
opentelemetry_sdk = { version = "0.32.1", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.32.0", features = ["grpc-tonic"] }
tracing-opentelemetry = "0.33"
# Stelae (crates/stelae). `minicbor` is pinned to the 0.26 line that Pallas
# already pulls in, so the protocol crate adds no new CBOR implementation to the
# tree and encodes against the same codec the Dolos profile will use.
minicbor = { version = "0.26", features = ["std"] }
serde_jcs = "0.2.0"
sha2 = "0.10.9"
zstd = "0.13.3"
# The restore path's disk preflight, and nothing else. `default-features =
# false` drops the file-locking half of the crate, leaving the free-space
# query, which is a `statvfs`/`GetDiskFreeSpaceExW` call over `rustix` and
# `windows-sys` — both already in this tree.
fs4 = { version = "1.1.0", default-features = false }
[workspace.metadata.release]
push = false
publish = false
tag-name = "v{{version}}"
pre-release-commit-message = "release: v{{version}}"
# `--workdir .` is required: without it git-cliff derives the repo root from the
# git common dir, which points outside the worktree when this repo is checked out
# as a submodule. It then scopes commits to a bogus path and emits an empty
# changelog.
pre-release-hook = [
"git",
"cliff",
"--workdir",
".",
"-o",
"CHANGELOG.md",
"--tag",
"{{version}}",
]
[lints.clippy]
result_large_err = "allow"