-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
67 lines (54 loc) · 3.86 KB
/
Cargo.toml
File metadata and controls
67 lines (54 loc) · 3.86 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
[package]
name = "codesesh-api"
version = "0.1.0"
edition = "2024"
rust-version = "1.88"
[dependencies]
# ── Web framework ─────────────────────────────────────────────────────────────
axum = { version = "0.8.8", features = ["ws", "macros"] }
tokio = { version = "1", features = ["full"] }
tower = { version = "0.5", features = ["full"] }
tower-http = { version = "0.6", features = ["cors", "trace", "request-id", "timeout"] }
tower_governor = "0.7"
governor = "0.8"
# ── Database ──────────────────────────────────────────────────────────────────
sqlx = { version = "0.8", features = [
"runtime-tokio",
"postgres",
"uuid",
"time",
"json",
"migrate",
"macros"
]}
# ── Serialization ─────────────────────────────────────────────────────────────
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# ── Error handling ────────────────────────────────────────────────────────────
thiserror = "2.0.17"
anyhow = "1"
# ── IDs ───────────────────────────────────────────────────────────────────────
uuid = { version = "1", features = ["v4", "serde"] }
rand = "0.8"
# ── Concurrent in-memory state ────────────────────────────────────────────────
dashmap = "6"
# ── Validation ────────────────────────────────────────────────────────────────
validator = { version = "0.19", features = ["derive"] }
# ── Time ──────────────────────────────────────────────────────────────────────
time = { version = "0.3", features = ["serde"] }
# ── HTTP client (Judge0 proxy) ────────────────────────────────────────────────
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# ── Async utilities ───────────────────────────────────────────────────────────
async-trait = "0.1"
futures = "0.3"
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }
# ── Logging / tracing ─────────────────────────────────────────────────────────
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
# ── Environment / config ──────────────────────────────────────────────────────
dotenvy = "0.15"
[dev-dependencies]
tokio = { version = "1", features = ["full", "test-util"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "macros", "migrate"] }
http-body-util = "0.1"
tower = { version = "0.5", features = ["full"] }