mirror of
https://github.com/Xevion/dynamic-preauth.git
synced 2025-12-17 16:11:45 -06:00
Replace manual environment variable parsing with envy for structured configuration. Updates dotenv to dotenvy (maintained fork), adds dedicated Config struct with Railway-specific settings, and consolidates all environment variable access. Upgrades reqwest to 0.12.
30 lines
826 B
TOML
30 lines
826 B
TOML
[package]
|
|
name = "dynamic-preauth"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.95"
|
|
chrono = { version = "0.4.39", features = ["serde"] }
|
|
dotenvy = "0.15.7"
|
|
envy = "0.4.2"
|
|
futures-util = "0.3.31"
|
|
rand = "0.8.5"
|
|
regex = "1.10"
|
|
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
|
|
salvo = { version = "0.74.3", features = ["affix-state", "catch-panic", "cors", "logging", "serve-static", "test", "websocket"] }
|
|
serde = { version = "1.0.216", features = ["derive"] }
|
|
serde_json = "1.0.134"
|
|
tokio = { version = "1", features = ["macros"] }
|
|
tokio-stream = "0.1.17"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
lto = true
|
|
strip = "debuginfo"
|
|
panic = "abort"
|
|
codegen-units = 1
|
|
overflow-checks = true
|