Files
mixvideo-v2/apps/desktop/src-tauri/Cargo.toml
imeepos de620447b4 feat: 实现批量素材导入功能
新功能:
- 支持同时处理多个素材文件的批量导入
- 添加可配置的最大并发导入数量(1-8个)
- 实现基于系统资源的动态并发调整
- 添加内存监控和熔断器保护机制

 技术改进:
- 重构material_commands.rs支持并发处理
- 优化MaterialRepository使用连接池
- 添加指数退避重试机制
- 实现智能资源管理和性能优化

 前端优化:
- 更新MaterialImportDialog添加并发配置
- 保持原有进度显示和状态管理
- 更新TypeScript类型定义

 测试:
- 添加完整的批量导入测试套件
- 7个测试用例全部通过
- 验证并发处理和资源管理功能

 依赖更新:
- 添加num_cpus和winapi依赖
- 支持Windows系统内存检测

遵循promptx/tauri-desktop-app-expert开发规范
理论性能提升2-4倍,支持高并发稳定处理
2025-07-23 19:44:07 +08:00

57 lines
1.7 KiB
TOML

[package]
name = "mixvideo-desktop"
version = "0.2.1"
description = "MixVideo Desktop Application"
authors = ["imeepos <imeepos@outlook.com>"]
edition = "2021"
# 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"] }
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"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["sysinfoapi"] }
[dev-dependencies]
tempfile = "3.8"
tokio-test = "0.4"