-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
108 lines (95 loc) · 2.78 KB
/
Cargo.toml
File metadata and controls
108 lines (95 loc) · 2.78 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
[workspace]
members = [
"shared/entities",
"shared/db-core",
"shared/common",
"shared/test-support",
"indexers/discourse-indexer",
"indexers/near-indexer",
"indexers/telegram-indexer",
"api",
"migration",
]
resolver = "2"
[profile.release]
# Move Docker ENV profile hints into canonical Cargo profiles
codegen-units = 1
lto = true
strip = "symbols"
opt-level = "z"
[workspace.dependencies]
# Core async runtime
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
# Database & ORM (PostgreSQL + PlanetScale Postgres compatible)
sea-orm = { version = "1.1", features = [
"sqlx-postgres",
"runtime-tokio-native-tls", # PlanetScale requires SSL/TLS
"macros",
"debug-print", # Enable proper log messages for queries
"mock", # Enable MockDatabase for unit tests
] }
sea-orm-migration = { version = "1", features = [
"sqlx-postgres",
"runtime-tokio-native-tls",
"runtime-tokio-rustls", # Also include CLI features
] }
# Web framework & OpenAPI
axum = { version = "0.8", features = ["macros"] }
utoipa = { version = "5", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "9", features = ["axum", "vendored"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling (hybrid approach: thiserror for libraries, anyhow for applications)
thiserror = "2.0"
anyhow = "1.0"
# Configuration
figment = { version = "0.10", features = ["toml", "env"] }
dotenvy = "0.15"
# Logging & Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# Additional dependencies for telemetry
tower = "0.5"
tower-http = { version = "0.6", features = ["trace"] }
# Date/time handling
chrono = { version = "0.4", features = ["serde"] }
# Testing
tokio-test = "0.4"
testcontainers = "0.25"
testcontainers-modules = { version = "0.13", features = ["postgres"] }
rstest = "0.26"
axum-test = "18.7"
futures = "0.3"
# Migration specific
async-std = { version = "1", features = ["attributes", "tokio1"] }
common = { path = "shared/common" }
db-core = { path = "shared/db-core" }
entities = { path = "shared/entities" }
migration = { path = "migration" }
mockito = "1.7"
rand = "0.10.0"
reqwest = "0.12"
near-account-id = "2.5.0"
near-lake-framework = "0.7.14"
rust_decimal = "1"
test-support = { path = "shared/test-support" }
async-trait = "0.1"
hex = "0.4"
near-primitives = "0.34.6"
sha2 = "0.10"
near-crypto = "0.34.6"
base64 = "0.22"
wiremock = "0.6"
reqwest-middleware = "0.5"
reqwest-retry = "0.9"
reqwest-tracing = "0.7"
near-indexer-primitives = "0.34.6"
httpdate = "1"
serde_path_to_error = "0.1"
scraper = "0.25.0"
socket2 = "0.5"
# Development tools (managed by cargo-run-bin)
[workspace.metadata.bin]
sea-orm-cli = { version = "1.1.15" }