init
This commit is contained in:
39
backend/Cargo.toml
Normal file
39
backend/Cargo.toml
Normal file
@ -0,0 +1,39 @@
|
||||
[package]
|
||||
name = "udmin"
|
||||
version = "0.1.0"
|
||||
edition = "2024" # ✅ 升级到最新 Rust Edition
|
||||
|
||||
[dependencies]
|
||||
axum = "0.8.4"
|
||||
tokio = { version = "1.47.1", features = ["full"] }
|
||||
tower = "0.5.0"
|
||||
tower-http = { version = "0.6.6", features = ["cors", "trace"] }
|
||||
hyper = { version = "1" }
|
||||
bytes = "1"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
serde_with = "3.14.0"
|
||||
sea-orm = { version = "1.1.14", features = ["sqlx-mysql", "sqlx-sqlite", "runtime-tokio-rustls", "macros"] }
|
||||
jsonwebtoken = "9.3.1"
|
||||
argon2 = "0.5.3" # 或升级到 3.0.0(注意 API 可能不兼容)
|
||||
uuid = { version = "1.11.0", features = ["serde", "v4"] }
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
|
||||
config = "0.14"
|
||||
dotenvy = "0.15"
|
||||
thiserror = "1.0"
|
||||
anyhow = "1.0"
|
||||
once_cell = "1.19.0"
|
||||
utoipa = { version = "5.4.0", features = ["axum_extras", "chrono", "uuid"] }
|
||||
utoipa-swagger-ui = { version = "6.0.0", features = ["axum"] }
|
||||
sha2 = "0.10"
|
||||
rand = "0.8"
|
||||
async-trait = "0.1"
|
||||
|
||||
[dependencies.migration]
|
||||
path = "migration"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
Reference in New Issue
Block a user