forked from StellarCheckMate/Checkmate-Escrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
53 lines (46 loc) · 1.73 KB
/
Copy pathCargo.toml
File metadata and controls
53 lines (46 loc) · 1.73 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
[package]
name = "event-indexer"
version = "0.2.0"
edition = "2021"
license = "MIT"
publish = false
[features]
# Opt-in tests in tests/integration_tests.rs that mutate shared DB state
# (ingestion state tracking, reorg marking) and so aren't safe to run
# concurrently with the rest of the suite.
pg_integration = []
[dependencies]
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reqwest = { version = "0.12", features = ["json", "rustls-tls"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time", "sync"] }
axum = "0.7"
tower = { version = "0.4", features = ["util"] }
tower-http = { version = "0.5", features = ["trace", "cors"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["v4", "serde"] }
futures = "0.3"
sha2 = "0.10"
# PostgreSQL — async connection pool
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4", "with-uuid-1"] }
deadpool-postgres = { version = "0.14", features = ["rt_tokio_1"] }
# Proper LRU cache
indexmap = "2"
# Redis — shared TTL cache for API responses.
# `connection-manager` gives us a cloneable, self-reconnecting multiplexed
# connection so handlers never block on a connection pool.
redis = { version = "0.25", default-features = false, features = [
"tokio-comp",
"connection-manager",
] }
# Prometheus metrics for the /metrics scrape endpoint.
prometheus = { version = "0.13", features = ["process"] }
once_cell = "1"
[dev-dependencies]
wiremock = "0.6"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] }
tower = { version = "0.4", features = ["util"] }
axum = { version = "0.7", features = [] }