-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (44 loc) · 1.59 KB
/
Copy pathCargo.toml
File metadata and controls
52 lines (44 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "aitokenpool"
version = "0.7.20"
edition = "2021"
description = "AI Token 共享池 — 企业 key 池 + 公共共享市场"
license = "MIT"
repository = "https://github.com/argszero/aitokenpool"
rust-version = "1.86"
[dependencies]
# HTTP 服务器(复用 openlocalrouter 技术栈)
axum = { version = "0.7", features = ["macros"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time", "signal"] }
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.5", features = ["cors", "fs", "trace", "limit"] }
hyper = { version = "1.0", features = ["full"] }
# HTTP 客户端(上游转发)
reqwest = { version = "0.12", features = ["rustls-tls", "json", "stream"] }
# SSE 流式(bytes_stream + Body::from_stream)
futures-util = "0.3"
# SSE 流式协议转换(P3-B:跨协议流事件互转)
async-stream = "0.3"
bytes = "1"
# 上游 key 加密(AES-256-GCM,RustCrypto)
aes-gcm = "0.10"
# 序列化
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
toml = "0.8"
# 数据库
rusqlite = { version = "0.31", features = ["bundled"] }
# 工具
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.11", features = ["v4"] }
log = "0.4"
log4rs = "1"
thiserror = "2.0"
anyhow = "1.0"
argon2 = "0.5"
sha2 = "0.10"
hex = "0.4"
rand = "0.8"
clap = { version = "4", features = ["derive", "env"] }
# 注册邮箱验证码发信(rant 2026-08-19T14:36:19:方案 B 完整验证码)
lettre = { version = "0.11", default-features = false, features = ["builder", "smtp-transport", "rustls-tls", "hostname"] }