chore: 移除未使用的依赖 (rustyline, dialoguer, console, hex, image)

- rustyline, dialoguer, console: 代码中无任何引用
- hex: 代码中无任何引用
- image: qrcode crate 直接渲染 Unicode,不需要 image

共减少 5 个直接依赖及 17+ 个间接依赖
This commit is contained in:
2026-06-17 15:15:27 +08:00
parent 08aadef8cf
commit 6686271f9a
2 changed files with 2 additions and 723 deletions
Generated
+1 -717
View File
File diff suppressed because it is too large Load Diff
+1 -6
View File
@@ -16,10 +16,7 @@ serde_json = "1.0" # JSON 处理
dotenvy = "0.15" # .env 文件加载
# ── CLI 参数解析 ──
clap = { version = "4", features = ["derive"] } # 命令行参数解析
# ── 终端交互 ──
rustyline = "14.0" # REPL 行编辑
dialoguer = "0.12.0" # 终端交互对话框
console = "0.16.3" # 终端控制
# ── UUID ──
uuid = { version = "1", features = ["v4", "serde"] } # 唯一标识符
# ── 时间处理 ──
@@ -27,7 +24,6 @@ chrono = { version = "0.4", features = ["serde"] } # 日期时间
# ── 加密与签名 ──
base64 = "0.22" # Base64 编码
sha2 = "0.10" # SHA-256 哈希(审批码)
hex = "0.4" # 十六进制
rand = "0.9" # 随机数
ed25519-dalek = { version = "2", features = ["pem"] } # Ed25519 JWT 签名(和风天气 API
# ── 日志 ──
@@ -36,7 +32,6 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } # 日志输
tracing-appender = "0.2.5" # 文件日志(日滚)
# ── 二维码 ──
qrcode = "0.14" # 二维码生成
image = "0.25" # 图片处理
# ── 异步 trait ──
async-trait = "0.1" # 异步 trait 支持
# ── 流式处理 ──