Files
iAs/Cargo.toml
T
wunianxiao 2b86552d3e perf(qrcode): 关闭默认 features,移除 image 依赖链
qrcode 默认启用了 image/svg/pic,但项目只使用 Unicode 终端渲染,
不需要图片编解码。关闭后移除 image 及其子依赖。
2026-06-17 16:04:17 +08:00

49 lines
2.6 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 = "iAs"
version = "0.1.0"
edition = "2024"
description = "AI 智能助手"
[dependencies]
# ── 异步运行时 ──
tokio = { version = "1.0", features = ["rt-multi-thread", "macros", "sync", "time", "process", "signal", "io-util"] } # 异步运行时核心
# ── HTTP 客户端 ──
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] } # HTTP 请求(微信 API + DeepSeek API + 工具调用)
# ── 序列化 ──
serde = { version = "1.0", features = ["derive"] } # 序列化/反序列化
serde_json = "1.0" # JSON 处理
# ── 环境变量加载 ──
dotenvy = "0.15" # .env 文件加载
# ── CLI 参数解析 ──
clap = { version = "4", features = ["derive"] } # 命令行参数解析
# ── UUID ──
uuid = { version = "1", features = ["v4", "serde"] } # 唯一标识符
# ── 时间处理 ──
chrono = { version = "0.4", features = ["serde"] } # 日期时间
# ── 加密与签名 ──
base64 = "0.22" # Base64 编码
sha2 = "0.10" # SHA-256 哈希(审批码)
rand = "0.9" # 随机数
ed25519-dalek = { version = "2", features = ["pem"] } # Ed25519 JWT 签名(和风天气 API
# ── 日志 ──
tracing = "0.1" # 结构化日志
tracing-subscriber = { version = "0.3", features = ["env-filter"] } # 日志输出
tracing-appender = "0.2.5" # 文件日志(日滚)
# ── 二维码 ──
qrcode = { version = "0.14", default-features = false } # 二维码生成(仅 Unicode 终端渲染)
# ── 异步 trait ──
async-trait = "0.1" # 异步 trait 支持
# ── 流式处理 ──
futures-util = "0.3" # 流式处理工具
# ── 数据库 ──
sqlx = { version = "0.8.6", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "derive", "migrate"] } # PostgreSQL
# ── 文件系统 ──
dirs = "6.0.0" # 系统目录路径
# ── HTML 解析 ──
scraper = "0.27.0" # HTML 解析(fetch_page 工具)
[[bin]]
name = "ias"
path = "src/main.rs"