Files
image-workbench-desktop/src-tauri/Cargo.toml
T
qiqi e07c78d662
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m26s
feat(snapshot): 快照改定时触发 + 可配置/可关闭 + 可读文件名(v3.26.271)
- snapshot-store:配置化(on/everyMin/keep/keepDays/keepData);文件名改为
  <时间>__<画板名>__<sha6>.json;索引补 kind/name/file;auto 节流 + 内容去重;
  auto ≤ keep(>2MB 收紧到 2)、受保护 ≤4、baseline 每板只留最新一份;
  新增 stats/clear/dirOf/setCfg;清理只在发生裁剪时扫目录
- storage-file:移除 flush 逐次快照;新增 60s 粒度定时器(只扫脏画板);
  启动基线、删除前 danger、退出补拍;开关关闭时全部跳过;导出 snapshot* API
- 设置:备份与还原页新增「本地快照」组(开关/间隔/份数/占用/可回退时长/清理/打开文件夹)
- 历史面板:动态副标题、类型标签、立即备份/打开文件夹/清理、关闭提示、改用主题 token
- 恢复:走 migrateCanvas 迁移 + 清空撤销栈 + 刷新首页列表
- 新增 src/snapshot-actions.js(从 app.js 收编历史动作,app.js 净减 31 行)
- Rust:新增 open_snapshot_dir(固定打开 appLocalDataDir/iwb-snapshots)

棘轮说明:
- architecture-boundary-guard 前缀白名单新增 vault/board/snapshot(265–271 的三个跨层领域),
  并重生成 sourceModules 顺序快照(新增 snapshot-actions.js 一行)
- design-token-ratchet:把 style.css 的 .iwb-pname 字号换成 --iwb-font-sm,
  抵消 270 已存在的 +1(font-size 写死 121→120),未调基线
- source-text-ratchet:app.js 9665 行(上限 9693),未上调
2026-12-06 23:11:18 +08:00

58 lines
2.8 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "image-workbench"
version = "3.26.271"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
repository = ""
edition = "2024"
rust-version = "1.90"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "image_workbench_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.7.4", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"
# tray-icon:系统托盘(关闭窗口收进托盘而不是退出)
# tray-icon:系统托盘;image-png:托盘用单色 PNG 模板图标
# unstable:`Manager::get_window`(窗口级句柄,不受子 webview 影响)与 Window::add_child 都在它下面。
# 画布内嵌网页已下线(v3.25.27),但 get_window 仍要留着 —— save_geom/托盘/单实例都靠它,
# 且它比 get_webview_window 更稳(后者一旦窗口里有非同名 webview 就返回 None,见 v3.25.26)。
tauri = { version = "2.12.5", features = ["tray-icon", "image-png", "unstable"] }
# 2026-12-04:文件版下载用 tokio::fs 异步写盘(避免阻塞 async 运行时)
tokio = { version = "1", features = ["fs", "io-util", "time"] }
url = "2"
tauri-plugin-log = "2"
tauri-plugin-dialog = "2"
tauri-plugin-fs = "2"
tauri-plugin-http = "2"
tauri-plugin-updater = "2"
tauri-plugin-single-instance = "2"
tauri-plugin-notification = "2"
arboard = "3"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "webp", "bmp", "tiff"] }
base64 = "0.22"
# 画布内嵌网页的圆角(2026-11-19):WKWebView 是矩形,要给它 backing layer 设
# cornerRadius/masksToBounds 只能走 Objective-C 消息。objc2 0.6 已由 tauri/wry 引入
# (Cargo.lock 里是同一个 0.6.x),这里显式依赖不会多编译一份。
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6"
# 剪贴板「复制的是文件」:Finder 复制文件时 NSPasteboard 里只有 public.file-url / NSFilenamesPboardType,
# 没有位图,arboard 的 get_image 读不到。这里直接问 NSPasteboard 要路径。
# 这两个 crate 本来就是 tauri/wry 在 macOS 上的依赖(Cargo.lock 已锁 0.3.x),显式依赖不会多编译一份。
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "NSPasteboard"] }
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "NSString", "NSArray", "NSURL"] }
# Windows:直接读进程工作集(GetProcessMemoryInfo),不再启动 PowerShell 子进程
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.52", features = ["Win32_Foundation", "Win32_System_ProcessStatus", "Win32_System_Threading", "Win32_System_Diagnostics_ToolHelp"] }