Files
mixvideo-v2/apps/desktop/src-tauri/Cargo.toml
imeepos 42ae580034 feat: 实现ComfyUI API服务集成
- 添加ComfyUI API数据模型 (comfyui.rs)
- 实现HTTP客户端服务层 (comfyui_service.rs)
- 创建Tauri命令层 (comfyui_commands.rs)
- 集成服务到应用状态管理
- 注册所有API命令到Tauri处理器
- 添加urlencoding依赖
- 支持8个API端点的完整功能

API端点包括:
- 工作流管理 (获取/发布/删除)
- 工作流执行和规范查询
- 服务器状态监控
- 文件列表管理
- 连接测试和配置管理

遵循四层架构模式: 数据模型  基础设施服务  表示命令  应用状态集成
2025-08-04 10:23:48 +08:00

67 lines
1.9 KiB
TOML

[package]
name = "mixvideo-desktop"
version = "0.2.1"
description = "MixVideo Desktop Application"
authors = ["imeepos <imeepos@outlook.com>"]
edition = "2021"
default-run = "mixvideo-desktop"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "mixvideo_desktop_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = ["protocol-asset"] }
tauri-plugin-opener = "2"
tauri-plugin-fs = "2"
tauri-plugin-dialog = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
rusqlite = { version = "0.31", features = ["bundled", "chrono"] }
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.0", features = ["v4", "serde"] }
tokio = { version = "1.0", features = ["full", "sync"] }
anyhow = "1.0"
thiserror = "1.0"
dirs = "5.0"
md5 = "0.7"
lazy_static = "1.4"
base64 = "0.22"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "chrono"] }
tracing-appender = "0.2"
reqwest = { version = "0.11", features = ["json", "multipart"] }
image = { version = "0.24", features = ["jpeg", "png", "webp", "bmp", "tiff", "gif"] }
toml = "0.8"
tree-sitter = "0.20"
tree-sitter-json = "0.20"
# tree-sitter-markdown = "0.7.1" # 暂时禁用,存在版本冲突
pulldown-cmark = "0.9"
regex = "1.10"
num_cpus = "1.16"
tokio-tungstenite = "0.20"
futures-util = "0.3"
rand = "0.8"
hmac = "0.12.1"
sha2 = "0.10.9"
hex = "0.4.3"
url = "2.5.4"
urlencoding = "2.1"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["sysinfoapi"] }
[dev-dependencies]
tempfile = "3.8"
tokio-test = "0.4"