-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCargo.toml
More file actions
161 lines (133 loc) · 3.5 KB
/
Cargo.toml
File metadata and controls
161 lines (133 loc) · 3.5 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
[package]
name = "tidx"
version = "0.5.1"
edition = "2024"
license = "MIT"
repository = "https://github.com/tempoxyz/tidx"
description = "High-throughput Tempo blockchain indexer"
[[bin]]
name = "tidx"
path = "src/main.rs"
[lib]
name = "tidx"
path = "src/lib.rs"
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
async-stream = "0.3"
futures = "0.3"
# HTTP
axum = "0.8"
reqwest = { version = "0.12", default-features = false, features = ["json", "gzip", "rustls-tls"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace"] }
# Database
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4", "with-serde_json-1"] }
deadpool-postgres = "0.14"
postgres-types = { version = "0.2", features = ["derive"] }
# Ethereum/Tempo primitives
alloy = { version = "1", features = ["full"] }
tempo-alloy = { git = "https://github.com/tempoxyz/tempo", default-features = false }
# URL parsing
form_urlencoded = "1"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
toml_edit = "0.22"
base64 = "0.22"
toon-format = "0.4"
# CLI
clap = { version = "4", features = ["derive", "env"] }
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
metrics = "0.24"
metrics-exporter-prometheus = { version = "0.16", default-features = false, features = ["http-listener"] }
# Crypto
sha3 = "0.10"
# Error handling
thiserror = "2"
anyhow = "1"
# Time
chrono = { version = "0.4", features = ["serde"] }
# ClickHouse
clickhouse = { version = "0.14", features = ["lz4", "chrono", "rustls-tls"] }
# Hex encoding
hex = "0.4"
rust_decimal = { version = "1.40.0", features = ["db-tokio-postgres"] }
# Random
rand = "0.9"
url = "2.5.8"
# File watching
notify = "8"
# Glob patterns
glob = "0.3"
# Interactive prompts
dialoguer = "0.11"
sqlparser = { version = "0.60.0", features = ["visitor"] }
regex-lite = "0.1.8"
[dev-dependencies]
# Testing & Benchmarks
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
hex-literal = "0.4"
insta = "1.46.3"
serial_test = "3"
tempfile = "3.24.0"
[[bench]]
name = "write_bench"
harness = false
[[bench]]
name = "query_bench"
harness = false
[[bench]]
name = "sync_bench"
harness = false
[profile.bench]
debug = true
[profile.test]
opt-level = 1
[lints.rust]
unsafe_code = "warn"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# Allow common patterns
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
too_many_lines = "allow"
struct_excessive_bools = "allow"
needless_raw_string_hashes = "allow"
unreadable_literal = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
cast_precision_loss = "allow"
cast_possible_wrap = "allow"
similar_names = "allow"
if_not_else = "allow"
doc_markdown = "allow"
items_after_statements = "allow"
redundant_closure_for_method_calls = "allow"
match_same_arms = "allow"
unnecessary_wraps = "allow"
return_self_not_must_use = "allow"
unused_async = "allow"
collapsible_if = "allow"
map_unwrap_or = "allow"
ref_option = "allow"
uninlined_format_args = "allow"
single_match_else = "allow"
manual_let_else = "allow"
needless_pass_by_value = "allow"
implicit_clone = "allow"
needless_borrow = "allow"
ptr_arg = "allow"
let_and_return = "allow"
implicit_hasher = "allow"
unnested_or_patterns = "allow"
needless_range_loop = "allow"
format_push_string = "allow"
unnecessary_cast = "allow"
cast_lossless = "allow"