From 393e1e00caacc73109ed3409bebaa4c119f13ead Mon Sep 17 00:00:00 2001 From: Smilewithoutfalling <91455578+Smilewithoutfalling@users.noreply.github.com> Date: Mon, 26 Oct 2026 08:52:57 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat(desktop):=20=E9=98=B6=E6=AE=B5=206=20D?= =?UTF-8?q?1=20Tauri=20=E5=A3=B3=20+=20NSIS=20=E5=AE=89=E8=A3=85=E5=8C=85?= =?UTF-8?q?=EF=BC=8CD2=20=E9=A6=96=E6=AC=A1=E5=90=AF=E5=8A=A8=E4=B8=8E?= =?UTF-8?q?=E6=9D=A5=E8=B7=AF=E4=B8=8D=E6=98=8E=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/desktop.yml | 119 + README.md | 12 + app/server/__main__.py | 7 +- app/server/app.py | 14 + desktop/.gitignore | 4 + desktop/src-tauri/Cargo.lock | 4942 ++++++++++++++++++++++++ desktop/src-tauri/Cargo.toml | 26 + desktop/src-tauri/build.rs | 3 + desktop/src-tauri/hooks.nsh | 9 + desktop/src-tauri/icons/128x128.png | Bin 0 -> 653 bytes desktop/src-tauri/icons/128x128@2x.png | Bin 0 -> 1345 bytes desktop/src-tauri/icons/32x32.png | Bin 0 -> 203 bytes desktop/src-tauri/icons/icon.ico | Bin 0 -> 8566 bytes desktop/src-tauri/icons/icon.png | Bin 0 -> 3139 bytes desktop/src-tauri/sidecar/.gitkeep | 0 desktop/src-tauri/src/main.rs | 186 + desktop/src-tauri/src/sidecar.rs | 224 ++ desktop/src-tauri/tauri.conf.json | 44 + desktop/static/error.html | 18 + desktop/static/error.js | 8 + desktop/static/loading.html | 15 + desktop/static/shell.css | 9 + docs/DEVLOG.md | 12 +- docs/roadmap/phase6-desktop.md | 12 + tests/test_server.py | 12 + tests/test_sidecar_contract.py | 20 + ui/web/e2e/f0.spec.ts | 15 + ui/web/src/App.test.tsx | 26 +- ui/web/src/App.tsx | 37 +- ui/web/src/desktop.test.ts | 27 + ui/web/src/desktop.ts | 20 + ui/web/src/views/SettingsView.tsx | 2 +- ui/web/src/views/Shell.tsx | 2 + ui/web/src/views/views.test.tsx | 9 + 34 files changed, 5814 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/desktop.yml create mode 100644 desktop/.gitignore create mode 100644 desktop/src-tauri/Cargo.lock create mode 100644 desktop/src-tauri/Cargo.toml create mode 100644 desktop/src-tauri/build.rs create mode 100644 desktop/src-tauri/hooks.nsh create mode 100644 desktop/src-tauri/icons/128x128.png create mode 100644 desktop/src-tauri/icons/128x128@2x.png create mode 100644 desktop/src-tauri/icons/32x32.png create mode 100644 desktop/src-tauri/icons/icon.ico create mode 100644 desktop/src-tauri/icons/icon.png create mode 100644 desktop/src-tauri/sidecar/.gitkeep create mode 100644 desktop/src-tauri/src/main.rs create mode 100644 desktop/src-tauri/src/sidecar.rs create mode 100644 desktop/src-tauri/tauri.conf.json create mode 100644 desktop/static/error.html create mode 100644 desktop/static/error.js create mode 100644 desktop/static/loading.html create mode 100644 desktop/static/shell.css create mode 100644 ui/web/src/desktop.test.ts create mode 100644 ui/web/src/desktop.ts diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml new file mode 100644 index 0000000..4bdcf11 --- /dev/null +++ b/.github/workflows/desktop.yml @@ -0,0 +1,119 @@ +# 阶段 6 D1:Tauri 壳 + NSIS 安装包,在 windows-latest 上打包并做安装冒烟(docs/roadmap/phase6-desktop.md §2 验收)。 +# 沙箱是 aarch64 Linux,Windows 安装包只能在这里打;S 本机不装 Rust / Node,直接下载这里的工件试装。 +name: desktop + +on: + workflow_dispatch: + pull_request: + paths: + - "desktop/**" + - "packaging/**" + - "app/**" + - "ui/web/**" + - "requirements.txt" + - ".github/workflows/desktop.yml" + +concurrency: + group: desktop-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: windows-latest + timeout-minutes: 60 + env: + PYTHONUTF8: "1" + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-python@v6 + with: + python-version: "3.11" + cache: pip + cache-dependency-path: | + requirements.txt + packaging/requirements-build.txt + - uses: actions/setup-node@v5 + with: + node-version: "24" + cache: npm + cache-dependency-path: ui/web/package-lock.json + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + workspaces: desktop/src-tauri + - name: 安装 Python 依赖 + run: python -m pip install -r requirements.txt -r packaging/requirements-build.txt + - name: 构建前端 + working-directory: ui/web + run: | + npm ci + npm run build + - name: 打包 sidecar 并放进壳的 resources + shell: pwsh + run: | + python packaging/build_sidecar.py + Copy-Item -Recurse -Force dist/datachat-sidecar/* desktop/src-tauri/sidecar/ + - name: 打包壳(NSIS) + working-directory: desktop + shell: pwsh + run: | + $t = Get-Date + npx --yes @tauri-apps/cli@2 build + "build_seconds=$([int]((Get-Date) - $t).TotalSeconds)" | Tee-Object -FilePath ../desktop-report.txt + $setup = Get-ChildItem src-tauri/target/release/bundle/nsis/*.exe | Select-Object -First 1 + "installer=$($setup.Name)" | Tee-Object -FilePath ../desktop-report.txt -Append + "installer_mb=$([math]::Round($setup.Length / 1MB, 1))" | Tee-Object -FilePath ../desktop-report.txt -Append + - name: 安装冒烟(静默安装 → --smoke → 强杀壳 → 静默卸载) + shell: pwsh + run: | + $ErrorActionPreference = "Stop" + $rep = "desktop-report.txt" + $setup = (Get-ChildItem desktop/src-tauri/target/release/bundle/nsis/*.exe | Select-Object -First 1).FullName + Start-Process $setup -ArgumentList "/S" -Wait + $dir = Join-Path $env:LOCALAPPDATA "DataChat" + if (-not (Test-Path $dir)) { throw "安装目录不存在:$dir" } + $exe = Get-ChildItem $dir -Filter *.exe | Where-Object { $_.Name -notmatch "uninstall" } | Select-Object -First 1 + "installed_exe=$($exe.Name)" | Tee-Object -FilePath $rep -Append + if (-not (Test-Path (Join-Path $dir "sidecar/datachat-sidecar.exe"))) { throw "sidecar 没装上" } + + # ① --smoke:起 sidecar → 首页 200 → POST /shutdown → 退出码 0 + $p = Start-Process $exe.FullName -ArgumentList "--smoke", "$PWD\smoke-shell.json" -Wait -PassThru + Get-Content smoke-shell.json | Tee-Object -FilePath $rep -Append + if ($p.ExitCode -ne 0) { throw "--smoke 失败,退出码 $($p.ExitCode)" } + + # ② 强杀壳,sidecar 必须被 Job Object 一起带走 + $hold = Start-Process $exe.FullName -ArgumentList "--smoke-hold", "$PWD\sidecar.pid" -PassThru + for ($i = 0; $i -lt 60 -and -not (Test-Path sidecar.pid); $i++) { Start-Sleep -Milliseconds 500 } + $sp = Get-Content sidecar.pid + if ($sp -notmatch '^\d+$') { throw "smoke-hold 没起来:$sp" } + if (-not (Get-Process -Id $sp -ErrorAction SilentlyContinue)) { throw "sidecar 没在运行" } + Stop-Process -Id $hold.Id -Force + Start-Sleep -Seconds 3 + $left = Get-Process -Id $sp -ErrorAction SilentlyContinue + "orphan_after_kill=$([bool]$left)" | Tee-Object -FilePath $rep -Append + if ($left) { throw "壳被强杀后 sidecar(pid $sp)还活着" } + + # ③ 静默卸载:安装目录删掉,数据目录保留(卸载页勾选框默认不勾) + $data = Join-Path $env:LOCALAPPDATA "datachat" + New-Item -ItemType Directory -Force $data | Out-Null + Set-Content (Join-Path $data "keep.txt") "x" + Start-Process (Join-Path $dir "uninstall.exe") -ArgumentList "/S" -Wait + for ($i = 0; $i -lt 60 -and (Test-Path (Join-Path $dir $exe.Name)); $i++) { Start-Sleep -Milliseconds 500 } + $gone = -not (Test-Path (Join-Path $dir $exe.Name)) + $kept = Test-Path (Join-Path $data "keep.txt") + "uninstalled=$gone data_kept=$kept" | Tee-Object -FilePath $rep -Append + if (-not $gone) { throw "卸载后程序还在" } + if (-not $kept) { throw "卸载把数据目录删了" } + - uses: actions/upload-artifact@v7 + if: always() + with: + name: desktop-report + path: | + desktop-report.txt + smoke-shell.json + retention-days: 30 + - uses: actions/upload-artifact@v7 + with: + name: datachat-setup-win64 + path: desktop/src-tauri/target/release/bundle/nsis/*.exe + retention-days: 14 diff --git a/README.md b/README.md index 232b51d..ff1decf 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,18 @@ - `app/eval/` —— 评测:50 题用例、比较器(顺序/答案形态规则见 comparator.py 文件头)、报告 - `ui/web/` —— 前端(React + TS),由 `python -m app.server --open` 托管 +## 安装(Windows 桌面版,阶段 6) + +DataChat 用来**分析你自己的数据**:表里的内容会被模型读到,不要加载来路不明的 CSV(THREAT_MODEL §4 (a))。 + +1. 从 GitHub Actions 的 `desktop` 工作流下载工件 `datachat-setup-win64`,解压得到 `DataChat_<版本>_x64-setup.exe`。 +2. 双击安装(装在当前用户下,不要管理员权限)。安装包没有签名,第一次运行 SmartScreen 会拦:点「更多信息 → 仍要运行」。没有 WebView2 时安装程序会在线下载。 +3. 从开始菜单打开 DataChat。第一次会直接进设置页:先填 API Key 并保存,再上传 CSV。 +4. 升级:直接装新版本的安装包,数据不会丢。 +5. 卸载:「设置 → 应用」里卸载。数据目录 `%LOCALAPPDATA%\datachat` 默认保留(卸载页勾选「删除应用数据」才删);保存在 Windows 凭据管理器里的 Key 不会被删,要删就运行 `python -m app.core.keystore delete`,或在凭据管理器里删掉 datachat 那一项。 + +桌面版和浏览器模式(`python -m app.server --open`)共用同一个数据目录,两种方式随便切换,但不要同时开。 + ## 运行 ```bash diff --git a/app/server/__main__.py b/app/server/__main__.py index de2fd60..a9f5ab5 100644 --- a/app/server/__main__.py +++ b/app/server/__main__.py @@ -57,8 +57,11 @@ def main(argv=None): import webbrowser url = f"http://127.0.0.1:{port}/#token={app.state.token}" threading.Timer(1.0, webbrowser.open, [url]).start() - config = uvicorn.Config(app, log_level="info", log_config=None) - uvicorn.Server(config).run(sockets=[sock]) + # timeout_graceful_shutdown:SSE 长连接不会自己断,不设的话 should_exit 之后会一直等下去 + config = uvicorn.Config(app, log_level="info", log_config=None, timeout_graceful_shutdown=2) + server = uvicorn.Server(config) + app.state.request_shutdown = lambda: setattr(server, "should_exit", True) # POST /shutdown(阶段 6 D1) + server.run(sockets=[sock]) if __name__ == "__main__": diff --git a/app/server/app.py b/app/server/app.py index f0498d5..7dbea3c 100644 --- a/app/server/app.py +++ b/app/server/app.py @@ -2,6 +2,7 @@ 接口(除 /health 和前端静态文件外都要 Authorization: Bearer ;图表另可用 ?token=,方便 ): GET /health + POST /shutdown 桌面壳退出前请求后端自行退出(202;未挂退出钩子时 503) POST /datasets multipart:files(一个或多个 CSV,可含 *.dict.csv 字典)、name GET /datasets 列表 GET /datasets/{id}?rows=20 详情(文件、每张表的列与概要);带 rows(1–100)时加每张表前 N 行预览, @@ -320,6 +321,19 @@ def preview_table(name, filename, df, enc, rows): def health(): return {"ok": True} + # 阶段 6 D1:桌面壳正常退出时先请求后端自己退(SQLite 收尾、worker 清理),等 3 s 再靠 Job Object 强杀。 + # app.state.request_shutdown 由 app.server.__main__ 挂上(uvicorn.Server.should_exit); + # 没挂时(TestClient、被别的程序嵌入)返回 503,不假装成功。 + app.state.request_shutdown = None + + @app.post("/shutdown", dependencies=[Depends(auth)], status_code=202) + def shutdown(): + fn = app.state.request_shutdown + if fn is None: + raise HTTPException(503, "shutdown not available") + fn() + return {"ok": True} + @app.post("/datasets", dependencies=[Depends(auth)]) def create_dataset(files: list[UploadFile] = File(...), name: str = Form(""), db=Depends(db_dep)): if not files or len(files) > MAX_FILES: diff --git a/desktop/.gitignore b/desktop/.gitignore new file mode 100644 index 0000000..4b9a943 --- /dev/null +++ b/desktop/.gitignore @@ -0,0 +1,4 @@ +src-tauri/target/ +src-tauri/gen/ +src-tauri/sidecar/* +!src-tauri/sidecar/.gitkeep diff --git a/desktop/src-tauri/Cargo.lock b/desktop/src-tauri/Cargo.lock new file mode 100644 index 0000000..bddcf16 --- /dev/null +++ b/desktop/src-tauri/Cargo.lock @@ -0,0 +1,4942 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a" + +[[package]] +name = "alloc-stdlib" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "brotli" +version = "9.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6737ce8b81460bf9407909f73ff50bf13f7cb8577e1e76715f57ed0eba58ba44" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "6.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34c6783f42c21c952ad7112b354f0ba2f10760e9decea5b1b60523d6e270faaf" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.13.2", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.21", +] + +[[package]] +name = "cargo_toml" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f4b26e751e711a5302649417f2da046dce6391b2ea30a4820f37462314f0b9" +dependencies = [ + "semver", + "serde", + "toml 1.1.8+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a347dcabdae9c31b0825fd6a8bed285ec9c2acb89c47827126d52fa4f59cece3" +dependencies = [ + "fnv", + "uuid", + "web-time", +] + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "cookie" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.13.2", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.2", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a" +dependencies = [ + "quote", + "syn 3.0.9", +] + +[[package]] +name = "ctor" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d" + +[[package]] +name = "darling" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 3.0.9", +] + +[[package]] +name = "darling_macro" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785" +dependencies = [ + "darling_core", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "datachat-desktop" +version = "0.1.0" +dependencies = [ + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-opener", + "tauri-plugin-single-instance", + "tauri-plugin-window-state", + "win32job", +] + +[[package]] +name = "dbus" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "defmt" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a0795ac740cb54d7b3775c9c17345f6aaecf884c01733b39d6017738e0e3e1" +dependencies = [ + "bitflags 1.3.2", + "defmt-macros", +] + +[[package]] +name = "defmt-macros" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "840bb056bd99c495c9188198a258ab787c79f306d864db3e6e8451442d6d8366" +dependencies = [ + "defmt-parser", + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "defmt-parser" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71958f69fb2de856c5dd51ac9377e986ca1aa5919f931bf5395a807277f889a0" +dependencies = [ + "thiserror 2.0.21", +] + +[[package]] +name = "deranged" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e" +dependencies = [ + "serde_core", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.2", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dom_query" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc" +dependencies = [ + "bit-set", + "cssparser", + "foldhash", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "embed-resource" +version = "3.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6168487b5e7eb2673e6efe1200b1848016e436a6ca0b8031bf04bd9d493a249f" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.8+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "erased-serde" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e59b668157f32d3459d4bd634861a06ffa2503a461ca5f0916b9f0252605e66" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.13.2", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +dependencies = [ + "atomic-waker", + "bytes", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-util" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" +dependencies = [ + "base64 0.23.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "httparse", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75e94d66081e4d8dcd098bd8dc5254800fea14a26389b298410158d834de167" +dependencies = [ + "byteorder", + "png", +] + +[[package]] +name = "icu_collections" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" + +[[package]] +name = "icu_properties" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" + +[[package]] +name = "icu_provider" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4" +dependencies = [ + "cfb", +] + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jiff" +version = "0.2.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b005715dcbeb0089a3c0dab99f2ff1cc3b2525323552703d648585d342a383" +dependencies = [ + "defmt", + "jiff-core", + "jiff-static", + "jiff-tzdb-platform", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link 0.2.1", +] + +[[package]] +name = "jiff-core" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e52fe76043ccecc9005d2305ebaadf7d7fc0cc89ca6baa10a94d6bc68c7128c" +dependencies = [ + "defmt", + "log", +] + +[[package]] +name = "jiff-static" +version = "0.2.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cc9817253cf7c7ee4684451bd327e88d6f3658014e54a29198625590650695c" +dependencies = [ + "jiff-core", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jiff-tzdb" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa8377070c6bae868759445e5a77f66d84f0b72f3a054bfb00e6d038b8282da7" + +[[package]] +name = "jiff-tzdb-platform" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" +dependencies = [ + "jiff-tzdb", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "js-sys" +version = "0.3.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 2.0.21", +] + +[[package]] +name = "jsonptr" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbe853b403ae61a04233030ae8a79d94975281ed9770a1f9e246732b534b28d" +dependencies = [ + "bitflags 2.13.2", + "serde", +] + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" +dependencies = [ + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" + +[[package]] +name = "markup5ever" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.21", + "windows-sys 0.61.2", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", + "objc2-quartz-core", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "open" +version = "5.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d8c8b8e725ad26404d6896eb2f064294a0a7b4f1d9120210d85544684c4ca95" +dependencies = [ + "dunce", + "is-wsl", + "libc", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plist" +version = "1.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "327a4cb2ad49dc48adfdc9da89e22c64d488b508c67a044d71ba729e4521a285" +dependencies = [ + "base64 0.23.1", + "indexmap 2.14.2", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "portable-atomic-util" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" +dependencies = [ + "portable-atomic", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.17+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_users" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0" +dependencies = [ + "libredox", + "thiserror 2.0.21", +] + +[[package]] +name = "ref-cast" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" +dependencies = [ + "base64 0.23.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab508826f74a77ca9d5aba6ff19b522583ee3eaf28a19384ff3d0e5835fadf6e" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.119", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d" +dependencies = [ + "bitflags 2.13.2", + "cssparser", + "derive_more", + "log", + "new_debug_unreachable", + "phf", + "phf_codegen", + "precomputed-hash", + "rustc-hash", + "servo_arc", + "smallvec", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f" +dependencies = [ + "base64 0.23.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.2", + "jiff", + "schemars 0.9.0", + "schemars 1.2.3", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "siphasher" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_vcruntime" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff7589a1859b09232522bb9edf076ca7fcf14ded96685d3fa629db73023ffbb7" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cefd87076fd385308ee4aff597256c902f1fbb4d031de1558efc12f8ffefadd9" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.37.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5777b06fe6435126ae8d816eba269e050e1e10d302cf5461e9c49eccabc3548" +dependencies = [ + "bitflags 2.13.2", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "parking_lot", + "percent-encoding", + "raw-window-handle", + "tao-macros", + "unicode-segmentation", + "url", + "windows 0.62.2", + "windows-core 0.62.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fb0244332cfb9cee7e2a568bf5da29a36ed8fdbd717f6f47a66b6b7b358c072" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.21", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows 0.62.2", +] + +[[package]] +name = "tauri-build" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adddb0e648752aaac5da9c3c3c6a68e1e87cab55e3b757b18a9441ef8c3ac614" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "static_vcruntime", + "strsim", + "tauri-utils", + "tauri-winres", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb37631cf71dab5e8ab55e1bdd701e18a52653d90b78e71d0e5598b1e0a61316" +dependencies = [ + "base64 0.23.1", + "brotli", + "ico", + "json-patch", + "plist", + "png", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.119", + "tauri-utils", + "thiserror 2.0.21", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc38db58854c10fb5f91a887ed8bf82d3239bb92b5d8db86eda09e96d9963d1" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67fb21a77e8f94e8beb3325e583102488659365af0a3948b7ea244c5b779c291" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "walkdir", +] + +[[package]] +name = "tauri-plugin-opener" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53810be1b4fed22bb6ac3f4cab5a2b80d9391d1af436bda145607532bc0bb219" +dependencies = [ + "dunce", + "glob", + "objc2-app-kit", + "objc2-foundation", + "open", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.21", + "url", + "windows 0.62.2", + "zbus", +] + +[[package]] +name = "tauri-plugin-single-instance" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "561cd99484561bc39c954768e7b41a66cebbe1ac3d9d081c34361f740c489e2c" +dependencies = [ + "serde", + "serde_json", + "tauri", + "thiserror 2.0.21", + "tokio", + "tracing", + "windows-sys 0.61.2", + "zbus", +] + +[[package]] +name = "tauri-plugin-window-state" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d6815cab7b212f9cfe16a9d79d8d22f9e14159e4a9460f7dec1467167a008e3" +dependencies = [ + "bitflags 2.13.2", + "log", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.21", +] + +[[package]] +name = "tauri-runtime" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c55766d99cea69055904d1735b93c2049302b2e09effd462120deb5581d78e9" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.21", + "url", + "webkit2gtk", + "webview2-com", + "windows 0.62.2", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1aa9d8b7a120f879f44fdc1053f7b7dbf416bf0bbc6a72b714dec46b782b52f" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows 0.62.2", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "362ab21cd4cc713f2a02b1a9b5688198b1541cfb6907c4281e9190e0f0ef4aa3" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dom_query", + "dunce", + "glob", + "http", + "infer", + "json-patch", + "log", + "memchr", + "phf", + "plist", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.21", + "toml 1.1.8+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c52bb6904475a6ca662f15ef787f18ade61d5740a1ee12c45d3b748efdb6f796" +dependencies = [ + "dunce", + "embed-resource", + "toml 1.1.8+spec-1.1.0", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08" +dependencies = [ + "new_debug_unreachable", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "time" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" +dependencies = [ + "deranged", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-util" +version = "0.7.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "1.1.8+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d" +dependencies = [ + "indexmap 2.14.2", + "serde_core", + "serde_spanned 1.1.2", + "toml_datetime 1.1.2+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.4", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.14.2", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.14.2", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.17+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c" +dependencies = [ + "indexmap 2.14.2", + "toml_datetime 1.1.2+spec-1.1.0", + "toml_parser", + "winnow 1.0.4", +] + +[[package]] +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow 1.0.4", +] + +[[package]] +name = "toml_writer" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.21", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df16f50ef4cc145211879a3867ba757076b25dfee812040dcb0658bd9ae7904b" +dependencies = [ + "icu_properties", + "regex", + "serde", + "url", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a0e2d11620c50695fe12bbbfde96b3477fe606e7284c22d505c12ce51214514" +dependencies = [ + "getrandom 0.4.3", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.79" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.9", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3" +dependencies = [ + "phf", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webview2-com" +version = "0.39.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f89fca7a704cee10dcb3654c1dbb8941d1783132f1917358af75bec37a7d7e6" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows 0.62.2", + "windows-core 0.62.2", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "webview2-com-sys" +version = "0.39.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb" +dependencies = [ + "thiserror 2.0.21", + "windows 0.62.2", + "windows-core 0.62.2", +] + +[[package]] +name = "win32job" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c6a6724ccfbf34154a8691bd868b0fcd2be2ca3f7b47b32614654f1a01b191c" +dependencies = [ + "thiserror 1.0.69", + "windows 0.61.3", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "window-vibrancy" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "111e51caca442cafd9bab396628ac4d814880eaea4e63dfd76a12e9f342b5580" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "windows-sys 0.61.2", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections 0.2.0", + "windows-core 0.61.2", + "windows-future 0.2.1", + "windows-link 0.1.3", + "windows-numerics 0.2.0", +] + +[[package]] +name = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections 0.3.2", + "windows-core 0.62.2", + "windows-future 0.3.2", + "windows-numerics 0.3.1", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core 0.62.2", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading 0.1.0", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core 0.62.2", + "windows-link 0.2.1", + "windows-threading 0.2.1", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core 0.62.2", + "windows-link 0.2.1", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.56.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10" +dependencies = [ + "cfg-if", + "windows-sys 0.61.2", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[package]] +name = "wry" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "759c50ddad0ef9913bb5496cb9d509a50433a3b78cb0238d61105526589cf0e9" +dependencies = [ + "base64 0.23.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "dom_query", + "dpi", + "dunce", + "gdkx11", + "gtk", + "http", + "javascriptcore-rs", + "jni", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.21", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows 0.62.2", + "windows-core 0.62.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow 1.0.4", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 3.0.9", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" +dependencies = [ + "serde", + "winnow 1.0.4", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473" +dependencies = [ + "serde", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zvariant" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 1.0.4", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 3.0.9", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.9", + "winnow 1.0.4", +] diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml new file mode 100644 index 0000000..a9da848 --- /dev/null +++ b/desktop/src-tauri/Cargo.toml @@ -0,0 +1,26 @@ +[package] +name = "datachat-desktop" +version = "0.1.0" +description = "DataChat 桌面壳(阶段 6 D1):管 sidecar 进程,窗口只加载 sidecar 托管的前端" +edition = "2021" +publish = false + +[build-dependencies] +tauri-build = { version = "2", features = [] } + +[dependencies] +tauri = { version = "2", features = [] } +tauri-plugin-single-instance = "2" +tauri-plugin-window-state = "2" +tauri-plugin-opener = "2" +serde_json = "1" + +[target.'cfg(windows)'.dependencies] +win32job = "2" + +[profile.release] +codegen-units = 1 +lto = true +opt-level = "s" +panic = "abort" +strip = true diff --git a/desktop/src-tauri/build.rs b/desktop/src-tauri/build.rs new file mode 100644 index 0000000..d860e1e --- /dev/null +++ b/desktop/src-tauri/build.rs @@ -0,0 +1,3 @@ +fn main() { + tauri_build::build() +} diff --git a/desktop/src-tauri/hooks.nsh b/desktop/src-tauri/hooks.nsh new file mode 100644 index 0000000..e892de3 --- /dev/null +++ b/desktop/src-tauri/hooks.nsh @@ -0,0 +1,9 @@ +; 阶段 6 D1:卸载页的「删除应用数据」勾选框默认不勾(phase6-desktop.md §1 第 4 条)。 +; Tauri 自带的勾选框只删 %LOCALAPPDATA%\,而数据目录是 %LOCALAPPDATA%\datachat +; (和浏览器模式 python -m app.server --open 共用同一份数据),所以在这里补删。 +; 钥匙串里的 Key 不删:卸载器拿不到 keyring,手动删见 README「卸载」。 +!macro NSIS_HOOK_POSTUNINSTALL + ${If} $DeleteAppDataCheckboxState = 1 + RMDir /r "$LOCALAPPDATA\datachat" + ${EndIf} +!macroend diff --git a/desktop/src-tauri/icons/128x128.png b/desktop/src-tauri/icons/128x128.png new file mode 100644 index 0000000000000000000000000000000000000000..673b9d061e0d25f48c957c0fca30db4fd7651628 GIT binary patch literal 653 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7xzrU<&bcaSW-L^Y-@b+(QNoZi(uz zI8s@5Nyx6&33FRueW9I;#YFshlFaWp?{~U*{O@EI%5`G;efa03N4rXvKVBF4d)Dfh z3kN?(D0jGu7yQVL5IVF*-0F|nS_|HXCR6vOW0m zwCiS`0mE_q`#0M5GFsHxwrzXEbKv9a%iCY>2P%q-z3o=d8!}gp>BGDA_dg$-$561H zVb5>NciX?QG-Nw}c&ENA?;R&YIzvJJ&if9$`}W_P9Q*t6XZ4#~ojDeM{ds=NJeQ>rTb9O#Q<>H~ce8gE4~zGpWRm>3?+Y%+Ji9uFf!r@qi@F2vbmy|Mu08 z_eXVPw*T?i$w2Y`%Z1k~m>>?=s`$s2yJ)}Q-fN}B{tP>!8Rjv`e2=bXI$+E4Kr>+f z^IluV2me@s%=PPXt^FC4SNPvwwznThAHOiIc|K#$f|_LMzB&$*rlO-c;$L+SaGVm} z9r@+DgR;i)DQnYuU;P)#xjbif$;H@Qj@uial*B!aFmJKBR-vO_xlYDtu z^7t;`Ea^$RXgJG3{!Y8~oQD=dE0_EW%09=oA%0)zZY4eab7$@zzJ2^sdP8j7{CxfC zc83L4+pXESnKirb&?~;QFF7}FC2iKI=Ppbm|RoR>L?LBhT#dzEi*)mDR=8TV$a zXIXrgp-29i;j?RQoDClj?>Tns&Phgtx`<;Ex2-i9j`5$iDs6UW2kMsfyZI;(Br`qP z+|mLl^Sb1W89OUb=5AYF$+iD%EZ3esV5sag%{&$*t? zAh6AxVcx%jdv&)rNHes&;Wo`)vsmv@#Ry=<}ZS5 zyX$M>e{rZ6LNsa1GdNua25UP|6(=nb$O(Mkk)817Asa&?(;z_Cz2y^p^!?4f>;z_vHHzMPY8;5cCR=Juv=29Dd(4BHtj^7rT7;AJ>e$J-FiFlV{*w(1MK z4lED$$n3h=9M9;&aPIJgwZC{64zaNw&}F!m`@)U=K7$LxwU;w;<-T$$Fm2E~p7-g+ zd63YEdBI+gA&7MsqEs#wfqh&33ADKxsxt}0>$TJ z@xq+0_BSf`SxTfE3VpY(Jh_ichsmH%bGylDkG(<%3W{x9(rdlA8UN&+yZw31f8G~c z8NSV~R_^Az)XOlf)?nSEP8}AJwGZ9){9xQC%)Bj!ck%zM(Dt8xJU5!Q_WoOaRW3(7 iFyZVqn{V^~u%Fn@Sf-_8V+$-A89ZJ6T-G@yGywpSJj!wa literal 0 HcmV?d00001 diff --git a/desktop/src-tauri/icons/32x32.png b/desktop/src-tauri/icons/32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..d029390c74d938e8b78b37b1111561b1c6c97421 GIT binary patch literal 203 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJNuDl_Ar*7pP7ma2FyLqlwQ{m{ zie1xpRqtBgg?9n|jUCb=&hdZdo3;Lxf0f`Y5Vh^~w2c$BEEVrhUb^#{KynhvLCJX}4oMJ6N|u~+9Fj;-Bo!;>F+pp1P;*efPYoSEuUj>b-Zb{#JLdwffs@F8}}mxBv_WTwibi4h8_X>mDWL zA9?v&PPo3|@IUhYb>9;k0QmU+$RQ8_u*Cxa1mcg(b&c&20ssp2N2bIF06MbY{ofZH zkh#VMX#pTiUG)JGKJ_&U5Is~tYF@v8TL8nuxqdPnT$us@Xzd|V=CMag)EkTgxeQEB z?Ps-RuLo6=f)E~*F2MzgTjEus#iRVn72{gNF5KE`;LDMU znIZ8VH=58OsRC#}fcf$xGvH?A4XmH>-xZ!IlooFhKHnyvM%A%j5?)A`FB)#k*ry#pW*wl3 z+LCzZCpnu(@e!O*@B1I^_BHzk0#mVeO!)X53{<9?bb#G+m4~`CQekHO${hoki@OQ4 zH1Z$JSkxu8b%0#Z=;CTkoSV|*)ICk!Zh->^5E2gYc#$W!Cfn|y=6Te3E=_$BIFvnc zF`T=So*xiK_4@d!y{v>zV8#%M7c)v_roM^!gt?YaAMK5jpa_>ZwNx9hHDCP@_BK{z zsq-w{*}nU7@T5}k*@6A&(nuY@zBG-LAKjy<$UssN{B$GvpuV+?5_| z-*e;uEOVvj`?_8YWPiPt(9=aPC$D1)#AcRU#H9`#YbUT+u52Ez+44y5!`)it31yJU z;Bb=;fs=uh#nd}(27aTR+jSfC<~;GXKa5jZ14rJZ9VMAOL*p51-$?gk{%KQiB)UeL zT>1F%o)Ed#lLfw;rL_$%nR4h5_x4m)8ZHT=wMozri~yFruX6k%Y2i#&I~wX_Qrn5Y z;4+qKW>O;N)RKHo0SEK9pCs+>u7ZebgOl3WXT7SscFf#+N=YdfDR|NbCKE~aUGlku zs;lN+0k3U>n;on0E01PARmngY1!tN`QFw8n7Wd*ShTD;A0XFg8S=7nn1`Kep9F#Sh zGm&>SX>4VZKdog`XnwR6+?exxJ;;1p5hKmWvOHB}wu7S2CWM)3%@pqX_SF{bTtN=u z^D?pci_{GCGhgWY+!MJ;DPfP|nX;sC*7?WP9E~bp^5ky43RgiHJ!;4t-DJ3hG%-t$ z{GO`4vJvNpwfffX&FTE}Z7Db6GwiBFC_Ft6m@(6iPxRyqBkRs!^`uhf|w|u6^FH2r`updt$e>mHi!&k3`H0({LU_S}@|K6(VL-S6?3SoD9&=X+5Iu%*=1eBD0n z?;4Hm<=URVC$sdX?17;AL=d$Zo5EauMcYLC8IGx_=Z`)H80*k3j(U(qXistUZBRvE zqz%z#d|V<4!ECcsz_AJQYfkx|tTErC@Nnl0j`42N{9ZBSzAhEdk<(tvQcrMyLtGKm zBs81@{cWydA`kyIygS@NMYGk0u8D=OZ|8mCk%oqW-g8pCFN!s)U-l8mr`A9ozzMdX+eOqnabv||XAMnSjTg=6wPn!1m7mWX1M)3W`cpdPs zPym3a{LOg1R!3Sn^2?T~DNOT0+2o`wT73ycM$L?WiN!0|%CwGDI z+47^fZV6~JBPwAOL}14C4kjo?c4g{GqL2HTxm0-b&uEXGCTOBK&967AMage{Pv@J2 zclw%i%^1v1vyD=wJU*PvyDB(hHG=Co;(i|EWdl{XyF#CK4CA;iYEF6=LOsC%$)`Lb z-Z6R~!hy4xTnWZoGNn)j$rV2Z=wO`8^8M0=5awU|{q2*Mp`tfn{Nmjab+#)ePpzg% zcnl(FNI;!XNPxhF=|aFa1YUI-kvyrOkPfxJ_{f!kuGQBOQPPq9azbHUedCG`C&|x! zxtUBsN8=W%LClP`@la`p;wukF({t)vQ#{~JO$|-$-AhjcV*+TxsY=ZaNO0|4jqr^P zhB^JDlYqq1GHDWqIt53C@X4aLtV8cwjuZ@xijb$Vv2;j}&UWW}T@3WkhqS>-X(!@P zf!mo>OhmUm`2*Ta+ERWn=L}N$KkaDPq9U+T42Qh_{$chFf)eY^fNqn|P~eD$65Glv zHjrNf1yi`Qk8C#iwd=wBiSYu^qb^qotj+OYVI$7vF7dJ2Q$H%!S}K2X zv?f1sS9O954vYgeMHG*Fw(=&SC#!j069zvD>SG+E_2C4G-YTh5x5NksvXKm0fWi!> z89m@bDS3cT?v|;Vu(S3#F9u8&gAsIG8s#*RZ1bYC!q0zjG4;sxahq3LAYG^AW3=H7zrS;0{mfmYer6pO@aD zsyrh$I?n1ye0ZYjE<&o`hh9V{W8ok7wE>DxOXGu=zgc-FgpugHuCmdee|`5&JOwDc z=Ufe60g=-&{z|~V_xqv@g{NIi!*XS<&0B@p<o39901V^do3lG&MsDVF@ zxpdVYK~~1js zioQj`Y2o|E={W^45YOig(N|0ny!st-7W9GNtgtv{^#uXPSg8+whB(q7w%1aic>#sq z_YrP&pN64dR;m$9N-jg&H_583wt1o!ZV5OB5Xd7K2DCfjaK#3j%kANli+lb<_T_}3 zQ=&q(8;_nlJ9n0;o@Cs~fb zJM_04(}KZU-uKt$DpJ+GSZWt=&B?DMmvhUNSm{etC(>Rv{+UOb3nD3Jx_2!?fnWiUBt_1CAG8=Ho*Ba-@ll(cw@ z)1V1Lh|?Cz_HHyd=&;$vU#;5wE;J@`txx+juJ+v{#To8`>-tBT+|uR2kq4~Uuj-VU z1?+HX3iq@SG>p*$SlS#3UNwJR!h~%V*tO${oc;n|)?SF-fHc~HwTE-6zi|IJ^UJ`f zmftwJhmBy(*&5OGkK>jmB>rpHKTcqQ48#}Ty#z|>oca*J1abW{ILa2+U}P+U^mTtt z*TI9U#!998M?d&F6ZOmslezq?ex5W-Yz@cS%LJhY0TQ2w$FIuRuYCJQcpfRA4fN(M z=-k;8s#fHmQw+u1Ex%JPWQ^fr`tA|My29a@hrBucqqR)LA9Dz+Mhog5;gfad#3p15 z?APiu1fT^8+qs83Pm&&n_{Sc-u&$E_5?n~(vu5B@Qd^h)NjoAu*>?rb&aF`%9S6bOuqmCbm8w@ zIj3YtH%5iKdv%=pwm~?WW(J+jCQxWY#>iMh5IHKxFQgTa^&XOG(-FJM7)r$Tq#U83 z!Q2smO)we5#{BdVdou@GUgjZfyvU$oFBw#nQcL17ef#s$8w=w1*3L0bj`L8r`iW@o zezkBWCFeEe{fo8UjRS)ZhM9z$!Blg&1bCpu52@0RX?xA}3MFi+J}bZn?pH$^F*Hm` zckl-V@mefm)7k}X(%Ckr21rUu`gok2xmRmWJss5*0}CftqiK#uYxCo94Ww%BLpD?j za9ywsw6XYhwxA9VGah2UC$%#tV{RF%-zYctJv_hc`4r#jkl!~uF2PHVn4GASZaLY# z$NQndFG`0njQyjvFsZ@T2CK`r($$Quqjs`uwyr<}NOCeSp$l9|R zdV0rB$hl{FGm4kkExp6Y=9DU1EOcsdjlj)9?_po=oMUU*UZH(PV4qC`+G=v-77h19 z%UDH1jr#N9ioL)ANutMF2EY*N?kW** zgOW6(GplZUE_Y9~N}O+u^ij`mKdK`_90WG|UmOi+Xo|A1XwTF?K`V?VY?0^%JT+Cc zWtyI)(6yiGz-&l2J;HOKLT!W_7oNYVg*DCwf8`}%CK!6siR7ZL*>cDKpz_;k8!fw? zDq~5ic#JfPJBSAh>1rw@Z3Pu$eFw0ZX|(Q+cDyF)POfQotJnbZ@$G5|h@E;2VU{ru zvY!5=npTE|xB3i;T7mhY5q4fqUw6x-tjFscJ_!crn7}A0O|q$*S!@Umw`KPd`89IB zq~`M%4%uR1Me^bG&T}TY=G0r`)6E@w?78l^@5rr``pqO&E+w^|hbcUzc_hT){?mW% zY|cCDjGlM+&}I(1-fMQD`rxd)dQ@<|QjeI=sHu-wPwj;YM}@62Q6z(&d#$c>YASKz zce=}h2&S@teo`LgGrABbe6a_wb-Y9U*TIDV+q7_GzMhKVw{XL~Lhm#C<@fPUZ}OJ$ zIwrg1Xv!Mvq+fKF+6cP(eneNhlM%y)8yOS()CE!wT{$$g68mDti9qf14@E$zD9k0M zli4uO!0j`b(A)pPjiS#S=2Zo({jJUmXr>%cuQtC$Y^HbC$ZHp~9!Rftwm?AZh=kME zvn$F+jp;n*9@*ml90&|?N@vrw_-X*TO2>4Uu(6%tG0oJqi>#e-S2Bs6z{frRG$iT^ zky-B0={75AhIf3eX(Bo6yKmJ$TakdUQd8wO>U+V}+})`UvFjhR;`pU6l8|&cl?vVi zT}hKzVn06_C0zft`J_blN#0%$*;enW0uo;&0%J{bn7Y0>FMWc6VCqV(zEJv~<-d9x zS=F4$o%|HybdyOF`N~6PpBl1MyE6v^@d%>Z`{~QFZW`Pdv_$<7(|>YU1R-l^!Xe{D zzGs1!%(O=KjJ4O@1xlVw(8<5de<(n{VD5s)>YGLY+BLvKt;qrsx4?@HFkm1U@Zf>8 zIWq$P35o4P7x&i(bq(llp;nitR>m@`Jj6JFFE#fq`CYYvoAvkeZn!)KP%BfJRY_tz zK--J0L0ww9yRWg`Isa*)|7DMVf*fST0%VhqhR2S8Afc_Ck`fS}{j`#?Hx_KVIaS5o zeXg_HM2x9YMx5NA!~@nv`3+f%v6TsoNu3L>e?V_sPCZIklHD!_$N3d9$O&Tc;3(~u zz9@iaVK;sB$8ybdKp${V*L&R2K_qJHa8J*EsUI|bNYXGCrkNK#p-A9GQ63}a+oV0T z8?F)^Ci}x~eELzMi6?AuN?B_+w~GSCb<_JzK(I{tU_F?kset)*K4{vnlZuNDGKzYd zjY@gu*T87sx`>y6|59T$kp`7AzE@(a_C)+3%PRZJv4K#MxTb)nt)(CBLgP`;dwleF z4Q|)haZdDuOA74OqjIE@;T#$H;nhOn^N%nq|zID`5dI_G;bB)_MOJPk$b;a_Zyd&aIN13mv5c5) z&)jp3bP1u~h(Jz(b|-j35|Tlcg&II76GYlIctc_#%nHRYn7)} zN(>ABmub?byM*$`MAK7muNq5D82f>&EKL!eCS}VKt6~!oc7xjQDOSZU<6=5Z5@HE;tD-chUan#seYRR=0J>#)AB@ z!pW8;=e^&lJVM@HTp4KvzAM3Pz@u=}>Sn9PjMVd|ANPJMM0Mgi97HghCXzs)AQPtMcoVt2mitcIoKUE@|KoM%*i9ZxBUS$aLLn=$2G7SADO&NQbfi+Z1T zkYaT8_hYkw^arukV9F?+2o_G$s<)5EpE>$GFF#{G(i|Cp*NLqzSfycS0qrd<7kizd z>7LO3pSDeA3d&SG$zVg`*kC;7UcwT2r2r zn6|!}r06SJs^E zi2ogeVK!7eWl4mrAp26&wjZb5xJ3)Y#KYU)JNI#>d)N|XXq4{An<(`WRwPwiQH5>$ zs(qdK*`eLkv{`xhM@mUKTl9zbxO_fOgdkN{W?7+gtFJzcrL^{*n6@?u-&L|FWC%%K z7UKKC%jY997sr^iNzrygP}JVX zrmpGP&mca(CtZ{?;_N^d$rmx#zz4Y3v*}c)zH0nN63vB0MXr$zmtG-U>}zB$#KC3! z3I{U2vIuybe)OcQ918@SoI4p2&ux}n&k#`ywVSX6V70z%9FPH z*us592`q=&Pt{nL0WcN-cBBRvT$v{OP1jy4T~GjO{*$#kH11d^J`k#08su~l8d9eJ zw^$TGFyWv7YqsfH)sWX0I62&RsX8RZ!T9?apW?AT|1*h`0gxTJ4r}PO7WCiQew#pi z{9jGjT*3iN!T%q$2_*&-WnML5B?i;-v+m=ZXhhP#I~xDiQ2$>pZa6R5E#el=*3p0^QPyPoJcc}p)x0^0qEQ2Ibh-u+tdK_UcXv5B^ED$p2&1o}V5l$;U*?Ks$N+`zc~cX`|e011r$ zNV2E@i4O;t^K?7xe;@cgv=qmkcF354*H)=IxA@r~8wUFQ1=FkypqPLIYFp`;R;?XT)|HJ`=r2{m$$*-u f%c3!QyIUG2ed7{G>F2ng>OgKBToRK1HG%#I8?5G( literal 0 HcmV?d00001 diff --git a/desktop/src-tauri/icons/icon.png b/desktop/src-tauri/icons/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9bbc759a26c6cadbac6d9f58f6ea60e2f0ebce20 GIT binary patch literal 3139 zcmds4ZBSEZ7JhDSAQ4Ctv2;TThHdTG8Ks7*Bw>}<7Dc8b+TGf+f>SJtU%>>z0vcm3 z=q|cIr_Q!ofp(p-(Ct(p=ny~zu4Ri;DT}Qi1w$ZK6cC~?gpUo7?7er2V|RA{?d&-I zy63(3d_3oU&v~D7k8O&N75P2y2S60JKIXRoj}dtg`Z5n!&UH5s;1?J3+S@s$&TiYs z*RJr^zSR=O7ZQPoEnyKtBExY=;Z7pUZQ{7iKNK(L)lYS{y`-#)*WRDK{7@6CA?d;< z)BedluH_%8hJ&R0sU61--&J1~1RJS{m`f?Lo}z$gx|Dw@O?ES=Fq&>UntM`x+Mjt> zEzE0Hf4KZla!2P8+Iv_0^#HlzMoQT9ZIK3F{7%Wwklz|1^>N|+K>5u9QeW_TfXq!k ze+UcH`y@H5-NeoJXNa8Z$7}oaI}Cm1rD#>(N~5<$7v2^m`^V19wVQ=4Vp?bv=Wg}- z(o>}3N{@2a$?V*o3jJCgRP5S+?a}%-4*0Lmb zP=`VdjOX*6#Zj2hQ_z1q91?jq=$qkuU(|jw`Z1lUM5~-Sb1L0d?necSg*c(GwQg8| z^PvG)npR#>@&Zz$BuKcnv_!cIscIoQuLRhXE0C%Jq}yD+&-hc{%Vk&>Qvb&{cnnB- z*_p`nF(^D3X_#-T+YPB1b=sk#?xif0Rl2r{?nSJWwDYU>q}8m{om${bTFFT}ouW{W zhTy@L7>Pk5H@fdBThN2HGiLoewN7;tvQ*88+o8kH;{C#8PcKS;aRM&Y#-K_BHyU& z5&?X>3{A5no%EpVUI~{~=|20eD%RnB&f&eRws#r`P+qc)WJYKHUZst-ZIp7h zO-bkN`&f%E&SGM)Oq9(=VrnK0_f8>-?^TR_g;YfHT zjX7xu0~u9UBI-N>D#dNMV+YoJh@UZdeW*z<^xFQ!hfG)G^%Ncg)pc-oCd>8WqJvYe z6xWNN*U#at+PGK)KK17>+8+VpGq~sd9AXg*x<*6rsS}g(W^d*k=zrH)|9E^B?$f8> zN_CO+eADCGNbh^Jk56aL?D0R5N6XgqE7R_OItOCcPmK&-9*BkXYqsGYFWe^*`P0`J zPi&F=pSHU3fOmAd<9jgyZQK901YK_1$?U3i8a^za>fY;V%=mBD@4)z=Yp8=*rxC)^ z^dGKr_cF{#B>2F2aOf9I(dql97VjJe_dxT>pAZsg2`voIx4L~yqYL1sq zn|-N7ptH8$+C7)_fk<5R1!X$0yM>K%wSaIu2Ta^8c5<}JP$O$GM~!T!UWno>>h0%l zaP(LXy+2^M@P{+HCPG3$anfk*TEZ$WK{pSy?16ndN0Qm7^8r=8uDt6CBNo~n z`8vb^+P%k|(qBn>|-=a3R=9rMoYP5`r4i)|@Jt^ zR`MYCAC2Cr+5Ul@pp5ORnT^c!pi+)qB4|TuujNbDqZfo@qp`DcP(D)nE)U;n#Vy|L z?hwjgj7q?k3F}+T;COAfSr9;vI@3$CCh7i*fk^&*^)ueT*zG8_ja?!wI%DtYt(qBi zEmQ2<9=3SSp93zgV#emi@z0{;)PhTIo})SZt*f2vP6@sLw(f$2>, + port: AtomicU16, + /// 代际:每次启动 +1。监视线程只在代际没变时才把 sidecar 退出当成崩溃,主动停止和重启不算。 + gen: AtomicU64, +} + +fn app_page(page: &str, query: &str) -> Url { + // Tauri 2 在 Windows 上把打包进壳的静态页挂在 http://tauri.localhost/,其他平台是 tauri://localhost/ + let base = if cfg!(windows) { "http://tauri.localhost/" } else { "tauri://localhost/" }; + let mut u = Url::parse(base).unwrap().join(page).unwrap(); + if !query.is_empty() { + u.set_query(Some(query)); + } + u +} + +fn enc(s: &str) -> String { + s.bytes() + .map(|b| match b { + b'A'..=b'Z' | b'a'..=b'z' | b'0'..=b'9' | b'-' | b'_' | b'.' | b'~' => (b as char).to_string(), + _ => format!("%{b:02X}"), + }) + .collect() +} + +fn is_app_page(u: &Url) -> bool { + (u.scheme() == "http" && u.host_str() == Some("tauri.localhost")) || u.scheme() == "tauri" +} + +/// 启动(或重启)sidecar,成功后把窗口导到前端;失败导到错误页。在后台线程里调。 +fn launch(app: &AppHandle) { + let st = app.state::>().inner().clone(); + let Some(win) = app.get_webview_window("main") else { return }; + let gen = st.gen.fetch_add(1, Ordering::SeqCst) + 1; + let old = st.running.lock().unwrap().take(); // 先放锁再停,stop 最多等 3 s + if let Some(old) = old { + sidecar::stop(&old); + } + st.port.store(0, Ordering::SeqCst); + let _ = win.navigate(app_page("loading.html", "")); + match sidecar::start(&sidecar::exe_path(), &sidecar::home_dir()) { + Err(e) => { + let _ = win.navigate(app_page("error.html", &format!("msg={}", enc(&e)))); + } + Ok(r) => { + let url = format!("http://127.0.0.1:{}/#token={}&shell=desktop", r.port, r.token); + st.port.store(r.port, Ordering::SeqCst); + let child = r.child.clone(); + *st.running.lock().unwrap() = Some(r); + let _ = win.navigate(Url::parse(&url).unwrap()); + // 监视:sidecar 中途退出 → 错误页(带退出码和日志位置),页上有「重新启动」 + let app2 = app.clone(); + let st2 = st.clone(); + std::thread::spawn(move || loop { + std::thread::sleep(Duration::from_millis(500)); + if st2.gen.load(Ordering::SeqCst) != gen { + return; + } + let code = match child.lock().unwrap().try_wait() { + Ok(Some(s)) => s.code(), + Ok(None) => continue, + Err(_) => None, + }; + if st2.gen.load(Ordering::SeqCst) != gen { + return; + } + st2.port.store(0, Ordering::SeqCst); + let log = sidecar::home_dir().join("server.log"); + let q = format!( + "msg={}&log={}", + enc(&match code { + Some(c) => format!("后台服务意外退出(退出码 {c})"), + None => "后台服务意外退出".into(), + }), + enc(&log.display().to_string()) + ); + if let Some(w) = app2.get_webview_window("main") { + let _ = w.navigate(app_page("error.html", &q)); + } + return; + }); + } + } +} + +fn relaunch(app: &AppHandle) { + let app = app.clone(); + std::thread::spawn(move || launch(&app)); +} + +fn main() { + let args: Vec = std::env::args().collect(); + if let Some(i) = args.iter().position(|a| a == "--smoke") { + let out = args.get(i + 1).map(PathBuf::from).unwrap_or_else(|| PathBuf::from("smoke-shell.json")); + std::process::exit(sidecar::smoke(&out)); + } + if let Some(i) = args.iter().position(|a| a == "--smoke-hold") { + let out = args.get(i + 1).map(PathBuf::from).unwrap_or_else(|| PathBuf::from("sidecar.pid")); + sidecar::smoke_hold(&out); + } + + let st = Arc::new(Sc::default()); + tauri::Builder::default() + // 单实例必须第一个注册:第二次打开只聚焦已有窗口,不起第二个 sidecar(两个进程写同一个 SQLite 会冲突) + .plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| { + if let Some(w) = app.get_webview_window("main") { + let _ = w.unminimize(); + let _ = w.show(); + let _ = w.set_focus(); + } + })) + .plugin(tauri_plugin_window_state::Builder::default().build()) + .plugin(tauri_plugin_opener::init()) + .manage(st.clone()) + .setup(move |app| { + let handle = app.handle().clone(); + let st_nav = st.clone(); + let h_nav = handle.clone(); + WebviewWindowBuilder::new(app, "main", WebviewUrl::App("loading.html".into())) + .title("DataChat") + .inner_size(1280.0, 800.0) + .min_inner_size(1024.0, 640.0) + .on_navigation(move |u| { + if is_app_page(u) || matches!(u.scheme(), "blob" | "data" | "about") { + return true; // blob: / data::导出 PNG 的下载链接,同源内容 + } + let port = st_nav.port.load(Ordering::SeqCst); + if u.scheme() == "http" && u.host_str() == Some("127.0.0.1") && port != 0 && u.port() == Some(port) { + return true; + } + if u.host_str() == Some(RESTART_HOST) { + relaunch(&h_nav); + return false; + } + open_outside(u); + false + }) + .on_new_window(|u, _features| { + open_outside(&u); + NewWindowResponse::Deny + }) + .build()?; + relaunch(&handle); + Ok(()) + }) + .build(tauri::generate_context!()) + .expect("DataChat 启动失败") + .run(|app, ev| { + if let RunEvent::Exit = ev { + let st = app.state::>(); + st.gen.fetch_add(1, Ordering::SeqCst); + let taken = st.running.lock().unwrap().take(); + if let Some(r) = taken { + sidecar::stop(&r); + } + } + }); +} + +/// 壳外打开:只放行 http / https / mailto,交给系统默认程序;其他协议(file:、javascript: 等)直接丢弃。 +fn open_outside(u: &Url) { + if matches!(u.scheme(), "http" | "https" | "mailto") { + let _ = tauri_plugin_opener::open_url(u.as_str(), None::<&str>); + } +} diff --git a/desktop/src-tauri/src/sidecar.rs b/desktop/src-tauri/src/sidecar.rs new file mode 100644 index 0000000..67449b3 --- /dev/null +++ b/desktop/src-tauri/src/sidecar.rs @@ -0,0 +1,224 @@ +//! sidecar 进程管理(阶段 6 D1,docs/sidecar-contract.md、docs/roadmap/phase6-desktop.md §2)。 +//! +//! 启动:`--port 0 --home <数据目录>` → 读 stdout 第一行 JSON {port, token, home} → 轮询 /health。 +//! 退出:POST /shutdown(Bearer)→ 等 3 s → 强杀。壳崩溃或被强杀时,靠 Job Object 的 +//! KILL_ON_JOB_CLOSE 由系统把 sidecar(和它的沙箱 worker)一起结束,不留孤儿进程占着 SQLite。 +//! 只用标准库做 HTTP:只有 127.0.0.1 上的两三个请求,不值得引入 HTTP 客户端。 + +use std::io::{BufRead, BufReader, Read, Write}; +use std::net::TcpStream; +use std::path::{Path, PathBuf}; +use std::process::{Child, Command, Stdio}; +use std::sync::mpsc; +use std::sync::{Arc, Mutex}; +use std::time::{Duration, Instant}; + +pub const START_TIMEOUT: Duration = Duration::from_secs(20); +pub const SHUTDOWN_GRACE: Duration = Duration::from_secs(3); + +pub struct Running { + pub child: Arc>, + pub port: u16, + pub token: String, + pub pid: u32, + #[cfg(windows)] + _job: Option, +} + +/// sidecar 可执行文件:安装后在壳的旁边 `sidecar/datachat-sidecar.exe`(tauri.conf.json bundle.resources)。 +/// `DATACHAT_SIDECAR` 可以覆盖(开发时指向源码环境的包装脚本或 CI 的 dist)。 +pub fn exe_path() -> PathBuf { + if let Ok(p) = std::env::var("DATACHAT_SIDECAR") { + return PathBuf::from(p); + } + let dir = std::env::current_exe() + .ok() + .and_then(|p| p.parent().map(Path::to_path_buf)) + .unwrap_or_default(); + let name = if cfg!(windows) { "datachat-sidecar.exe" } else { "datachat-sidecar" }; + dir.join("sidecar").join(name) +} + +/// 数据目录:和浏览器模式(python -m app.server --open)的默认值一致,两种打开方式共用同一份数据。 +pub fn home_dir() -> PathBuf { + if let Ok(p) = std::env::var("DATACHAT_HOME") { + return PathBuf::from(p); + } + let base = std::env::var("LOCALAPPDATA").unwrap_or_else(|_| std::env::temp_dir().to_string_lossy().into_owned()); + PathBuf::from(base).join("datachat") +} + +pub fn start(exe: &Path, home: &Path) -> Result { + if !exe.exists() { + return Err(format!("找不到后台服务程序:{}", exe.display())); + } + let mut cmd = Command::new(exe); + cmd.arg("--port").arg("0").arg("--home").arg(home); + cmd.stdin(Stdio::null()).stdout(Stdio::piped()).stderr(Stdio::null()); // 日志在 home/server.log + cmd.env_remove("DATACHAT_TOKEN"); // token 每次随机生成(sidecar-contract.md) + #[cfg(windows)] + { + use std::os::windows::process::CommandExt; + const CREATE_NO_WINDOW: u32 = 0x0800_0000; + cmd.creation_flags(CREATE_NO_WINDOW); + } + let mut child = cmd.spawn().map_err(|e| format!("启动后台服务失败:{e}"))?; + let pid = child.id(); + + #[cfg(windows)] + let job = match job_for(&child) { + Ok(j) => Some(j), + Err(e) => { + let _ = child.kill(); + return Err(format!("创建进程组失败:{e}")); + } + }; + + // 第一行 JSON;之后继续把 stdout 读空,免得管道写满把 sidecar 卡住。 + let stdout = child.stdout.take().ok_or("拿不到后台服务的输出")?; + let (tx, rx) = mpsc::channel::(); + std::thread::spawn(move || { + let mut r = BufReader::new(stdout); + let mut line = String::new(); + if r.read_line(&mut line).is_ok() { + let _ = tx.send(line); + } + let _ = std::io::copy(&mut r, &mut std::io::sink()); + }); + let t0 = Instant::now(); + let line = match rx.recv_timeout(START_TIMEOUT) { + Ok(l) if !l.trim().is_empty() => l, + _ => { + let code = child.try_wait().ok().flatten().and_then(|s| s.code()); + let _ = child.kill(); + return Err(match code { + Some(c) => format!("后台服务启动后立即退出(退出码 {c})"), + None => "后台服务 20 秒内没有报告端口".into(), + }); + } + }; + let info: serde_json::Value = serde_json::from_str(line.trim()).map_err(|_| { + let _ = child.kill(); + "后台服务的握手行不是 JSON".to_string() + })?; + let port = info["port"].as_u64().filter(|p| *p > 0 && *p < 65536).map(|p| p as u16); + let token = info["token"].as_str().map(str::to_owned); + let (Some(port), Some(token)) = (port, token) else { + let _ = child.kill(); + return Err("后台服务的握手行缺少 port / token".into()); + }; + let left = START_TIMEOUT.saturating_sub(t0.elapsed()); + if !wait_health(port, left) { + let _ = child.kill(); + return Err("后台服务没有在 20 秒内就绪".into()); + } + Ok(Running { + child: Arc::new(Mutex::new(child)), + port, + token, + pid, + #[cfg(windows)] + _job: job, + }) +} + +#[cfg(windows)] +fn job_for(child: &Child) -> Result { + use std::os::windows::io::AsRawHandle; + let job = win32job::Job::create().map_err(|e| e.to_string())?; + let mut info = job.query_extended_limit_info().map_err(|e| e.to_string())?; + info.limit_kill_on_job_close(); + job.set_extended_limit_info(&info).map_err(|e| e.to_string())?; + job.assign_process(child.as_raw_handle() as isize).map_err(|e| e.to_string())?; + Ok(job) +} + +/// 发一个 HTTP/1.1 请求,返回状态码。Host 必须是 127.0.0.1:(后端 TrustedHost 挡 DNS rebinding)。 +pub fn request(port: u16, method: &str, path: &str, token: Option<&str>) -> Option { + let mut s = TcpStream::connect_timeout(&([127, 0, 0, 1], port).into(), Duration::from_secs(2)).ok()?; + s.set_read_timeout(Some(Duration::from_secs(5))).ok()?; + let auth = token.map(|t| format!("Authorization: Bearer {t}\r\n")).unwrap_or_default(); + let req = format!( + "{method} {path} HTTP/1.1\r\nHost: 127.0.0.1:{port}\r\n{auth}Content-Length: 0\r\nConnection: close\r\n\r\n" + ); + s.write_all(req.as_bytes()).ok()?; + let mut head = [0u8; 12]; + s.read_exact(&mut head).ok()?; + std::str::from_utf8(&head[9..12]).ok()?.parse().ok() +} + +pub fn wait_health(port: u16, within: Duration) -> bool { + let t0 = Instant::now(); + while t0.elapsed() < within { + if request(port, "GET", "/health", None) == Some(200) { + return true; + } + std::thread::sleep(Duration::from_millis(100)); + } + false +} + +/// 正常退出:先请后端自己退,3 s 内没退再强杀。返回 sidecar 的退出码(强杀时 None)。 +pub fn stop(r: &Running) -> Option { + let _ = request(r.port, "POST", "/shutdown", Some(&r.token)); + let t0 = Instant::now(); + loop { + if let Ok(Some(st)) = r.child.lock().unwrap().try_wait() { + return st.code(); + } + if t0.elapsed() > SHUTDOWN_GRACE { + let mut c = r.child.lock().unwrap(); + let _ = c.kill(); + let _ = c.wait(); + return None; + } + std::thread::sleep(Duration::from_millis(50)); + } +} + +/// `--smoke `:不开窗口,走一遍壳的启动 → 请求首页 → 正常退出,结果写 JSON。CI 安装冒烟用。 +pub fn smoke(out: &Path) -> i32 { + let home = std::env::temp_dir().join(format!("datachat-smoke-{}", std::process::id())); + let exe = exe_path(); + let t0 = Instant::now(); + let mut rep = serde_json::json!({"sidecar": exe.display().to_string()}); + let ok = match start(&exe, &home) { + Err(e) => { + rep["error"] = e.into(); + false + } + Ok(r) => { + rep["start_ms"] = (t0.elapsed().as_millis() as u64).into(); + let index = request(r.port, "GET", "/", None); + rep["index_status"] = index.map(u64::from).into(); + let t1 = Instant::now(); + let code = stop(&r); + rep["shutdown_ms"] = (t1.elapsed().as_millis() as u64).into(); + rep["exit_code"] = code.into(); + index == Some(200) && code == Some(0) + } + }; + rep["ok"] = ok.into(); + let _ = std::fs::write(out, serde_json::to_vec_pretty(&rep).unwrap_or_default()); + let _ = std::fs::remove_dir_all(&home); + if ok { 0 } else { 1 } +} + +/// `--smoke-hold `:起 sidecar,把它的 pid 写进文件后一直挂着。CI 用 taskkill /F 结束壳, +/// 再检查 sidecar 是否被 Job Object 一起带走。 +pub fn smoke_hold(pid_file: &Path) -> ! { + let home = std::env::temp_dir().join(format!("datachat-hold-{}", std::process::id())); + match start(&exe_path(), &home) { + Ok(r) => { + let _ = std::fs::write(pid_file, r.pid.to_string()); + let _keep = r; + loop { + std::thread::sleep(Duration::from_secs(60)); + } + } + Err(e) => { + let _ = std::fs::write(pid_file, format!("error: {e}")); + std::process::exit(1) + } + } +} diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json new file mode 100644 index 0000000..47f4c80 --- /dev/null +++ b/desktop/src-tauri/tauri.conf.json @@ -0,0 +1,44 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "productName": "DataChat", + "version": "0.1.0", + "identifier": "com.smilewithoutfalling.datachat", + "build": { + "frontendDist": "../static" + }, + "app": { + "withGlobalTauri": false, + "windows": [], + "security": { + "csp": "default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'" + } + }, + "bundle": { + "active": true, + "targets": [ + "nsis" + ], + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.ico" + ], + "resources": { + "sidecar/": "sidecar/" + }, + "windows": { + "webviewInstallMode": { + "type": "downloadBootstrapper" + }, + "nsis": { + "installMode": "currentUser", + "languages": [ + "SimpChinese" + ], + "displayLanguageSelector": false, + "installerHooks": "./hooks.nsh" + } + } + } +} \ No newline at end of file diff --git a/desktop/static/error.html b/desktop/static/error.html new file mode 100644 index 0000000..f24af2b --- /dev/null +++ b/desktop/static/error.html @@ -0,0 +1,18 @@ + + + + +DataChat + + + + +
+

后台服务没有运行

+

后台服务没有运行。

+

数据集和会话都在本地,没有丢失。

+ +

重新启动

+
+ + diff --git a/desktop/static/error.js b/desktop/static/error.js new file mode 100644 index 0000000..1adec7d --- /dev/null +++ b/desktop/static/error.js @@ -0,0 +1,8 @@ +// 壳导到这里时带 ?msg=…&log=…(只是文字,用 textContent,不当 HTML 解析)。 +// 「重新启动」是一个普通链接,壳的 on_navigation 拦下后重启 sidecar;不走 IPC。 +const q = new URLSearchParams(location.search); +if (q.get("msg")) document.getElementById("msg").textContent = q.get("msg"); +if (q.get("log")) { + document.getElementById("log").textContent = q.get("log"); + document.getElementById("log-row").hidden = false; +} diff --git a/desktop/static/loading.html b/desktop/static/loading.html new file mode 100644 index 0000000..45fe866 --- /dev/null +++ b/desktop/static/loading.html @@ -0,0 +1,15 @@ + + + + +DataChat + + + +
+ +

正在启动 DataChat…

+

第一次启动可能要十几秒。

+
+ + diff --git a/desktop/static/shell.css b/desktop/static/shell.css new file mode 100644 index 0000000..a7720ff --- /dev/null +++ b/desktop/static/shell.css @@ -0,0 +1,9 @@ +:root { color-scheme: light dark; font: 14px/1.6 system-ui, "Microsoft YaHei UI", sans-serif; } +body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: Canvas; color: CanvasText; } +.card { width: min(520px, calc(100% - 48px)); text-align: center; } +h1 { font-size: 18px; font-weight: 600; margin: 12px 0 4px; } +.muted { opacity: .65; } +code { font-size: 12px; word-break: break-all; } +.btn { display: inline-block; margin-top: 8px; padding: 6px 16px; border-radius: 6px; background: #2563eb; color: #fff; text-decoration: none; } +.spin { width: 28px; height: 28px; margin: 0 auto; border: 3px solid #2563eb33; border-top-color: #2563eb; border-radius: 50%; animation: s 0.9s linear infinite; } +@keyframes s { to { transform: rotate(360deg); } } diff --git a/docs/DEVLOG.md b/docs/DEVLOG.md index d5da18a..f191595 100644 --- a/docs/DEVLOG.md +++ b/docs/DEVLOG.md @@ -2240,7 +2240,7 @@ S 10-25 定:§2 上游原文折叠保留;§4 根字号 14。 pyarrow:它只是 streamlit 的传递依赖([18],DEVLOG 第 771 行),所以删掉 streamlit 后,新装的环境里不会再有 pyarrow。pandas 3.0 在没有 pyarrow 时字符串后端改用 python,开发和打包也因此一致了。这样 [18] 留到阶段 6 的「pyarrow 去留」问题就不用再定了,sidecar 体积预计少约 78 MB,以 CI 的 sidecar 工件为准。验证:我用全新 venv 装 requirements-dev.txt,确认没有 streamlit 和 pyarrow,再跑全量 pytest。 -## [68] 2026-10-26 · 阶段 6 方案:桌面打包 · commit <待提交> +## [68] 2026-10-26 · 阶段 6 方案:桌面打包 · commit bf6413f(PR #80) [67] 回填为 c668ff4(PR #79;master tests run 40283639951 绿)。 @@ -2255,3 +2255,13 @@ pyarrow:它只是 streamlit 的传递依赖([18],DEVLOG 第 771 行), 更正:phase5 F5 末尾和 plan.md 阶段 6 的验收里写着「EV 对 SmartScreen 立刻生效 / SmartScreen 不拦」,这在 2024 年以后已经不成立(微软 2024 年 8 月去掉了 EV OID,OV 和 EV 都要积累信誉)。验收改成「显示已验证的发布者」。Azure Artifact Signing 目前不对中国主体开放。 S 10-26 定:只在本机自用,D0 的建议全部采纳;D3~D5 推迟到对外分发之前再做,本阶段只做 D1 + D2(方案「范围」一节)。网页端(`--open` 浏览器模式)保留,壳的功能不能让它坏掉。 + +## [69] 2026-10-26 · 阶段 6 D1 壳 + D2 首次启动 · commit <待提交> + +[68] 回填为 bf6413f(PR #80;master tests run 40290000283 绿)。按 phase6-desktop.md §2、§3 实现,偏离写在该文档「D1/D2 实现与偏离」。 + +- 后端:`POST /shutdown`(Bearer;202;没挂退出钩子时 503)。`__main__` 把 `uvicorn.Server.should_exit` 挂到 `app.state.request_shutdown`,并设 `timeout_graceful_shutdown=2`(SSE 长连接不会自己断)。测试:test_server.py::test_shutdown_requires_token_and_hook、test_sidecar_contract.py::test_shutdown_endpoint_exits_process(真进程:无 token 401 → 带 token 202 → 退出码 0)。 +- 壳:`desktop/src-tauri`(Tauri 2)。sidecar.rs:握手、/health 轮询、Job Object(KILL_ON_JOB_CLOSE)、stop(/shutdown → 3 s → 强杀)、`--smoke`、`--smoke-hold`。main.rs:单实例、窗口 1280×800 / 最小 1024×640 + window-state、导航边界(on_navigation + on_new_window,外链交给系统浏览器)、sidecar 中途退出 → 本地错误页、「重新启动」。没有 capabilities,页面拿不到 Tauri API。 +- 前端:`desktop.ts` 能力探测(`#shell=desktop`,不看 UA);失效页在壳里换成「重新启动 DataChat」(P1-16);上传对话框常驻「来路不明」提示(THREAT_MODEL §4 (a));设置页引导文案改成「先填 API Key 并保存,再上传 CSV」。浏览器模式不变(App.test.tsx 两条对照)。 +- CI:新工作流 desktop.yml(windows-latest):打包 → 静默安装 → `--smoke` → 强杀壳查孤儿 → 静默卸载查数据目录。run id 待推送后补。 +- 本地:Rust 只能 `cargo check --target x86_64-pc-windows-msvc`(沙箱 aarch64、没有 MSVC),真编译和安装冒烟以 CI 为准。 diff --git a/docs/roadmap/phase6-desktop.md b/docs/roadmap/phase6-desktop.md index 4a692b0..612b11d 100644 --- a/docs/roadmap/phase6-desktop.md +++ b/docs/roadmap/phase6-desktop.md @@ -57,6 +57,18 @@ S 定:**目前只在自己的电脑上安装使用,不对外分发**,§1 **验收**:vitest 断言首次进入时落在设置页,并且上传对话框里有这行提示;e2e 加一条首次启动的用例(fake 项目,文件名按 f[34]* 的规则)。 +## D1/D2 实现与偏离(10-26,DEVLOG [69]) + +- §2 第 2 条:导航地址多带一个 `&shell=desktop`,给前端做能力探测(`ui/web/src/desktop.ts`)。`takeToken` 只抹 token,这个标记留在 fragment 里。 +- §2 第 4 条:错误页**只显示退出码和 server.log 的路径,不显示日志内容**。T11 的打码函数在 Python 里,壳是 Rust,重写一遍打码规则容易漏,宁可不显示。要看日志就按路径打开。 +- §2 第 4 条「重新启动」:不用 IPC。错误页和前端失效页都跳到 `http://restart.datachat.invalid/`,壳的 `on_navigation` 拦下(返回 false)后重启 sidecar。`.invalid` 保证真去解析也解析不到。 +- §2 第 6 条:`blob:` / `data:` / `about:` 放行(导出 PNG 的下载链接是 blob:)。外链只放行 http / https / mailto 交给系统浏览器,其他协议直接丢弃。 +- §2 第 8 条(代理):CI 的 `--smoke` 用 Rust 直连 127.0.0.1,测不到 WebView2 的代理行为,没有在 runner 上做。改由 S 本机验收(S 的机器本来就配了系统代理)。 +- §3 第 1 条:首次启动落在设置页是现状(Shell.tsx:没 Key 时初始视图就是设置),只改了引导文案。 +- §3 验收「e2e 首次启动用例」:放在 f0.spec.ts(nokey 项目),不放 f[34]*。fake 项目已经配了 Key,测不了「没有 Key」。 +- 卸载页「删除应用数据」:Tauri 自带的勾选框只删 `%LOCALAPPDATA%\`,而数据目录是 `%LOCALAPPDATA%\datachat`(和浏览器模式共用),所以用 `hooks.nsh` 的 POSTUNINSTALL 补删;默认不勾,静默卸载不删。钥匙串里的 Key 不删(README「安装」写了怎么手动删)。 +- 图标是临时的(蓝底白柱,PIL 生成),对外分发前再换。 + ## 4. D3 自动更新 1. `tauri-plugin-updater`,endpoint 指向 GitHub Releases 的 `latest.json`。启动 10 s 后检查一次:有新版本就在顶栏提示「有新版本 x.y.z」,用户点了才下载、安装、重启,不静默更新。 diff --git a/tests/test_server.py b/tests/test_server.py index 09201e4..23ff5c9 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -46,6 +46,18 @@ def test_auth_and_host(home): assert c.get("/datasets", headers={**H, "Host": "evil.example"}).status_code == 400 # DNS rebinding + +def test_shutdown_requires_token_and_hook(home): + """阶段 6 D1:POST /shutdown 要 Bearer;没挂退出钩子(TestClient)时 503,挂了就调用并返回 202。""" + app = create_app(home, TOKEN) + c = TestClient(app) + assert c.post("/shutdown").status_code == 401 + assert c.post("/shutdown", headers=H).status_code == 503 + called = [] + app.state.request_shutdown = lambda: called.append(1) + r = c.post("/shutdown", headers=H) + assert r.status_code == 202 and r.json() == {"ok": True} and called == [1] + def test_full_flow_workflow_and_restart(home, sample_path): c = client(home, lambda: wf_model(["result = int(df['units'].sum())"], answer="总销量 1685")) ds = upload(c, sample_path, os.path.join(os.path.dirname(sample_path), "sample.dict.csv")) diff --git a/tests/test_sidecar_contract.py b/tests/test_sidecar_contract.py index 508a285..5ca6a50 100644 --- a/tests/test_sidecar_contract.py +++ b/tests/test_sidecar_contract.py @@ -8,6 +8,7 @@ import socket import subprocess import sys +import urllib.error import urllib.request import pytest @@ -68,3 +69,22 @@ def test_main_sets_no_reuse_options(): # 代码证据:bind 前不设任何 SO_* 选项(#44:不要用 SO_REUSEADDR 解决 TIME_WAIT,壳用 --port 0) src = open(os.path.join(os.path.dirname(__file__), "..", "app", "server", "__main__.py"), encoding="utf-8").read() assert "setsockopt" not in src and "SO_REUSE" not in src.replace("不设 SO_REUSEADDR", "") + + +def test_shutdown_endpoint_exits_process(sidecar): + """阶段 6 D1:壳正常退出时 POST /shutdown,sidecar 自己退出(退出码 0),不用等强杀。""" + import time + p, line, _ = sidecar + info = json.loads(line) + assert _health(info["port"]) == 200 + req = urllib.request.Request(f"http://127.0.0.1:{info['port']}/shutdown", method="POST") + with pytest.raises(urllib.error.HTTPError) as e: # 不带 token:401,不能让本机任意进程关掉它 + urllib.request.urlopen(req, timeout=5) + assert e.value.code == 401 + assert p.poll() is None + req.add_header("Authorization", f"Bearer {info['token']}") + t = time.monotonic() + with urllib.request.urlopen(req, timeout=5) as r: + assert r.status == 202 + assert p.wait(timeout=10) == 0 + assert time.monotonic() - t < 8 diff --git a/ui/web/e2e/f0.spec.ts b/ui/web/e2e/f0.spec.ts index f51ae9d..cf924e8 100644 --- a/ui/web/e2e/f0.spec.ts +++ b/ui/web/e2e/f0.spec.ts @@ -24,6 +24,21 @@ test("fragment 带 token → 已连接,地址栏立即不含 token,无 CSP await expect(page.getByTestId("ready")).toBeVisible(); }); +test("首次启动(没有 Key):壳的地址带 shell=desktop,落在设置页并给引导;上传对话框有「来路不明」提示(阶段 6 D2)", async ({ page }) => { + const violations = await watchCsp(page); + await page.goto(`/#token=${E2E_TOKEN}&shell=desktop`); + const view = page.getByTestId("settings-view"); + await expect(view).toBeVisible(); + await expect(view).toContainText("先填 API Key 并保存,再上传 CSV"); + expect(page.url()).not.toContain("token"); + expect(page.url()).toContain("shell=desktop"); // takeToken 只抹 token,能力探测的标记留着 + await page.getByLabel("选择 CSV 文件").setInputFiles({ name: "x.csv", mimeType: "text/csv", buffer: Buffer.from("a,b\n1,2\n") }); + const dlg = page.getByRole("dialog", { name: "上传数据集" }); + await expect(dlg.getByTestId("upload-trust")).toHaveText("只分析你自己的数据。不要加载来路不明的 CSV:表里的内容会被模型读到。"); + await dlg.getByRole("button", { name: "取消" }).click(); + expect(await violations()).toEqual([]); +}); + test("错误 token → 会话已失效页", async ({ page }) => { await page.goto("/#token=wrong"); await expect(page.getByRole("heading", { name: "会话已失效" })).toBeVisible(); diff --git a/ui/web/src/App.test.tsx b/ui/web/src/App.test.tsx index bf43e32..33894e5 100644 --- a/ui/web/src/App.test.tsx +++ b/ui/web/src/App.test.tsx @@ -1,5 +1,6 @@ -import { render, screen } from "@testing-library/react"; -import App from "./App"; +import { fireEvent, render, screen } from "@testing-library/react"; +import App, { ExpiredPage } from "./App"; +import { RESTART_URL } from "./desktop"; import { Api } from "./api"; import { fakeBackend } from "./fakeBackend"; @@ -25,3 +26,24 @@ test("token 有效 → 已连接", async () => { render(); expect(await screen.findByTestId("ready")).toBeTruthy(); }); + +test("失效页:浏览器模式给命令,不给「重新启动」(网页端保留)", () => { + render(); + expect(screen.getByText("python -m app.server --open")).toBeTruthy(); + expect(screen.queryByRole("button", { name: "重新启动 DataChat" })).toBeNull(); +}); + +test("失效页:桌面壳里不给命令,「重新启动 DataChat」跳到壳拦截的地址(P1-16)", () => { + const assign = vi.fn(); + const orig = window.location; + Object.defineProperty(window, "location", { configurable: true, value: { ...orig, assign } }); + try { + render( null} />); + expect(screen.queryByText("python -m app.server --open")).toBeNull(); + expect(screen.getByRole("button", { name: "重试连接" })).toBeTruthy(); + fireEvent.click(screen.getByRole("button", { name: "重新启动 DataChat" })); + expect(assign).toHaveBeenCalledWith(RESTART_URL); + } finally { + Object.defineProperty(window, "location", { configurable: true, value: orig }); + } +}); diff --git a/ui/web/src/App.tsx b/ui/web/src/App.tsx index dba9d4b..7434e13 100644 --- a/ui/web/src/App.tsx +++ b/ui/web/src/App.tsx @@ -1,6 +1,7 @@ import { useEffect, useMemo, useState } from "react"; import { Api } from "./api"; import { client } from "./client"; +import { inDesktopShell, RESTART_URL } from "./desktop"; import type { KeyStatus } from "./types"; import { IconClock } from "./views/icons"; import { Shell } from "./views/Shell"; @@ -12,7 +13,8 @@ const CMD = "python -m app.server --open"; /** 会话失效页(V2a §5.4):命令可复制。 * 「重试连接」(S 10-22 r2 第 ③ 条):用手上的令牌再请求一次,成功就回到应用;失败在旁边说清是哪种失败。 * 后端换了令牌的情况它救不回来(那只能重跑命令),但后端只是暂时没响应时有用。按了没用的「重新打开应用」不画。 */ -export function ExpiredPage({ onRetry }: { onRetry?: () => Promise }) { +/* 桌面壳里(阶段 6 D1,P1-16):没有命令可复制,改成「重新启动 DataChat」——跳到 RESTART_URL,壳拦下后重启 sidecar 并带新令牌重新打开。 */ +export function ExpiredPage({ onRetry, desktop = inDesktopShell() }: { onRetry?: () => Promise; desktop?: boolean }) { const [copied, setCopied] = useState(false); const [retry, setRetry] = useState<{ busy: boolean; note: string }>({ busy: false, note: "" }); const doRetry = () => { @@ -27,22 +29,29 @@ export function ExpiredPage({ onRetry }: { onRetry?: () => Promise会话已失效

后端重启过,或者这是新开的标签页,页面拿不到访问令牌。

数据集和会话都还在本地,没有丢失。

-
-
- {onRetry ? ( -
-
+ )} + {onRetry || desktop ? ( +
+ {onRetry ? ( + + ) : null} + {desktop ? ( + + ) : null} +
) : null} {retry.note ?

{retry.note}

: null} -

重试不行,就回到命令行重新运行上面的命令,它会自动打开一个可用的页面。

+

{desktop ? "重试不行,就点「重新启动 DataChat」,它会重启后台服务并打开一个可用的页面。" : "重试不行,就回到命令行重新运行上面的命令,它会自动打开一个可用的页面。"}

); @@ -73,7 +82,7 @@ export default function App({ api }: { api: Api }) { (key) => (setState({ kind: "ready", key }), null), (e: unknown) => e instanceof Error && e.name === "Unauthorized" - ? "还是连不上:后端换了访问令牌,需要用上面的命令重新打开。" + ? inDesktopShell() ? "还是连不上:后端换了访问令牌,点「重新启动 DataChat」。" : "还是连不上:后端换了访问令牌,需要用上面的命令重新打开。" : "还是连不上:后端没有响应,确认它还在运行。", ) } diff --git a/ui/web/src/desktop.test.ts b/ui/web/src/desktop.test.ts new file mode 100644 index 0000000..310540c --- /dev/null +++ b/ui/web/src/desktop.test.ts @@ -0,0 +1,27 @@ +import { describe, expect, it } from "vitest"; +import { inDesktopShell, SHELL_KEY } from "./desktop"; + +function mem(init: Record = {}) { + const m = new Map(Object.entries(init)); + return { getItem: (k: string) => m.get(k) ?? null, setItem: (k: string, v: string) => void m.set(k, v), m }; +} + +describe("inDesktopShell(阶段 6 D1 能力探测)", () => { + it("fragment 带 shell=desktop 时为真,并记进 sessionStorage", () => { + const s = mem(); + expect(inDesktopShell({ hash: "#shell=desktop" }, s)).toBe(true); + expect(s.m.get(SHELL_KEY)).toBe("desktop"); + }); + it("fragment 没有、但本标签页记过时为真", () => { + expect(inDesktopShell({ hash: "" }, mem({ [SHELL_KEY]: "desktop" }))).toBe(true); + }); + it("浏览器模式(--open)为假", () => { + expect(inDesktopShell({ hash: "" }, mem())).toBe(false); + expect(inDesktopShell({ hash: "#shell=browser" }, mem())).toBe(false); + }); + it("sessionStorage 抛错时只看 fragment", () => { + const bad = { getItem: () => { throw new Error("x"); }, setItem: () => { throw new Error("x"); } }; + expect(inDesktopShell({ hash: "#shell=desktop" }, bad)).toBe(true); + expect(inDesktopShell({ hash: "" }, bad)).toBe(false); + }); +}); diff --git a/ui/web/src/desktop.ts b/ui/web/src/desktop.ts new file mode 100644 index 0000000..0a9167c --- /dev/null +++ b/ui/web/src/desktop.ts @@ -0,0 +1,20 @@ +// 桌面壳能力探测(阶段 6 D1,phase6-desktop.md「范围」:网页端保留,壳专属功能不能让浏览器模式坏掉)。 +// 壳打开前端时用 http://127.0.0.1:端口/#token=…&shell=desktop。takeToken 只抹 token,shell 留在 fragment 里, +// 刷新后仍可读到;另存一份 sessionStorage,防止以后别处改了 fragment。不看 UA:WebView2 的 UA 和 Edge 一样。 +export const SHELL_KEY = "datachat.shell"; + +/** 壳拦截这个地址(on_navigation 返回 false)并重启 sidecar;浏览器里永远不会用到它。.invalid 保证不会解析到真实主机。 */ +export const RESTART_URL = "http://restart.datachat.invalid/"; + +export function inDesktopShell( + loc: Pick = window.location, + store: Pick = window.sessionStorage, +): boolean { + const hit = new URLSearchParams(loc.hash.replace(/^#/, "")).get("shell") === "desktop"; + try { + if (hit) store.setItem(SHELL_KEY, "desktop"); + return hit || store.getItem(SHELL_KEY) === "desktop"; + } catch { + return hit; + } +} diff --git a/ui/web/src/views/SettingsView.tsx b/ui/web/src/views/SettingsView.tsx index 864622b..3e96bc6 100644 --- a/ui/web/src/views/SettingsView.tsx +++ b/ui/web/src/views/SettingsView.tsx @@ -113,7 +113,7 @@ export function SettingsView({ c, onKeyChange, onBack }: { c: Client; onKeyChang {!key.configured ? ( -

还没有 API Key,提问会被拦下。填写后保存。

+

还没有 API Key:先填 API Key 并保存,再上传 CSV。没有 Key 时提问会被拦下。

) : null}
API Key diff --git a/ui/web/src/views/Shell.tsx b/ui/web/src/views/Shell.tsx index 948d284..fc97dcc 100644 --- a/ui/web/src/views/Shell.tsx +++ b/ui/web/src/views/Shell.tsx @@ -335,6 +335,8 @@ function UploadDialog({ c, files, onClose, onDone }: { c: Client; files: File[];

上传 {files.length} 个文件

多张表会放在同一个数据集里;文件名以 .dict.csv 结尾的会当作数据字典。

+ {/* THREAT_MODEL §4 (a)(阶段 6 D2):常驻一行,不做弹窗、不做「不再提示」 */} +

只分析你自己的数据。不要加载来路不明的 CSV:表里的内容会被模型读到。

    {files.map((f) => (
  • {f.name}{formatSize(f.size)}
  • diff --git a/ui/web/src/views/views.test.tsx b/ui/web/src/views/views.test.tsx index fc54e62..7020fe1 100644 --- a/ui/web/src/views/views.test.tsx +++ b/ui/web/src/views/views.test.tsx @@ -88,6 +88,15 @@ test("详情与预览只发一个请求;上传后直接用响应里的预览 expect(be.calls.some((x) => x.path.startsWith("/datasets/d2"))).toBe(false); }); +test("上传对话框常驻「来路不明」提示(THREAT_MODEL §4 (a),阶段 6 D2)", async () => { + setup({}); + await screen.findByRole("button", { name: /^销量/ }); + const file = new File(["a,b\n1,2\n"], "x.csv", { type: "text/csv" }); + fireEvent.change(screen.getByLabelText("选择 CSV 文件"), { target: { files: [file] } }); + const dlg = await screen.findByRole("dialog", { name: "上传数据集" }); + expect(within(dlg).getByTestId("upload-trust").textContent).toBe("只分析你自己的数据。不要加载来路不明的 CSV:表里的内容会被模型读到。"); +}); + test("多表:tab 上带行列数与编码,读坏的表标出;顶层 error 提示分析会失败", async () => { setup({ "GET /datasets/d1?rows=20": { From cb9e8408628fcd71100c94d64b299760d17f4717 Mon Sep 17 00:00:00 2001 From: Smilewithoutfalling <91455578+Smilewithoutfalling@users.noreply.github.com> Date: Tue, 27 Oct 2026 00:30:58 +0000 Subject: [PATCH 2/2] =?UTF-8?q?docs(devlog):=20[69]=20=E5=9B=9E=E5=A1=AB?= =?UTF-8?q?=20CI=20run=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/DEVLOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DEVLOG.md b/docs/DEVLOG.md index f191595..73bf9ef 100644 --- a/docs/DEVLOG.md +++ b/docs/DEVLOG.md @@ -2263,5 +2263,5 @@ S 10-26 定:只在本机自用,D0 的建议全部采纳;D3~D5 推迟到对 - 后端:`POST /shutdown`(Bearer;202;没挂退出钩子时 503)。`__main__` 把 `uvicorn.Server.should_exit` 挂到 `app.state.request_shutdown`,并设 `timeout_graceful_shutdown=2`(SSE 长连接不会自己断)。测试:test_server.py::test_shutdown_requires_token_and_hook、test_sidecar_contract.py::test_shutdown_endpoint_exits_process(真进程:无 token 401 → 带 token 202 → 退出码 0)。 - 壳:`desktop/src-tauri`(Tauri 2)。sidecar.rs:握手、/health 轮询、Job Object(KILL_ON_JOB_CLOSE)、stop(/shutdown → 3 s → 强杀)、`--smoke`、`--smoke-hold`。main.rs:单实例、窗口 1280×800 / 最小 1024×640 + window-state、导航边界(on_navigation + on_new_window,外链交给系统浏览器)、sidecar 中途退出 → 本地错误页、「重新启动」。没有 capabilities,页面拿不到 Tauri API。 - 前端:`desktop.ts` 能力探测(`#shell=desktop`,不看 UA);失效页在壳里换成「重新启动 DataChat」(P1-16);上传对话框常驻「来路不明」提示(THREAT_MODEL §4 (a));设置页引导文案改成「先填 API Key 并保存,再上传 CSV」。浏览器模式不变(App.test.tsx 两条对照)。 -- CI:新工作流 desktop.yml(windows-latest):打包 → 静默安装 → `--smoke` → 强杀壳查孤儿 → 静默卸载查数据目录。run id 待推送后补。 +- CI:新工作流 desktop.yml(windows-latest):打包 → 静默安装 → `--smoke` → 强杀壳查孤儿 → 静默卸载查数据目录。PR #81 head 393e1e0:desktop run 40295387628 绿(安装包 65.5 MB、打包 347 s、--smoke 启动 2027 ms / 退出 505 ms 退出码 0、强杀后无孤儿、卸载后数据保留),tests 40295387542、sidecar 40295387588 绿。 - 本地:Rust 只能 `cargo check --target x86_64-pc-windows-msvc`(沙箱 aarch64、没有 MSVC),真编译和安装冒烟以 CI 为准。