-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
82 lines (63 loc) · 1.4 KB
/
Cargo.toml
File metadata and controls
82 lines (63 loc) · 1.4 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "node-token"
version = "0.1.0"
edition = "2024"
description = "KeyCompute node-token client for personal PC nodes"
license = "GPL-3.0"
[workspace]
# 库配置
[lib]
name = "node_token"
path = "src/lib.rs"
# 二进制配置
[[bin]]
name = "node-token"
path = "src/main.rs"
[dependencies]
# 异步运行时
tokio = { version = "1", features = ["full", "signal"] }
# 序列化和反序列化
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# HTTP 客户端
reqwest = { version = "0.11", features = ["json"] }
# 工具库
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
# 日志和追踪
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# 错误处理
anyhow = "1"
thiserror = "1"
# 配置管理
config = "0.13"
# 本地数据目录
dirs = "5"
# 主机名获取
hostname = "0.4"
# 重试策略
tokio-retry = "0.3"
# 文件权限(Unix)
[target.'cfg(unix)'.dependencies]
nix = { version = "0.27", features = ["fs"] }
# 测试依赖
[dev-dependencies]
tempfile = "3"
mockall = "0.11"
tokio-test = "0.4"
wiremock = "0.5"
futures = "0.3"
# 基准测试依赖
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[[bench]]
name = "protocol_serialization"
harness = false
[[bench]]
name = "http_client"
harness = false
[[bench]]
name = "storage_operations"
harness = false