重构: secret纯密钥逻辑下沉df-storage(方案B避循环依赖,12调用点零改)

This commit is contained in:
2026-06-16 22:57:43 +08:00
parent 36f70b3229
commit 766f235ab7
7 changed files with 571 additions and 222 deletions

View File

@@ -36,7 +36,7 @@ df-project = { path = "../crates/df-project" }
futures = "0.3"
# write_file base64 编码:写二进制/非 UTF-8 文件(图片/PDF/Excel 等)
base64 = "0.22"
# keyring v3 默认不带任何 platform 后端,必须显式启 feature——
# 否则 Entry 走 noop store:set_password 静默成功不持久化,get_password 永远空(=FR-S1 密钥存了等于没存,根因见 docs/09-问题排查/aichat-apikey-401排查-2026-06-15.md)
# Win+mac 启用原生后端;linux(secret-service)按需补
keyring = { version = "3", features = ["windows-native", "apple-native"] }
# keyring:密钥解析下沉到 df-storage(workspace 统一声明平台 feature),
# src-tauri 经 workspace 引用(转发壳 build_provider_for 不直接碰 keyring,但旧路径/兼容保留)。
# 根因见 docs/09-问题排查/aichat-apikey-401排查-2026-06-15.md
keyring = { workspace = true }