27 lines
1.1 KiB
TOML
27 lines
1.1 KiB
TOML
[package]
|
|
name = "alterdb"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
axum = "0.8"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tower-http = { version = "0.6", features = ["fs", "cors", "compression-gzip", "trace"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
rusqlite = { version = "0.40.2", features = ["bundled"] }
|
|
deadpool-sqlite = "0.14.0"
|
|
askama = "0.16.1"
|
|
argon2 = { version = "0.5", features = ["std"] }
|
|
# 外部數據庫實際連線(測試連接 / 瀏覽數據表);暫不啟用 TLS
|
|
mysql_async = { version = "0.36", default-features = false, features = ["minimal"] }
|
|
tokio-postgres = { version = "0.7", default-features = false, features = ["runtime"] }
|
|
# 僅為 argon2 的 SaltString::generate 提供 OsRng(啟用 getrandom 特性)
|
|
rand_core = { version = "0.6", features = ["getrandom"] }
|
|
|
|
[dev-dependencies]
|
|
# 整合測試以 ServiceExt::oneshot 直接把請求送進完整路由,无需真實 socket
|
|
tower = { version = "0.5", features = ["util"] }
|