The subscriber was pinned to DEBUG, so RUST_LOG=warn was ignored and sqlx logged every statement to stderr in production. Now an EnvFilter defaults to info with sqlx at warn; RUST_LOG=debug restores the query log. Three benchmarks, so the hosting numbers come from measurement rather than guesswork: scripts/bench.py for latency and throughput, bench_write.py for the autosave and submit path under concurrent students, and bench_scale.py which builds a database at the real bank's size (10,905 questions, 2,000 students, 12,000 papers, 900k answers) to report disk cost and query timings.
27 lines
978 B
TOML
27 lines
978 B
TOML
[package]
|
|
name = "zenith-pyq-clone"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.104"
|
|
axum = { version = "0.8.9", features = ["form", "query", "json", "http1", "http2"] }
|
|
base64 = "0.23.1"
|
|
chrono = { version = "0.4.45", features = ["serde"] }
|
|
jsonwebtoken = { version = "11.1.0", features = ["rust_crypto", "use_pem"] }
|
|
reqwest = { version = "0.13.5", features = ["form", "json"] }
|
|
serde = { version = "1.0.229", features = ["derive"] }
|
|
serde_json = "1.0.152"
|
|
sha2 = "0.11.0"
|
|
sqlx = { version = "0.9.0", features = ["sqlite", "runtime-tokio", "macros", "chrono", "uuid"] }
|
|
tokio = { version = "1.53.2", features = ["full"] }
|
|
tower-cookies = "0.11.0"
|
|
tower-http = { version = "0.7.1", features = ["fs"] }
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
|
|
uuid = { version = "1.28.0", features = ["v4", "serde"] }
|
|
|
|
[dev-dependencies]
|
|
rand = "0.8"
|
|
rsa = { version = "0.9", features = ["pem"] }
|
|
serde_urlencoded = "0.7.1"
|