hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | [package] |
| 2 | name = "hezarfen_backend" |
| 3 | version = "0.1.0" |
| 4 | edition = "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] |
| 9 | disallowed_methods = "deny" |
| 10 | disallowed_types = "deny" |
| 11 | |
| 12 | [dependencies] |
| 13 | tokio = { version = "1", features = ["full"] } |
| 14 | # IntervalStream for the live exam-monitor SSE tick; "sync" adds |
| 15 | # ReceiverStream, which carries the chatbot's SSE events. |
| 16 | tokio-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). |
| 19 | axum = { version = "0.8.9", features = ["ws", "multipart"] } |
| 20 | axum-extra = { version = "0.12", features = ["cookie"] } |
| 21 | tower-http = { version = "0.7", features = ["trace", "cors", "request-id", "catch-panic"] } |
| 22 | serde = { version = "1", features = ["derive"] } |
| 23 | serde_json = "1" |
| 24 | chrono = "0.4" |
| 25 | argon2 = "0.6" |
| 26 | getrandom = "0.4" |
| 27 | hex = "0.4" |
| 28 | thiserror = "2" |
| 29 | anyhow = "1" |
| 30 | tracing = "0.1" |
| 31 | tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] } |
| 32 | dotenvy = "0.15" |
| 33 | time = "0.3" |
| 34 | utoipa = { version = "5.5.0", features = ["axum_extras"] } |
| 35 | utoipa-axum = "0.2.0" |
| 36 | utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] } |
| 37 | quinn = { version = "0.11.11", default-features = false, features = ["runtime-tokio", "rustls-ring", "log"] } |
| 38 | rcgen = { version = "0.14.10", default-features = false, features = ["pem", "ring"] } |
| 39 | rustls-pemfile = "2.2.0" |
| 40 | rustls = { version = "0.23.44", default-features = false, features = ["logging", "ring", "std", "tls12"] } |
| 41 | sha2 = "0.11.0" |
| 42 | base64 = "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. |
| 46 | tower = { version = "0.5", features = ["util"] } |
| 47 | opentelemetry = "0.32.0" |
| 48 | tracing-opentelemetry = "0.33.0" |
| 49 | opentelemetry-semantic-conventions = "0.32.1" |
| 50 | uuid = { version = "1.26.1", features = ["v7"] } |
| 51 | opentelemetry_sdk = { version = "0.32.1", features = ["rt-tokio"] } |
| 52 | opentelemetry-otlp = { version = "0.32.0", default-features = false, features = ["trace", "metrics", "logs", "grpc-tonic", "http-proto", "reqwest-blocking-client", "internal-logs"] } |
| 53 | opentelemetry-appender-tracing = "0.32.0" |
| 54 | sqlx = { 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. |
| 58 | tokio = { version = "1", features = ["full", "test-util"] } |
| 59 | reqwest = { version = "0.13", default-features = false, features = ["json", "cookies"] } |
| 60 | tempfile = "3" |
| 61 | tokio-tungstenite = "0.30.0" |
| 62 | futures-util = "0.3.34" |
| 63 | proptest = "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. |
| 67 | regex = "1" |
| 68 | opentelemetry_sdk = { version = "0.32.1", features = ["rt-tokio", "testing"] } |