Files
udmin/backend/Cargo.toml
ayou cadd336dee feat(ids): 实现基于Snowflake的分布式ID生成功能
新增rs-snowflake依赖并实现分布式ID生成工具
在utils模块中添加ids子模块,提供业务ID生成与解析功能
替换原有UUID生成方式为分布式ID生成器
2025-09-23 00:22:06 +08:00

57 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"
# 新增: 分布式ID生成Snowflake
rs-snowflake = "0.6.0"
[dependencies.migration]
path = "migration"
[profile.release]
lto = true
codegen-units = 1
[dev-dependencies]
wiremock = "0.6"