feat: rebuild email platform and operations console
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
[package]
|
||||
name = "email-unlimit-server"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
# ===== Web 框架 =====
|
||||
axum = { version = "0.7", features = ["ws"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
tower = { version = "0.5", features = ["limit", "timeout", "util"] }
|
||||
tower-http = { version = "0.5", features = ["catch-panic", "cors", "limit", "set-header", "timeout", "trace"] }
|
||||
|
||||
# ===== 数据库(支持 MySQL、SQLite、PostgreSQL) =====
|
||||
# SeaORM - 数据库 ORM(替代 SQLX 直接使用)
|
||||
sea-orm = { version = "1.1", features = [
|
||||
"runtime-tokio-rustls",
|
||||
"sqlx-mysql",
|
||||
"sqlx-sqlite",
|
||||
"sqlx-postgres",
|
||||
"macros",
|
||||
"with-chrono",
|
||||
"with-uuid",
|
||||
] }
|
||||
# ===== 序列化 =====
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
||||
# ===== 认证与加密 =====
|
||||
jsonwebtoken = "9"
|
||||
argon2 = "0.5"
|
||||
sha2 = "0.10"
|
||||
base64 = "0.22"
|
||||
aes-gcm = "0.10"
|
||||
|
||||
# ===== 邮件发送 =====
|
||||
lettre = { version = "0.11", default-features = false, features = ["tokio1", "tokio1-rustls", "builder", "smtp-transport", "webpki-roots", "ring"] }
|
||||
|
||||
# ===== 邮件接收(临时邮箱 SMTP 收信) =====
|
||||
mail-parser = "0.9"
|
||||
hickory-resolver = "0.24"
|
||||
dashmap = "6"
|
||||
|
||||
# ===== Redis =====
|
||||
redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] }
|
||||
|
||||
# ===== HTTP 客户端(告警 webhook) =====
|
||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||
|
||||
# ===== 工具库 =====
|
||||
uuid = { version = "1", features = ["v4", "serde"] }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
chrono-tz = "0.10"
|
||||
anyhow = "1"
|
||||
thiserror = "1"
|
||||
async-trait = "0.1"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
config = "0.13"
|
||||
rand = "0.8"
|
||||
clap = { version = "4", features = ["derive", "env"] }
|
||||
validator = { version = "0.16", features = ["derive"] }
|
||||
http-body-util = "0.1"
|
||||
|
||||
# 优化发布版本
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
strip = true
|
||||
panic = "abort"
|
||||
Reference in New Issue
Block a user