forge
Explore
Log in

Don't you dare go Hollow

hezarfen_backend

Clone
★ 0

0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits

Cargo.toml68 lines, 3.1 KiBHistoryRawDownload
1[package]
2name = "hezarfen_backend"
3version = "0.1.0"
4edition = "2024"
5
6# Time-policy guard: clippy.toml lists the banned clock calls (local time,
7# raw now() sources); deny makes `cargo clippy` fail on any reintroduction.
8[lints.clippy]
9disallowed_methods = "deny"
10disallowed_types = "deny"
11
12[dependencies]
13tokio = { version = "1", features = ["full"] }
14# IntervalStream for the live exam-monitor SSE tick; "sync" adds
15# ReceiverStream, which carries the chatbot's SSE events.
16tokio-stream = { version = "0.1", features = ["sync"] }
17# "ws" backs the live exam room (WebSocket at /exams/{id}/attempt/ws);
18# "multipart" backs note file uploads (POST /notes/{id}/files).
19axum = { version = "0.8.9", features = ["ws", "multipart"] }
20axum-extra = { version = "0.12", features = ["cookie"] }
21tower-http = { version = "0.7", features = ["trace", "cors", "request-id", "catch-panic"] }
22serde = { version = "1", features = ["derive"] }
23serde_json = "1"
24chrono = "0.4"
25argon2 = "0.6"
26getrandom = "0.4"
27hex = "0.4"
28thiserror = "2"
29anyhow = "1"
30tracing = "0.1"
31tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
32dotenvy = "0.15"
33time = "0.3"
34utoipa = { version = "5.5.0", features = ["axum_extras"] }
35utoipa-axum = "0.2.0"
36utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
37quinn = { version = "0.11.11", default-features = false, features = ["runtime-tokio", "rustls-ring", "log"] }
38rcgen = { version = "0.14.10", default-features = false, features = ["pem", "ring"] }
39rustls-pemfile = "2.2.0"
40rustls = { version = "0.23.44", default-features = false, features = ["logging", "ring", "std", "tls12"] }
41sha2 = "0.11.0"
42base64 = "0.23"
43# `ServiceExt::oneshot`, which is how the AI bridge dispatches a service's api
44# read into the router. Already compiled — axum depends on this exact crate and
45# feature — so declaring it here adds nothing to the build.
46tower = { version = "0.5", features = ["util"] }
47opentelemetry = "0.32.0"
48tracing-opentelemetry = "0.33.0"
49opentelemetry-semantic-conventions = "0.32.1"
50uuid = { version = "1.26.1", features = ["v7"] }
51opentelemetry_sdk = { version = "0.32.1", features = ["rt-tokio"] }
52opentelemetry-otlp = { version = "0.32.0", default-features = false, features = ["trace", "metrics", "logs", "grpc-tonic", "http-proto", "reqwest-blocking-client", "internal-logs"] }
53opentelemetry-appender-tracing = "0.32.0"
54sqlx = { version = "0.9.0", default-features = false, features = ["postgres", "runtime-tokio", "tls-rustls-ring", "migrate", "macros", "uuid", "json"] }
55
56[dev-dependencies]
57# test-util enables tokio::time::pause/advance for the rate limiter tests.
58tokio = { version = "1", features = ["full", "test-util"] }
59reqwest = { version = "0.13", default-features = false, features = ["json", "cookies"] }
60tempfile = "3"
61tokio-tungstenite = "0.30.0"
62futures-util = "0.3.34"
63proptest = "1.11.0"
64# Compiles the pattern `GET /limits` publishes and runs it over the same inputs
65# the validator sees, so the published promise cannot drift from the accept set.
66# Already in the tree (tracing-subscriber's env-filter), so this costs no build.
67regex = "1"
68opentelemetry_sdk = { version = "0.32.1", features = ["rt-tokio", "testing"] }