diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c39788..3542eb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,13 @@ jobs: - uses: actions/checkout@v4 with: { repository: ${{ github.repository_owner }}/kestrove-core, path: kestrove-core, token: ${{ secrets.CORE_READ_TOKEN }} } - if: runner.os == 'Linux' - run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libxdo-dev + run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev patchelf libxdo-dev - uses: dtolnay/rust-toolchain@stable - uses: actions/setup-node@v4 with: { node-version: 22 } - run: npm ci && npm run build working-directory: kestrove-desktop - - run: cargo check --all-targets + - run: cargo clippy --all-targets -- -D warnings + working-directory: kestrove-desktop/src-tauri + - run: cargo test working-directory: kestrove-desktop/src-tauri diff --git a/README.md b/README.md index 2d7bb37..bb00927 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,54 @@ Also ships `kestrove-nmh`, the **native-messaging host** that bridges `kestrove- ```bash # prerequisites: rustup, Node 20+, and Tauri's OS deps (https://tauri.app/start/prerequisites/) npm install -npm run tauri icon path/to/logo.png # generates src-tauri/icons (required before building) npm run tauri dev npm run tauri build # MSI/NSIS on Windows, AppImage/deb on Linux +npm run tauri build -- --debug --bundles app # macOS dev build (Kestrove.app) +npm run tauri icon assets/logo.png # regenerate src-tauri/icons (placeholder logo) +(cd src-tauri && cargo clippy --all-targets -- -D warnings && cargo test) ``` +The vault lives in the OS app-data dir (`vault.sqlite`, plus `pairings.json`, `settings.json` and +`secret-key`, all owner-only). Closing the window keeps Kestrove in the tray so the browser extension +keeps working; Quit is in the tray menu. + +## Browser integration (docs/05) + +``` +extension ─ native messaging (stdio) ─▶ kestrove-nmh ─ local IPC ─▶ app (src-tauri/src/broker.rs) + └──────────── pairing channel: X25519 → 6 words → AES-256-GCM, end to end ───────────┘ +``` + +* **IPC** (`ipc.rs`): Unix socket `$XDG_RUNTIME_DIR/kestrove/nmh.sock` (macOS: the per-user temp + dir), dir 0700, socket 0600, peer uid checked on both ends. Windows: `\\.\pipe\kestrove-nmh-`, + first instance only, local clients only, DACL for the current user, client token SID checked + (compile-checked only). `KESTROVE_IPC_DIR` isolates an instance for tests. +* **Pairing** (`channel.rs`, mirrored by kestrove-browser `src/channel.ts`, shared test vectors): + both UIs show 6 words; the user confirms in the app (needs an unlocked vault) and in the extension. + Each connection derives a fresh session key from both sides' nonces; messages carry strict + counters, so replay and reordering fail. `kestrove-nmh` only relays ciphertext. +* **Protocol** (`broker.rs`): `query` → identities for the origin (`items_for_url`); `fill`/`totp` + re-check that the item matches the origin and need an unlocked vault; `save` shows a prompt in + the app (new login or password update). +* **Native host manifests**: `native-messaging/install.sh` (Linux, macOS) and `install.ps1` + (Windows, HKCU registry) fill in the host path and extension ids. +* **Tests**: `cargo test` (unit tests + `tests/nmh_stdio.rs`, which drives the real `kestrove-nmh` + over stdio through the paired channel). `examples/test-host.rs` is a headless, auto-approving + stand-in for the app used by kestrove-browser's interop and Chrome end-to-end tests. + +## Auto-lock + +10 minutes idle by default (Settings), plus screen lock and sleep (`autolock.rs`). Idle time is the +system's on Windows (`GetLastInputInfo`) and macOS; on Linux it is activity inside Kestrove (UI input +and fills). Screen lock: Windows input-desktop check, Linux logind `LockedHint`, macOS session dictionary. +Sleep: a jump in the wall clock between polls. + ## Roadmap (M3, kestrove-spec/docs/07) -- [ ] Persistent vault + sync (kv-store / kv-sync) - [ ] Unlock with Windows Hello (KeyCredentialManager, TPM) and libsecret on Linux -- [ ] Auto-lock on idle, screen lock and suspend -- [ ] Local IPC between `kestrove-nmh` and the app, plus the pairing AEAD channel +- [x] Persistent vault (`VaultCore::open` in app data); sync UI still to do +- [x] Auto-lock on idle, screen lock and suspend +- [x] Local IPC between `kestrove-nmh` and the app, plus the pairing AEAD channel +- [x] Native-messaging manifest installers (`native-messaging/install.sh`, `install.ps1`) - [ ] **Quick Access** global hotkey (Ctrl+Shift+Space): search, then copy or auto-type (Windows `SendInput`, X11 XTest; Wayland gets copy only) -- [ ] Installer registers native-messaging manifests (`native-messaging/`) +- [ ] MSI/deb installers run the manifest installers - [ ] Windows 11 passkey plugin provider diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..165e534 Binary files /dev/null and b/assets/logo.png differ diff --git a/index.html b/index.html index f2d20de..54ba9c1 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,7 @@
+ diff --git a/native-messaging/README.md b/native-messaging/README.md index f30f253..f5262e0 100644 --- a/native-messaging/README.md +++ b/native-messaging/README.md @@ -1,6 +1,23 @@ # Native messaging manifests -The installer fills in the placeholders and registers the manifests: +`install.sh` (Linux, macOS) and `install.ps1` (Windows) fill in the placeholders and register the +manifests for the current user. Default ids are the development ones: the unpacked Chrome build is pinned +to `kogapfibnnpeapfcjkkpgjddbhnjfein` by the manifest key in kestrove-browser, Firefox uses +`browser@kestrove.app`. Pass `--chrome-id` / `-ChromeId` for a Web Store build. + +```bash +native-messaging/install.sh # every browser with a profile dir, host from target/ +native-messaging/install.sh --browsers chrome --nmh /opt/kestrove/kestrove-nmh +native-messaging/install.sh --user-data-dir /tmp/profile # a Chromium started with --user-data-dir (tests) +native-messaging/install.sh --uninstall +``` + +| Browser | macOS (dev only; the Apple app ships its own host) | +|---|---| +| Chrome | `~/Library/Application Support/Google/Chrome/NativeMessagingHosts/` | +| Edge / Brave / Chromium | `~/Library/Application Support/{Microsoft Edge,BraveSoftware/Brave-Browser,Chromium}/NativeMessagingHosts/` | +| Firefox | `~/Library/Application Support/Mozilla/NativeMessagingHosts/` | + | Browser | Linux | Windows | |---|---|---| diff --git a/native-messaging/app.kestrove.nmh.chrome.json b/native-messaging/app.kestrove.nmh.chrome.json index 26533f5..6663cb2 100644 --- a/native-messaging/app.kestrove.nmh.chrome.json +++ b/native-messaging/app.kestrove.nmh.chrome.json @@ -1,7 +1,7 @@ { "name": "app.kestrove.nmh", "description": "Kestrove native messaging host", - "path": "__INSTALL_DIR__/kestrove-nmh", + "path": "__NMH_PATH__", "type": "stdio", "allowed_origins": ["chrome-extension://__CHROME_EXTENSION_ID__/"] } diff --git a/native-messaging/app.kestrove.nmh.firefox.json b/native-messaging/app.kestrove.nmh.firefox.json index f69821c..1354b22 100644 --- a/native-messaging/app.kestrove.nmh.firefox.json +++ b/native-messaging/app.kestrove.nmh.firefox.json @@ -1,7 +1,7 @@ { "name": "app.kestrove.nmh", "description": "Kestrove native messaging host", - "path": "__INSTALL_DIR__/kestrove-nmh", + "path": "__NMH_PATH__", "type": "stdio", "allowed_extensions": ["__FIREFOX_EXTENSION_ID__"] } diff --git a/native-messaging/install.ps1 b/native-messaging/install.ps1 new file mode 100644 index 0000000..7400edc --- /dev/null +++ b/native-messaging/install.ps1 @@ -0,0 +1,61 @@ +# Registers the Kestrove native-messaging host for the current user on Windows (HKCU, no admin). +# Linux/macOS: install.sh. +# +# powershell -ExecutionPolicy Bypass -File install.ps1 [-Nmh C:\path\kestrove-nmh.exe] +# [-ChromeId ID] [-FirefoxId ID] [-Browsers chrome,chromium,edge,firefox] [-Uninstall] +# +# Chrome and Brave share the Google\Chrome key. The manifests go to %LOCALAPPDATA%\Kestrove\NativeMessagingHosts. +# allowed_origins / allowed_extensions pin the host to our extension ids (docs/04 A8). +param( + [string]$Nmh = "", + [string]$ChromeId = "kogapfibnnpeapfcjkkpgjddbhnjfein", + [string]$FirefoxId = "browser@kestrove.app", + [string[]]$Browsers = @("chrome", "chromium", "edge", "firefox"), + [switch]$Uninstall +) +$ErrorActionPreference = "Stop" +$HostName = "app.kestrove.nmh" +$Here = Split-Path -Parent $MyInvocation.MyCommand.Path + +if ($ChromeId -notmatch '^[a-p]{32}$') { throw "-ChromeId must be 32 letters a-p" } +if ($FirefoxId -notmatch '^[A-Za-z0-9._@{}-]+$') { throw "bad -FirefoxId" } + +$Keys = @{ + chrome = "HKCU:\Software\Google\Chrome\NativeMessagingHosts\$HostName" + chromium = "HKCU:\Software\Chromium\NativeMessagingHosts\$HostName" + edge = "HKCU:\Software\Microsoft\Edge\NativeMessagingHosts\$HostName" + firefox = "HKCU:\Software\Mozilla\NativeMessagingHosts\$HostName" +} +$OutDir = Join-Path $env:LOCALAPPDATA "Kestrove\NativeMessagingHosts" + +if ($Uninstall) { + foreach ($b in $Browsers) { + if (Test-Path $Keys[$b]) { Remove-Item $Keys[$b] -Force; Write-Host "removed $($Keys[$b])" } + } + Remove-Item (Join-Path $OutDir "$HostName.*.json") -ErrorAction SilentlyContinue + return +} + +if (-not $Nmh) { + foreach ($c in @((Join-Path $Here "kestrove-nmh.exe"), (Join-Path $Here "..\src-tauri\target\release\kestrove-nmh.exe"), (Join-Path $Here "..\src-tauri\target\debug\kestrove-nmh.exe"))) { + if (Test-Path $c) { $Nmh = $c; break } + } +} +if (-not $Nmh -or -not (Test-Path $Nmh)) { throw "kestrove-nmh.exe not found; pass -Nmh" } +$Nmh = (Resolve-Path $Nmh).Path + +New-Item -ItemType Directory -Force -Path $OutDir | Out-Null +foreach ($flavor in @("chrome", "firefox")) { + $m = Get-Content -Raw (Join-Path $Here "$HostName.$flavor.json") | ConvertFrom-Json + $m.path = $Nmh + if ($flavor -eq "chrome") { $m.allowed_origins = @("chrome-extension://$ChromeId/") } else { $m.allowed_extensions = @($FirefoxId) } + $m | ConvertTo-Json -Depth 4 | Set-Content -Encoding UTF8 (Join-Path $OutDir "$HostName.$flavor.json") +} + +foreach ($b in $Browsers) { + if (-not $Keys.ContainsKey($b)) { throw "unknown browser $b" } + $flavor = if ($b -eq "firefox") { "firefox" } else { "chrome" } + New-Item -Force -Path $Keys[$b] | Out-Null + Set-Item -Path $Keys[$b] -Value (Join-Path $OutDir "$HostName.$flavor.json") + Write-Host "registered $($Keys[$b])" +} diff --git a/native-messaging/install.sh b/native-messaging/install.sh new file mode 100755 index 0000000..7208cd3 --- /dev/null +++ b/native-messaging/install.sh @@ -0,0 +1,105 @@ +#!/bin/sh +# Registers the Kestrove native-messaging host with the browsers of the current user (Linux, macOS). +# Windows: install.ps1. +# +# install.sh [--nmh /path/to/kestrove-nmh] [--chrome-id ID] [--firefox-id ID] +# [--browsers chrome,chromium,edge,brave,firefox] [--user-data-dir DIR] [--uninstall] +# +# With neither --browsers nor --user-data-dir it installs for every browser whose profile directory exists. +# --user-data-dir adds a Chromium-style profile dir started with --user-data-dir (Chromium then +# looks for NativeMessagingHosts/ inside it), e.g. for tests. +# allowed_origins / allowed_extensions pin the host to our extension ids (docs/04 A8). +set -eu + +HOST=app.kestrove.nmh +HERE=$(cd "$(dirname "$0")" && pwd) +NMH="" +# Development ids: the unpacked Chrome build is pinned by the manifest key in kestrove-browser/scripts/build.mjs. +CHROME_ID=kogapfibnnpeapfcjkkpgjddbhnjfein +FIREFOX_ID=browser@kestrove.app +BROWSERS="" +USER_DATA_DIR="" +UNINSTALL=0 + +die() { echo "install.sh: $*" >&2; exit 1; } + +while [ $# -gt 0 ]; do + case "$1" in + --nmh) NMH=$2; shift 2 ;; + --chrome-id) CHROME_ID=$2; shift 2 ;; + --firefox-id) FIREFOX_ID=$2; shift 2 ;; + --browsers) BROWSERS=$(echo "$2" | tr ',' ' '); shift 2 ;; + --user-data-dir) USER_DATA_DIR=$2; shift 2 ;; + --uninstall) UNINSTALL=1; shift ;; + -h|--help) sed -n '2,13p' "$0"; exit 0 ;; + *) die "unknown option $1" ;; + esac +done + +echo "$CHROME_ID" | grep -Eq '^[a-p]{32}$' || die "--chrome-id must be 32 letters a-p" +echo "$FIREFOX_ID" | grep -Eq '^[A-Za-z0-9._@{}-]+$' || die "bad --firefox-id" + +if [ "$UNINSTALL" = 0 ]; then + if [ -z "$NMH" ]; then + # Next to this script (installed layout), else the cargo build output (development). + for c in "$HERE/kestrove-nmh" "$HERE/../src-tauri/target/release/kestrove-nmh" "$HERE/../src-tauri/target/debug/kestrove-nmh"; do + [ -x "$c" ] && NMH=$c && break + done + fi + [ -n "$NMH" ] || die "kestrove-nmh not found; pass --nmh" + [ -x "$NMH" ] || die "$NMH is not executable" + NMH=$(cd "$(dirname "$NMH")" && pwd)/$(basename "$NMH") + case "$NMH" in *[\"\\\|\&]*) die "the host path may not contain quotes, backslashes, | or &" ;; esac +fi + +case "$(uname -s)" in + Darwin) + BASE="$HOME/Library/Application Support" + dir_chrome="$BASE/Google/Chrome" + dir_chromium="$BASE/Chromium" + dir_edge="$BASE/Microsoft Edge" + dir_brave="$BASE/BraveSoftware/Brave-Browser" + dir_firefox="$BASE/Mozilla" + ff_sub=NativeMessagingHosts + ;; + Linux) + CFG=${XDG_CONFIG_HOME:-$HOME/.config} + dir_chrome="$CFG/google-chrome" + dir_chromium="$CFG/chromium" + dir_edge="$CFG/microsoft-edge" + dir_brave="$CFG/BraveSoftware/Brave-Browser" + dir_firefox="$HOME/.mozilla" + ff_sub=native-messaging-hosts + ;; + *) die "unsupported OS $(uname -s); on Windows use install.ps1" ;; +esac + +# Auto-detect only when nothing was named: a test run with --user-data-dir must not touch real profiles. +[ -n "$BROWSERS$USER_DATA_DIR" ] || for b in chrome chromium edge brave firefox; do + eval "d=\$dir_$b" + [ -d "$d" ] && BROWSERS="$BROWSERS $b" +done + +render() { # template → stdout + sed -e "s|__NMH_PATH__|$NMH|" -e "s|__CHROME_EXTENSION_ID__|$CHROME_ID|" -e "s|__FIREFOX_EXTENSION_ID__|$FIREFOX_ID|" "$HERE/$HOST.$1.json" +} + +place() { # flavor dir + if [ "$UNINSTALL" = 1 ]; then + rm -f "$2/$HOST.json" && echo "removed $2/$HOST.json" + else + mkdir -p "$2" + render "$1" > "$2/$HOST.json.tmp" && chmod 644 "$2/$HOST.json.tmp" && mv "$2/$HOST.json.tmp" "$2/$HOST.json" + echo "installed $2/$HOST.json" + fi +} + +for b in $BROWSERS; do + case "$b" in + chrome|chromium|edge|brave) eval "d=\$dir_$b"; place chrome "$d/NativeMessagingHosts" ;; + firefox) place firefox "$dir_firefox/$ff_sub" ;; + *) die "unknown browser $b" ;; + esac +done +[ -z "$USER_DATA_DIR" ] || place chrome "$USER_DATA_DIR/NativeMessagingHosts" +[ -n "$BROWSERS$USER_DATA_DIR" ] || echo "no supported browser profile found (use --browsers)" diff --git a/package-lock.json b/package-lock.json index 693cad6..d0adef7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,18 +9,18 @@ "version": "0.1.0", "license": "Apache-2.0", "dependencies": { - "@tauri-apps/api": "2.1.1" + "@tauri-apps/api": "2.12.3" }, "devDependencies": { - "@tauri-apps/cli": "2.1.0", + "@tauri-apps/cli": "2.12.2", "typescript": "5.7.2", - "vite": "6.0.3" + "vite": "6.4.4" } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz", - "integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", "cpu": [ "ppc64" ], @@ -35,9 +35,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz", - "integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", "cpu": [ "arm" ], @@ -52,9 +52,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz", - "integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", "cpu": [ "arm64" ], @@ -69,9 +69,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz", - "integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", "cpu": [ "x64" ], @@ -86,9 +86,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz", - "integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", "cpu": [ "arm64" ], @@ -103,9 +103,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz", - "integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", "cpu": [ "x64" ], @@ -120,9 +120,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz", - "integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", "cpu": [ "arm64" ], @@ -137,9 +137,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz", - "integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", "cpu": [ "x64" ], @@ -154,9 +154,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz", - "integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", "cpu": [ "arm" ], @@ -171,9 +171,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz", - "integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", "cpu": [ "arm64" ], @@ -188,9 +188,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz", - "integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", "cpu": [ "ia32" ], @@ -205,9 +205,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz", - "integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", "cpu": [ "loong64" ], @@ -222,9 +222,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz", - "integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", "cpu": [ "mips64el" ], @@ -239,9 +239,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz", - "integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", "cpu": [ "ppc64" ], @@ -256,9 +256,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz", - "integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", "cpu": [ "riscv64" ], @@ -273,9 +273,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz", - "integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", "cpu": [ "s390x" ], @@ -290,9 +290,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz", - "integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", "cpu": [ "x64" ], @@ -307,9 +307,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz", - "integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", "cpu": [ "arm64" ], @@ -324,9 +324,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz", - "integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", "cpu": [ "x64" ], @@ -341,9 +341,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz", - "integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", "cpu": [ "arm64" ], @@ -358,9 +358,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz", - "integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", "cpu": [ "x64" ], @@ -374,10 +374,27 @@ "node": ">=18" } }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, "node_modules/@esbuild/sunos-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz", - "integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", "cpu": [ "x64" ], @@ -392,9 +409,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz", - "integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", "cpu": [ "arm64" ], @@ -409,9 +426,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz", - "integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", "cpu": [ "ia32" ], @@ -426,9 +443,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz", - "integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", "cpu": [ "x64" ], @@ -810,9 +827,9 @@ ] }, "node_modules/@tauri-apps/api": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.1.1.tgz", - "integrity": "sha512-fzUfFFKo4lknXGJq8qrCidkUcKcH2UHhfaaCNt4GzgzGaW2iS26uFOg4tS3H4P8D6ZEeUxtiD5z0nwFF0UN30A==", + "version": "2.12.3", + "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.12.3.tgz", + "integrity": "sha512-9s0PKw0p4r3kFq92jhpivYSp+cSht15o0gXpZxuQd0+dV9KCexEVkNaLELVoLdJWyoH4KlfQo5h3W2LIM8siJg==", "license": "Apache-2.0 OR MIT", "funding": { "type": "opencollective", @@ -820,9 +837,9 @@ } }, "node_modules/@tauri-apps/cli": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.1.0.tgz", - "integrity": "sha512-K2VhcKqBhAeS5pNOVdnR/xQRU6jwpgmkSL2ejHXcl0m+kaTggT0WRDQnFtPq6NljA7aE03cvwsbCAoFG7vtkJw==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.12.2.tgz", + "integrity": "sha512-PMSppzAnlT+BvZtRKuidxjRSm2r5t8kDpJ/czmmQUa0AtDNTwrjLE8vApK3phCWGg7isfnYL46Dl1jB4ArI0hA==", "dev": true, "license": "Apache-2.0 OR MIT", "bin": { @@ -836,22 +853,23 @@ "url": "https://opencollective.com/tauri" }, "optionalDependencies": { - "@tauri-apps/cli-darwin-arm64": "2.1.0", - "@tauri-apps/cli-darwin-x64": "2.1.0", - "@tauri-apps/cli-linux-arm-gnueabihf": "2.1.0", - "@tauri-apps/cli-linux-arm64-gnu": "2.1.0", - "@tauri-apps/cli-linux-arm64-musl": "2.1.0", - "@tauri-apps/cli-linux-x64-gnu": "2.1.0", - "@tauri-apps/cli-linux-x64-musl": "2.1.0", - "@tauri-apps/cli-win32-arm64-msvc": "2.1.0", - "@tauri-apps/cli-win32-ia32-msvc": "2.1.0", - "@tauri-apps/cli-win32-x64-msvc": "2.1.0" + "@tauri-apps/cli-darwin-arm64": "2.12.2", + "@tauri-apps/cli-darwin-x64": "2.12.2", + "@tauri-apps/cli-linux-arm-gnueabihf": "2.12.2", + "@tauri-apps/cli-linux-arm64-gnu": "2.12.2", + "@tauri-apps/cli-linux-arm64-musl": "2.12.2", + "@tauri-apps/cli-linux-riscv64-gnu": "2.12.2", + "@tauri-apps/cli-linux-x64-gnu": "2.12.2", + "@tauri-apps/cli-linux-x64-musl": "2.12.2", + "@tauri-apps/cli-win32-arm64-msvc": "2.12.2", + "@tauri-apps/cli-win32-ia32-msvc": "2.12.2", + "@tauri-apps/cli-win32-x64-msvc": "2.12.2" } }, "node_modules/@tauri-apps/cli-darwin-arm64": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.1.0.tgz", - "integrity": "sha512-ESc6J6CE8hl1yKH2vJ+ALF+thq4Be+DM1mvmTyUCQObvezNCNhzfS6abIUd3ou4x5RGH51ouiANeT3wekU6dCw==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.12.2.tgz", + "integrity": "sha512-Lk3zaBTfzNvA7670Al5PNgo2M/95uaDPe1yp+ILJeDOmol87XiYuK5E5+FUbK5e6U6OORx9qpZdOo2U+5tETtQ==", "cpu": [ "arm64" ], @@ -866,9 +884,9 @@ } }, "node_modules/@tauri-apps/cli-darwin-x64": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.1.0.tgz", - "integrity": "sha512-TasHS442DFs8cSH2eUQzuDBXUST4ECjCd0yyP+zZzvAruiB0Bg+c8A+I/EnqCvBQ2G2yvWLYG8q/LI7c87A5UA==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.12.2.tgz", + "integrity": "sha512-2CyYjJ833JB3sKRz4B0W/Tv4oOVC16ws1bxdSCWj1XvrmanWwvZi99e5tNIoCHwHhcOm0jh+sh0PCGQyls6Z+w==", "cpu": [ "x64" ], @@ -883,9 +901,9 @@ } }, "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.1.0.tgz", - "integrity": "sha512-aP7ZBGNL4ny07Cbb6kKpUOSrmhcIK2KhjviTzYlh+pPhAptxnC78xQGD3zKQkTi2WliJLPmBYbOHWWQa57lQ9w==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.12.2.tgz", + "integrity": "sha512-uvt2xbone4JftKarelssi86Kqnl7JiG1Smh5+Ae+nZmtM+JUhTGmqkcqfUPXRW8Ygwog92POZvd4oGDN9j8eXQ==", "cpu": [ "arm" ], @@ -900,9 +918,9 @@ } }, "node_modules/@tauri-apps/cli-linux-arm64-gnu": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.1.0.tgz", - "integrity": "sha512-ZTdgD5gLeMCzndMT2f358EkoYkZ5T+Qy6zPzU+l5vv5M7dHVN9ZmblNAYYXmoOuw7y+BY4X/rZvHV9pcGrcanQ==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.12.2.tgz", + "integrity": "sha512-DZlDJ24u3tlocKOYqzR+b2M+Qr+5WFcoMBZ7EfdhHN5j3ZXwBBpms4G4gyNvPCrak5vMzmdZ65ecBXPJcC+5sA==", "cpu": [ "arm64" ], @@ -917,9 +935,9 @@ } }, "node_modules/@tauri-apps/cli-linux-arm64-musl": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.1.0.tgz", - "integrity": "sha512-NzwqjUCilhnhJzusz3d/0i0F1GFrwCQbkwR6yAHUxItESbsGYkZRJk0yMEWkg3PzFnyK4cWTlQJMEU52TjhEzA==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.12.2.tgz", + "integrity": "sha512-pb+RTZUYH/p0gR4j4ecCCq+FNfz3W3eKuUQvVEBn7MQZx6DzfLO7FaYzt2NyDKWpdNN3lP10mdzOvw3R5P5aAQ==", "cpu": [ "arm64" ], @@ -933,10 +951,27 @@ "node": ">= 10" } }, + "node_modules/@tauri-apps/cli-linux-riscv64-gnu": { + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.12.2.tgz", + "integrity": "sha512-nidEvDUJyHYNbIv9MUk6KiEix8IXfRh4Wj2G2SA5g8nFmgbBCwazUNWYiG/LhNeNbfZpBMLerRBUtoQ5K0GidA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0 OR MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@tauri-apps/cli-linux-x64-gnu": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.1.0.tgz", - "integrity": "sha512-TyiIpMEtZxNOQmuFyfJwaaYbg3movSthpBJLIdPlKxSAB2BW0VWLY3/ZfIxm/G2YGHyREkjJvimzYE0i37PnMA==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.12.2.tgz", + "integrity": "sha512-gkXyYn3w+Xfc8nz/DleEbkm1M7bBuU2cejqUXNmI98cA2P5kp+oPmS4ALTorb1FaNWjpsKoYZBWsbS9BXxYFkQ==", "cpu": [ "x64" ], @@ -951,9 +986,9 @@ } }, "node_modules/@tauri-apps/cli-linux-x64-musl": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.1.0.tgz", - "integrity": "sha512-/dQd0TlaxBdJACrR72DhynWftzHDaX32eBtS5WBrNJ+nnNb+znM3gON6nJ9tSE9jgDa6n1v2BkI/oIDtypfUXw==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.12.2.tgz", + "integrity": "sha512-MrjgoZ09s8Hsn99XvxSNvK8NQTZxi7XiyK3FxxytzfHgz2jb3qUT69CZtsokRkN/zdi9rCgrMtq+w9XNICjcfQ==", "cpu": [ "x64" ], @@ -968,9 +1003,9 @@ } }, "node_modules/@tauri-apps/cli-win32-arm64-msvc": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.1.0.tgz", - "integrity": "sha512-NdQJO7SmdYqOcE+JPU7bwg7+odfZMWO6g8xF9SXYCMdUzvM2Gv/AQfikNXz5yS7ralRhNFuW32i5dcHlxh4pDg==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.12.2.tgz", + "integrity": "sha512-BR+CYM7iF3lkfyTtVkwMQU/s9hwegLpj3UqDjaxKCPmixQCa1csBBPy3C75V+FhLtOjIXNna4Gt6Vm9oxbV+qA==", "cpu": [ "arm64" ], @@ -985,9 +1020,9 @@ } }, "node_modules/@tauri-apps/cli-win32-ia32-msvc": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.1.0.tgz", - "integrity": "sha512-f5h8gKT/cB8s1ticFRUpNmHqkmaLutT62oFDB7N//2YTXnxst7EpMIn1w+QimxTvTk2gcx6EcW6bEk/y2hZGzg==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.12.2.tgz", + "integrity": "sha512-zODJo9l3TbNBM+GrO/yPqGeELNMK5cjIc+QHh1WQc3l8tD+jDZGTQyYuAxViCsM6Uh5uWJ//RnCZG9LXrvsXww==", "cpu": [ "ia32" ], @@ -1002,9 +1037,9 @@ } }, "node_modules/@tauri-apps/cli-win32-x64-msvc": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.1.0.tgz", - "integrity": "sha512-P/+LrdSSb5Xbho1LRP4haBjFHdyPdjWvGgeopL96OVtrFpYnfC+RctB45z2V2XxqFk3HweDDxk266btjttfjGw==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.12.2.tgz", + "integrity": "sha512-cQXI2ZaZmwBDt0XATCqASVanYizxkEE3ceQVlVHXaQ51HzsQUWA04c9Nz7LrrY2lgAu3jFMyat+8Yz3Z2R2qBA==", "cpu": [ "x64" ], @@ -1026,9 +1061,9 @@ "license": "MIT" }, "node_modules/esbuild": { - "version": "0.24.2", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz", - "integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==", + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -1039,31 +1074,50 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.24.2", - "@esbuild/android-arm": "0.24.2", - "@esbuild/android-arm64": "0.24.2", - "@esbuild/android-x64": "0.24.2", - "@esbuild/darwin-arm64": "0.24.2", - "@esbuild/darwin-x64": "0.24.2", - "@esbuild/freebsd-arm64": "0.24.2", - "@esbuild/freebsd-x64": "0.24.2", - "@esbuild/linux-arm": "0.24.2", - "@esbuild/linux-arm64": "0.24.2", - "@esbuild/linux-ia32": "0.24.2", - "@esbuild/linux-loong64": "0.24.2", - "@esbuild/linux-mips64el": "0.24.2", - "@esbuild/linux-ppc64": "0.24.2", - "@esbuild/linux-riscv64": "0.24.2", - "@esbuild/linux-s390x": "0.24.2", - "@esbuild/linux-x64": "0.24.2", - "@esbuild/netbsd-arm64": "0.24.2", - "@esbuild/netbsd-x64": "0.24.2", - "@esbuild/openbsd-arm64": "0.24.2", - "@esbuild/openbsd-x64": "0.24.2", - "@esbuild/sunos-x64": "0.24.2", - "@esbuild/win32-arm64": "0.24.2", - "@esbuild/win32-ia32": "0.24.2", - "@esbuild/win32-x64": "0.24.2" + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, "node_modules/fsevents": { @@ -1107,6 +1161,20 @@ "dev": true, "license": "ISC" }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/postcss": { "version": "8.5.30", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.30.tgz", @@ -1192,6 +1260,23 @@ "node": ">=0.10.0" } }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, "node_modules/typescript": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", @@ -1207,15 +1292,18 @@ } }, "node_modules/vite": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.0.3.tgz", - "integrity": "sha512-Cmuo5P0ENTN6HxLSo6IHsjCLn/81Vgrp81oaiFFMRa8gGDj5xEjIcEpf2ZymZtZR8oU0P2JX5WuUp/rlXcHkAw==", + "version": "6.4.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.4.tgz", + "integrity": "sha512-xGjU/SyjeNyb0E4KxXBvYz/1C+3JXuujvf2hXNOtnlcE+58o5ajd9N2/n2VhkiJvpCP2qQasnUpx5PXNeI+p1Q==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.24.0", - "postcss": "^8.4.49", - "rollup": "^4.23.0" + "esbuild": "^0.25.0", + "fdir": "^6.4.4", + "picomatch": "^4.0.2", + "postcss": "^8.5.3", + "rollup": "^4.34.9", + "tinyglobby": "^0.2.13" }, "bin": { "vite": "bin/vite.js" diff --git a/package.json b/package.json index 233d4c0..7ff3ce8 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,11 @@ "tauri": "tauri" }, "dependencies": { - "@tauri-apps/api": "2.1.1" + "@tauri-apps/api": "2.12.3" }, "devDependencies": { - "@tauri-apps/cli": "2.1.0", + "@tauri-apps/cli": "2.12.2", "typescript": "5.7.2", - "vite": "6.0.3" + "vite": "6.4.4" } } diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock new file mode 100644 index 0000000..5bd292b --- /dev/null +++ b/src-tauri/Cargo.lock @@ -0,0 +1,6148 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "generic-array", +] + +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures 0.2.17", +] + +[[package]] +name = "aes-gcm" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "ghash", + "subtle", +] + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "once_cell", + "version_check", + "zerocopy", +] + +[[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 = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "arboard" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917" +dependencies = [ + "clipboard-win", + "image", + "log", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "parking_lot", + "percent-encoding", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "argon2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c3610892ee6e0cbce8ae2700349fcf8f98adb0dbfbee85aec3c9179d29cc072" +dependencies = [ + "base64ct", + "blake2", + "cpufeatures 0.2.17", + "password-hash", +] + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "askama" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b79091df18a97caea757e28cd2d5fda49c6cd4bd01ddffd7ff01ace0c0ad2c28" +dependencies = [ + "askama_derive", + "askama_escape", +] + +[[package]] +name = "askama_derive" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19fe8d6cb13c4714962c072ea496f3392015f0989b1a2847bb4b2d9effd71d83" +dependencies = [ + "askama_parser", + "basic-toml", + "mime", + "mime_guess", + "proc-macro2", + "quote", + "serde", + "syn 2.0.119", +] + +[[package]] +name = "askama_escape" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341" + +[[package]] +name = "askama_parser" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acb1161c6b64d1c3d83108213c2a2533a342ac225aabd0bda218278c2ddb00c0" +dependencies = [ + "nom", +] + +[[package]] +name = "async-compat" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c97d7ff3c25d6c10d64170c12acaf5d4245e76dece3779c1d92b153a64f11df" +dependencies = [ + "futures-core", + "futures-io", + "once_cell", + "pin-project-lite", + "tokio", +] + +[[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 = "base16ct" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "base64ct" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" + +[[package]] +name = "basic-toml" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba62675e8242a4c4e806d12f11d136e626e6c8361d6b829310732241652a178a" +dependencies = [ + "serde", +] + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[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 = "blake2" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" +dependencies = [ + "digest", +] + +[[package]] +name = "blake3" +version = "1.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d9e454fc11f76977dc803893aff6304ed33d6a26efae8696573bea74baa27ae" +dependencies = [ + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "cpufeatures 0.3.1", +] + +[[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 = "brotli" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8b851b75c23ca7873623d612fe49bd1989aeb03d08fb9432187eb253d3d4c6b" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "6.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "941cd9bd4ddab83cb46fa5a2d428f1c857b24ac78cb876cf7beb710840934bd7" +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 = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[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.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[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.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6651c9ed80effdc7db0ff72512157f901af5e3549e341e24b1dd4887d836d838" +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 = "chacha20" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3613f74bd2eac03dad61bd53dbe620703d4371614fe0bc3b9f04dd36fe4e818" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures 0.2.17", +] + +[[package]] +name = "chacha20poly1305" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10cd79432192d1c0f4e1a0fef9527696cc039165d729fb41b3f4f4f354c2dc35" +dependencies = [ + "aead", + "chacha20", + "cipher", + "poly1305", + "zeroize", +] + +[[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", +] + +[[package]] +name = "ciborium" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e" +dependencies = [ + "ciborium-io", + "ciborium-ll", + "serde", +] + +[[package]] +name = "ciborium-io" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757" + +[[package]] +name = "ciborium-ll" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" +dependencies = [ + "ciborium-io", + "half", +] + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", + "zeroize", +] + +[[package]] +name = "clap" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "clap_lex" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" + +[[package]] +name = "clipboard-win" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4" +dependencies = [ + "error-code", +] + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "constant_time_eq" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + +[[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 = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78" +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 = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-bigint" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" +dependencies = [ + "generic-array", + "rand_core", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "rand_core", + "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 = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "curve25519-dalek-derive", + "digest", + "fiat-crypto", + "rand_core", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[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 = "data-encoding" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" + +[[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 = "der" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +dependencies = [ + "const-oid", + "pem-rfc7468", + "zeroize", +] + +[[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-where" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e2b94854e8576378ccda7c8de8a66ed8b4e8acbd2c50ec3418ea6c8aaf4b567" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[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", + "const-oid", + "crypto-common", + "subtle", +] + +[[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 = "ecdsa" +version = "0.16.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" +dependencies = [ + "der", + "digest", + "elliptic-curve", + "rfc6979", + "signature", + "spki", +] + +[[package]] +name = "ed25519" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" +dependencies = [ + "pkcs8", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" +dependencies = [ + "curve25519-dalek", + "ed25519", + "rand_core", + "serde", + "sha2", + "subtle", + "zeroize", +] + +[[package]] +name = "elliptic-curve" +version = "0.13.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" +dependencies = [ + "base16ct", + "crypto-bigint", + "digest", + "ff", + "generic-array", + "group", + "hkdf", + "pem-rfc7468", + "pkcs8", + "rand_core", + "sec1", + "subtle", + "zeroize", +] + +[[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 = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "erased-serde" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec" +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 = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fax" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "ff" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393" +dependencies = [ + "rand_core", + "subtle", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[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.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" + +[[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 = "fs-err" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +dependencies = [ + "autocfg", +] + +[[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-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 = [ + "serde", + "typenum", + "version_check", + "zeroize", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix", + "windows-link", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[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 = "ghash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1" +dependencies = [ + "opaque-debug", + "polyval", +] + +[[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 = "goblin" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b363a30c165f666402fe6a3024d3bec7ebc898f96a4a23bd1c99f8dbf3f4f47" +dependencies = [ + "log", + "plain", + "scroll", +] + +[[package]] +name = "group" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +dependencies = [ + "ff", + "rand_core", + "subtle", +] + +[[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 = "h2" +version = "0.4.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap 2.14.2", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "hashlink" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" +dependencies = [ + "hashbrown 0.14.5", +] + +[[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 = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + +[[package]] +name = "hpke" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4917627a14198c3603282c5158b815ad5534795451d3c074b53cf3cee0960b11" +dependencies = [ + "aead", + "aes-gcm", + "chacha20poly1305", + "digest", + "generic-array", + "hkdf", + "hmac", + "p256", + "rand_core", + "sha2", + "subtle", + "x25519-dalek", + "zeroize", +] + +[[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-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[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", +] + +[[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.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png 0.17.16", +] + +[[package]] +name = "icu_collections" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" + +[[package]] +name = "icu_properties" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" + +[[package]] +name = "icu_provider" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +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 = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png 0.18.1", + "tiff", +] + +[[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 = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "generic-array", +] + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[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", +] + +[[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 = "kestrove-desktop" +version = "0.1.0" +dependencies = [ + "aes-gcm", + "arboard", + "base64 0.22.1", + "core-foundation", + "getrandom 0.2.17", + "hkdf", + "kv-ffi", + "libc", + "serde", + "serde_json", + "sha2", + "tauri", + "tauri-build", + "tempfile", + "url", + "uuid", + "windows-sys 0.61.2", + "x25519-dalek", + "zeroize", +] + +[[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 = "kv-crypto" +version = "0.1.0" +dependencies = [ + "argon2", + "chacha20poly1305", + "ed25519-dalek", + "hkdf", + "hpke", + "kv-proto", + "rand_core", + "sha2", + "thiserror 2.0.21", + "unicode-normalization", + "uuid", + "zeroize", +] + +[[package]] +name = "kv-ffi" +version = "0.1.0" +dependencies = [ + "hkdf", + "kv-crypto", + "kv-model", + "kv-proto", + "kv-store", + "kv-sync", + "serde", + "serde_json", + "sha2", + "thiserror 2.0.21", + "tokio", + "uniffi", + "uuid", + "zeroize", +] + +[[package]] +name = "kv-model" +version = "0.1.0" +dependencies = [ + "data-encoding", + "hmac", + "psl", + "rand", + "serde", + "serde_json", + "sha1", + "sha2", + "thiserror 2.0.21", + "url", + "uuid", + "zeroize", +] + +[[package]] +name = "kv-proto" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "opaque-ke", + "serde", + "sha2", + "uuid", +] + +[[package]] +name = "kv-store" +version = "0.1.0" +dependencies = [ + "kv-proto", + "rusqlite", + "serde_json", + "thiserror 2.0.21", + "uuid", +] + +[[package]] +name = "kv-sync" +version = "0.1.0" +dependencies = [ + "base64 0.22.1", + "blake3", + "ciborium", + "kv-crypto", + "kv-model", + "kv-proto", + "kv-store", + "opaque-ke", + "p256", + "rand_core", + "reqwest 0.12.28", + "rustls", + "rustls-webpki", + "serde", + "serde_json", + "sha2", + "thiserror 2.0.21", + "time", + "tokio", + "url", + "uuid", + "webpki-roots 0.26.11", + "zeroize", +] + +[[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.190" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" + +[[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 = "libsqlite3-sys" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[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 = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[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 = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[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 0.18.1", + "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 = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[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-core-graphics", + "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 = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "opaque-ke" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb31f7b2c5760d8ffbc39652043f5cff14029b6249a2280b28ae6f0cd61f5098" +dependencies = [ + "curve25519-dalek", + "derive-where", + "digest", + "displaydoc", + "elliptic-curve", + "generic-array", + "getrandom 0.2.17", + "hkdf", + "hmac", + "rand", + "serde", + "subtle", + "voprf", + "zeroize", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "p256" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" +dependencies = [ + "ecdsa", + "elliptic-curve", + "primeorder", + "sha2", +] + +[[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_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", +] + +[[package]] +name = "password-hash" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "346f04948ba92c43e8469c1ee6736c7563d71012b17d40745260fe106aac2166" +dependencies = [ + "base64ct", + "rand_core", + "subtle", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pem-rfc7468" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" +dependencies = [ + "base64ct", +] + +[[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 1.0.4", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "plist" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2896bade328c13f7042a297ea5ac5b0951f6cf989dea5f32c2fd98da398195cb" +dependencies = [ + "base64 0.23.1", + "indexmap 2.14.2", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[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 = "poly1305" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8159bd90725d2df49889a078b54f4f79e87f1f8a8444194cdca81d38f5393abf" +dependencies = [ + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "polyval" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "opaque-debug", + "universal-hash", +] + +[[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 = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "primeorder" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" +dependencies = [ + "elliptic-curve", +] + +[[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 = "psl" +version = "2.1.241" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7319b480e204d67e759cad7886178335d26324c7c8573c126cc9dfa7350d064" +dependencies = [ + "psl-types", +] + +[[package]] +name = "psl-types" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac" + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[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 = "rand" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[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.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[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 = "rfc6979" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +dependencies = [ + "hmac", + "subtle", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rusqlite" +version = "0.32.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e" +dependencies = [ + "bitflags 2.13.2", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "smallvec", +] + +[[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 = "rustls" +version = "0.23.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" +dependencies = [ + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[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 = "scroll" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6" +dependencies = [ + "scroll_derive", +] + +[[package]] +name = "scroll_derive" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1783eabc414609e28a5ba76aee5ddd52199f7107a0b24c2e9746a1ecc34a683d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "sec1" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +dependencies = [ + "base16ct", + "der", + "generic-array", + "pkcs8", + "subtle", + "zeroize", +] + +[[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_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[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 = "sha1" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures 0.2.17", + "digest", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "digest", + "rand_core", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b" + +[[package]] +name = "smawk" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8e2fb0f499abb4d162f2bedad68f5ef91a1682b5a03596ddb67efd37768d100" + +[[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 = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[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 = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f37f381f4e048e6cdf038b5705f8cf14ad108279d46eb968140a7b291aba9400" +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", + "windows-core", + "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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f316751027fc2644221d1a448564d519efb07067fda584879d9cda966391d212" +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 0.13.5", + "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", +] + +[[package]] +name = "tauri-build" +version = "2.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "641dd5fd297c99ab92717b0428cca5b9c6f960b2ac96ca131b3eebc9d70b8ddc" +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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6585c5b536c00f039d12ce70a9755172d5423bbcfd3969863baa70314c3e02f" +dependencies = [ + "base64 0.23.1", + "brotli", + "ico", + "json-patch", + "plist", + "png 0.18.1", + "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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e83a0cfa1bae376e8fbbdc0b1692707aed50cd6072ce85cae4789af5d6c19f" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", + "tauri-codegen", + "tauri-utils", +] + +[[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", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d61892587aea2a85245bcaec98c6fe46268874c0a0deae5535fb71ca7b93eae" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "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 0.19.2", + "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.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6" +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 = "textwrap" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49" +dependencies = [ + "smawk", + "unicode-width", +] + +[[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 = "tiff" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg", +] + +[[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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +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.53.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce3335fa71841cda333a58d7615b03901380ecf09d59b3296d21f8bbac0dde4e" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" +dependencies = [ + "rustls", + "tokio", +] + +[[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", + "libc", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[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-core", +] + +[[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 0.18.1", + "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 = "unicase" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-normalization" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" + +[[package]] +name = "uniffi" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cb08c58c7ed7033150132febe696bef553f891b1ede57424b40d87a89e3c170" +dependencies = [ + "anyhow", + "camino", + "cargo_metadata 0.15.4", + "clap", + "uniffi_bindgen", + "uniffi_core", + "uniffi_macros", +] + +[[package]] +name = "uniffi_bindgen" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cade167af943e189a55020eda2c314681e223f1e42aca7c4e52614c2b627698f" +dependencies = [ + "anyhow", + "askama", + "camino", + "cargo_metadata 0.15.4", + "fs-err", + "glob", + "goblin", + "heck 0.5.0", + "once_cell", + "paste", + "serde", + "textwrap", + "toml 0.5.11", + "uniffi_meta", + "uniffi_udl", +] + +[[package]] +name = "uniffi_checksum_derive" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "802d2051a700e3ec894c79f80d2705b69d85844dafbbe5d1a92776f8f48b563a" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "uniffi_core" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7687007d2546c454d8ae609b105daceb88175477dac280707ad6d95bcd6f1f" +dependencies = [ + "anyhow", + "async-compat", + "bytes", + "log", + "once_cell", + "paste", + "static_assertions", +] + +[[package]] +name = "uniffi_macros" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12c65a5b12ec544ef136693af8759fb9d11aefce740fb76916721e876639033b" +dependencies = [ + "bincode", + "camino", + "fs-err", + "once_cell", + "proc-macro2", + "quote", + "serde", + "syn 2.0.119", + "toml 0.5.11", + "uniffi_meta", +] + +[[package]] +name = "uniffi_meta" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a74ed96c26882dac1ca9b93ca23c827e284bacbd7ec23c6f0b0372f747d59e4" +dependencies = [ + "anyhow", + "bytes", + "siphasher 0.3.11", + "uniffi_checksum_derive", +] + +[[package]] +name = "uniffi_testing" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6f984f0781f892cc864a62c3a5c60361b1ccbd68e538e6c9fbced5d82268ac" +dependencies = [ + "anyhow", + "camino", + "cargo_metadata 0.15.4", + "fs-err", + "once_cell", +] + +[[package]] +name = "uniffi_udl" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037820a4cfc4422db1eaa82f291a3863c92c7d1789dc513489c36223f9b4cdfc" +dependencies = [ + "anyhow", + "textwrap", + "uniffi_meta", + "uniffi_testing", + "weedle2", +] + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", + "subtle", +] + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[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 = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cc1186384beb7dd8eedea376413fd654937285ea6c9cfbb928dc3043ea4b606" +dependencies = [ + "getrandom 0.4.3", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[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 = "voprf" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28f59c30c76e2fea54cdece6a054e2662feffa7ab19658a7887524265ee39470" +dependencies = [ + "curve25519-dalek", + "derive-where", + "digest", + "displaydoc", + "elliptic-curve", + "generic-array", + "rand_core", + "serde", + "sha2", + "subtle", + "zeroize", +] + +[[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 = "webpki-roots" +version = "0.26.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" +dependencies = [ + "webpki-roots 1.0.9", +] + +[[package]] +name = "webpki-roots" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a" +dependencies = [ + "rustls-pki-types", +] + +[[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", + "windows-core", +] + +[[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", + "windows-core", +] + +[[package]] +name = "weedle2" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "998d2c24ec099a87daf9467808859f9d82b61f1d9c9701251aea037f514eae0e" +dependencies = [ + "nom", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[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.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core", + "windows-future", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core", +] + +[[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", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core", + "windows-link", + "windows-threading", +] + +[[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.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core", + "windows-link", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link", +] + +[[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_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[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_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[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_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[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_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[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.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a819957a01b3119af85e638a38d242af76dbc87d130dca67bfd0441072e21ff0" +dependencies = [ + "base64 0.22.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", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.21", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core", + "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 = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "gethostname", + "rustix", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "x25519-dalek" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" +dependencies = [ + "curve25519-dalek", + "rand_core", + "serde", + "zeroize", +] + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +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 = "zerocopy" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[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 = "zeroize" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[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.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +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 = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 2114229..52fa1d2 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -6,6 +6,11 @@ rust-version = "1.82" license = "Apache-2.0" publish = false +# Shared by the app, the native-messaging host and the integration tests. +[lib] +name = "kestrove_desktop" +path = "src/lib.rs" + [[bin]] name = "kestrove-desktop" path = "src/main.rs" @@ -21,10 +26,43 @@ tauri-build = { version = "2", features = [] } [dependencies] # Repos are checked out side by side (see ../../README.md). kv-ffi = { path = "../../kestrove-core/crates/kv-ffi" } -tauri = { version = "2", features = [] } +tauri = { version = "2", features = ["tray-icon"] } serde = { version = "1", features = ["derive"] } serde_json = "1" arboard = "3" +# Browser pairing channel (docs/05): X25519 + HKDF-SHA256 + AES-256-GCM (what WebCrypto offers on the extension side). +x25519-dalek = { version = "2", features = ["static_secrets", "zeroize"] } +hkdf = "0.12" +sha2 = "0.10" +aes-gcm = "0.10" +getrandom = "0.2" +base64 = "0.22" +uuid = { version = "1", features = ["v4"] } +url = "2" +zeroize = "1" + +[target.'cfg(unix)'.dependencies] +libc = "0.2" + +[target.'cfg(windows)'.dependencies] +windows-sys = { version = "0.61", features = [ + "Win32_Foundation", + "Win32_Security", + "Win32_Security_Authorization", + "Win32_Storage_FileSystem", + "Win32_System_IO", + "Win32_System_Pipes", + "Win32_System_Threading", + "Win32_System_StationsAndDesktops", + "Win32_System_SystemInformation", + "Win32_UI_Input_KeyboardAndMouse", +] } + +[target.'cfg(target_os = "macos")'.dependencies] +core-foundation = "0.10" + +[dev-dependencies] +tempfile = "3" [profile.release] lto = true diff --git a/src-tauri/examples/test-host.rs b/src-tauri/examples/test-host.rs new file mode 100644 index 0000000..a0576d3 --- /dev/null +++ b/src-tauri/examples/test-host.rs @@ -0,0 +1,71 @@ +//! Headless stand-in for the desktop app, for end-to-end tests of the browser extension and +//! `kestrove-nmh`. It runs the same `Broker` as the app over the same IPC endpoint, with an +//! in-memory vault holding one test login, and plays the user: it approves pairings and saves. +//! Never ship this: it auto-approves. +//! +//! KESTROVE_IPC_DIR=/tmp/kv-e2e KESTROVE_TEST_ORIGIN=http://127.0.0.1:8765 \ +//! cargo run --example test-host +//! +//! Prints `READY `, then `PAIRED ` and `SAVED ` as they happen. + +use std::io::Write; +use std::sync::Arc; +use std::thread; +use std::time::Duration; + +use kestrove_desktop::broker::{Broker, PairingStore, PairingView, SaveView, Ui}; +use kestrove_desktop::ipc; +use kv_ffi::{ItemDto, ItemKindDto, VaultCore}; + +struct Quiet; +impl Ui for Quiet { + fn pairing_requested(&self, _: &PairingView) {} + fn save_requested(&self, _: &SaveView) {} +} + +fn main() -> Result<(), Box> { + let origin = std::env::var("KESTROVE_TEST_ORIGIN").unwrap_or_else(|_| "http://127.0.0.1:8765".into()); + let core = VaultCore::new_in_memory(); + core.create_account("test master password".into())?; + core.save_item(ItemDto { + id: String::new(), + kind: ItemKindDto::Login, + title: "Test login".into(), + username: Some("alice@example.com".into()), + password: Some("correct-horse-42".into()), + urls: vec![origin], + totp: Some("JBSWY3DPEHPK3PXP".into()), + notes: None, + favorite: false, + tags: vec![], + modified_at: 0, + })?; + let broker = Broker::new(core, Arc::new(Quiet), PairingStore::in_memory()); + let listener = ipc::Listener::bind()?; + println!("READY {}", ipc::endpoint()?.display()); + std::io::stdout().flush()?; + + let b = broker.clone(); + thread::spawn(move || loop { + thread::sleep(Duration::from_millis(200)); + if let Some(p) = b.pending_pairing() { + if b.resolve_pairing(&p.id, true).is_ok() { + println!("PAIRED {}", p.words.join(" ")); + } + } + for s in b.pending_saves() { + if b.resolve_save(&s.id, true).is_ok() { + println!("SAVED {} {}", s.origin, s.username); + } + } + let _ = std::io::stdout().flush(); + }); + + loop { + let conn = listener.accept()?; + let b = broker.clone(); + thread::spawn(move || { + let _ = b.serve(conn); + }); + } +} diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png new file mode 100644 index 0000000..47a5ab6 Binary files /dev/null and b/src-tauri/icons/128x128.png differ diff --git a/src-tauri/icons/128x128@2x.png b/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..44fbe11 Binary files /dev/null and b/src-tauri/icons/128x128@2x.png differ diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png new file mode 100644 index 0000000..8657b84 Binary files /dev/null and b/src-tauri/icons/32x32.png differ diff --git a/src-tauri/icons/Square107x107Logo.png b/src-tauri/icons/Square107x107Logo.png new file mode 100644 index 0000000..007cf88 Binary files /dev/null and b/src-tauri/icons/Square107x107Logo.png differ diff --git a/src-tauri/icons/Square142x142Logo.png b/src-tauri/icons/Square142x142Logo.png new file mode 100644 index 0000000..5f0026b Binary files /dev/null and b/src-tauri/icons/Square142x142Logo.png differ diff --git a/src-tauri/icons/Square150x150Logo.png b/src-tauri/icons/Square150x150Logo.png new file mode 100644 index 0000000..1ae5227 Binary files /dev/null and b/src-tauri/icons/Square150x150Logo.png differ diff --git a/src-tauri/icons/Square284x284Logo.png b/src-tauri/icons/Square284x284Logo.png new file mode 100644 index 0000000..977ef45 Binary files /dev/null and b/src-tauri/icons/Square284x284Logo.png differ diff --git a/src-tauri/icons/Square30x30Logo.png b/src-tauri/icons/Square30x30Logo.png new file mode 100644 index 0000000..3ef9581 Binary files /dev/null and b/src-tauri/icons/Square30x30Logo.png differ diff --git a/src-tauri/icons/Square310x310Logo.png b/src-tauri/icons/Square310x310Logo.png new file mode 100644 index 0000000..cf5fd6e Binary files /dev/null and b/src-tauri/icons/Square310x310Logo.png differ diff --git a/src-tauri/icons/Square44x44Logo.png b/src-tauri/icons/Square44x44Logo.png new file mode 100644 index 0000000..32df927 Binary files /dev/null and b/src-tauri/icons/Square44x44Logo.png differ diff --git a/src-tauri/icons/Square71x71Logo.png b/src-tauri/icons/Square71x71Logo.png new file mode 100644 index 0000000..2f6b220 Binary files /dev/null and b/src-tauri/icons/Square71x71Logo.png differ diff --git a/src-tauri/icons/Square89x89Logo.png b/src-tauri/icons/Square89x89Logo.png new file mode 100644 index 0000000..759f220 Binary files /dev/null and b/src-tauri/icons/Square89x89Logo.png differ diff --git a/src-tauri/icons/StoreLogo.png b/src-tauri/icons/StoreLogo.png new file mode 100644 index 0000000..a5866c3 Binary files /dev/null and b/src-tauri/icons/StoreLogo.png differ diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns new file mode 100644 index 0000000..68d2a01 Binary files /dev/null and b/src-tauri/icons/icon.icns differ diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico new file mode 100644 index 0000000..3e4d66d Binary files /dev/null and b/src-tauri/icons/icon.ico differ diff --git a/src-tauri/icons/icon.png b/src-tauri/icons/icon.png new file mode 100644 index 0000000..32227f5 Binary files /dev/null and b/src-tauri/icons/icon.png differ diff --git a/src-tauri/src/autolock.rs b/src-tauri/src/autolock.rs new file mode 100644 index 0000000..2a7bf1e --- /dev/null +++ b/src-tauri/src/autolock.rs @@ -0,0 +1,213 @@ +//! Auto-lock (docs/02 "Local unlock"): after the idle timeout (default 10 min), on screen lock, +//! and after sleep/suspend. +//! +//! * Idle: system input idle time where the OS reports it (Windows `GetLastInputInfo`, macOS +//! `CGEventSourceSecondsSinceLastEventType`). Linux has no portable call without a D-Bus +//! dependency, so it falls back to activity inside Kestrove (UI input and browser fills). +//! * Screen lock: Windows `OpenInputDesktop` (fails or isn't switchable while locked), Linux +//! logind's `LockedHint` (via `loginctl`), macOS `CGSSessionScreenIsLocked`. +//! * Suspend: the wall clock jumping well past the poll interval means the machine slept. + +use std::sync::atomic::{AtomicU64, Ordering}; +use std::sync::Arc; +use std::thread; +use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; + +pub const DEFAULT_IDLE: Duration = Duration::from_secs(10 * 60); +const POLL: Duration = Duration::from_secs(5); +/// A gap this much larger than POLL between two ticks means the machine was asleep. +const SLEEP_GAP: Duration = Duration::from_secs(30); + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Reason { + Idle, + ScreenLocked, + Sleep, +} + +/// Last activity seen inside the app, for platforms without a system idle time. +#[derive(Default)] +pub struct Activity(AtomicU64); + +fn now_secs() -> u64 { + SystemTime::now().duration_since(UNIX_EPOCH).map(|d| d.as_secs()).unwrap_or(0) +} + +impl Activity { + pub fn new() -> Arc { + let a = Arc::new(Self::default()); + a.touch(); + a + } + + pub fn touch(&self) { + self.0.store(now_secs(), Ordering::Relaxed); + } + + pub fn idle(&self) -> Duration { + Duration::from_secs(now_secs().saturating_sub(self.0.load(Ordering::Relaxed))) + } +} + +/// Pure decision for one tick, unit-tested below. +pub fn decide(idle: Duration, limit: Duration, screen_locked: bool, wall_gap: Duration) -> Option { + if wall_gap > POLL + SLEEP_GAP { + Some(Reason::Sleep) + } else if screen_locked { + Some(Reason::ScreenLocked) + } else if idle >= limit { + Some(Reason::Idle) + } else { + None + } +} + +/// Polls in a background thread. `is_unlocked` gates the checks; `lock` is called on a trigger. +pub fn spawn( + activity: Arc, + limit: impl Fn() -> Duration + Send + 'static, + is_unlocked: impl Fn() -> bool + Send + 'static, + lock: impl Fn(Reason) + Send + 'static, +) { + thread::Builder::new() + .name("autolock".into()) + .spawn(move || { + let mut last_wall = SystemTime::now(); + let mut last_mono = Instant::now(); + loop { + thread::sleep(POLL); + let wall = SystemTime::now(); + // Monotonic clocks may pause during sleep, the wall clock doesn't. + let gap = wall.duration_since(last_wall).unwrap_or_default().max(last_mono.elapsed()); + last_wall = wall; + last_mono = Instant::now(); + if !is_unlocked() { + continue; + } + let idle = platform::system_idle().unwrap_or_else(|| activity.idle()); + if let Some(r) = decide(idle, limit(), platform::screen_locked(), gap) { + lock(r); + } + } + }) + .expect("spawn autolock thread"); +} + +#[cfg(target_os = "macos")] +mod platform { + use std::time::Duration; + + use core_foundation::base::{CFType, TCFType}; + use core_foundation::boolean::CFBoolean; + use core_foundation::dictionary::{CFDictionary, CFDictionaryRef}; + use core_foundation::string::CFString; + + #[link(name = "CoreGraphics", kind = "framework")] + extern "C" { + fn CGEventSourceSecondsSinceLastEventType(state: i32, event_type: u32) -> f64; + fn CGSessionCopyCurrentDictionary() -> CFDictionaryRef; + } + + const HID_SYSTEM_STATE: i32 = 1; + const ANY_INPUT_EVENT: u32 = u32::MAX; + + pub fn system_idle() -> Option { + // SAFETY: pure query with constant arguments. + let s = unsafe { CGEventSourceSecondsSinceLastEventType(HID_SYSTEM_STATE, ANY_INPUT_EVENT) }; + (s.is_finite() && s >= 0.0).then(|| Duration::from_secs_f64(s)) + } + + pub fn screen_locked() -> bool { + // SAFETY: a Copy function: we own the returned dictionary (create rule), or get null. + let raw = unsafe { CGSessionCopyCurrentDictionary() }; + if raw.is_null() { + return false; + } + // SAFETY: raw is a non-null CFDictionary we own. + let dict: CFDictionary = unsafe { CFDictionary::wrap_under_create_rule(raw) }; + dict.find(CFString::from_static_string("CGSSessionScreenIsLocked")) + .and_then(|v| v.downcast::()) + .is_some_and(bool::from) + } +} + +#[cfg(windows)] +mod platform { + use std::time::Duration; + + use windows_sys::Win32::System::StationsAndDesktops::{CloseDesktop, OpenInputDesktop, SwitchDesktop, DESKTOP_SWITCHDESKTOP}; + use windows_sys::Win32::System::SystemInformation::GetTickCount; + use windows_sys::Win32::UI::Input::KeyboardAndMouse::{GetLastInputInfo, LASTINPUTINFO}; + + pub fn system_idle() -> Option { + let mut info = LASTINPUTINFO { cbSize: std::mem::size_of::() as u32, dwTime: 0 }; + // SAFETY: info is a valid, sized LASTINPUTINFO. + if unsafe { GetLastInputInfo(&mut info) } == 0 { + return None; + } + // SAFETY: no preconditions. Both are u32 ms tick counts; wrapping_sub handles the 49-day wrap. + let now = unsafe { GetTickCount() }; + Some(Duration::from_millis(u64::from(now.wrapping_sub(info.dwTime)))) + } + + /// While the workstation is locked the input desktop is Winlogon's, which we can't switch to. + pub fn screen_locked() -> bool { + // SAFETY: the desktop handle is closed before returning. + unsafe { + let h = OpenInputDesktop(0, 0, DESKTOP_SWITCHDESKTOP); + if h.is_null() { + return true; + } + let switchable = SwitchDesktop(h) != 0; + CloseDesktop(h); + !switchable + } + } +} + +#[cfg(all(unix, not(target_os = "macos")))] +mod platform { + use std::process::Command; + use std::time::Duration; + + pub fn system_idle() -> Option { + None + } + + pub fn screen_locked() -> bool { + let session = std::env::var("XDG_SESSION_ID").unwrap_or_else(|_| "auto".into()); + Command::new("loginctl") + .args(["show-session", &session, "-p", "LockedHint", "--value"]) + .output() + .ok() + .filter(|o| o.status.success()) + .is_some_and(|o| o.stdout.trim_ascii() == b"yes") + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn decisions() { + let min = Duration::from_secs(60); + let tick = POLL; + assert_eq!(decide(Duration::ZERO, 10 * min, false, tick), None); + assert_eq!(decide(10 * min, 10 * min, false, tick), Some(Reason::Idle)); + assert_eq!(decide(Duration::ZERO, 10 * min, true, tick), Some(Reason::ScreenLocked)); + assert_eq!(decide(Duration::ZERO, 10 * min, false, 5 * min), Some(Reason::Sleep)); + } + + #[test] + fn platform_probes_do_not_panic() { + let _ = platform::system_idle(); + let _ = platform::screen_locked(); + } + + #[test] + fn activity_tracks_touch() { + let a = Activity::new(); + assert!(a.idle() < Duration::from_secs(2)); + } +} diff --git a/src-tauri/src/bin/kestrove-nmh.rs b/src-tauri/src/bin/kestrove-nmh.rs index 16cd383..634b050 100644 --- a/src-tauri/src/bin/kestrove-nmh.rs +++ b/src-tauri/src/bin/kestrove-nmh.rs @@ -1,54 +1,65 @@ -//! Native messaging host for Chrome/Edge/Firefox (kestrove-spec/docs/05). +//! Native messaging host for Chrome/Edge/Brave/Firefox (kestrove-spec/docs/05). //! -//! The browser starts this process and talks over stdio: each message is a u32 length -//! (native byte order) followed by UTF-8 JSON, at most 1 MiB to the browser. -//! This process holds **no** secrets. It relays each request to the running desktop app over -//! a local IPC channel (Windows named pipe `\\.\pipe\kestrove-nmh-`, Unix socket -//! `$XDG_RUNTIME_DIR/kestrove/nmh.sock` with 0600 perms). The app re-checks origins and asks for -//! approval or unlock as needed. +//! The browser starts this process and talks over stdio: each message is a u32 length (native +//! byte order) followed by UTF-8 JSON. This process holds **no** secrets and can't read the +//! traffic: frames are end-to-end encrypted between the extension and the app (pairing channel, +//! see `channel.rs`). It relays each frame to the running app over local IPC (`ipc.rs`) and +//! relays the app's reply back, strictly one reply per request. +//! +//! When the app isn't running, every request gets `{t:"error", code:"unavailable"}`; it +//! reconnects on the next request, so starting the app later just works. -use std::io::{self, Read, Write}; +use std::io::{self, Write}; -use serde_json::{json, Value}; +use kestrove_desktop::framing::{read_frame, read_json, write_frame, write_json}; +use kestrove_desktop::ipc::{self, Conn}; +use serde_json::json; -const MAX_IN: usize = 4 * 1024 * 1024; - -fn read_message(stdin: &mut impl Read) -> io::Result> { - let mut len = [0u8; 4]; - match stdin.read_exact(&mut len) { - Ok(()) => {} - Err(e) if e.kind() == io::ErrorKind::UnexpectedEof => return Ok(None), // browser closed the port - Err(e) => return Err(e), +/// Chrome passes the caller origin (`chrome-extension:///`) as the first argument; Firefox +/// passes the manifest path and then the extension id. Informational only (shown when pairing): +/// the browser's `allowed_origins` check and the pairing key are what actually gate access. +fn caller() -> String { + let args: Vec = std::env::args().skip(1).collect(); + match args.as_slice() { + [a, ..] if a.starts_with("chrome-extension://") => a.clone(), + [_, id, ..] if !id.starts_with("--") => id.clone(), + _ => String::new(), } - let len = u32::from_ne_bytes(len) as usize; - if len > MAX_IN { - return Err(io::Error::new(io::ErrorKind::InvalidData, "message too large")); - } - let mut buf = vec![0u8; len]; - stdin.read_exact(&mut buf)?; - serde_json::from_slice(&buf).map(Some).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e)) } -fn write_message(stdout: &mut impl Write, v: &Value) -> io::Result<()> { - let bytes = serde_json::to_vec(v)?; - stdout.write_all(&(bytes.len() as u32).to_ne_bytes())?; - stdout.write_all(&bytes)?; - stdout.flush() +fn connect(caller: &str) -> io::Result { + let mut c = ipc::connect()?; + write_json(&mut c, &json!({ "t": "nmh_hello", "caller": caller }))?; + match read_json(&mut c)? { + Some(v) if v["t"] == "ok" => Ok(c), + _ => Err(io::Error::new(io::ErrorKind::InvalidData, "unexpected hello reply")), + } } -/// TODO(M3): forward to the desktop app over local IPC, inside the paired AEAD channel. -fn relay(req: &Value) -> Value { - match req.get("type").and_then(Value::as_str) { - Some("hello") => json!({ "type": "hello", "version": env!("CARGO_PKG_VERSION"), "paired": false }), - Some(_) => json!({ "type": "error", "code": "unavailable" }), - None => json!({ "type": "error", "code": "bad_request" }), - } +fn relay(conn: &mut Conn, frame: &[u8]) -> io::Result> { + write_frame(conn, frame)?; + read_frame(conn)?.ok_or_else(|| io::Error::new(io::ErrorKind::UnexpectedEof, "app closed the connection")) } fn main() -> io::Result<()> { + let caller = caller(); let (mut stdin, mut stdout) = (io::stdin().lock(), io::stdout().lock()); - while let Some(req) = read_message(&mut stdin)? { - write_message(&mut stdout, &relay(&req))?; + let unavailable = serde_json::to_vec(&json!({ "t": "error", "code": "unavailable" }))?; + let mut conn: Option = None; + while let Some(frame) = read_frame(&mut stdin)? { + if conn.is_none() { + conn = connect(&caller).ok(); + } + let reply = match conn.as_mut().map(|c| relay(c, &frame)) { + Some(Ok(r)) => r, + Some(Err(_)) => { + conn = None; + unavailable.clone() + } + None => unavailable.clone(), + }; + write_frame(&mut stdout, &reply)?; + stdout.flush()?; } Ok(()) } diff --git a/src-tauri/src/broker.rs b/src-tauri/src/broker.rs new file mode 100644 index 0000000..5bed48b --- /dev/null +++ b/src-tauri/src/broker.rs @@ -0,0 +1,705 @@ +//! The app's side of the browser protocol: pairing, encrypted sessions and request handling. +//! +//! Outer frames (JSON, field `t`), relayed unchanged by `kestrove-nmh`: +//! +//! | extension → app | app → extension | +//! |---|---| +//! | `{t:"nmh_hello", caller}` (sent by the host itself) | `{t:"ok"}` | +//! | `{t:"ping"}` | `{t:"pong", version}` | +//! | `{t:"pair_init", pub, name}` | `{t:"pair_started", pairing_id, pub}` (app shows the words) | +//! | `{t:"pair_confirm", pairing_id, proof}` | `{t:"pair_waiting"}` / `{t:"pair_done"}` / error | +//! | `{t:"open", pairing_id, nonce}` | `{t:"opened", nonce}` / `{t:"error", code:"not_paired"}` | +//! | `{t:"msg", n, c}` | `{t:"msg", n, c}` / `{t:"error", code:"bad_session"}` | +//! +//! `msg` plaintexts are `{rid, body}` where `body` is a `NativeRequest` / `NativeResponse` from +//! kestrove-browser/src/protocol.ts. Origins come from the extension's `sender`, and are +//! re-checked here against the vault before any secret leaves the app. + +use std::io::{self, Read, Write}; +use std::path::PathBuf; +use std::sync::{Arc, Mutex, MutexGuard}; +use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; + +use base64::engine::general_purpose::STANDARD as B64; +use base64::Engine; +use kv_ffi::{CoreError, ItemDto, ItemKindDto, VaultCore}; +use serde::{Deserialize, Serialize}; +use serde_json::{json, Value}; +use zeroize::Zeroizing; + +use crate::channel::{random, verify_confirm, Ephemeral, Session}; +use crate::framing::{read_frame, write_json}; +use crate::private_file; + +/// How long a pairing request waits for the user in the app. +const PAIRING_TTL: Duration = Duration::from_secs(300); +/// How long a save prompt stays in the app. +const SAVE_TTL: Duration = Duration::from_secs(600); +const MAX_PENDING_SAVES: usize = 8; + +/// What the app UI must show. Implemented with Tauri events in the app, and auto-approving in tests. +pub trait Ui: Send + Sync { + fn pairing_requested(&self, req: &PairingView); + fn save_requested(&self, req: &SaveView); + /// A user-driven request (a fill) arrived: counts as activity for auto-lock. + fn activity(&self) {} +} + +#[derive(Debug, Clone, Serialize)] +pub struct PairingView { + pub id: String, + pub name: String, + pub caller: String, + pub words: Vec, +} + +#[derive(Debug, Clone, Serialize)] +pub struct SaveView { + pub id: String, + pub origin: String, + pub username: String, + /// Some item already has this username for this site: saving updates its password. + pub update: bool, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct StoredPairing { + pub id: String, + pub name: String, + pub caller: String, + pub words: Vec, + pub created_at: u64, + key: String, +} + +impl StoredPairing { + fn key(&self) -> Option> { + let raw = Zeroizing::new(B64.decode(&self.key).ok()?); + let arr: [u8; 32] = raw.as_slice().try_into().ok()?; + Some(Zeroizing::new(arr)) + } +} + +/// Persisted pairings (`pairings.json`, 0600). The pairing key only authenticates the +/// extension to the app; it can't decrypt the vault. Every secret still needs an unlocked vault. +pub struct PairingStore { + path: Option, + items: Mutex>, +} + +impl PairingStore { + pub fn in_memory() -> Self { + Self { path: None, items: Mutex::new(Vec::new()) } + } + + pub fn open(path: PathBuf) -> io::Result { + let items = match private_file::read(&path)? { + Some(b) => serde_json::from_slice(&b).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?, + None => Vec::new(), + }; + Ok(Self { path: Some(path), items: Mutex::new(items) }) + } + + fn guard(&self) -> MutexGuard<'_, Vec> { + self.items.lock().unwrap_or_else(|e| e.into_inner()) + } + + fn persist(&self, items: &[StoredPairing]) -> io::Result<()> { + match &self.path { + Some(path) => private_file::write(path, &serde_json::to_vec_pretty(items)?), + None => Ok(()), + } + } + + pub fn list(&self) -> Vec { + self.guard().clone() + } + + fn get(&self, id: &str) -> Option { + self.guard().iter().find(|p| p.id == id).cloned() + } + + fn add(&self, p: StoredPairing) -> io::Result<()> { + let mut items = self.guard(); + items.push(p); + self.persist(&items) + } + + pub fn remove(&self, id: &str) -> io::Result { + let mut items = self.guard(); + let before = items.len(); + items.retain(|p| p.id != id); + self.persist(&items)?; + Ok(items.len() != before) + } +} + +struct PendingPairing { + view: PairingView, + key: Zeroizing<[u8; 32]>, + at: Instant, +} + +struct PendingSave { + id: String, + origin: String, + username: String, + password: Zeroizing, + at: Instant, +} + +pub struct Broker { + core: Arc, + ui: Arc, + pairings: PairingStore, + pending_pairing: Mutex>, + saves: Mutex>, +} + +fn lock(m: &Mutex) -> MutexGuard<'_, T> { + m.lock().unwrap_or_else(|e| e.into_inner()) +} + +fn now_secs() -> u64 { + SystemTime::now().duration_since(UNIX_EPOCH).map(|d| d.as_secs()).unwrap_or(0) +} + +fn err(code: &str) -> Value { + json!({ "type": "error", "code": code }) +} + +fn core_err(e: &CoreError) -> Value { + match e { + CoreError::Locked | CoreError::NoAccount => err("locked"), + CoreError::NotFound => err("origin_mismatch"), + _ => err("internal"), + } +} + +fn b64_array(v: &Value) -> Option<[u8; N]> { + B64.decode(v.as_str()?).ok()?.try_into().ok() +} + +/// `scheme://host[:port]` for http(s) origins; anything else (paths, credentials, other schemes) is rejected. +pub fn normalize_origin(raw: &str) -> Option { + let u = url::Url::parse(raw).ok()?; + if !matches!(u.scheme(), "https" | "http") || u.host_str().is_none_or(str::is_empty) { + return None; + } + if !u.username().is_empty() || u.password().is_some() { + return None; + } + Some(u.origin().ascii_serialization()) +} + +/// Per-connection state. +pub struct Conn { + caller: String, + session: Option, +} + +impl Broker { + pub fn new(core: Arc, ui: Arc, pairings: PairingStore) -> Arc { + Arc::new(Self { core, ui, pairings, pending_pairing: Mutex::new(None), saves: Mutex::new(Vec::new()) }) + } + + pub fn core(&self) -> &Arc { + &self.core + } + + /// Serves one `kestrove-nmh` connection until it closes. Strict request → response. + pub fn serve(&self, mut io: impl Read + Write) -> io::Result<()> { + let mut conn = Conn { caller: String::new(), session: None }; + while let Some(frame) = read_frame(&mut io)? { + let reply = match serde_json::from_slice::(&frame) { + Ok(v) => self.handle_frame(&mut conn, &v), + Err(_) => json!({ "t": "error", "code": "bad_request" }), + }; + write_json(&mut io, &reply)?; + } + Ok(()) + } + + pub fn handle_frame(&self, conn: &mut Conn, v: &Value) -> Value { + let outer_err = |code: &str| json!({ "t": "error", "code": code }); + match v.get("t").and_then(Value::as_str) { + Some("nmh_hello") => { + conn.caller = v.get("caller").and_then(Value::as_str).unwrap_or("").chars().take(200).collect(); + json!({ "t": "ok" }) + } + Some("ping") => json!({ "t": "pong", "version": env!("CARGO_PKG_VERSION") }), + Some("pair_init") => { + let Some(ext_pub) = v.get("pub").and_then(b64_array::<32>) else { return outer_err("bad_request") }; + let name: String = v.get("name").and_then(Value::as_str).unwrap_or("Browser").chars().take(80).collect(); + self.pair_init(conn, &ext_pub, name).unwrap_or_else(|| outer_err("bad_request")) + } + Some("pair_confirm") => { + let (Some(id), Some(proof)) = ( + v.get("pairing_id").and_then(Value::as_str), + v.get("proof").and_then(Value::as_str).and_then(|p| B64.decode(p).ok()), + ) else { + return outer_err("bad_request"); + }; + self.pair_confirm(id, &proof) + } + Some("open") => { + let (Some(id), Some(ne)) = + (v.get("pairing_id").and_then(Value::as_str), v.get("nonce").and_then(b64_array::<16>)) + else { + return outer_err("bad_request"); + }; + let Some(key) = self.pairings.get(id).and_then(|p| p.key()) else { return outer_err("not_paired") }; + let na = random::<16>(); + conn.session = Some(Session::app(&key, &ne, &na)); + json!({ "t": "opened", "nonce": B64.encode(na) }) + } + Some("msg") => { + let Some(session) = conn.session.as_mut() else { return outer_err("bad_session") }; + let (Some(n), Some(c)) = ( + v.get("n").and_then(Value::as_u64), + v.get("c").and_then(Value::as_str).and_then(|c| B64.decode(c).ok()), + ) else { + return outer_err("bad_request"); + }; + let Ok(pt) = session.open(n, &c) else { + conn.session = None; // the extension re-opens a fresh session + return outer_err("bad_session"); + }; + let parsed: Option = serde_json::from_slice(&pt).ok(); + drop(pt); + let (rid, body) = match &parsed { + Some(p) => (p.get("rid").cloned().unwrap_or(Value::Null), p.get("body").cloned().unwrap_or(Value::Null)), + None => (Value::Null, Value::Null), + }; + let reply = Zeroizing::new( + serde_json::to_vec(&json!({ "rid": rid, "body": self.handle_request(&body) })).unwrap_or_default(), + ); + let session = conn.session.as_mut().expect("session still open"); + let (n, c) = session.seal(&reply); + json!({ "t": "msg", "n": n, "c": B64.encode(c) }) + } + _ => outer_err("unknown_type"), + } + } + + // ------------------------------------------------------------ pairing + + fn pair_init(&self, conn: &Conn, ext_pub: &[u8; 32], name: String) -> Option { + let eph = Ephemeral::generate(); + let p = eph.pair(ext_pub)?; + let view = PairingView { + id: uuid::Uuid::new_v4().to_string(), + name, + caller: conn.caller.clone(), + words: p.words.iter().map(|w| w.to_string()).collect(), + }; + let reply = json!({ "t": "pair_started", "pairing_id": view.id, "pub": B64.encode(eph.public) }); + self.ui.pairing_requested(&view); + // One pending request at a time; a new one replaces the old (and its words). + *lock(&self.pending_pairing) = Some(PendingPairing { view, key: p.key, at: Instant::now() }); + Some(reply) + } + + fn pair_confirm(&self, id: &str, proof: &[u8]) -> Value { + if let Some(key) = self.pairings.get(id).and_then(|p| p.key()) { + return if verify_confirm(&key, id, proof) { + json!({ "t": "pair_done" }) + } else { + json!({ "t": "error", "code": "not_paired" }) + }; + } + match lock(&self.pending_pairing).as_ref() { + Some(p) if p.view.id == id && p.at.elapsed() < PAIRING_TTL && verify_confirm(&p.key, id, proof) => { + json!({ "t": "pair_waiting" }) + } + _ => json!({ "t": "error", "code": "not_paired" }), + } + } + + pub fn pending_pairing(&self) -> Option { + let mut g = lock(&self.pending_pairing); + if g.as_ref().is_some_and(|p| p.at.elapsed() >= PAIRING_TTL) { + *g = None; + } + g.as_ref().map(|p| p.view.clone()) + } + + /// The user compared the words and accepted (or rejected) the pairing. Requires an unlocked + /// vault, so someone at a locked machine can't pair a new extension. + pub fn resolve_pairing(&self, id: &str, accept: bool) -> Result<(), String> { + let mut g = lock(&self.pending_pairing); + let Some(p) = g.take_if(|p| p.view.id == id) else { return Err("This pairing request expired.".into()) }; + if !accept { + return Ok(()); + } + if self.core.is_locked() { + *g = Some(p); + return Err("Unlock Kestrove to pair a browser.".into()); + } + if p.at.elapsed() >= PAIRING_TTL { + return Err("This pairing request expired.".into()); + } + self.pairings + .add(StoredPairing { + id: p.view.id, + name: p.view.name, + caller: p.view.caller, + words: p.view.words, + created_at: now_secs(), + key: B64.encode(p.key.as_ref()), + }) + .map_err(|e| format!("Could not save the pairing: {e}")) + } + + pub fn pairings(&self) -> Vec { + self.pairings.list() + } + + pub fn revoke_pairing(&self, id: &str) -> Result<(), String> { + self.pairings.remove(id).map(|_| ()).map_err(|e| e.to_string()) + } + + // ------------------------------------------------------------ requests + + pub fn handle_request(&self, body: &Value) -> Value { + let Some(kind) = body.get("type").and_then(Value::as_str) else { return err("bad_request") }; + if kind == "hello" { + return json!({ "type": "hello", "version": env!("CARGO_PKG_VERSION"), "paired": true }); + } + let Some(origin) = body.get("origin").and_then(Value::as_str).and_then(normalize_origin) else { + return err("bad_request"); + }; + let item_id = || body.get("itemId").and_then(Value::as_str).filter(|s| !s.is_empty()); + match kind { + "query" => match self.core.items_for_url(origin) { + Ok(items) => json!({ + "type": "identities", + "items": items.iter().map(|i| json!({ + "id": i.id, "title": i.title, "username": i.username.clone().unwrap_or_default(), "totp": i.has_totp, + })).collect::>(), + }), + Err(e) => core_err(&e), + }, + "fill" => { + let Some(id) = item_id() else { return err("bad_request") }; + self.ui.activity(); + match self.matching_item(&origin, id) { + Ok(d) => json!({ + "type": "credential", + "username": d.username.clone().unwrap_or_default(), + "password": d.password.clone().unwrap_or_default(), + }), + Err(v) => v, + } + } + "totp" => { + let Some(id) = item_id() else { return err("bad_request") }; + self.ui.activity(); + match self.matching_item(&origin, id) { + Ok(d) => match d.totp.as_deref().map(|t| kv_ffi::totp_code(t.to_string(), now_secs())) { + Some(Ok(c)) => json!({ "type": "totp", "code": c.code, "secondsRemaining": c.seconds_remaining }), + _ => err("bad_request"), + }, + Err(v) => v, + } + } + "save" => { + let username = body.get("username").and_then(Value::as_str).unwrap_or(""); + let Some(password) = body.get("password").and_then(Value::as_str).filter(|p| !p.is_empty()) else { + return err("bad_request"); + }; + if username.chars().count() > 512 || password.chars().count() > 4096 { + return err("bad_request"); + } + self.queue_save(origin, username.to_string(), Zeroizing::new(password.to_string())) + } + _ => err("unknown_type"), + } + } + + /// The item, if (and only if) it matches the requesting origin. The id alone is never enough. + fn matching_item(&self, origin: &str, id: &str) -> Result { + let candidates = self.core.items_for_url(origin.to_string()).map_err(|e| core_err(&e))?; + if !candidates.iter().any(|i| i.id == id) { + return Err(err("origin_mismatch")); + } + self.core.get_item(id.to_string()).map_err(|e| core_err(&e)) + } + + /// The existing login on this origin with this username, if the vault is unlocked. + fn existing(&self, origin: &str, username: &str) -> Option { + let items = self.core.items_for_url(origin.to_string()).ok()?; + let s = items.into_iter().find(|i| i.username.as_deref().unwrap_or("") == username)?; + self.core.get_item(s.id).ok() + } + + fn queue_save(&self, origin: String, username: String, password: Zeroizing) -> Value { + if let Some(e) = self.existing(&origin, &username) { + if e.password.as_deref() == Some(password.as_str()) { + return json!({ "type": "saved" }); // already up to date: no prompt + } + } + let save = PendingSave { id: uuid::Uuid::new_v4().to_string(), origin, username, password, at: Instant::now() }; + let view = self.save_view(&save); + { + let mut q = lock(&self.saves); + q.retain(|s| s.at.elapsed() < SAVE_TTL && !(s.origin == save.origin && s.username == save.username)); + if q.len() >= MAX_PENDING_SAVES { + q.remove(0); + } + q.push(save); + } + self.ui.save_requested(&view); + json!({ "type": "save_prompted" }) + } + + fn save_view(&self, s: &PendingSave) -> SaveView { + SaveView { + id: s.id.clone(), + origin: s.origin.clone(), + username: s.username.clone(), + update: self.existing(&s.origin, &s.username).is_some(), + } + } + + pub fn pending_saves(&self) -> Vec { + let mut q = lock(&self.saves); + q.retain(|s| s.at.elapsed() < SAVE_TTL); + let pending: Vec<_> = q.iter().map(|s| (s.id.clone(), s.origin.clone(), s.username.clone())).collect(); + drop(q); + pending + .into_iter() + .map(|(id, origin, username)| SaveView { + update: self.existing(&origin, &username).is_some(), + id, + origin, + username, + }) + .collect() + } + + /// The user answered a save prompt in the app. Returns the saved item id. + pub fn resolve_save(&self, id: &str, accept: bool) -> Result, String> { + let s = { + let mut q = lock(&self.saves); + let Some(pos) = q.iter().position(|s| s.id == id) else { return Err("This save request expired.".into()) }; + if accept && self.core.is_locked() { + return Err("Unlock Kestrove to save.".into()); + } + q.remove(pos) + }; + if !accept { + return Ok(None); + } + let item = match self.existing(&s.origin, &s.username) { + Some(mut e) => { + e.password = Some(s.password.to_string()); + e + } + None => ItemDto { + id: String::new(), + kind: ItemKindDto::Login, + title: url::Url::parse(&s.origin) + .ok() + .and_then(|u| u.host_str().map(|h| h.trim_start_matches("www.").to_string())) + .unwrap_or_else(|| s.origin.clone()), + username: (!s.username.is_empty()).then(|| s.username.clone()), + password: Some(s.password.to_string()), + urls: vec![s.origin.clone()], + totp: None, + notes: None, + favorite: false, + tags: vec![], + modified_at: 0, + }, + }; + self.core.save_item(item).map(Some).map_err(|e| e.to_string()) + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::channel::{make_confirm, Session as Sess}; + + struct AutoUi; + impl Ui for AutoUi { + fn pairing_requested(&self, _: &PairingView) {} + fn save_requested(&self, _: &SaveView) {} + } + + fn broker_with_item() -> (Arc, String) { + let core = VaultCore::new_in_memory(); + core.create_account("correct horse battery".into()).unwrap(); + let id = core + .save_item(ItemDto { + id: String::new(), + kind: ItemKindDto::Login, + title: "Example".into(), + username: Some("alice".into()), + password: Some("s3cret".into()), + urls: vec!["https://example.com".into()], + totp: Some("JBSWY3DPEHPK3PXP".into()), + notes: None, + favorite: false, + tags: vec![], + modified_at: 0, + }) + .unwrap(); + (Broker::new(core, Arc::new(AutoUi), PairingStore::in_memory()), id) + } + + /// Plays the extension: pairs, has the "user" approve in the app, opens a session. + fn pair_and_open(b: &Broker, conn: &mut Conn) -> Sess { + let ext = Ephemeral::generate(); + let r = b.handle_frame(conn, &json!({ "t": "pair_init", "pub": B64.encode(ext.public), "name": "Test" })); + assert_eq!(r["t"], "pair_started"); + let id = r["pairing_id"].as_str().unwrap().to_string(); + let app_pub: [u8; 32] = B64.decode(r["pub"].as_str().unwrap()).unwrap().try_into().unwrap(); + let shared_ext = ext.pair_as_ext(&app_pub).unwrap(); + assert_eq!(shared_ext.words.to_vec(), b.pending_pairing().unwrap().words); + let proof = B64.encode(make_confirm(&shared_ext.key, &id)); + let r = b.handle_frame(conn, &json!({ "t": "pair_confirm", "pairing_id": id, "proof": proof })); + assert_eq!(r["t"], "pair_waiting"); + b.resolve_pairing(&id, true).unwrap(); + let r = b.handle_frame(conn, &json!({ "t": "pair_confirm", "pairing_id": id, "proof": proof })); + assert_eq!(r["t"], "pair_done"); + + let ne = random::<16>(); + let r = b.handle_frame(conn, &json!({ "t": "open", "pairing_id": id, "nonce": B64.encode(ne) })); + assert_eq!(r["t"], "opened"); + let na: [u8; 16] = B64.decode(r["nonce"].as_str().unwrap()).unwrap().try_into().unwrap(); + Sess::ext(&shared_ext.key, &ne, &na) + } + + fn call(b: &Broker, conn: &mut Conn, s: &mut Sess, body: Value) -> Value { + let (n, c) = s.seal(&serde_json::to_vec(&json!({ "rid": 7, "body": body })).unwrap()); + let r = b.handle_frame(conn, &json!({ "t": "msg", "n": n, "c": B64.encode(c) })); + assert_eq!(r["t"], "msg", "{r}"); + let pt = s.open(r["n"].as_u64().unwrap(), &B64.decode(r["c"].as_str().unwrap()).unwrap()).unwrap(); + let v: Value = serde_json::from_slice(&pt).unwrap(); + assert_eq!(v["rid"], 7); + v["body"].clone() + } + + #[test] + fn pair_query_fill_and_origin_checks() { + let (b, id) = broker_with_item(); + let mut conn = Conn { caller: String::new(), session: None }; + let mut s = pair_and_open(&b, &mut conn); + + let r = call(&b, &mut conn, &mut s, json!({ "type": "query", "origin": "https://example.com" })); + assert_eq!(r["items"][0]["username"], "alice"); + assert!(r["items"][0].get("password").is_none()); + let r = call(&b, &mut conn, &mut s, json!({ "type": "fill", "origin": "https://example.com", "itemId": id })); + assert_eq!(r, json!({ "type": "credential", "username": "alice", "password": "s3cret" })); + let r = call(&b, &mut conn, &mut s, json!({ "type": "fill", "origin": "https://evil.test", "itemId": id })); + assert_eq!(r["code"], "origin_mismatch"); + let r = call(&b, &mut conn, &mut s, json!({ "type": "fill", "origin": "javascript:alert(1)", "itemId": id })); + assert_eq!(r["code"], "bad_request"); + let r = call(&b, &mut conn, &mut s, json!({ "type": "totp", "origin": "https://example.com", "itemId": id })); + assert_eq!(r["type"], "totp"); + assert_eq!(r["code"].as_str().unwrap().len(), 6); + + b.core().lock(); + let r = call(&b, &mut conn, &mut s, json!({ "type": "fill", "origin": "https://example.com", "itemId": id })); + assert_eq!(r["code"], "locked"); + } + + #[test] + fn replayed_frame_kills_the_session() { + let (b, _) = broker_with_item(); + let mut conn = Conn { caller: String::new(), session: None }; + let mut s = pair_and_open(&b, &mut conn); + let (n, c) = s.seal(br#"{"rid":1,"body":{"type":"hello","version":"1"}}"#); + let frame = json!({ "t": "msg", "n": n, "c": B64.encode(c) }); + assert_eq!(b.handle_frame(&mut conn, &frame)["t"], "msg"); + assert_eq!(b.handle_frame(&mut conn, &frame)["code"], "bad_session"); + assert_eq!(b.handle_frame(&mut conn, &frame)["code"], "bad_session"); + } + + #[test] + fn unpaired_and_revoked_extensions_are_refused() { + let (b, _) = broker_with_item(); + let mut conn = Conn { caller: String::new(), session: None }; + let r = b.handle_frame(&mut conn, &json!({ "t": "open", "pairing_id": "nope", "nonce": B64.encode([0u8; 16]) })); + assert_eq!(r["code"], "not_paired"); + let r = b.handle_frame(&mut conn, &json!({ "t": "msg", "n": 0, "c": "AAAA" })); + assert_eq!(r["code"], "bad_session"); + + let _ = pair_and_open(&b, &mut conn); + let id = b.pairings()[0].id.clone(); + b.revoke_pairing(&id).unwrap(); + let r = b.handle_frame(&mut conn, &json!({ "t": "open", "pairing_id": id, "nonce": B64.encode([0u8; 16]) })); + assert_eq!(r["code"], "not_paired"); + } + + #[test] + fn pairing_needs_unlock_and_rejects_bad_proof() { + let (b, _) = broker_with_item(); + let mut conn = Conn { caller: String::new(), session: None }; + let ext = Ephemeral::generate(); + let r = b.handle_frame(&mut conn, &json!({ "t": "pair_init", "pub": B64.encode(ext.public) })); + let id = r["pairing_id"].as_str().unwrap().to_string(); + let r = b.handle_frame(&mut conn, &json!({ "t": "pair_confirm", "pairing_id": id, "proof": B64.encode([0u8; 40]) })); + assert_eq!(r["code"], "not_paired"); + b.core().lock(); + assert!(b.resolve_pairing(&id, true).is_err()); + assert!(b.pending_pairing().is_some(), "still pending after a locked attempt"); + assert!(b.pairings().is_empty()); + } + + #[test] + fn save_prompts_then_creates_or_updates() { + let (b, id) = broker_with_item(); + let r = b.handle_request(&json!({ "type": "save", "origin": "https://example.com", "username": "alice", "password": "s3cret" })); + assert_eq!(r["type"], "saved"); // identical: nothing to ask + let r = b.handle_request(&json!({ "type": "save", "origin": "https://example.com/login", "username": "alice", "password": "new" })); + assert_eq!(r["type"], "save_prompted"); + let views = b.pending_saves(); + assert_eq!((views.len(), views[0].update, views[0].origin.as_str()), (1, true, "https://example.com")); + assert_eq!(b.resolve_save(&views[0].id, true).unwrap().as_deref(), Some(id.as_str())); + assert_eq!(b.core().get_item(id).unwrap().password.as_deref(), Some("new")); + + b.handle_request(&json!({ "type": "save", "origin": "https://new.example.org", "username": "bob", "password": "pw" })); + let v = b.pending_saves().pop().unwrap(); + assert!(!v.update); + let new_id = b.resolve_save(&v.id, true).unwrap().unwrap(); + let d = b.core().get_item(new_id).unwrap(); + assert_eq!((d.title.as_str(), d.urls[0].as_str()), ("new.example.org", "https://new.example.org")); + assert!(b.pending_saves().is_empty()); + } + + #[test] + fn normalizes_origins() { + assert_eq!(normalize_origin("https://Example.com:443/x?y").as_deref(), Some("https://example.com")); + assert_eq!(normalize_origin("http://localhost:8080").as_deref(), Some("http://localhost:8080")); + assert_eq!(normalize_origin("https://u:p@example.com"), None); + assert_eq!(normalize_origin("file:///etc/passwd"), None); + assert_eq!(normalize_origin("chrome-extension://abc/"), None); + } + + #[test] + fn pairing_store_persists_with_private_mode() { + let dir = tempfile::tempdir().unwrap(); + let path = dir.path().join("pairings.json"); + let s = PairingStore::open(path.clone()).unwrap(); + s.add(StoredPairing { + id: "a".into(), + name: "n".into(), + caller: String::new(), + words: vec![], + created_at: 1, + key: B64.encode([1u8; 32]), + }) + .unwrap(); + assert_eq!(PairingStore::open(path.clone()).unwrap().list().len(), 1); + #[cfg(unix)] + { + use std::os::unix::fs::PermissionsExt; + assert_eq!(std::fs::metadata(&path).unwrap().permissions().mode() & 0o777, 0o600); + } + assert!(s.remove("a").unwrap()); + assert!(PairingStore::open(path).unwrap().list().is_empty()); + } +} diff --git a/src-tauri/src/channel.rs b/src-tauri/src/channel.rs new file mode 100644 index 0000000..da56ad0 --- /dev/null +++ b/src-tauri/src/channel.rs @@ -0,0 +1,251 @@ +//! Pairing channel between the browser extension and the app (docs/05 "Pairing", threat A8). +//! +//! The same construction is implemented with WebCrypto in kestrove-browser/src/channel.ts; +//! the test vectors below are asserted on both sides. +//! +//! 1. **Pair.** Both sides generate an X25519 key. With `ss = X25519(ext, app)` and +//! `salt = SHA-256("kestrove/v1/pair" || ext_pub || app_pub)`: +//! `pairing_key = HKDF-SHA256(ss, salt, "kestrove/v1/pair/key", 32)` and +//! `fingerprint = HKDF-SHA256(ss, salt, "kestrove/v1/pair/fingerprint", 6)`, shown as 6 words +//! in both UIs. The user confirms they match in the app (which is what makes the pairing +//! trusted) and in the extension. A man in the middle would have to win a 2^-48 collision. +//! 2. **Session.** Per connection, each side sends a random 16-byte nonce and +//! `session_key = HKDF-SHA256(pairing_key, nonce_ext || nonce_app, "kestrove/v1/session", 32)`. +//! Fresh nonces on both sides mean a recorded session can't be replayed in a new one. +//! 3. **Messages.** AES-256-GCM, nonce `dir || 0x000000 || counter_be64`, AAD `"kestrove/v1/msg"`. +//! `dir` is 1 for extension → app and 2 for app → extension (no reflection). Each side expects +//! the exact next counter, so replays, drops and reordering within a session all fail. + +use aes_gcm::aead::{Aead, KeyInit, Payload}; +use aes_gcm::{Aes256Gcm, Key, Nonce}; +use hkdf::Hkdf; +use sha2::{Digest, Sha256}; +use x25519_dalek::{PublicKey, StaticSecret}; +use zeroize::Zeroizing; + +use crate::words::WORDS; + +pub const DIR_EXT_TO_APP: u8 = 1; +pub const DIR_APP_TO_EXT: u8 = 2; +const DIR_CONFIRM: u8 = 3; +const MSG_AAD: &[u8] = b"kestrove/v1/msg"; +const CONFIRM_AAD: &[u8] = b"kestrove/v1/pair/confirm"; + +#[derive(Debug, PartialEq, Eq)] +pub struct CryptoFailure; + +pub fn random() -> [u8; N] { + let mut b = [0u8; N]; + getrandom::getrandom(&mut b).expect("OS RNG unavailable"); + b +} + +/// The app's half of a pairing handshake. +pub struct Ephemeral { + secret: StaticSecret, + pub public: [u8; 32], +} + +impl Ephemeral { + pub fn generate() -> Self { + Self::from_secret(random()) + } + + pub fn from_secret(bytes: [u8; 32]) -> Self { + let secret = StaticSecret::from(bytes); + let public = PublicKey::from(&secret).to_bytes(); + Self { secret, public } + } + + /// The app's derivation of the pairing key and words. `None` for a low-order peer key. + pub fn pair(&self, ext_pub: &[u8; 32]) -> Option { + let ss = self.secret.diffie_hellman(&PublicKey::from(*ext_pub)); + ss.was_contributory().then(|| Pairing::derive(ss.as_bytes(), ext_pub, &self.public)) + } + + /// The extension's derivation (used by tests that play the extension). + pub fn pair_as_ext(&self, app_pub: &[u8; 32]) -> Option { + let ss = self.secret.diffie_hellman(&PublicKey::from(*app_pub)); + ss.was_contributory().then(|| Pairing::derive(ss.as_bytes(), &self.public, app_pub)) + } +} + +pub struct Pairing { + pub key: Zeroizing<[u8; 32]>, + pub words: [&'static str; 6], +} + +impl Pairing { + pub fn derive(shared: &[u8; 32], ext_pub: &[u8; 32], app_pub: &[u8; 32]) -> Self { + let salt = Sha256::new() + .chain_update(b"kestrove/v1/pair") + .chain_update(ext_pub) + .chain_update(app_pub) + .finalize(); + let hk = Hkdf::::new(Some(&salt), shared); + let mut key = Zeroizing::new([0u8; 32]); + hk.expand(b"kestrove/v1/pair/key", key.as_mut()).expect("32 bytes is a valid HKDF length"); + let mut fp = [0u8; 6]; + hk.expand(b"kestrove/v1/pair/fingerprint", &mut fp).expect("6 bytes is a valid HKDF length"); + Self { key, words: fp.map(|b| WORDS[b as usize]) } + } +} + +fn cipher(key: &[u8; 32]) -> Aes256Gcm { + Aes256Gcm::new(Key::::from_slice(key)) +} + +fn nonce(dir: u8, n: u64) -> [u8; 12] { + let mut out = [0u8; 12]; + out[0] = dir; + out[4..].copy_from_slice(&n.to_be_bytes()); + out +} + +/// Checks the extension's proof that it derived the same pairing key: AES-GCM of the pairing id. +pub fn verify_confirm(pairing_key: &[u8; 32], pairing_id: &str, proof: &[u8]) -> bool { + cipher(pairing_key) + .decrypt(Nonce::from_slice(&nonce(DIR_CONFIRM, 0)), Payload { msg: proof, aad: CONFIRM_AAD }) + .is_ok_and(|pt| pt == pairing_id.as_bytes()) +} + +/// The extension's proof (tests play the extension). +pub fn make_confirm(pairing_key: &[u8; 32], pairing_id: &str) -> Vec { + cipher(pairing_key) + .encrypt(Nonce::from_slice(&nonce(DIR_CONFIRM, 0)), Payload { msg: pairing_id.as_bytes(), aad: CONFIRM_AAD }) + .expect("AES-GCM encryption cannot fail for small inputs") +} + +/// One encrypted session over one connection. +pub struct Session { + cipher: Aes256Gcm, + send_dir: u8, + recv_dir: u8, + send_n: u64, + recv_n: u64, +} + +impl Session { + pub fn key(pairing_key: &[u8; 32], nonce_ext: &[u8; 16], nonce_app: &[u8; 16]) -> Zeroizing<[u8; 32]> { + let mut salt = [0u8; 32]; + salt[..16].copy_from_slice(nonce_ext); + salt[16..].copy_from_slice(nonce_app); + let mut key = Zeroizing::new([0u8; 32]); + Hkdf::::new(Some(&salt), pairing_key) + .expand(b"kestrove/v1/session", key.as_mut()) + .expect("32 bytes is a valid HKDF length"); + key + } + + /// The app's end: receives extension → app, sends app → extension. + pub fn app(pairing_key: &[u8; 32], nonce_ext: &[u8; 16], nonce_app: &[u8; 16]) -> Self { + Self::new(&Self::key(pairing_key, nonce_ext, nonce_app), DIR_APP_TO_EXT, DIR_EXT_TO_APP) + } + + /// The extension's end (tests stand in for the extension). + pub fn ext(pairing_key: &[u8; 32], nonce_ext: &[u8; 16], nonce_app: &[u8; 16]) -> Self { + Self::new(&Self::key(pairing_key, nonce_ext, nonce_app), DIR_EXT_TO_APP, DIR_APP_TO_EXT) + } + + fn new(key: &[u8; 32], send_dir: u8, recv_dir: u8) -> Self { + Self { cipher: cipher(key), send_dir, recv_dir, send_n: 0, recv_n: 0 } + } + + pub fn seal(&mut self, plaintext: &[u8]) -> (u64, Vec) { + let n = self.send_n; + self.send_n += 1; + let ct = self + .cipher + .encrypt(Nonce::from_slice(&nonce(self.send_dir, n)), Payload { msg: plaintext, aad: MSG_AAD }) + .expect("AES-GCM encryption cannot fail for small inputs"); + (n, ct) + } + + /// Opens the next message. Anything but the exact next counter is rejected (replay, reorder). + pub fn open(&mut self, n: u64, ciphertext: &[u8]) -> Result>, CryptoFailure> { + if n != self.recv_n { + return Err(CryptoFailure); + } + let pt = self + .cipher + .decrypt(Nonce::from_slice(&nonce(self.recv_dir, n)), Payload { msg: ciphertext, aad: MSG_AAD }) + .map_err(|_| CryptoFailure)?; + self.recv_n += 1; + Ok(Zeroizing::new(pt)) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn hex(b: &[u8]) -> String { + b.iter().map(|x| format!("{x:02x}")).collect() + } + + /// Fixed vectors, also asserted in kestrove-browser/test/channel.test.ts. + #[test] + fn vectors() { + let ext = Ephemeral::from_secret([1u8; 32]); + let app = Ephemeral::from_secret([2u8; 32]); + assert_eq!(hex(&ext.public), "a4e09292b651c278b9772c569f5fa9bb13d906b46ab68c9df9dc2b4409f8a209"); + assert_eq!(hex(&app.public), "ce8d3ad1ccb633ec7b70c17814a5c76ecd029685050d344745ba05870e587d59"); + let p = app.pair(&ext.public).unwrap(); + let q = ext.pair_as_ext(&app.public).unwrap(); + assert_eq!((p.words, p.key.as_ref()), (q.words, q.key.as_ref())); + let fp = p.words.join(" "); + let key = hex(p.key.as_ref()); + assert_eq!(fp, VECTOR_WORDS); + assert_eq!(key, VECTOR_KEY); + + let mut s = Session::ext(&p.key, &[3u8; 16], &[4u8; 16]); + let (n, ct) = s.seal(br#"{"rid":0}"#); + assert_eq!(n, 0); + assert_eq!(hex(&ct), VECTOR_CT0); + assert_eq!(hex(&make_confirm(&p.key, "pid")), VECTOR_CONFIRM); + } + + const VECTOR_WORDS: &str = "cargo bucket blade cricket bamboo radar"; + const VECTOR_KEY: &str = "7dd958e1408eb2e772ed71c44763a05c7df77f6c7a6620d2e7e9049ec4573ae7"; + const VECTOR_CT0: &str = "f4204547c03bc11c2c0f1969ebcfd68985571ff7e10f7a6bd6"; + const VECTOR_CONFIRM: &str = "42eea959ea11c1e5aadcbcd3118c2f5878bab1"; + + #[test] + fn session_rejects_replay_reorder_and_reflection() { + let key = [9u8; 32]; + let (ne, na) = ([1u8; 16], [2u8; 16]); + let mut ext = Session::ext(&key, &ne, &na); + let mut app = Session::app(&key, &ne, &na); + + let (n0, c0) = ext.seal(b"one"); + let (n1, c1) = ext.seal(b"two"); + assert_eq!(app.open(n1, &c1), Err(CryptoFailure)); // out of order + assert_eq!(app.open(n0, &c0).unwrap().as_slice(), b"one"); + assert_eq!(app.open(n0, &c0), Err(CryptoFailure)); // replay + assert_eq!(app.open(n1, &c1).unwrap().as_slice(), b"two"); + + // An app → ext message can't be reflected back to the app. + let (rn, rc) = app.seal(b"reply"); + let mut app2 = Session::app(&key, &ne, &na); + assert_eq!(app2.open(rn, &rc), Err(CryptoFailure)); + assert_eq!(ext.open(rn, &rc).unwrap().as_slice(), b"reply"); + + // A different session (new app nonce) can't open old traffic. + let mut other = Session::app(&key, &ne, &[5u8; 16]); + assert_eq!(other.open(n0, &c0), Err(CryptoFailure)); + } + + #[test] + fn confirm_proof_binds_key_and_id() { + let key = [7u8; 32]; + let proof = make_confirm(&key, "abc"); + assert!(verify_confirm(&key, "abc", &proof)); + assert!(!verify_confirm(&key, "abd", &proof)); + assert!(!verify_confirm(&[8u8; 32], "abc", &proof)); + } + + #[test] + fn rejects_low_order_point() { + assert!(Ephemeral::generate().pair(&[0u8; 32]).is_none()); + } +} diff --git a/src-tauri/src/framing.rs b/src-tauri/src/framing.rs new file mode 100644 index 0000000..8919638 --- /dev/null +++ b/src-tauri/src/framing.rs @@ -0,0 +1,68 @@ +//! Length-prefixed JSON frames, the native-messaging wire format (a u32 length in native byte +//! order, then UTF-8 JSON). The same framing is used on the local IPC channel between +//! `kestrove-nmh` and the app, so the host can relay frames without parsing them. + +use std::io::{self, Read, Write}; + +use serde_json::Value; + +/// Chrome caps host → browser messages at 1 MiB; browser → host at 4 GiB, but we never need more than this. +pub const MAX_FRAME: usize = 1024 * 1024; + +/// Reads one raw frame. `Ok(None)` on a clean EOF before the length prefix. +pub fn read_frame(r: &mut impl Read) -> io::Result>> { + let mut len = [0u8; 4]; + match r.read_exact(&mut len) { + Ok(()) => {} + Err(e) if e.kind() == io::ErrorKind::UnexpectedEof => return Ok(None), + Err(e) => return Err(e), + } + let len = u32::from_ne_bytes(len) as usize; + if len > MAX_FRAME { + return Err(io::Error::new(io::ErrorKind::InvalidData, "frame too large")); + } + let mut buf = vec![0u8; len]; + r.read_exact(&mut buf)?; + Ok(Some(buf)) +} + +pub fn write_frame(w: &mut impl Write, bytes: &[u8]) -> io::Result<()> { + if bytes.len() > MAX_FRAME { + return Err(io::Error::new(io::ErrorKind::InvalidData, "frame too large")); + } + w.write_all(&(bytes.len() as u32).to_ne_bytes())?; + w.write_all(bytes)?; + w.flush() +} + +pub fn read_json(r: &mut impl Read) -> io::Result> { + match read_frame(r)? { + Some(b) => serde_json::from_slice(&b).map(Some).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e)), + None => Ok(None), + } +} + +pub fn write_json(w: &mut impl Write, v: &Value) -> io::Result<()> { + write_frame(w, &serde_json::to_vec(v)?) +} + +#[cfg(test)] +mod tests { + use super::*; + use serde_json::json; + + #[test] + fn round_trip_and_eof() { + let mut buf = Vec::new(); + write_json(&mut buf, &json!({"t": "ping"})).unwrap(); + let mut r = buf.as_slice(); + assert_eq!(read_json(&mut r).unwrap(), Some(json!({"t": "ping"}))); + assert_eq!(read_json(&mut r).unwrap(), None); + } + + #[test] + fn rejects_oversized_length() { + let bytes = ((MAX_FRAME + 1) as u32).to_ne_bytes(); + assert!(read_frame(&mut bytes.as_slice()).is_err()); + } +} diff --git a/src-tauri/src/ipc.rs b/src-tauri/src/ipc.rs new file mode 100644 index 0000000..4320f87 --- /dev/null +++ b/src-tauri/src/ipc.rs @@ -0,0 +1,450 @@ +//! Local IPC between `kestrove-nmh` (started by the browser) and the running app. +//! +//! * Unix: a socket in a 0700 per-user directory, socket mode 0600, and a peer-credential check +//! on both ends (`SO_PEERCRED` on Linux, `getpeereid` on macOS/BSD). Linux uses +//! `$XDG_RUNTIME_DIR/kestrove/nmh.sock`; macOS uses the per-user temp dir from +//! `confstr(_CS_DARWIN_USER_TEMP_DIR)`. +//! * Windows: the named pipe `\\.\pipe\kestrove-nmh-`, created first-instance-only (no +//! squatting), local clients only, with a DACL for the current user, plus a client token check. +//! +//! The channel carries only already-encrypted pairing frames (see `channel`), so this layer keeps +//! other users and remote machines out; the pairing key keeps other same-user processes out. +//! Traffic is strictly request → response: no concurrent read and write on one connection +//! (synchronous Windows pipe handles serialize I/O, so that would deadlock). + +use std::io::{self, Read, Write}; +use std::path::PathBuf; + +/// Overrides the IPC directory (Unix) or pipe name suffix (Windows). Tests use it to run an +/// isolated app; the browser passes its environment through to the host, so a browser started +/// with it set reaches that app. +pub const ENV_IPC_DIR: &str = "KESTROVE_IPC_DIR"; + +pub use imp::{connect, Conn, Listener}; + +/// Where the socket lives (Unix) or a display string for the pipe (Windows). +pub fn endpoint() -> io::Result { + imp::endpoint() +} + +impl Read for Conn { + fn read(&mut self, buf: &mut [u8]) -> io::Result { + self.0.read(buf) + } +} + +impl Write for Conn { + fn write(&mut self, buf: &[u8]) -> io::Result { + self.0.write(buf) + } + fn flush(&mut self) -> io::Result<()> { + self.0.flush() + } +} + +#[cfg(unix)] +mod imp { + use std::fs; + use std::io; + use std::os::unix::fs::{DirBuilderExt, MetadataExt, PermissionsExt}; + use std::os::unix::io::AsRawFd; + use std::os::unix::net::{UnixListener, UnixStream}; + use std::path::PathBuf; + use std::time::Duration; + + use super::ENV_IPC_DIR; + + pub struct Conn(pub(super) UnixStream); + + pub struct Listener { + inner: UnixListener, + path: PathBuf, + } + + fn uid() -> u32 { + // SAFETY: geteuid has no preconditions and cannot fail. + unsafe { libc::geteuid() } + } + + fn base_dir() -> io::Result { + if let Some(d) = std::env::var_os(ENV_IPC_DIR).filter(|d| !d.is_empty()) { + return Ok(PathBuf::from(d)); + } + platform_dir() + } + + #[cfg(target_os = "macos")] + fn platform_dir() -> io::Result { + use std::ffi::{CStr, OsStr}; + use std::os::unix::ffi::OsStrExt; + let mut buf = vec![0u8; 1024]; + // SAFETY: buf is valid for buf.len() bytes; confstr NUL-terminates within that length. + let n = unsafe { libc::confstr(libc::_CS_DARWIN_USER_TEMP_DIR, buf.as_mut_ptr().cast(), buf.len()) }; + if n == 0 || n > buf.len() { + return Err(io::Error::last_os_error()); + } + let s = CStr::from_bytes_until_nul(&buf).map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?; + Ok(PathBuf::from(OsStr::from_bytes(s.to_bytes())).join("kestrove")) + } + + #[cfg(not(target_os = "macos"))] + fn platform_dir() -> io::Result { + match std::env::var_os("XDG_RUNTIME_DIR").map(PathBuf::from) { + Some(d) if d.is_absolute() => Ok(d.join("kestrove")), + // No runtime dir (e.g. no systemd session): a per-uid dir in /tmp, ownership checked in secure_dir. + _ => Ok(PathBuf::from(format!("/tmp/kestrove-{}", uid()))), + } + } + + pub fn endpoint() -> io::Result { + Ok(base_dir()?.join("nmh.sock")) + } + + /// Creates the directory 0700, or checks that an existing one is ours and not group/world accessible. + fn secure_dir(dir: &std::path::Path) -> io::Result<()> { + match fs::DirBuilder::new().recursive(true).mode(0o700).create(dir) { + Ok(()) => {} + Err(e) if e.kind() == io::ErrorKind::AlreadyExists => {} + Err(e) => return Err(e), + } + let meta = fs::symlink_metadata(dir)?; + if !meta.is_dir() || meta.uid() != uid() { + return Err(io::Error::new(io::ErrorKind::PermissionDenied, "IPC directory is not owned by this user")); + } + if meta.mode() & 0o077 != 0 { + fs::set_permissions(dir, fs::Permissions::from_mode(0o700))?; + } + Ok(()) + } + + #[cfg(any(target_os = "linux", target_os = "android"))] + pub(super) fn peer_uid(s: &UnixStream) -> io::Result { + let mut cred = libc::ucred { pid: 0, uid: 0, gid: 0 }; + let mut len = std::mem::size_of::() as libc::socklen_t; + // SAFETY: cred and len are valid out-pointers of the sizes passed. + let rc = unsafe { + libc::getsockopt( + s.as_raw_fd(), + libc::SOL_SOCKET, + libc::SO_PEERCRED, + (&mut cred as *mut libc::ucred).cast(), + &mut len, + ) + }; + if rc != 0 { + return Err(io::Error::last_os_error()); + } + Ok(cred.uid) + } + + #[cfg(not(any(target_os = "linux", target_os = "android")))] + pub(super) fn peer_uid(s: &UnixStream) -> io::Result { + let (mut uid, mut gid) = (0, 0); + // SAFETY: uid and gid are valid out-pointers. + if unsafe { libc::getpeereid(s.as_raw_fd(), &mut uid, &mut gid) } != 0 { + return Err(io::Error::last_os_error()); + } + Ok(uid) + } + + fn check_peer(s: &UnixStream) -> io::Result<()> { + if peer_uid(s)? != uid() { + return Err(io::Error::new(io::ErrorKind::PermissionDenied, "IPC peer is a different user")); + } + Ok(()) + } + + impl Listener { + /// Binds the socket. Fails with `AddrInUse` if another app instance is already serving it. + pub fn bind() -> io::Result { + let path = endpoint()?; + secure_dir(path.parent().expect("socket path has a parent"))?; + if path.exists() { + if UnixStream::connect(&path).is_ok() { + return Err(io::Error::new(io::ErrorKind::AddrInUse, "Kestrove is already running")); + } + fs::remove_file(&path)?; // stale socket from a crashed instance + } + let inner = UnixListener::bind(&path)?; + fs::set_permissions(&path, fs::Permissions::from_mode(0o600))?; + Ok(Self { inner, path }) + } + + /// Blocks for the next same-user client. Other users' connections are dropped and skipped. + pub fn accept(&self) -> io::Result { + loop { + let (s, _) = self.inner.accept()?; + if check_peer(&s).is_ok() { + // A stuck peer must not pin a thread forever. + s.set_read_timeout(Some(Duration::from_secs(600)))?; + return Ok(Conn(s)); + } + } + } + } + + impl Drop for Listener { + fn drop(&mut self) { + let _ = fs::remove_file(&self.path); + } + } + + pub fn connect() -> io::Result { + let s = UnixStream::connect(endpoint()?)?; + check_peer(&s)?; // don't talk to a socket another user planted + Ok(Conn(s)) + } +} + +#[cfg(windows)] +mod imp { + use std::fs::File; + use std::io; + use std::os::windows::ffi::OsStrExt; + use std::os::windows::io::{AsRawHandle, FromRawHandle, OwnedHandle}; + use std::path::PathBuf; + use std::ptr; + + use windows_sys::Win32::Foundation::{ + CloseHandle, GetLastError, LocalFree, ERROR_PIPE_CONNECTED, GENERIC_READ, GENERIC_WRITE, HANDLE, + INVALID_HANDLE_VALUE, + }; + use windows_sys::Win32::Security::Authorization::{ + ConvertSidToStringSidW, ConvertStringSecurityDescriptorToSecurityDescriptorW, SDDL_REVISION_1, + }; + use windows_sys::Win32::Security::{ + EqualSid, GetTokenInformation, TokenUser, PSECURITY_DESCRIPTOR, SECURITY_ATTRIBUTES, TOKEN_QUERY, TOKEN_USER, + }; + use windows_sys::Win32::Storage::FileSystem::{ + CreateFileW, FILE_FLAG_FIRST_PIPE_INSTANCE, OPEN_EXISTING, PIPE_ACCESS_DUPLEX, + }; + use windows_sys::Win32::System::Pipes::{ + ConnectNamedPipe, CreateNamedPipeW, GetNamedPipeClientProcessId, GetNamedPipeServerProcessId, + PIPE_READMODE_BYTE, PIPE_REJECT_REMOTE_CLIENTS, PIPE_TYPE_BYTE, PIPE_UNLIMITED_INSTANCES, PIPE_WAIT, + }; + use windows_sys::Win32::System::Threading::{ + GetCurrentProcess, OpenProcess, OpenProcessToken, PROCESS_QUERY_LIMITED_INFORMATION, + }; + + use super::ENV_IPC_DIR; + + pub struct Conn(pub(super) File); + + pub struct Listener { + name: Vec, + sddl: Vec, + first: std::sync::atomic::AtomicBool, + } + + fn wide(s: &str) -> Vec { + std::ffi::OsStr::new(s).encode_wide().chain(Some(0)).collect() + } + + fn pipe_name() -> String { + let suffix = std::env::var(ENV_IPC_DIR) + .ok() + .filter(|s| !s.is_empty()) + .or_else(|| std::env::var("USERNAME").ok()) + .unwrap_or_else(|| "user".into()); + let clean: String = suffix.chars().map(|c| if c.is_ascii_alphanumeric() { c } else { '_' }).collect(); + format!(r"\\.\pipe\kestrove-nmh-{clean}") + } + + pub fn endpoint() -> io::Result { + Ok(PathBuf::from(pipe_name())) + } + + /// The TOKEN_USER buffer of a process (the SID pointer points into it). + fn token_user(process: HANDLE) -> io::Result> { + let mut token: HANDLE = ptr::null_mut(); + // SAFETY: valid process handle and out-pointer. + if unsafe { OpenProcessToken(process, TOKEN_QUERY, &mut token) } == 0 { + return Err(io::Error::last_os_error()); + } + // SAFETY: we own the token handle from here on. + let token = unsafe { OwnedHandle::from_raw_handle(token) }; + let mut len = 0u32; + // SAFETY: a size query with a null buffer is the documented pattern. + unsafe { GetTokenInformation(token.as_raw_handle(), TokenUser, ptr::null_mut(), 0, &mut len) }; + let mut buf = vec![0u8; len as usize]; + // SAFETY: buf has len bytes. + if unsafe { GetTokenInformation(token.as_raw_handle(), TokenUser, buf.as_mut_ptr().cast(), len, &mut len) } == 0 + { + return Err(io::Error::last_os_error()); + } + Ok(buf) + } + + fn sid_of(buf: &[u8]) -> *mut core::ffi::c_void { + // SAFETY: buf came from GetTokenInformation(TokenUser) and starts with a TOKEN_USER. + unsafe { (*(buf.as_ptr() as *const TOKEN_USER)).User.Sid } + } + + fn same_user_as_process(pid: u32) -> io::Result<()> { + // SAFETY: plain Win32 calls; every handle is closed before returning. + unsafe { + let ours = token_user(GetCurrentProcess())?; + let h = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, 0, pid); + if h.is_null() { + return Err(io::Error::last_os_error()); + } + let theirs = token_user(h); + CloseHandle(h); + let theirs = theirs?; + if EqualSid(sid_of(&ours), sid_of(&theirs)) == 0 { + return Err(io::Error::new(io::ErrorKind::PermissionDenied, "IPC peer is a different user")); + } + } + Ok(()) + } + + /// SDDL granting full access to the current user only (no Everyone read like the default DACL). + fn user_only_sddl() -> io::Result> { + // SAFETY: ConvertSidToStringSidW allocates with LocalAlloc; we free it after copying. + unsafe { + let ours = token_user(GetCurrentProcess())?; + let mut s: *mut u16 = ptr::null_mut(); + if ConvertSidToStringSidW(sid_of(&ours), &mut s) == 0 { + return Err(io::Error::last_os_error()); + } + let mut n = 0; + while *s.add(n) != 0 { + n += 1; + } + let sid = String::from_utf16_lossy(std::slice::from_raw_parts(s, n)); + LocalFree(s.cast()); + Ok(wide(&format!("D:P(A;;GA;;;{sid})"))) + } + } + + impl Listener { + pub fn bind() -> io::Result { + let me = Self { + name: wide(&pipe_name()), + sddl: user_only_sddl()?, + first: std::sync::atomic::AtomicBool::new(true), + }; + Ok(me) + } + + fn create_instance(&self) -> io::Result { + let first = self.first.swap(false, std::sync::atomic::Ordering::SeqCst); + let mut sd: PSECURITY_DESCRIPTOR = ptr::null_mut(); + // SAFETY: sddl is NUL-terminated; sd is freed with LocalFree below. + unsafe { + if ConvertStringSecurityDescriptorToSecurityDescriptorW( + self.sddl.as_ptr(), + SDDL_REVISION_1, + &mut sd, + ptr::null_mut(), + ) == 0 + { + return Err(io::Error::last_os_error()); + } + let sa = SECURITY_ATTRIBUTES { + nLength: std::mem::size_of::() as u32, + lpSecurityDescriptor: sd, + bInheritHandle: 0, + }; + let h = CreateNamedPipeW( + self.name.as_ptr(), + PIPE_ACCESS_DUPLEX | if first { FILE_FLAG_FIRST_PIPE_INSTANCE } else { 0 }, + PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT | PIPE_REJECT_REMOTE_CLIENTS, + PIPE_UNLIMITED_INSTANCES, + 64 * 1024, + 64 * 1024, + 0, + &sa, + ); + LocalFree(sd); + if h == INVALID_HANDLE_VALUE { + let e = io::Error::last_os_error(); + return Err(if first { io::Error::new(io::ErrorKind::AddrInUse, e) } else { e }); + } + Ok(h) + } + } + + pub fn accept(&self) -> io::Result { + loop { + let h = self.create_instance()?; + // SAFETY: h is a fresh pipe handle owned by `file` from here on. + let file = unsafe { File::from_raw_handle(h) }; + // SAFETY: blocking connect on our own pipe handle. + let ok = unsafe { ConnectNamedPipe(h, ptr::null_mut()) } != 0 + || unsafe { GetLastError() } == ERROR_PIPE_CONNECTED; + if !ok { + continue; + } + let mut pid = 0u32; + // SAFETY: valid handle and out-pointer. + if unsafe { GetNamedPipeClientProcessId(h, &mut pid) } != 0 && same_user_as_process(pid).is_ok() { + return Ok(Conn(file)); + } + } + } + } + + pub fn connect() -> io::Result { + let name = wide(&pipe_name()); + // SAFETY: name is NUL-terminated; the handle is owned by File on success. + let h = unsafe { + CreateFileW( + name.as_ptr(), + GENERIC_READ | GENERIC_WRITE, + 0, + ptr::null(), + OPEN_EXISTING, + 0, + ptr::null_mut(), + ) + }; + if h == INVALID_HANDLE_VALUE { + return Err(io::Error::last_os_error()); + } + // SAFETY: h is a valid, owned handle. + let file = unsafe { File::from_raw_handle(h) }; + let mut pid = 0u32; + // SAFETY: valid handle and out-pointer. + if unsafe { GetNamedPipeServerProcessId(h, &mut pid) } == 0 { + return Err(io::Error::last_os_error()); + } + same_user_as_process(pid)?; + Ok(Conn(file)) + } +} + +#[cfg(all(test, unix))] +mod tests { + use super::*; + use crate::framing::{read_json, write_json}; + use serde_json::json; + use std::os::unix::fs::PermissionsExt; + + #[test] + fn socket_is_private_and_round_trips() { + let dir = tempfile::tempdir().unwrap(); + let ipc_dir = dir.path().join("ipc"); + // SAFETY: tests in this module are the only ones touching this variable. + unsafe { std::env::set_var(ENV_IPC_DIR, &ipc_dir) }; + let l = Listener::bind().unwrap(); + let path = endpoint().unwrap(); + assert_eq!(std::fs::metadata(&path).unwrap().permissions().mode() & 0o777, 0o600); + assert_eq!(std::fs::metadata(&ipc_dir).unwrap().permissions().mode() & 0o777, 0o700); + + let t = std::thread::spawn(move || { + let mut c = l.accept().unwrap(); + let v = read_json(&mut c).unwrap().unwrap(); + write_json(&mut c, &json!({"echo": v})).unwrap(); + l + }); + let mut c = connect().unwrap(); + write_json(&mut c, &json!({"t": "ping"})).unwrap(); + assert_eq!(read_json(&mut c).unwrap(), Some(json!({"echo": {"t": "ping"}}))); + let l = t.join().unwrap(); + // A second instance sees the live socket and refuses to steal it. + assert_eq!(Listener::bind().err().map(|e| e.kind()), Some(io::ErrorKind::AddrInUse)); + drop(l); + assert!(!path.exists(), "socket removed on shutdown"); + } +} diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs new file mode 100644 index 0000000..a146395 --- /dev/null +++ b/src-tauri/src/lib.rs @@ -0,0 +1,9 @@ +//! Kestrove desktop internals shared by the app, `kestrove-nmh` and the integration tests. + +pub mod autolock; +pub mod broker; +pub mod channel; +pub mod framing; +pub mod ipc; +pub mod private_file; +pub mod words; diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index f931499..f2b1819 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,21 +1,59 @@ -// Kestrove desktop (Windows/Linux; macOS uses kestrove-apple). Thin Tauri shell over kv-ffi. +// Kestrove desktop (Windows/Linux; macOS uses kestrove-apple, but this builds and runs there for +// development). Thin Tauri shell over kv-ffi: the web UI only renders and never sees keys. #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] -use std::{sync::Arc, thread, time::Duration}; +use std::path::PathBuf; +use std::sync::atomic::{AtomicU64, Ordering}; +use std::sync::{Arc, Mutex}; +use std::time::Duration; +use std::{io, thread}; -use kv_ffi::{generate_password as core_generate_password, CoreError, ItemDto, ItemKindDto, VaultCore}; +use kestrove_desktop::autolock::{self, Activity, Reason}; +use kestrove_desktop::broker::{Broker, PairingStore, PairingView, SaveView, Ui}; +use kestrove_desktop::{ipc, private_file}; +use kv_ffi::{generate_password as core_generate_password, totp_code, CoreError, ItemDto, ItemKindDto, VaultCore}; use serde::{Deserialize, Serialize}; -use tauri::State; +use tauri::menu::{Menu, MenuItem}; +use tauri::tray::TrayIconBuilder; +use tauri::{AppHandle, Emitter, Manager, State, WindowEvent}; +use zeroize::Zeroizing; + +const CLIPBOARD_CLEAR: Duration = Duration::from_secs(90); struct App { - // TODO(M3): persistent store + sync (kv-store/kv-sync) instead of in-memory. core: Arc, + broker: Arc, + activity: Arc, + data_dir: PathBuf, + ipc_error: Mutex>, + idle_minutes: Arc, + // Kept alive: on X11 the clipboard owner must outlive the copy. + clipboard: Mutex>, +} + +impl App { + fn secret_key_path(&self) -> PathBuf { + self.data_dir.join("secret-key") + } + fn settings_path(&self) -> PathBuf { + self.data_dir.join("settings.json") + } +} + +#[derive(Serialize, Deserialize)] +struct Settings { + idle_minutes: u64, } #[derive(Serialize)] struct AppState { has_account: bool, locked: bool, + /// The Secret Key is kept on this device, so unlock only needs the master password. + remembers_secret_key: bool, + /// Browser integration could not start (e.g. another instance is running). + ipc_error: Option, + idle_minutes: u64, } #[derive(Serialize)] @@ -25,6 +63,7 @@ struct Summary { username: Option, urls: Vec, favorite: bool, + has_totp: bool, } #[derive(Serialize)] @@ -44,6 +83,22 @@ struct NewLogin { username: Option, password: Option, urls: Vec, + totp: Option, +} + +#[derive(Serialize)] +struct Totp { + code: String, + seconds_remaining: u64, +} + +#[derive(Serialize)] +struct PairingSummary { + id: String, + name: String, + caller: String, + words: Vec, + created_at: u64, } type CmdResult = Result; @@ -52,20 +107,80 @@ fn err(e: CoreError) -> String { e.to_string() } +/// Tauri events to the UI; the window is brought forward so the user sees the prompt. +struct TauriUi { + handle: AppHandle, + activity: Arc, +} + +impl TauriUi { + fn surface(&self) { + if let Some(w) = self.handle.get_webview_window("main") { + let _ = w.show(); + let _ = w.unminimize(); + let _ = w.set_focus(); + } + } +} + +impl Ui for TauriUi { + fn pairing_requested(&self, req: &PairingView) { + self.surface(); + let _ = self.handle.emit("pairing-request", req); + } + fn save_requested(&self, req: &SaveView) { + self.surface(); + let _ = self.handle.emit("save-request", req); + } + fn activity(&self) { + self.activity.touch(); + } +} + +fn remember_secret_key(app: &App, secret_key: &str) { + if let Err(e) = private_file::write(&app.secret_key_path(), secret_key.trim().as_bytes()) { + eprintln!("kestrove: could not store the Secret Key: {e}"); + } +} + +fn stored_secret_key(app: &App) -> Option> { + let b = private_file::read(&app.secret_key_path()).ok()??; + String::from_utf8(b).ok().map(Zeroizing::new) +} + #[tauri::command] fn state(app: State<'_, App>) -> AppState { - AppState { has_account: app.core.has_account(), locked: app.core.is_locked() } + AppState { + has_account: app.core.has_account(), + locked: app.core.is_locked(), + remembers_secret_key: stored_secret_key(&app).is_some(), + ipc_error: app.ipc_error.lock().unwrap_or_else(|e| e.into_inner()).clone(), + idle_minutes: app.idle_minutes.load(Ordering::Relaxed), + } } // Argon2id takes ~0.5 s, so these run as async commands off the main thread. #[tauri::command] async fn create_account(app: State<'_, App>, master_password: String) -> CmdResult { - app.core.create_account(master_password).map_err(err) + let master_password = Zeroizing::new(master_password); + let sk = app.core.create_account(master_password.to_string()).map_err(err)?; + remember_secret_key(&app, &sk); + app.activity.touch(); + Ok(sk) } +/// `secret_key` may be omitted once this device remembers it. #[tauri::command] -async fn unlock(app: State<'_, App>, master_password: String, secret_key: String) -> CmdResult<()> { - app.core.unlock(master_password, secret_key).map_err(err) +async fn unlock(app: State<'_, App>, master_password: String, secret_key: Option) -> CmdResult<()> { + let master_password = Zeroizing::new(master_password); + let typed = secret_key.map(Zeroizing::new).filter(|s| !s.trim().is_empty()); + let sk = typed.clone().or_else(|| stored_secret_key(&app)).ok_or("Enter your Secret Key.")?; + app.core.unlock(master_password.to_string(), sk.trim().to_string()).map_err(err)?; + if let Some(sk) = typed { + remember_secret_key(&app, &sk); + } + app.activity.touch(); + Ok(()) } #[tauri::command] @@ -73,6 +188,20 @@ fn lock(app: State<'_, App>) { app.core.lock(); } +/// UI input (throttled in JS): feeds the idle timer where the OS has no system idle time. +#[tauri::command] +fn touch(app: State<'_, App>) { + app.activity.touch(); +} + +#[tauri::command] +fn set_idle_minutes(app: State<'_, App>, minutes: u64) -> CmdResult<()> { + let minutes = minutes.clamp(1, 240); + app.idle_minutes.store(minutes, Ordering::Relaxed); + let bytes = serde_json::to_vec(&Settings { idle_minutes: minutes }).map_err(|e| e.to_string())?; + private_file::write(&app.settings_path(), &bytes).map_err(|e| e.to_string()) +} + #[tauri::command] fn list_items(app: State<'_, App>) -> CmdResult> { Ok(app @@ -80,7 +209,14 @@ fn list_items(app: State<'_, App>) -> CmdResult> { .list_items() .map_err(err)? .into_iter() - .map(|s| Summary { id: s.id, title: s.title, username: s.username, urls: s.urls, favorite: s.favorite }) + .map(|s| Summary { + id: s.id, + title: s.title, + username: s.username, + urls: s.urls, + favorite: s.favorite, + has_totp: s.has_totp, + }) .collect()) } @@ -100,7 +236,7 @@ fn save_item(app: State<'_, App>, item: NewLogin) -> CmdResult { username: item.username, password: item.password, urls: item.urls, - totp: None, + totp: item.totp.filter(|t| !t.trim().is_empty()), notes: None, favorite: false, tags: vec![], @@ -109,15 +245,50 @@ fn save_item(app: State<'_, App>, item: NewLogin) -> CmdResult { .map_err(err) } -/// Copies the password from Rust so it never needs to round-trip through JS, then clears it after 90 s. -/// TODO(M3): on Windows also set ExcludeClipboardContentFromMonitorProcessing (docs/04). #[tauri::command] -fn copy_secret(app: State<'_, App>, id: String) -> CmdResult<()> { - let secret = app.core.get_item(id).map_err(err)?.password.unwrap_or_default(); - let mut cb = arboard::Clipboard::new().map_err(|e| e.to_string())?; - cb.set_text(secret.clone()).map_err(|e| e.to_string())?; +fn delete_item(app: State<'_, App>, id: String) -> CmdResult<()> { + app.core.delete_item(id).map_err(err) +} + +#[tauri::command] +fn totp(app: State<'_, App>, id: String) -> CmdResult> { + let Some(secret) = app.core.get_item(id).map_err(err)?.totp else { return Ok(None) }; + let now = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map_or(0, |d| d.as_secs()); + let c = totp_code(secret, now).map_err(err)?; + Ok(Some(Totp { code: c.code, seconds_remaining: c.seconds_remaining })) +} + +/// Copies from Rust so the secret never round-trips through JS, then clears it after 90 s. +#[tauri::command] +fn copy_secret(app: State<'_, App>, id: String, field: Option) -> CmdResult<()> { + let item = app.core.get_item(id).map_err(err)?; + let secret = Zeroizing::new(match field.as_deref() { + Some("username") => item.username.unwrap_or_default(), + Some("totp") => { + let now = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).map_or(0, |d| d.as_secs()); + item.totp.map(|t| totp_code(t, now)).transpose().map_err(err)?.map(|c| c.code).unwrap_or_default() + } + _ => item.password.unwrap_or_default(), + }); + let mut guard = app.clipboard.lock().unwrap_or_else(|e| e.into_inner()); + if guard.is_none() { + *guard = Some(arboard::Clipboard::new().map_err(|e| e.to_string())?); + } + let cb = guard.as_mut().expect("clipboard initialized above"); + #[cfg(windows)] + { + // docs/04: keep secrets out of clipboard history, cloud sync and monitors. + use arboard::SetExtWindows; + cb.set().exclude_from_monitoring().exclude_from_cloud().exclude_from_history().text(secret.to_string()) + } + #[cfg(not(windows))] + { + cb.set_text(secret.to_string()) + } + .map_err(|e| e.to_string())?; + drop(guard); thread::spawn(move || { - thread::sleep(Duration::from_secs(90)); + thread::sleep(CLIPBOARD_CLEAR); if let Ok(mut cb) = arboard::Clipboard::new() { if cb.get_text().ok().as_deref() == Some(secret.as_str()) { let _ = cb.clear(); @@ -129,22 +300,187 @@ fn copy_secret(app: State<'_, App>, id: String) -> CmdResult<()> { #[tauri::command] fn generate_password(length: u32) -> String { - core_generate_password(length, true) + core_generate_password(length.clamp(8, 128), true) +} + +// ---------------------------------------------------------------- browser pairing + saves + +#[tauri::command] +fn pending_pairing(app: State<'_, App>) -> Option { + app.broker.pending_pairing() +} + +#[tauri::command] +fn resolve_pairing(app: State<'_, App>, id: String, accept: bool) -> CmdResult<()> { + app.broker.resolve_pairing(&id, accept) +} + +#[tauri::command] +fn list_pairings(app: State<'_, App>) -> Vec { + app.broker + .pairings() + .into_iter() + .map(|p| PairingSummary { id: p.id, name: p.name, caller: p.caller, words: p.words, created_at: p.created_at }) + .collect() +} + +#[tauri::command] +fn revoke_pairing(app: State<'_, App>, id: String) -> CmdResult<()> { + app.broker.revoke_pairing(&id) +} + +#[tauri::command] +fn pending_saves(app: State<'_, App>) -> Vec { + app.broker.pending_saves() +} + +#[tauri::command] +fn resolve_save(app: State<'_, App>, id: String, accept: bool) -> CmdResult<()> { + app.broker.resolve_save(&id, accept).map(|_| ()) +} + +// ---------------------------------------------------------------- startup + +fn start_ipc(broker: Arc) -> io::Result<()> { + let listener = ipc::Listener::bind()?; + thread::Builder::new().name("ipc-accept".into()).spawn(move || loop { + match listener.accept() { + Ok(conn) => { + let b = broker.clone(); + let _ = thread::Builder::new().name("ipc-conn".into()).spawn(move || { + let _ = b.serve(conn); + }); + } + Err(e) => { + eprintln!("kestrove: IPC accept failed: {e}"); + thread::sleep(Duration::from_secs(1)); + } + } + })?; + Ok(()) +} + +fn lock_and_notify(handle: &AppHandle, core: &VaultCore, reason: &str) { + core.lock(); + let _ = handle.emit("locked", reason); +} + +fn setup(app: &mut tauri::App) -> Result<(), Box> { + let data_dir = app.path().app_data_dir()?; + std::fs::create_dir_all(&data_dir)?; + #[cfg(unix)] + { + use std::os::unix::fs::PermissionsExt; + std::fs::set_permissions(&data_dir, std::fs::Permissions::from_mode(0o700))?; + } + let core = VaultCore::open(data_dir.join("vault.sqlite").to_string_lossy().into_owned())?; + let activity = Activity::new(); + let ui = Arc::new(TauriUi { handle: app.handle().clone(), activity: activity.clone() }); + let broker = Broker::new(core.clone(), ui, PairingStore::open(data_dir.join("pairings.json"))?); + + let idle_minutes = private_file::read(&data_dir.join("settings.json")) + .ok() + .flatten() + .and_then(|b| serde_json::from_slice::(&b).ok()) + .map_or(autolock::DEFAULT_IDLE.as_secs() / 60, |s| s.idle_minutes); + let idle_minutes = Arc::new(AtomicU64::new(idle_minutes)); + + let ipc_error = start_ipc(broker.clone()).err().map(|e| { + eprintln!("kestrove: browser integration disabled: {e}"); + if e.kind() == io::ErrorKind::AddrInUse { + "Another Kestrove instance is serving the browser extension.".to_string() + } else { + format!("Browser integration could not start: {e}") + } + }); + + { + let (handle, core, minutes) = (app.handle().clone(), core.clone(), idle_minutes.clone()); + let unlocked = core.clone(); + autolock::spawn( + activity.clone(), + move || Duration::from_secs(minutes.load(Ordering::Relaxed) * 60), + move || !unlocked.is_locked(), + move |reason| { + let why = match reason { + Reason::Idle => "idle", + Reason::ScreenLocked => "screen-locked", + Reason::Sleep => "sleep", + }; + lock_and_notify(&handle, &core, why); + }, + ); + } + + // Tray: the app keeps running (for the browser extension) when its window is closed. + let open = MenuItem::with_id(app, "open", "Open Kestrove", true, None::<&str>)?; + let lock_item = MenuItem::with_id(app, "lock", "Lock", true, None::<&str>)?; + let quit = MenuItem::with_id(app, "quit", "Quit", true, None::<&str>)?; + let menu = Menu::with_items(app, &[&open, &lock_item, &quit])?; + let mut tray = TrayIconBuilder::with_id("main").menu(&menu).tooltip("Kestrove").on_menu_event({ + let core = core.clone(); + move |handle, event| match event.id().as_ref() { + "open" => { + if let Some(w) = handle.get_webview_window("main") { + let _ = w.show(); + let _ = w.set_focus(); + } + } + "lock" => lock_and_notify(handle, &core, "manual"), + "quit" => { + core.lock(); + handle.exit(0); + } + _ => {} + } + }); + if let Some(icon) = app.default_window_icon() { + tray = tray.icon(icon.clone()); + } + tray.build(app)?; + + app.manage(App { + core, + broker, + activity, + data_dir, + ipc_error: Mutex::new(ipc_error), + idle_minutes, + clipboard: Mutex::new(None), + }); + Ok(()) } fn main() { tauri::Builder::default() - .manage(App { core: VaultCore::new_in_memory() }) + .setup(setup) + .on_window_event(|window, event| { + if let WindowEvent::CloseRequested { api, .. } = event { + // Keep serving the extension from the tray; Quit is in the tray menu. + api.prevent_close(); + let _ = window.hide(); + } + }) .invoke_handler(tauri::generate_handler![ state, create_account, unlock, lock, + touch, + set_idle_minutes, list_items, get_item, save_item, + delete_item, + totp, copy_secret, - generate_password + generate_password, + pending_pairing, + resolve_pairing, + list_pairings, + revoke_pairing, + pending_saves, + resolve_save ]) .run(tauri::generate_context!()) .expect("error while running Kestrove"); diff --git a/src-tauri/src/private_file.rs b/src-tauri/src/private_file.rs new file mode 100644 index 0000000..fd3703a --- /dev/null +++ b/src-tauri/src/private_file.rs @@ -0,0 +1,27 @@ +//! Small files only this user may read (0600 on Unix; on Windows the per-user app-data ACL). + +use std::fs; +use std::io::{self, Write}; +use std::path::Path; + +/// Writes atomically (temp file + rename) with owner-only permissions. +pub fn write(path: &Path, bytes: &[u8]) -> io::Result<()> { + let tmp = path.with_extension("tmp"); + let mut opts = fs::OpenOptions::new(); + opts.write(true).create(true).truncate(true); + #[cfg(unix)] + std::os::unix::fs::OpenOptionsExt::mode(&mut opts, 0o600); + let mut f = opts.open(&tmp)?; + f.write_all(bytes)?; + f.sync_all()?; + fs::rename(tmp, path) +} + +/// `Ok(None)` when the file doesn't exist. +pub fn read(path: &Path) -> io::Result>> { + match fs::read(path) { + Ok(b) => Ok(Some(b)), + Err(e) if e.kind() == io::ErrorKind::NotFound => Ok(None), + Err(e) => Err(e), + } +} diff --git a/src-tauri/src/words.rs b/src-tauri/src/words.rs new file mode 100644 index 0000000..7f9b897 --- /dev/null +++ b/src-tauri/src/words.rs @@ -0,0 +1,48 @@ +//! 256 words for pairing fingerprints: one word per byte, 6 words = 48 bits, compared by a person. +//! The same list, in the same order, is in kestrove-browser/src/words.ts. + +pub const WORDS: [&str; 256] = [ + "acid", "acorn", "actor", "adult", "agent", "alarm", "album", "alley", + "amber", "angle", "ankle", "apple", "april", "apron", "arena", "armor", + "arrow", "atlas", "attic", "audio", "aunt", "autumn", "award", "bacon", + "badge", "bagel", "baker", "bamboo", "banjo", "barn", "basil", "basket", + "beach", "beard", "beetle", "bell", "bench", "berry", "bike", "birch", + "bison", "blade", "blanket", "blimp", "bloom", "boat", "bonus", "boot", + "bottle", "boxer", "brain", "brick", "bridge", "broom", "brush", "bucket", + "bugle", "cabin", "cable", "cactus", "camel", "camera", "canal", "candle", + "canoe", "canyon", "carbon", "cargo", "carpet", "castle", "cedar", "cello", + "chalk", "cherry", "chess", "chief", "cider", "cinema", "circus", "clay", + "cliff", "clock", "cloud", "clover", "cobra", "cocoa", "comet", "coral", + "cotton", "cousin", "coyote", "crane", "crayon", "cricket", "crown", "cup", + "daisy", "dancer", "delta", "denim", "desert", "diary", "diesel", "dingo", + "disco", "doctor", "dolphin", "donkey", "dragon", "drum", "duck", "eagle", + "earth", "easel", "echo", "eclipse", "elbow", "elder", "ember", "emerald", + "engine", "falcon", "fang", "farmer", "feather", "fence", "ferry", "fiddle", + "finch", "flag", "flute", "forest", "fossil", "fox", "frost", "galaxy", + "garden", "garlic", "gecko", "ghost", "ginger", "giraffe", "glacier", "globe", + "goat", "gold", "gorilla", "grape", "gravel", "guitar", "hammer", "harbor", + "harp", "hawk", "hazel", "helmet", "heron", "hiker", "honey", "hornet", + "hotel", "igloo", "index", "iris", "island", "ivory", "jacket", "jaguar", + "jelly", "jewel", "jungle", "kayak", "kettle", "kitten", "koala", "ladder", + "lagoon", "lake", "lantern", "laser", "lemon", "lentil", "lily", "lion", + "lizard", "lobster", "locket", "lotus", "magnet", "mango", "maple", "marble", + "meadow", "melon", "mint", "mirror", "monkey", "moose", "mosaic", "motor", + "mountain", "mulberry", "museum", "napkin", "nectar", "needle", "nickel", "noodle", + "novel", "nugget", "oasis", "ocean", "olive", "onion", "orange", "orbit", + "orchid", "otter", "owl", "oyster", "paddle", "palace", "panda", "paper", + "parrot", "peach", "pebble", "pepper", "piano", "pickle", "pilot", "pine", + "planet", "plum", "poem", "pony", "puzzle", "quartz", "quill", "rabbit", + "radar", "radio", "raven", "ribbon", "river", "robin", "rocket", "rose", + "ruby", "saddle", "salmon", "sandal", "satin", "scarf", "scout", "sugar", +]; + +#[cfg(test)] +mod tests { + #[test] + fn unique() { + let mut v = super::WORDS.to_vec(); + v.sort_unstable(); + v.dedup(); + assert_eq!(v.len(), 256); + } +} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 962beeb..8e58b2b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -18,6 +18,6 @@ "bundle": { "active": true, "targets": ["msi", "nsis", "appimage", "deb"], - "icon": ["icons/32x32.png", "icons/128x128.png", "icons/icon.ico", "icons/icon.png"] + "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico", "icons/icon.png"] } } diff --git a/src-tauri/tests/nmh_stdio.rs b/src-tauri/tests/nmh_stdio.rs new file mode 100644 index 0000000..86e0966 --- /dev/null +++ b/src-tauri/tests/nmh_stdio.rs @@ -0,0 +1,148 @@ +//! Drives the real `kestrove-nmh` binary over stdio, the way a browser does, through the +//! paired AEAD channel to a broker serving the app's IPC endpoint (isolated via KESTROVE_IPC_DIR). +#![cfg(unix)] + +use std::io::{BufReader, Write}; +use std::process::{Child, ChildStdin, ChildStdout, Command, Stdio}; +use std::sync::Arc; +use std::thread; + +use base64::engine::general_purpose::STANDARD as B64; +use base64::Engine; +use kestrove_desktop::broker::{Broker, PairingStore, PairingView, SaveView, Ui}; +use kestrove_desktop::channel::{make_confirm, random, Ephemeral, Session}; +use kestrove_desktop::framing::{read_json, write_json}; +use kestrove_desktop::ipc; +use kv_ffi::{ItemDto, ItemKindDto, VaultCore}; +use serde_json::{json, Value}; + +struct NoUi; +impl Ui for NoUi { + fn pairing_requested(&self, _: &PairingView) {} + fn save_requested(&self, _: &SaveView) {} +} + +struct Host { + child: Child, + stdin: ChildStdin, + stdout: BufReader, +} + +impl Host { + fn spawn(ipc_dir: &std::path::Path) -> Self { + let mut child = Command::new(env!("CARGO_BIN_EXE_kestrove-nmh")) + .arg("chrome-extension://abcdefghijklmnopabcdefghijklmnop/") + .env(ipc::ENV_IPC_DIR, ipc_dir) + .stdin(Stdio::piped()) + .stdout(Stdio::piped()) + .spawn() + .unwrap(); + let stdin = child.stdin.take().unwrap(); + let stdout = BufReader::new(child.stdout.take().unwrap()); + Self { child, stdin, stdout } + } + + fn rpc(&mut self, v: Value) -> Value { + write_json(&mut self.stdin, &v).unwrap(); + self.stdin.flush().unwrap(); + read_json(&mut self.stdout).unwrap().unwrap() + } +} + +impl Drop for Host { + fn drop(&mut self) { + let _ = self.child.kill(); + let _ = self.child.wait(); + } +} + +fn call(h: &mut Host, s: &mut Session, rid: u64, body: Value) -> Value { + let (n, c) = s.seal(&serde_json::to_vec(&json!({ "rid": rid, "body": body })).unwrap()); + let r = h.rpc(json!({ "t": "msg", "n": n, "c": B64.encode(c) })); + assert_eq!(r["t"], "msg", "{r}"); + let pt = s.open(r["n"].as_u64().unwrap(), &B64.decode(r["c"].as_str().unwrap()).unwrap()).unwrap(); + let v: Value = serde_json::from_slice(&pt).unwrap(); + assert_eq!(v["rid"], rid); + v["body"].clone() +} + +#[test] +fn pair_and_fill_through_the_native_host() { + let dir = tempfile::tempdir().unwrap(); + let ipc_dir = dir.path().join("ipc"); + + // No app yet: the host answers "unavailable" instead of hanging. + let mut early = Host::spawn(&ipc_dir); + assert_eq!(early.rpc(json!({ "t": "ping" })), json!({ "t": "error", "code": "unavailable" })); + + let core = VaultCore::new_in_memory(); + core.create_account("correct horse battery".into()).unwrap(); + let id = core + .save_item(ItemDto { + id: String::new(), + kind: ItemKindDto::Login, + title: "Local".into(), + username: Some("alice".into()), + password: Some("pw-123".into()), + urls: vec!["http://127.0.0.1:8765".into()], + totp: None, + notes: None, + favorite: false, + tags: vec![], + modified_at: 0, + }) + .unwrap(); + let broker = Broker::new(core, Arc::new(NoUi), PairingStore::in_memory()); + // SAFETY: this test binary has a single test, so nothing else reads the environment concurrently. + unsafe { std::env::set_var(ipc::ENV_IPC_DIR, &ipc_dir) }; + let listener = ipc::Listener::bind().unwrap(); + { + let b = broker.clone(); + thread::spawn(move || loop { + let conn = listener.accept().unwrap(); + let b = b.clone(); + thread::spawn(move || b.serve(conn)); + }); + } + + // The same host process reconnects once the app is up. + assert_eq!(early.rpc(json!({ "t": "ping" }))["t"], "pong"); + drop(early); + + let mut h = Host::spawn(&ipc_dir); + let ext = Ephemeral::generate(); + let r = h.rpc(json!({ "t": "pair_init", "pub": B64.encode(ext.public), "name": "Test browser" })); + assert_eq!(r["t"], "pair_started"); + let pid = r["pairing_id"].as_str().unwrap().to_string(); + let p = ext.pair_as_ext(&B64.decode(r["pub"].as_str().unwrap()).unwrap().try_into().unwrap()).unwrap(); + let pending = broker.pending_pairing().unwrap(); + assert_eq!(pending.words, p.words.to_vec(), "both sides show the same words"); + assert_eq!(pending.caller, "chrome-extension://abcdefghijklmnopabcdefghijklmnop/"); + let proof = B64.encode(make_confirm(&p.key, &pid)); + assert_eq!(h.rpc(json!({ "t": "pair_confirm", "pairing_id": pid, "proof": proof }))["t"], "pair_waiting"); + broker.resolve_pairing(&pid, true).unwrap(); // the user clicks "pair" in the app + assert_eq!(h.rpc(json!({ "t": "pair_confirm", "pairing_id": pid, "proof": proof }))["t"], "pair_done"); + + let ne = random::<16>(); + let r = h.rpc(json!({ "t": "open", "pairing_id": pid, "nonce": B64.encode(ne) })); + let na: [u8; 16] = B64.decode(r["nonce"].as_str().unwrap()).unwrap().try_into().unwrap(); + let mut s = Session::ext(&p.key, &ne, &na); + + let ids = call(&mut h, &mut s, 1, json!({ "type": "query", "origin": "http://127.0.0.1:8765" })); + assert_eq!(ids["items"][0]["id"], id); + let cred = call(&mut h, &mut s, 2, json!({ "type": "fill", "origin": "http://127.0.0.1:8765", "itemId": id })); + assert_eq!(cred, json!({ "type": "credential", "username": "alice", "password": "pw-123" })); + let other = call(&mut h, &mut s, 3, json!({ "type": "fill", "origin": "http://127.0.0.2:8765", "itemId": id })); + assert_eq!(other["code"], "origin_mismatch"); + + // A replayed ciphertext is refused and the session is dropped. + let (n, c) = s.seal(br#"{"rid":4,"body":{"type":"hello","version":"1"}}"#); + let frame = json!({ "t": "msg", "n": n, "c": B64.encode(c) }); + assert_eq!(h.rpc(frame.clone())["t"], "msg"); + assert_eq!(h.rpc(frame)["code"], "bad_session"); + + // A second host process (new browser connection) needs a fresh session; the old one is useless there. + let mut h2 = Host::spawn(&ipc_dir); + let (n, c) = Session::ext(&p.key, &ne, &na).seal(b"{}"); + assert_eq!(h2.rpc(json!({ "t": "msg", "n": n, "c": B64.encode(c) }))["code"], "bad_session"); +} diff --git a/src/main.ts b/src/main.ts index 3e83afd..4b259f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,64 +1,90 @@ -// Minimal desktop UI. All vault logic runs in Rust (src-tauri → kv-ffi); this layer only renders. +// Desktop UI. All vault logic runs in Rust (src-tauri → kv-ffi); this layer only renders. import { invoke } from "@tauri-apps/api/core"; +import { listen } from "@tauri-apps/api/event"; -interface ItemSummary { id: string; title: string; username: string | null; urls: string[]; favorite: boolean } +interface AppState { has_account: boolean; locked: boolean; remembers_secret_key: boolean; ipc_error: string | null; idle_minutes: number } +interface ItemSummary { id: string; title: string; username: string | null; urls: string[]; favorite: boolean; has_totp: boolean } interface ItemDto { id: string; title: string; username: string | null; password: string | null; urls: string[]; totp: string | null; notes: string | null } +interface PairingView { id: string; name: string; caller: string; words: string[] } +interface Pairing { id: string; name: string; caller: string; words: string[]; created_at: number } +interface SaveView { id: string; origin: string; username: string; update: boolean } const app = document.getElementById("app")!; +const overlay = document.getElementById("overlay")!; -function el(tag: K, props: Record = {}, ...children: (Node | string)[]): HTMLElementTagNameMap[K] { +function el(tag: K, props: Partial & Record = {}, ...children: (Node | string)[]): HTMLElementTagNameMap[K] { const e: HTMLElementTagNameMap[K] = Object.assign(document.createElement(tag), props); e.append(...children); return e; } +const errText = (e: unknown) => (typeof e === "string" ? e : e instanceof Error ? e.message : String(e)); + async function render() { - const state = await invoke<{ has_account: boolean; locked: boolean }>("state"); + const state = await invoke("state"); app.replaceChildren(); - if (!state.has_account) return renderCreate(); - if (state.locked) return renderUnlock(); - return renderVault(); + if (!state.has_account) renderCreate(); + else if (state.locked) renderUnlock(state); + else await renderVault(state); + await renderPrompts(state); } +// ------------------------------------------------------------------ account + function renderCreate() { const pw = el("input", { type: "password", placeholder: "Master password (10+ chars)" }); const err = el("div", { className: "err" }); - const btn = el("button", { textContent: "Create vault" }); + const btn = el("button", { textContent: "Create vault", className: "primary" }); const card = el("div", { className: "card" }, el("h2", { textContent: "Create your Kestrove vault" }), pw, btn, err); btn.onclick = async () => { + btn.disabled = true; try { const secretKey = await invoke("create_account", { masterPassword: pw.value }); + pw.value = ""; card.replaceChildren( el("h2", { textContent: "Your Secret Key" }), el("p", { className: "mono", textContent: secretKey }), - el("p", { className: "muted", textContent: "Write this down in your Emergency Kit. You need it to add devices." }), - el("button", { textContent: "Continue", onclick: render }), + el("p", { className: "muted", textContent: "Write this down in your Emergency Kit. You need it to add devices. This device remembers it." }), + el("button", { textContent: "Continue", className: "primary", onclick: render }), ); } catch (e) { - err.textContent = String(e); + err.textContent = errText(e); + btn.disabled = false; } }; app.append(el("div", { className: "center" }, card)); + pw.focus(); } -function renderUnlock() { +function renderUnlock(state: AppState) { const pw = el("input", { type: "password", placeholder: "Master password" }); const sk = el("input", { placeholder: "Secret Key (K1-…)", className: "mono" }); const err = el("div", { className: "err" }); - const btn = el("button", { textContent: "Unlock" }); - btn.onclick = async () => { + const btn = el("button", { textContent: "Unlock", className: "primary" }); + const submit = async () => { + btn.disabled = true; try { - await invoke("unlock", { masterPassword: pw.value, secretKey: sk.value }); + await invoke("unlock", { masterPassword: pw.value, secretKey: sk.value || null }); pw.value = ""; + sk.value = ""; await render(); } catch (e) { - err.textContent = String(e); + err.textContent = errText(e); + btn.disabled = false; } }; - app.append(el("div", { className: "center" }, el("div", { className: "card" }, el("h2", { textContent: "Kestrove is locked" }), pw, sk, btn, err))); + btn.onclick = submit; + pw.onkeydown = (e) => e.key === "Enter" && void submit(); + const card = el("div", { className: "card" }, el("h2", { textContent: "Kestrove is locked" }), pw); + if (!state.remembers_secret_key) card.append(sk); + card.append(btn, err); + app.append(el("div", { className: "center" }, card)); + pw.focus(); } -async function renderVault() { +// ------------------------------------------------------------------ vault + +async function renderVault(state: AppState) { const items = await invoke("list_items"); const detail = el("section"); const list = el("ul"); @@ -67,24 +93,55 @@ async function renderVault() { li.onclick = async () => { list.querySelectorAll("li").forEach((n) => n.classList.remove("sel")); li.classList.add("sel"); - const item = await invoke("get_item", { id: it.id }); - const pwSpan = el("span", { className: "mono", textContent: "••••••••" }); - detail.replaceChildren( - el("h2", { textContent: item.title }), - el("p", {}, "Username: ", el("span", { className: "mono", textContent: item.username ?? "" })), - el("p", {}, "Password: ", pwSpan, " ", - el("button", { textContent: "Reveal", onclick: () => (pwSpan.textContent = item.password ?? "") }), - " ", - el("button", { textContent: "Copy", onclick: () => invoke("copy_secret", { id: item.id }) })), - el("p", { className: "muted", textContent: item.urls.join(", ") }), - ); + await renderDetail(detail, it.id); }; list.append(li); } - const add = el("button", { textContent: "+ New login" }); - add.onclick = () => renderEditor(detail); + if (!items.length) list.append(el("li", { className: "muted", textContent: "No items yet." })); + const add = el("button", { textContent: "+ New login", onclick: () => renderEditor(detail) }); + const settings = el("button", { textContent: "Settings", onclick: () => renderSettings(detail, state) }); const lock = el("button", { textContent: "Lock", onclick: async () => { await invoke("lock"); await render(); } }); - app.append(el("aside", {}, el("div", { className: "toolbar" }, add, lock), list), detail); + const aside = el("aside", {}, el("div", { className: "toolbar" }, add, settings, lock), list); + if (state.ipc_error) aside.append(el("p", { className: "err pad", textContent: state.ipc_error })); + app.append(aside, detail); +} + +async function renderDetail(target: HTMLElement, id: string) { + const item = await invoke("get_item", { id }); + const pwSpan = el("span", { className: "mono", textContent: "••••••••" }); + const rows: Node[] = [ + el("h2", { textContent: item.title }), + el("p", {}, "Username: ", el("span", { className: "mono", textContent: item.username ?? "" }), " ", + el("button", { textContent: "Copy", onclick: () => invoke("copy_secret", { id, field: "username" }) })), + el("p", {}, "Password: ", pwSpan, " ", + el("button", { textContent: "Reveal", onclick: () => (pwSpan.textContent = item.password ?? "") }), " ", + el("button", { textContent: "Copy", onclick: () => invoke("copy_secret", { id, field: "password" }) })), + ]; + if (item.totp) { + const code = el("span", { className: "mono" }); + const tick = async () => { + if (!code.isConnected) return; + const t = await invoke<{ code: string; seconds_remaining: number } | null>("totp", { id }).catch(() => null); + code.textContent = t ? `${t.code} (${t.seconds_remaining}s)` : "—"; + setTimeout(tick, 1000); + }; + rows.push(el("p", {}, "One-time code: ", code, " ", el("button", { textContent: "Copy", onclick: () => invoke("copy_secret", { id, field: "totp" }) }))); + queueMicrotask(tick); + } + rows.push( + el("p", { className: "muted", textContent: item.urls.join(", ") }), + el("button", { + textContent: "Delete", + className: "danger", + onclick: async () => { + if (confirm(`Delete “${item.title}”?`)) { + await invoke("delete_item", { id }); + await render(); + } + }, + }), + ); + target.replaceChildren(...rows); } function renderEditor(target: HTMLElement) { @@ -92,15 +149,129 @@ function renderEditor(target: HTMLElement) { const user = el("input", { placeholder: "Username" }); const pass = el("input", { placeholder: "Password", className: "mono" }); const url = el("input", { placeholder: "https://example.com" }); + const totp = el("input", { placeholder: "TOTP secret or otpauth:// URI (optional)", className: "mono" }); const gen = el("button", { textContent: "Generate", onclick: async () => (pass.value = await invoke("generate_password", { length: 24 })) }); - const save = el("button", { textContent: "Save" }); + const err = el("div", { className: "err" }); + const save = el("button", { textContent: "Save", className: "primary" }); save.onclick = async () => { - await invoke("save_item", { - item: { title: title.value, username: user.value || null, password: pass.value || null, urls: url.value ? [url.value] : [] }, - }); - await render(); + try { + await invoke("save_item", { + item: { title: title.value, username: user.value || null, password: pass.value || null, urls: url.value ? [url.value] : [], totp: totp.value || null }, + }); + await render(); + } catch (e) { + err.textContent = errText(e); + } }; - target.replaceChildren(el("div", { className: "card" }, el("h2", { textContent: "New login" }), title, user, pass, gen, url, save)); + target.replaceChildren(el("div", { className: "card" }, el("h2", { textContent: "New login" }), title, user, el("div", { className: "row" }, pass, gen), url, totp, save, err)); +} + +async function renderSettings(target: HTMLElement, state: AppState) { + const pairings = await invoke("list_pairings"); + const idle = el("select", {}, ...[1, 5, 10, 15, 30, 60, 120].map((m) => el("option", { value: String(m), textContent: `${m} min`, selected: m === state.idle_minutes }))); + idle.onchange = () => invoke("set_idle_minutes", { minutes: Number(idle.value) }); + const list = el("ul", { className: "plain" }); + for (const p of pairings) { + list.append( + el("li", {}, + el("div", { textContent: `${p.name}${p.caller ? ` · ${p.caller}` : ""}` }), + el("div", { className: "muted mono", textContent: p.words.join(" ") }), + el("div", { className: "muted", textContent: `Paired ${new Date(p.created_at * 1000).toLocaleString()}` }), + el("button", { + textContent: "Unpair", + onclick: async () => { + await invoke("revoke_pairing", { id: p.id }); + await renderSettings(target, state); + }, + })), + ); + } + if (!pairings.length) list.append(el("li", { className: "muted", textContent: "No browsers paired. Open the Kestrove extension in your browser and choose “Pair”." })); + target.replaceChildren( + el("h2", { textContent: "Settings" }), + el("label", { className: "row" }, "Lock after idle for ", idle), + el("p", { className: "muted", textContent: "Kestrove also locks on screen lock and sleep." }), + el("h3", { textContent: "Paired browsers" }), + list, + ); +} + +// ------------------------------------------------------------------ browser prompts (pairing, save) + +async function renderPrompts(state: AppState) { + overlay.replaceChildren(); + const pairing = await invoke("pending_pairing"); + if (pairing) overlay.append(pairingCard(pairing, state)); + if (state.has_account && !state.locked) { + for (const s of await invoke("pending_saves")) overlay.append(saveCard(s)); + } else if (state.has_account && (await invoke("pending_saves")).length) { + overlay.append(el("div", { className: "prompt" }, el("p", { textContent: "Unlock Kestrove to review logins your browser asked to save." }))); + } + overlay.hidden = !overlay.childElementCount; +} + +function pairingCard(p: PairingView, state: AppState): HTMLElement { + const err = el("div", { className: "err" }); + const words = el("div", { className: "words" }, ...p.words.map((w) => el("span", { textContent: w }))); + const accept = el("button", { textContent: "The words match: pair", className: "primary" }); + const reject = el("button", { textContent: "Don't pair" }); + const resolve = async (yes: boolean) => { + try { + await invoke("resolve_pairing", { id: p.id, accept: yes }); + await render(); + } catch (e) { + err.textContent = errText(e); + } + }; + accept.onclick = () => resolve(true); + reject.onclick = () => resolve(false); + accept.disabled = state.locked; + return el("div", { className: "prompt" }, + el("h3", { textContent: "Pair a browser?" }), + el("p", { textContent: `${p.name}${p.caller ? ` (${p.caller})` : ""} wants to use Kestrove. Check that the extension shows exactly these words:` }), + words, + state.locked ? el("p", { className: "muted", textContent: "Unlock Kestrove first, then confirm." }) : "", + el("div", { className: "row" }, accept, reject), + err); +} + +function saveCard(s: SaveView): HTMLElement { + const err = el("div", { className: "err" }); + const yes = el("button", { textContent: s.update ? "Update password" : "Save", className: "primary" }); + const no = el("button", { textContent: "Not now" }); + const resolve = async (accept: boolean) => { + try { + await invoke("resolve_save", { id: s.id, accept }); + await render(); + } catch (e) { + err.textContent = errText(e); + } + }; + yes.onclick = () => resolve(true); + no.onclick = () => resolve(false); + return el("div", { className: "prompt" }, + el("h3", { textContent: s.update ? "Update saved password?" : "Save this login?" }), + el("p", {}, el("span", { className: "mono", textContent: s.username || "(no username)" }), " on ", el("span", { className: "mono", textContent: s.origin })), + el("div", { className: "row" }, yes, no), + err); +} + +// ------------------------------------------------------------------ wiring + +void listen("pairing-request", () => render()); +void listen("save-request", () => render()); +void listen("locked", () => render()); + +// Activity for the idle timer (Linux has no system idle time without extra deps). +let lastTouch = 0; +for (const ev of ["keydown", "mousedown", "mousemove"]) { + document.addEventListener(ev, () => { + const now = Date.now(); + if (now - lastTouch > 30_000) { + lastTouch = now; + void invoke("touch"); + } + }, { passive: true }); } void render(); diff --git a/src/style.css b/src/style.css index 33653e3..df85120 100644 --- a/src/style.css +++ b/src/style.css @@ -14,3 +14,16 @@ section { padding: 16px; } .err { color: #d33; } .mono { font-family: ui-monospace, monospace; } .toolbar { display: flex; gap: 8px; padding: 8px; } +h3 { margin: 16px 0 8px; } +select { font: inherit; padding: 6px; border-radius: 6px; } +.row { display: flex; gap: 8px; align-items: center; } +.pad { padding: 0 12px; } +.primary { background: #2c6e86; color: white; border-color: transparent; } +.danger { color: #d33; } +ul.plain { padding: 0; } +ul.plain li { list-style: none; padding: 8px 0; border-bottom: 1px solid #8883; display: grid; gap: 4px; justify-items: start; } +#overlay { position: fixed; inset: 0; background: #0006; display: grid; place-content: center; gap: 12px; } +#overlay[hidden] { display: none; } +.prompt { background: Canvas; color: CanvasText; border-radius: 10px; padding: 16px 20px; width: 420px; box-shadow: 0 10px 40px #0005; } +.words { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; } +.words span { font: 600 15px ui-monospace, monospace; padding: 4px 8px; border-radius: 6px; background: #8882; }