[package] name = "iam-service" version = "0.1.0" edition = "2024" [dependencies] # 统一日志处理与错误处理 common-telemetry = { version = "0.1.3", registry = "kellnr", default-features = false, features = [ "error", "telemetry", "with-sqlx", ] } # Web 框架 axum = "0.8.8" tokio = { version = "1", features = ["full"] } # 序列化 serde = { version = "1", features = ["derive"] } serde_json = "1" # 数据库 (PostgreSQL) sqlx = { version = "0.8", features = [ "runtime-tokio-native-tls", "postgres", "uuid", "chrono", ] } # 工具 uuid = { version = "1", features = ["v4", "serde"] } dotenvy = "0.15" # 加载 .env thiserror = "2.0.18" jsonwebtoken = { version = "10.3.0", features = ["aws_lc_rs"] } argon2 = "0.5" rand = "0.9.2" config = "0.15.19" # 方便读取配置 tracing = "0.1" tracing-subscriber = "0.3" # API 文档 (关键部分) utoipa = { version = "5", features = ["axum_extras", "uuid", "chrono"] } utoipa-scalar = { version = "0.3.0", features = ["axum"] } # Scalar 集成 async-trait = "0.1.89" http = "1.4.0"