Files
asd-backend/Cargo.toml
Milky0217 034aa66ed8 feat(payment): 实现网页端登录码流程(无需微信登录)
- 新增 GET /payment/generate-code:网页端生成 ASD-XXXXXX 登录码
- 新增 GET /payment/login-status:网页轮询查询登录码确认状态
- web_generate_login_code 和 web_login_confirm 增加 JWT 保护
- payment_index JS 改为真实调用 generate-code 并轮询
- 添加 rand crate 依赖
2026-04-24 10:51:06 +08:00

36 lines
979 B
TOML

[package]
name = "rust-backend"
version = "0.3.0"
edition = "2024"
[dependencies]
actix-files = "0.6.8"
actix-web = {version = "4.11.0", features=["openssl"]}
chrono = {version = "0.4.41", features=["serde"]}
dotenvy = "0.15.7"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
tracing-appender = "0.2"
error = "0.1.9"
include_dir = "0.7.4"
jsonwebtoken = "9.3.1"
log = "0.4.28"
openssl = "0.10.73"
rand = "0.8"
reqwest = { version = "0.12.23", features=["json"]}
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.143"
sqlx = { version = "0.8.6", features = ["runtime-tokio-rustls", "postgres", "chrono", "uuid"] }
uuid = { version = "1", features = ["v4"] }
tokio = { version = "1", features = ["full"] }
toml = "0.8"
base64 = "0.22"
rsa = { version = "0.9", features = ["pem", "sha2"] }
pkcs8 = "0.10"
sha2 = "0.10"
hex = "0.4"
digest = "0.10"
[dev-dependencies]
tokio = { version = "1", features = ["full"] }