Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (80 loc) · 2.11 KB
/
Copy pathCargo.toml
File metadata and controls
98 lines (80 loc) · 2.11 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
[workspace]
resolver = "2"
members = [
"crates/domain",
"crates/common",
"crates/infra-postgres",
"crates/scheduler-core",
"crates/api",
"crates/worker-runtime",
"bin/api-server",
"bin/worker",
"bin/scheduler-daemon",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.75"
license = "MIT"
[workspace.dependencies]
# Internal crates
domain = { path = "crates/domain" }
common = { path = "crates/common" }
infra-postgres = { path = "crates/infra-postgres" }
scheduler-core = { path = "crates/scheduler-core" }
api = { path = "crates/api" }
worker-runtime = { path = "crates/worker-runtime" }
# Async runtime
tokio = { version = "1", features = ["full"] }
# Web framework
axum = { version = "0.8", features = ["macros", "ws"] }
axum-extra = { version = "0.10", features = ["typed-header"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "trace", "request-id", "limit", "compression-gzip"] }
# Database
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "json", "migrate"] }
# Auth
jsonwebtoken = "9"
argon2 = "0.5"
sha2 = "0.10"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
# Cron parsing
cron = "0.15"
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] }
tracing-opentelemetry = "0.29"
opentelemetry = "0.28"
opentelemetry_sdk = { version = "0.28", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.28", features = ["tonic"] }
metrics = "0.24"
metrics-exporter-prometheus = "0.16"
# Configuration
config = "0.15"
figment = { version = "0.10", features = ["env", "toml"] }
# Error handling
thiserror = "2"
anyhow = "1"
# Async utilities
futures = "0.3"
async-trait = "0.1"
# Concurrency
governor = "0.8"
dashmap = "6"
parking_lot = "0.12"
# Logging
log = "0.4"
# Random
rand = "0.8"
# Time
humantime = "2"
# Hostname detection (worker)
hostname = "0.4"
[profile.release]
lto = true
codegen-units = 1
opt-level = 3