- DSN 指向 rustrak 自建 Sentry(项目 8),release 标记 mqttx@版本 - panic 路径:sentry-panic 链式钩子捕获 + 外层钩子 flush 5s, 确保 panic=abort 终止进程前事件送出 - 存储层 elog! 持久化错误同步 capture_message 上报 - 传输用 reqwest+rustls,避免 openssl 依赖
55 lines
1.7 KiB
TOML
55 lines
1.7 KiB
TOML
[package]
|
|
name = "mqttx-desktop"
|
|
version = "1.0.1"
|
|
edition.workspace = true
|
|
description = "MQTT X —— 基于 GPUI 的跨平台 MQTT 调试客户端"
|
|
default-run = "mqttx"
|
|
|
|
[[bin]]
|
|
name = "mqttx"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
gpui-kit = "0.6"
|
|
|
|
anyhow = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
# MQTT 引擎运行在独立的 tokio runtime 线程上
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "net", "time", "io-util"] }
|
|
# GPUI 侧与引擎线程通信使用 smol 通道(GPUI 执行器兼容)
|
|
smol = "2"
|
|
|
|
rumqttc = { package = "rumqttc-v5-next", version = "0.34", features = ["websocket"] }
|
|
rumqttc-v4 = { package = "rumqttc-v4-next", version = "0.34", features = ["websocket"] }
|
|
|
|
uuid = { version = "1", features = ["v4"] }
|
|
chrono = { version = "0.4", features = ["clock"] }
|
|
dirs = "6"
|
|
|
|
# 阿里云 MQTT 签名: HMAC-SHA1 -> Base64
|
|
hmac = "0.12"
|
|
sha1 = "0.10"
|
|
base64 = "0.22"
|
|
|
|
# 自定义 TLS(自定义 CA / 双向认证 / 跳过校验),版本与 rumqttc 内部使用的 rustls 一致
|
|
rustls = { version = "0.23", default-features = false, features = ["std", "tls12", "aws_lc_rs"] }
|
|
# 加载系统根证书,作为自定义 CA 的补充
|
|
rustls-native-certs = "0.8"
|
|
|
|
# 原生文件对话框(连接导入/导出);Windows 走内建 COM 后端,Linux 用默认 xdg-portal
|
|
rfd = "0.17"
|
|
|
|
# OTA 自更新:Gitea Release 检查/下载(ureq 用 rustls,与 rumqttc 依赖同源)
|
|
ureq = { version = "2", features = ["json"] }
|
|
sha2 = "0.10"
|
|
|
|
# 错误上报(自建 Sentry):panic 捕获 + 持久化错误;rustls 传输避免 openssl 依赖
|
|
sentry = { version = "0.49", default-features = false, features = [
|
|
"backtrace",
|
|
"contexts",
|
|
"panic",
|
|
"reqwest",
|
|
"rustls",
|
|
] }
|