Files
iAs/ias-service/Cargo.toml
T
wunianxiao 279d89b87a fix: use internal URL for AI HTTP tools
Prefer IA_WEB_INTERNAL_URL or local HOST for AI tool requests while preserving public page links for users.
2026-07-08 00:03:14 +08:00

65 lines
1.8 KiB
TOML

[package]
name = "ias-service"
version = "0.1.13"
edition = "2024"
[dependencies]
# ── 公共模块 ──
ias-common = { path = "../ias-common" }
# ── 上下文管理 ──
ias-context = { path = "../ias-context" }
# ── HTTP 服务与预览页面 ──
ias-http = { path = "../ias-http" }
# ── 邮件轮询 ──
ias-mail = { path = "../ias-mail" }
# ── ai api 调用 ──
ias-ai = { path = "../ias-ai" }
# ── 微信工具包 ──
ias-wechat = { path = "../ias-wechat" }
# ── api ──
axum = "0.8.9"
# ── 异步运行时 ──
tokio = { version = "1.0", features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"process",
"signal",
"io-util",
"net",
] } # 异步运行时核心
# ── 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 处理
serde_yaml = "0.9" # YAML 解析(工具规范文件)
# ── 环境变量 ──
dotenvy = "0.15.7"
# ── 数据库 ──
sqlx = { version = "0.9.0", features = [
"runtime-tokio",
"tls-rustls",
"postgres",
"macros",
"migrate",
"chrono",
] }
# ── 错误处理 ──
anyhow = "1"
thiserror = "2"
# ── 日志管理 ──
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# ── 时间处理 ──
chrono = { version = "0.4", features = ["serde"] } # 日期时间
# ── 唯一标识 ──
uuid = { version = "1", features = ["v4", "serde"] }
# ── Unix 后台进程控制 ──
libc = "0.2"