Files
zclaw_openfang/desktop/src-tauri/Cargo.toml
iven db1f8dcbbc
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
feat(desktop): Gateway URL 配置化 + Rust panic hook 崩溃报告
- api-urls.ts: GATEWAY_URLS 读 VITE_GATEWAY_HTTP/WS env
- gateway-storage.ts: DEFAULT_GATEWAY_URL 读 VITE_GATEWAY_WS env
- lib.rs: 添加 tracing_subscriber 初始化 + panic::set_hook
  崩溃时自动写入 crash-reports/ 目录供诊断
- Cargo.toml: 添加 tracing-subscriber workspace 依赖
2026-04-11 02:54:23 +08:00

87 lines
2.3 KiB
TOML

[package]
name = "desktop"
version.workspace = true
edition.workspace = true
description = "ZCLAW Desktop Application"
authors = ["ZCLAW Team"]
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[lib]
name = "desktop_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[features]
default = ["multi-agent"]
# Multi-agent orchestration (A2A protocol, Director, agent delegation)
multi-agent = ["zclaw-kernel/multi-agent"]
dev-server = ["dep:axum", "dep:tower-http"]
[dependencies]
# ZCLAW crates
zclaw-types = { workspace = true }
zclaw-memory = { workspace = true }
zclaw-runtime = { workspace = true }
zclaw-kernel = { workspace = true }
zclaw-skills = { workspace = true }
zclaw-hands = { workspace = true }
zclaw-pipeline = { workspace = true }
zclaw-growth = { workspace = true }
zclaw-protocols = { workspace = true }
# Tauri
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
# MCP debug plugin (dev-only, allows AI agents to interact with the app)
tauri-plugin-mcp = { git = "https://github.com/P3GLEG/tauri-plugin-mcp" }
# Async runtime
tokio = { workspace = true }
futures = { workspace = true }
async-trait = { workspace = true }
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
serde_yaml = "0.9"
toml = "0.8"
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls", "blocking"] }
# Utilities
chrono = { workspace = true }
regex = { workspace = true }
dirs = { workspace = true }
thiserror = { workspace = true }
dashmap = { workspace = true }
uuid = { workspace = true }
base64 = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
secrecy = { workspace = true }
# Browser automation (existing)
fantoccini = "0.21"
# Secure storage (OS keyring/keychain)
keyring = "3"
# Encryption
aes-gcm = { workspace = true }
sha2 = { workspace = true }
rand = { workspace = true }
# SQLite (keep for backward compatibility during migration)
sqlx = { workspace = true }
libsqlite3-sys = { workspace = true }
# Development server (optional, only for debug builds)
axum = { version = "0.7", optional = true }
tower-http = { version = "0.5", features = ["cors"], optional = true }