Files
udmin/backend/Cargo.toml
ayou 30716686ed feat(ws): 新增WebSocket实时通信支持与SSE独立服务
重构中间件结构,新增ws模块实现WebSocket流程执行实时推送
将SSE服务拆分为独立端口监听,默认8866
优化前端流式模式切换,支持WS/SSE协议选择
统一流式事件处理逻辑,完善错误处理与取消机制
更新Cargo.toml依赖,添加WebSocket相关库
调整代码组织结构,规范导入分组与注释
2025-09-21 22:15:33 +08:00

55 lines
1.8 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[package]
name = "udmin"
version = "0.1.0"
edition = "2024"
default-run = "udmin"
[dependencies]
axum = { version = "0.8.4", features = ["ws"] }
tokio = { version = "1.47.1", features = ["full"] }
tower = "0.5.2"
tower-http = { version = "0.6.6", features = ["cors", "trace"] }
hyper = { version = "1" }
bytes = "1"
serde = { version = "1.0.225", features = ["derive"] }
serde_json = "1.0"
serde_with = "3.14.0"
sea-orm = { version = "1.1.14", features = ["sqlx-mysql", "sqlx-sqlite", "sqlx-postgres", "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.15.16"
dotenvy = "0.15.7"
thiserror = "2.0.16"
anyhow = "1.0"
once_cell = "1.19.0"
utoipa = { version = "5.4.0", features = ["axum_extras", "chrono", "uuid"] }
utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
sha2 = "0.10"
rand = "0.9.2"
async-trait = "0.1.89"
redis = { version = "0.32.5", features = ["tokio-comp", "connection-manager"] }
petgraph = "0.8.2"
rhai = { version = "1.23.4", features = ["serde", "metadata", "internals"] }
serde_yaml = "0.9"
regex = "1.11.2"
reqwest = { version = "0.12.23", features = ["json", "rustls-tls-native-roots"], default-features = false }
futures = "0.3.31"
percent-encoding = "2.3"
# 新增: QuickJS 运行时用于 JS 执行器(不启用额外特性)
rquickjs = "0.9.0"
# 新增: 用于将 mpsc::Receiver 封装为 StreamSSE
tokio-stream = "0.1.17"
[dependencies.migration]
path = "migration"
[profile.release]
lto = true
codegen-units = 1
[dev-dependencies]
wiremock = "0.6"