From a33ed9fc7ee88a95fd852d3ba16a2c929ec8053f Mon Sep 17 00:00:00 2001 From: Nigel <201522880+Page011@users.noreply.github.com> Date: Wed, 18 Nov 2026 11:40:18 +1100 Subject: [PATCH 1/3] Local Tugboat 0.1.1: desktop and Android apps, Tugboat logo kit --- .gitignore | 6 + Cargo.lock | 7917 +++++++++++++++++ Cargo.toml | 39 + apps/android/.gitignore | 8 + apps/android/FFI.md | 326 + apps/android/app/build.gradle.kts | 79 + apps/android/app/lint.xml | 7 + apps/android/app/src/main/AndroidManifest.xml | 121 + .../java/app/localtugboat/ActivityScreen.kt | 81 + .../main/java/app/localtugboat/Background.kt | 109 + .../main/java/app/localtugboat/BatteryFix.kt | 51 + .../java/app/localtugboat/CameraScreen.kt | 560 ++ .../main/java/app/localtugboat/Components.kt | 225 + .../src/main/java/app/localtugboat/Core.kt | 200 + .../src/main/java/app/localtugboat/Export.kt | 104 + .../src/main/java/app/localtugboat/Gallery.kt | 223 + .../main/java/app/localtugboat/Heartbeat.kt | 77 + .../src/main/java/app/localtugboat/Import.kt | 273 + .../main/java/app/localtugboat/KeyVault.kt | 129 + .../java/app/localtugboat/LegacyMigration.kt | 213 + .../main/java/app/localtugboat/Location.kt | 63 + .../app/src/main/java/app/localtugboat/Log.kt | 37 + .../main/java/app/localtugboat/MagicBytes.kt | 46 + .../java/app/localtugboat/MainActivity.kt | 97 + .../src/main/java/app/localtugboat/Mark.kt | 41 + .../src/main/java/app/localtugboat/Notif.kt | 36 + .../main/java/app/localtugboat/Onboarding.kt | 230 + .../src/main/java/app/localtugboat/Paged.kt | 99 + .../main/java/app/localtugboat/PairingText.kt | 47 + .../src/main/java/app/localtugboat/Parts.kt | 80 + .../src/main/java/app/localtugboat/Perms.kt | 62 + .../app/src/main/java/app/localtugboat/Qr.kt | 36 + .../main/java/app/localtugboat/Settings.kt | 150 + .../java/app/localtugboat/ShareActivity.kt | 85 + .../src/main/java/app/localtugboat/Shell.kt | 113 + .../src/main/java/app/localtugboat/SnapApp.kt | 27 + .../main/java/app/localtugboat/SnapService.kt | 121 + .../java/app/localtugboat/SnapViewModel.kt | 424 + .../src/main/java/app/localtugboat/Texts.kt | 88 + .../src/main/java/app/localtugboat/Theme.kt | 154 + .../src/main/java/app/localtugboat/UiLogic.kt | 330 + .../src/main/java/app/localtugboat/Viewer.kt | 297 + .../src/main/res/drawable/ic_arrow_back.xml | 10 + .../main/res/drawable/ic_arrow_drop_down.xml | 9 + .../src/main/res/drawable/ic_broken_image.xml | 9 + .../src/main/res/drawable/ic_cameraswitch.xml | 9 + .../app/src/main/res/drawable/ic_check.xml | 9 + .../main/res/drawable/ic_chevron_right.xml | 9 + .../app/src/main/res/drawable/ic_delete.xml | 9 + .../app/src/main/res/drawable/ic_download.xml | 9 + .../main/res/drawable/ic_drive_file_move.xml | 10 + .../src/main/res/drawable/ic_flash_auto.xml | 9 + .../src/main/res/drawable/ic_flash_off.xml | 9 + .../app/src/main/res/drawable/ic_flash_on.xml | 9 + .../app/src/main/res/drawable/ic_folder.xml | 9 + .../app/src/main/res/drawable/ic_history.xml | 9 + .../res/drawable/ic_launcher_foreground.xml | 24 + .../res/drawable/ic_launcher_monochrome.xml | 24 + .../src/main/res/drawable/ic_location_off.xml | 9 + .../main/res/drawable/ic_photo_library.xml | 9 + .../res/drawable/ic_restore_from_trash.xml | 9 + .../app/src/main/res/drawable/ic_settings.xml | 9 + .../app/src/main/res/drawable/ic_share.xml | 9 + .../app/src/main/res/drawable/ic_star.xml | 9 + .../src/main/res/drawable/ic_star_fill1.xml | 9 + .../src/main/res/drawable/ic_stat_sync.xml | 14 + .../src/main/res/drawable/ic_sync_problem.xml | 9 + .../src/main/res/drawable/ic_tugboat_logo.xml | 24 + .../app/src/main/res/drawable/ic_videocam.xml | 10 + .../app/src/main/res/drawable/ic_warning.xml | 9 + .../main/res/mipmap-anydpi/ic_launcher.xml | 6 + .../app/src/main/res/values/colors.xml | 5 + .../app/src/main/res/values/strings.xml | 4 + .../app/src/main/res/values/themes.xml | 11 + .../main/res/xml/data_extraction_rules.xml | 20 + .../app/src/main/res/xml/file_paths.xml | 7 + .../java/app/localtugboat/AdversarialTest.kt | 55 + .../java/app/localtugboat/ContrastTest.kt | 119 + .../test/java/app/localtugboat/FixesTest.kt | 154 + .../java/app/localtugboat/HeartbeatLogTest.kt | 105 + .../app/localtugboat/LegacyMigrationTest.kt | 269 + .../java/app/localtugboat/MagicBytesTest.kt | 53 + .../java/app/localtugboat/PagedModelTest.kt | 158 + .../java/app/localtugboat/PairingTextTest.kt | 79 + .../test/java/app/localtugboat/TextsTest.kt | 84 + .../test/java/app/localtugboat/UiLogicTest.kt | 328 + .../adversarial_logo_migration.kt | 103 + apps/android/build-rust.cmd | 51 + apps/android/build.gradle.kts | 6 + apps/android/gradle.properties | 3 + .../android/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 63375 bytes .../gradle/wrapper/gradle-wrapper.properties | 7 + apps/android/gradlew | 248 + apps/android/gradlew.bat | 92 + apps/android/settings.gradle.kts | 16 + apps/desktop/bun.lock | 220 + apps/desktop/index.html | 12 + apps/desktop/package.json | 32 + apps/desktop/scripts/icons.ts | 39 + apps/desktop/scripts/qa.mjs | 104 + apps/desktop/scripts/resize.ps1 | 50 + apps/desktop/scripts/screenshot.ps1 | 92 + apps/desktop/src-tauri/Cargo.toml | 66 + apps/desktop/src-tauri/build.rs | 18 + apps/desktop/src-tauri/capabilities/main.json | 17 + .../src-tauri/gen/schemas/acl-manifests.json | 1 + .../src-tauri/gen/schemas/capabilities.json | 1 + .../src-tauri/gen/schemas/desktop-schema.json | 2657 ++++++ .../src-tauri/gen/schemas/windows-schema.json | 2657 ++++++ apps/desktop/src-tauri/icons/128x128.png | Bin 0 -> 2900 bytes apps/desktop/src-tauri/icons/128x128@2x.png | Bin 0 -> 5746 bytes apps/desktop/src-tauri/icons/32x32.png | Bin 0 -> 825 bytes apps/desktop/src-tauri/icons/icon.ico | Bin 0 -> 16752 bytes apps/desktop/src-tauri/icons/icon.png | Bin 0 -> 11637 bytes apps/desktop/src-tauri/installer/hooks.nsi | 25 + apps/desktop/src-tauri/src/applog.rs | 134 + apps/desktop/src-tauri/src/backend.rs | 503 ++ apps/desktop/src-tauri/src/bindings.rs | 107 + apps/desktop/src-tauri/src/commands.rs | 271 + apps/desktop/src-tauri/src/error.rs | 45 + apps/desktop/src-tauri/src/firewall.rs | 968 ++ apps/desktop/src-tauri/src/keys.rs | 155 + apps/desktop/src-tauri/src/lib.rs | 157 + apps/desktop/src-tauri/src/library/config.rs | 120 + apps/desktop/src-tauri/src/library/mod.rs | 241 + .../src-tauri/src/library/placement.rs | 467 + .../src-tauri/src/library/reconcile.rs | 1087 +++ apps/desktop/src-tauri/src/library/tests.rs | 1123 +++ apps/desktop/src-tauri/src/library/worker.rs | 167 + apps/desktop/src-tauri/src/main.rs | 6 + apps/desktop/src-tauri/src/paths.rs | 137 + apps/desktop/src-tauri/src/qr.rs | 54 + apps/desktop/src-tauri/src/shell.rs | 174 + apps/desktop/src-tauri/src/thumbs.rs | 118 + apps/desktop/src-tauri/src/tray.rs | 227 + apps/desktop/src-tauri/src/winfs.rs | 203 + apps/desktop/src-tauri/tauri.conf.json | 43 + apps/desktop/src-tauri/tests.manifest | 8 + .../src-tauri/tests/adversarial_firewall.rs | 25 + .../tests/adversarial_firewall_scope.rs | 162 + .../src-tauri/tests/adversarial_library.rs | 260 + apps/desktop/src-tauri/tests/backend_e2e.rs | 272 + apps/desktop/src/App.svelte | 189 + apps/desktop/src/app.css | 324 + apps/desktop/src/lib/Activity.svelte | 127 + apps/desktop/src/lib/Banners.svelte | 84 + apps/desktop/src/lib/Bin.svelte | 71 + apps/desktop/src/lib/Chip.svelte | 9 + apps/desktop/src/lib/Dialog.svelte | 63 + apps/desktop/src/lib/Gallery.svelte | 133 + apps/desktop/src/lib/ItemGrid.svelte | 145 + apps/desktop/src/lib/ItemTile.svelte | 114 + apps/desktop/src/lib/Mark.svelte | 14 + apps/desktop/src/lib/Pair.svelte | 138 + apps/desktop/src/lib/Settings.svelte | 153 + apps/desktop/src/lib/StatusBar.svelte | 54 + .../src/lib/adversarial_logo_grid.test.ts | 53 + apps/desktop/src/lib/api.test.ts | 84 + apps/desktop/src/lib/api.ts | 133 + apps/desktop/src/lib/app.svelte.ts | 205 + apps/desktop/src/lib/banners.test.ts | 72 + apps/desktop/src/lib/banners.ts | 82 + .../src/lib/bindings/ActivityAction.ts | 3 + .../desktop/src/lib/bindings/ActivityEntry.ts | 14 + apps/desktop/src/lib/bindings/AppInfo.ts | 11 + apps/desktop/src/lib/bindings/CmdError.ts | 3 + apps/desktop/src/lib/bindings/DeviceId.ts | 6 + apps/desktop/src/lib/bindings/Event.ts | 6 + apps/desktop/src/lib/bindings/FirewallInfo.ts | 12 + .../src/lib/bindings/FirewallStatus.ts | 3 + apps/desktop/src/lib/bindings/FolderId.ts | 7 + apps/desktop/src/lib/bindings/FolderKind.ts | 3 + apps/desktop/src/lib/bindings/FolderView.ts | 10 + apps/desktop/src/lib/bindings/ItemId.ts | 6 + apps/desktop/src/lib/bindings/ItemQuery.ts | 17 + apps/desktop/src/lib/bindings/ItemState.ts | 6 + apps/desktop/src/lib/bindings/ItemView.ts | 17 + .../desktop/src/lib/bindings/LibraryHealth.ts | 3 + .../desktop/src/lib/bindings/LibraryStatus.ts | 17 + .../src/lib/bindings/LocalFileState.ts | 6 + apps/desktop/src/lib/bindings/MediaKind.ts | 3 + .../desktop/src/lib/bindings/NotSyncedFile.ts | 10 + apps/desktop/src/lib/bindings/Page.ts | 7 + apps/desktop/src/lib/bindings/PairedDevice.ts | 4 + apps/desktop/src/lib/bindings/PairingEvent.ts | 9 + apps/desktop/src/lib/bindings/PairingStart.ts | 15 + apps/desktop/src/lib/bindings/Retention.ts | 6 + apps/desktop/src/lib/bindings/Settings.ts | 34 + apps/desktop/src/lib/bindings/SyncState.ts | 3 + apps/desktop/src/lib/bindings/SyncStatus.ts | 20 + apps/desktop/src/lib/bindings/TrayState.ts | 3 + apps/desktop/src/lib/format.test.ts | 134 + apps/desktop/src/lib/format.ts | 184 + apps/desktop/src/lib/icons.ts | 18 + apps/desktop/src/lib/mark.test.ts | 39 + apps/desktop/src/lib/paged.svelte.ts | 78 + apps/desktop/src/lib/pairing.test.ts | 40 + apps/desktop/src/lib/pairing.ts | 53 + apps/desktop/src/lib/theme.test.ts | 121 + apps/desktop/src/lib/virtual.test.ts | 101 + apps/desktop/src/lib/virtual.ts | 49 + apps/desktop/src/main.ts | 4 + apps/desktop/src/vite-env.d.ts | 2 + apps/desktop/svelte.config.js | 3 + apps/desktop/tsconfig.json | 17 + apps/desktop/vite.config.ts | 10 + assets/brand/README.md | 100 + assets/brand/android-background.svg | 3 + assets/brand/android-foreground.svg | 131 + assets/brand/android-monochrome.svg | 131 + assets/brand/ico/tray-offline.ico | Bin 0 -> 6430 bytes assets/brand/ico/tray-synced.ico | Bin 0 -> 5810 bytes assets/brand/ico/tray-waiting.ico | Bin 0 -> 7166 bytes assets/brand/ico/tugboat-app.ico | Bin 0 -> 16752 bytes assets/brand/tools/check_render.py | 44 + assets/brand/tools/compare.py | 43 + assets/brand/tools/fit.py | 239 + assets/brand/tools/geom.json | 1 + assets/brand/tools/lib.py | 85 + assets/brand/tools/make_all.py | 218 + assets/brand/tools/make_ico.py | 71 + assets/brand/tools/make_logo.py | 56 + assets/brand/tools/render.py | 49 + assets/brand/tools/shoot.cjs | 30 + assets/brand/tools/trace.py | 120 + assets/brand/tray-offline.svg | 136 + assets/brand/tray-synced.svg | 134 + assets/brand/tray-waiting.svg | 136 + assets/brand/tugboat-1024.png | Bin 0 -> 22273 bytes assets/brand/tugboat-logo.svg | 131 + assets/brand/tugboat-mark-square.svg | 132 + assets/brand/tugboat-play-512.png | Bin 0 -> 13307 bytes assets/brand/tugboat-play-512.svg | 134 + assets/brand/tugboat-tile-1024.svg | 134 + crates/core/Cargo.toml | 32 + crates/core/bindings/ActivityAction.ts | 3 + crates/core/bindings/ActivityEntry.ts | 14 + crates/core/bindings/BlobHash.ts | 6 + crates/core/bindings/DeviceId.ts | 6 + crates/core/bindings/Event.ts | 6 + crates/core/bindings/FolderId.ts | 7 + crates/core/bindings/FolderKind.ts | 3 + crates/core/bindings/FolderView.ts | 10 + crates/core/bindings/ItemId.ts | 6 + crates/core/bindings/ItemQuery.ts | 17 + crates/core/bindings/ItemState.ts | 6 + crates/core/bindings/ItemView.ts | 17 + crates/core/bindings/LocalFileState.ts | 6 + crates/core/bindings/MediaKind.ts | 3 + crates/core/bindings/Page.ts | 7 + crates/core/bindings/PairingEvent.ts | 9 + crates/core/bindings/PlaceId.ts | 3 + crates/core/bindings/Retention.ts | 6 + crates/core/bindings/Role.ts | 3 + crates/core/bindings/Settings.ts | 34 + crates/core/bindings/SyncState.ts | 3 + crates/core/bindings/SyncStatus.ts | 20 + crates/core/examples/fake_pc.rs | 298 + crates/core/examples/fake_phone.rs | 195 + crates/core/src/activity.rs | 219 + crates/core/src/bin.rs | 712 ++ crates/core/src/clock.rs | 82 + crates/core/src/db.rs | 280 + crates/core/src/error.rs | 120 + crates/core/src/events.rs | 97 + crates/core/src/expiry.rs | 215 + crates/core/src/facade.rs | 834 ++ crates/core/src/folders.rs | 264 + crates/core/src/lib.rs | 35 + crates/core/src/merge.rs | 872 ++ crates/core/src/model.rs | 612 ++ crates/core/src/names.rs | 577 ++ crates/core/src/ops.rs | 1276 +++ crates/core/src/placement.rs | 331 + crates/core/src/places.rs | 184 + crates/core/src/schema/v1.sql | 155 + crates/core/src/store.rs | 1557 ++++ crates/core/src/sync/digest.rs | 187 + crates/core/src/sync/engine.rs | 568 ++ crates/core/src/sync/mod.rs | 16 + crates/core/src/sync/net.rs | 1034 +++ crates/core/src/sync/pair.rs | 339 + crates/core/src/sync/wire.rs | 120 + crates/core/tests/adversarial.rs | 137 + crates/core/tests/common/mod.rs | 349 + crates/core/tests/engine.rs | 345 + crates/core/tests/pairing_flow.rs | 307 + crates/core/tests/review_fixes.rs | 124 + crates/core/tests/robust.rs | 308 + crates/core/tests/two_cores.rs | 354 + crates/ffi/Cargo.toml | 37 + crates/ffi/src/bin/uniffi-bindgen.rs | 3 + crates/ffi/src/error.rs | 155 + crates/ffi/src/lib.rs | 833 ++ crates/ffi/src/logging.rs | 200 + crates/ffi/tests/adversarial.rs | 190 + crates/ffi/tests/phone_flow.rs | 342 + crates/net/Cargo.toml | 25 + crates/net/src/blob.rs | 301 + crates/net/src/error.rs | 111 + crates/net/src/frame.rs | 76 + crates/net/src/guard.rs | 119 + crates/net/src/lib.rs | 56 + crates/net/src/local.rs | 106 + crates/net/src/node.rs | 533 ++ crates/net/src/pairing.rs | 581 ++ crates/net/src/tests/blob.rs | 327 + crates/net/src/tests/frame.rs | 109 + crates/net/src/tests/guard.rs | 102 + crates/net/src/tests/local.rs | 74 + crates/net/src/tests/mod.rs | 159 + crates/net/src/tests/node.rs | 296 + crates/net/src/tests/pairing.rs | 492 + crates/net/tests/adversarial_rename.rs | 18 + 314 files changed, 53121 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 apps/android/.gitignore create mode 100644 apps/android/FFI.md create mode 100644 apps/android/app/build.gradle.kts create mode 100644 apps/android/app/lint.xml create mode 100644 apps/android/app/src/main/AndroidManifest.xml create mode 100644 apps/android/app/src/main/java/app/localtugboat/ActivityScreen.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Background.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/BatteryFix.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/CameraScreen.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Components.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Core.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Export.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Gallery.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Heartbeat.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Import.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/KeyVault.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/LegacyMigration.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Location.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Log.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/MagicBytes.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/MainActivity.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Mark.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Notif.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Onboarding.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Paged.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/PairingText.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Parts.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Perms.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Qr.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Settings.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/ShareActivity.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Shell.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/SnapApp.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/SnapService.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/SnapViewModel.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Texts.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Theme.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/UiLogic.kt create mode 100644 apps/android/app/src/main/java/app/localtugboat/Viewer.kt create mode 100644 apps/android/app/src/main/res/drawable/ic_arrow_back.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_arrow_drop_down.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_broken_image.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_cameraswitch.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_check.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_chevron_right.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_delete.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_download.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_drive_file_move.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_flash_auto.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_flash_off.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_flash_on.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_folder.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_history.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_launcher_foreground.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_launcher_monochrome.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_location_off.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_photo_library.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_restore_from_trash.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_settings.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_share.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_star.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_star_fill1.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_stat_sync.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_sync_problem.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_tugboat_logo.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_videocam.xml create mode 100644 apps/android/app/src/main/res/drawable/ic_warning.xml create mode 100644 apps/android/app/src/main/res/mipmap-anydpi/ic_launcher.xml create mode 100644 apps/android/app/src/main/res/values/colors.xml create mode 100644 apps/android/app/src/main/res/values/strings.xml create mode 100644 apps/android/app/src/main/res/values/themes.xml create mode 100644 apps/android/app/src/main/res/xml/data_extraction_rules.xml create mode 100644 apps/android/app/src/main/res/xml/file_paths.xml create mode 100644 apps/android/app/src/test/java/app/localtugboat/AdversarialTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/ContrastTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/FixesTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/HeartbeatLogTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/LegacyMigrationTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/MagicBytesTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/PagedModelTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/PairingTextTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/TextsTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/UiLogicTest.kt create mode 100644 apps/android/app/src/test/java/app/localtugboat/adversarial_logo_migration.kt create mode 100644 apps/android/build-rust.cmd create mode 100644 apps/android/build.gradle.kts create mode 100644 apps/android/gradle.properties create mode 100644 apps/android/gradle/wrapper/gradle-wrapper.jar create mode 100644 apps/android/gradle/wrapper/gradle-wrapper.properties create mode 100644 apps/android/gradlew create mode 100644 apps/android/gradlew.bat create mode 100644 apps/android/settings.gradle.kts create mode 100644 apps/desktop/bun.lock create mode 100644 apps/desktop/index.html create mode 100644 apps/desktop/package.json create mode 100644 apps/desktop/scripts/icons.ts create mode 100644 apps/desktop/scripts/qa.mjs create mode 100644 apps/desktop/scripts/resize.ps1 create mode 100644 apps/desktop/scripts/screenshot.ps1 create mode 100644 apps/desktop/src-tauri/Cargo.toml create mode 100644 apps/desktop/src-tauri/build.rs create mode 100644 apps/desktop/src-tauri/capabilities/main.json create mode 100644 apps/desktop/src-tauri/gen/schemas/acl-manifests.json create mode 100644 apps/desktop/src-tauri/gen/schemas/capabilities.json create mode 100644 apps/desktop/src-tauri/gen/schemas/desktop-schema.json create mode 100644 apps/desktop/src-tauri/gen/schemas/windows-schema.json create mode 100644 apps/desktop/src-tauri/icons/128x128.png create mode 100644 apps/desktop/src-tauri/icons/128x128@2x.png create mode 100644 apps/desktop/src-tauri/icons/32x32.png create mode 100644 apps/desktop/src-tauri/icons/icon.ico create mode 100644 apps/desktop/src-tauri/icons/icon.png create mode 100644 apps/desktop/src-tauri/installer/hooks.nsi create mode 100644 apps/desktop/src-tauri/src/applog.rs create mode 100644 apps/desktop/src-tauri/src/backend.rs create mode 100644 apps/desktop/src-tauri/src/bindings.rs create mode 100644 apps/desktop/src-tauri/src/commands.rs create mode 100644 apps/desktop/src-tauri/src/error.rs create mode 100644 apps/desktop/src-tauri/src/firewall.rs create mode 100644 apps/desktop/src-tauri/src/keys.rs create mode 100644 apps/desktop/src-tauri/src/lib.rs create mode 100644 apps/desktop/src-tauri/src/library/config.rs create mode 100644 apps/desktop/src-tauri/src/library/mod.rs create mode 100644 apps/desktop/src-tauri/src/library/placement.rs create mode 100644 apps/desktop/src-tauri/src/library/reconcile.rs create mode 100644 apps/desktop/src-tauri/src/library/tests.rs create mode 100644 apps/desktop/src-tauri/src/library/worker.rs create mode 100644 apps/desktop/src-tauri/src/main.rs create mode 100644 apps/desktop/src-tauri/src/paths.rs create mode 100644 apps/desktop/src-tauri/src/qr.rs create mode 100644 apps/desktop/src-tauri/src/shell.rs create mode 100644 apps/desktop/src-tauri/src/thumbs.rs create mode 100644 apps/desktop/src-tauri/src/tray.rs create mode 100644 apps/desktop/src-tauri/src/winfs.rs create mode 100644 apps/desktop/src-tauri/tauri.conf.json create mode 100644 apps/desktop/src-tauri/tests.manifest create mode 100644 apps/desktop/src-tauri/tests/adversarial_firewall.rs create mode 100644 apps/desktop/src-tauri/tests/adversarial_firewall_scope.rs create mode 100644 apps/desktop/src-tauri/tests/adversarial_library.rs create mode 100644 apps/desktop/src-tauri/tests/backend_e2e.rs create mode 100644 apps/desktop/src/App.svelte create mode 100644 apps/desktop/src/app.css create mode 100644 apps/desktop/src/lib/Activity.svelte create mode 100644 apps/desktop/src/lib/Banners.svelte create mode 100644 apps/desktop/src/lib/Bin.svelte create mode 100644 apps/desktop/src/lib/Chip.svelte create mode 100644 apps/desktop/src/lib/Dialog.svelte create mode 100644 apps/desktop/src/lib/Gallery.svelte create mode 100644 apps/desktop/src/lib/ItemGrid.svelte create mode 100644 apps/desktop/src/lib/ItemTile.svelte create mode 100644 apps/desktop/src/lib/Mark.svelte create mode 100644 apps/desktop/src/lib/Pair.svelte create mode 100644 apps/desktop/src/lib/Settings.svelte create mode 100644 apps/desktop/src/lib/StatusBar.svelte create mode 100644 apps/desktop/src/lib/adversarial_logo_grid.test.ts create mode 100644 apps/desktop/src/lib/api.test.ts create mode 100644 apps/desktop/src/lib/api.ts create mode 100644 apps/desktop/src/lib/app.svelte.ts create mode 100644 apps/desktop/src/lib/banners.test.ts create mode 100644 apps/desktop/src/lib/banners.ts create mode 100644 apps/desktop/src/lib/bindings/ActivityAction.ts create mode 100644 apps/desktop/src/lib/bindings/ActivityEntry.ts create mode 100644 apps/desktop/src/lib/bindings/AppInfo.ts create mode 100644 apps/desktop/src/lib/bindings/CmdError.ts create mode 100644 apps/desktop/src/lib/bindings/DeviceId.ts create mode 100644 apps/desktop/src/lib/bindings/Event.ts create mode 100644 apps/desktop/src/lib/bindings/FirewallInfo.ts create mode 100644 apps/desktop/src/lib/bindings/FirewallStatus.ts create mode 100644 apps/desktop/src/lib/bindings/FolderId.ts create mode 100644 apps/desktop/src/lib/bindings/FolderKind.ts create mode 100644 apps/desktop/src/lib/bindings/FolderView.ts create mode 100644 apps/desktop/src/lib/bindings/ItemId.ts create mode 100644 apps/desktop/src/lib/bindings/ItemQuery.ts create mode 100644 apps/desktop/src/lib/bindings/ItemState.ts create mode 100644 apps/desktop/src/lib/bindings/ItemView.ts create mode 100644 apps/desktop/src/lib/bindings/LibraryHealth.ts create mode 100644 apps/desktop/src/lib/bindings/LibraryStatus.ts create mode 100644 apps/desktop/src/lib/bindings/LocalFileState.ts create mode 100644 apps/desktop/src/lib/bindings/MediaKind.ts create mode 100644 apps/desktop/src/lib/bindings/NotSyncedFile.ts create mode 100644 apps/desktop/src/lib/bindings/Page.ts create mode 100644 apps/desktop/src/lib/bindings/PairedDevice.ts create mode 100644 apps/desktop/src/lib/bindings/PairingEvent.ts create mode 100644 apps/desktop/src/lib/bindings/PairingStart.ts create mode 100644 apps/desktop/src/lib/bindings/Retention.ts create mode 100644 apps/desktop/src/lib/bindings/Settings.ts create mode 100644 apps/desktop/src/lib/bindings/SyncState.ts create mode 100644 apps/desktop/src/lib/bindings/SyncStatus.ts create mode 100644 apps/desktop/src/lib/bindings/TrayState.ts create mode 100644 apps/desktop/src/lib/format.test.ts create mode 100644 apps/desktop/src/lib/format.ts create mode 100644 apps/desktop/src/lib/icons.ts create mode 100644 apps/desktop/src/lib/mark.test.ts create mode 100644 apps/desktop/src/lib/paged.svelte.ts create mode 100644 apps/desktop/src/lib/pairing.test.ts create mode 100644 apps/desktop/src/lib/pairing.ts create mode 100644 apps/desktop/src/lib/theme.test.ts create mode 100644 apps/desktop/src/lib/virtual.test.ts create mode 100644 apps/desktop/src/lib/virtual.ts create mode 100644 apps/desktop/src/main.ts create mode 100644 apps/desktop/src/vite-env.d.ts create mode 100644 apps/desktop/svelte.config.js create mode 100644 apps/desktop/tsconfig.json create mode 100644 apps/desktop/vite.config.ts create mode 100644 assets/brand/README.md create mode 100644 assets/brand/android-background.svg create mode 100644 assets/brand/android-foreground.svg create mode 100644 assets/brand/android-monochrome.svg create mode 100644 assets/brand/ico/tray-offline.ico create mode 100644 assets/brand/ico/tray-synced.ico create mode 100644 assets/brand/ico/tray-waiting.ico create mode 100644 assets/brand/ico/tugboat-app.ico create mode 100644 assets/brand/tools/check_render.py create mode 100644 assets/brand/tools/compare.py create mode 100644 assets/brand/tools/fit.py create mode 100644 assets/brand/tools/geom.json create mode 100644 assets/brand/tools/lib.py create mode 100644 assets/brand/tools/make_all.py create mode 100644 assets/brand/tools/make_ico.py create mode 100644 assets/brand/tools/make_logo.py create mode 100644 assets/brand/tools/render.py create mode 100644 assets/brand/tools/shoot.cjs create mode 100644 assets/brand/tools/trace.py create mode 100644 assets/brand/tray-offline.svg create mode 100644 assets/brand/tray-synced.svg create mode 100644 assets/brand/tray-waiting.svg create mode 100644 assets/brand/tugboat-1024.png create mode 100644 assets/brand/tugboat-logo.svg create mode 100644 assets/brand/tugboat-mark-square.svg create mode 100644 assets/brand/tugboat-play-512.png create mode 100644 assets/brand/tugboat-play-512.svg create mode 100644 assets/brand/tugboat-tile-1024.svg create mode 100644 crates/core/Cargo.toml create mode 100644 crates/core/bindings/ActivityAction.ts create mode 100644 crates/core/bindings/ActivityEntry.ts create mode 100644 crates/core/bindings/BlobHash.ts create mode 100644 crates/core/bindings/DeviceId.ts create mode 100644 crates/core/bindings/Event.ts create mode 100644 crates/core/bindings/FolderId.ts create mode 100644 crates/core/bindings/FolderKind.ts create mode 100644 crates/core/bindings/FolderView.ts create mode 100644 crates/core/bindings/ItemId.ts create mode 100644 crates/core/bindings/ItemQuery.ts create mode 100644 crates/core/bindings/ItemState.ts create mode 100644 crates/core/bindings/ItemView.ts create mode 100644 crates/core/bindings/LocalFileState.ts create mode 100644 crates/core/bindings/MediaKind.ts create mode 100644 crates/core/bindings/Page.ts create mode 100644 crates/core/bindings/PairingEvent.ts create mode 100644 crates/core/bindings/PlaceId.ts create mode 100644 crates/core/bindings/Retention.ts create mode 100644 crates/core/bindings/Role.ts create mode 100644 crates/core/bindings/Settings.ts create mode 100644 crates/core/bindings/SyncState.ts create mode 100644 crates/core/bindings/SyncStatus.ts create mode 100644 crates/core/examples/fake_pc.rs create mode 100644 crates/core/examples/fake_phone.rs create mode 100644 crates/core/src/activity.rs create mode 100644 crates/core/src/bin.rs create mode 100644 crates/core/src/clock.rs create mode 100644 crates/core/src/db.rs create mode 100644 crates/core/src/error.rs create mode 100644 crates/core/src/events.rs create mode 100644 crates/core/src/expiry.rs create mode 100644 crates/core/src/facade.rs create mode 100644 crates/core/src/folders.rs create mode 100644 crates/core/src/lib.rs create mode 100644 crates/core/src/merge.rs create mode 100644 crates/core/src/model.rs create mode 100644 crates/core/src/names.rs create mode 100644 crates/core/src/ops.rs create mode 100644 crates/core/src/placement.rs create mode 100644 crates/core/src/places.rs create mode 100644 crates/core/src/schema/v1.sql create mode 100644 crates/core/src/store.rs create mode 100644 crates/core/src/sync/digest.rs create mode 100644 crates/core/src/sync/engine.rs create mode 100644 crates/core/src/sync/mod.rs create mode 100644 crates/core/src/sync/net.rs create mode 100644 crates/core/src/sync/pair.rs create mode 100644 crates/core/src/sync/wire.rs create mode 100644 crates/core/tests/adversarial.rs create mode 100644 crates/core/tests/common/mod.rs create mode 100644 crates/core/tests/engine.rs create mode 100644 crates/core/tests/pairing_flow.rs create mode 100644 crates/core/tests/review_fixes.rs create mode 100644 crates/core/tests/robust.rs create mode 100644 crates/core/tests/two_cores.rs create mode 100644 crates/ffi/Cargo.toml create mode 100644 crates/ffi/src/bin/uniffi-bindgen.rs create mode 100644 crates/ffi/src/error.rs create mode 100644 crates/ffi/src/lib.rs create mode 100644 crates/ffi/src/logging.rs create mode 100644 crates/ffi/tests/adversarial.rs create mode 100644 crates/ffi/tests/phone_flow.rs create mode 100644 crates/net/Cargo.toml create mode 100644 crates/net/src/blob.rs create mode 100644 crates/net/src/error.rs create mode 100644 crates/net/src/frame.rs create mode 100644 crates/net/src/guard.rs create mode 100644 crates/net/src/lib.rs create mode 100644 crates/net/src/local.rs create mode 100644 crates/net/src/node.rs create mode 100644 crates/net/src/pairing.rs create mode 100644 crates/net/src/tests/blob.rs create mode 100644 crates/net/src/tests/frame.rs create mode 100644 crates/net/src/tests/guard.rs create mode 100644 crates/net/src/tests/local.rs create mode 100644 crates/net/src/tests/mod.rs create mode 100644 crates/net/src/tests/node.rs create mode 100644 crates/net/src/tests/pairing.rs create mode 100644 crates/net/tests/adversarial_rename.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0eb089b --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/target +node_modules +dist +/spike/ +/PLAN.md +/notes/ diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..03ab101 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7917 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "acto" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "598381761ee991bf2f1455f700380e2191fb370dc9df1ee764f348b7f089d8b6" +dependencies = [ + "parking_lot", + "pin-project-lite", + "rustc_version", + "smol_str", + "sync_wrapper", + "tokio", + "tracing", +] + +[[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 0.1.7", + "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 = "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 = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "arc-swap" +version = "1.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84a22b5d51209f6de83d37a0b33d320acb8da88823e42a94c075140708f032a5" +dependencies = [ + "rustversion", +] + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "askama" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6024d73179f43f15ccd2b881bfea6fee7f3a46ec53f33b52210dea749ebebaa4" +dependencies = [ + "askama_macros", + "itoa", + "percent-encoding", + "serde", + "serde_json", +] + +[[package]] +name = "askama_derive" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071ee5ebf2138e3ad180e0aacf6940c2cab5e6d8333741d9925c7bee2b153f39" +dependencies = [ + "askama_parser", + "basic-toml", + "glob", + "memchr", + "proc-macro2", + "quote", + "rustc-hash", + "serde", + "serde_derive", + "syn 3.0.10", +] + +[[package]] +name = "askama_macros" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643e1c7cbb6aec1d920332fe51a7c0d8219e273dcb8602db03f5263e4d16487b" +dependencies = [ + "askama_derive", +] + +[[package]] +name = "askama_parser" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c5ae75772275d268b03ab8bdccdd12117b6169ee23256942b34e46c9f476583" +dependencies = [ + "rustc-hash", + "serde", + "serde_derive", + "unicode-ident", + "winnow 1.0.5", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0876700b0d007ad25d5508865a4259c3af9af6d296bf663a0d586d0bc3369f6f" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "async_io_stream" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d7b9decdf35d8908a7e3ef02f64c5e9b1695e230154c0e8de3969142d9b94c" +dependencies = [ + "futures", + "pharos", + "rustc_version", +] + +[[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 = "auto-launch" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17918dba7ecf78b9a14507ec9f984e7977d13fad87dc86d61038980a45d128cf" +dependencies = [ + "dirs 6.0.0", + "os_info", + "smappservice-rs", + "thiserror 2.0.21", + "windows-registry", + "windows-result 0.4.1", +] + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "backon" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cffb0e931875b666fc4fcb20fee52e9bbd1ef836fd9e9e04ec21555f9f85f7ef" +dependencies = [ + "fastrand", + "gloo-timers", + "tokio", +] + +[[package]] +name = "base16ct" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6" + +[[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 = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec 0.8.0", +] + +[[package]] +name = "bit-set" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c" +dependencies = [ + "bit-vec 0.10.2", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bit-vec" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72503af1e72be411d74ca45cd6b309878fcb35354e252fc2a3a8bda3a97082a0" + +[[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 = "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 = "block-buffer" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "brotli" +version = "9.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9071f285ed78f04f37d675abaaef5de7689e2f30a216c8dc6795465d81910a13" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "6.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc031cd87c6529082b0b65c604e86af0ed7744841b17ccfe60b1e31fa606179e" +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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.13.2", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo-platform" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0061da739915fae12ea00e16397555ed4371a6bb285431aab930f61b0aa4ba" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform 0.1.9", + "semver", + "serde", + "serde_json", + "thiserror 2.0.21", +] + +[[package]] +name = "cargo_metadata" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef987d17b0a113becdd19d3d0022d04d7ef41f9efe4f3fb63ac44ba61df3ade9" +dependencies = [ + "camino", + "cargo-platform 0.3.3", + "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.2.1+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" +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 = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "rand_core", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common 0.1.7", + "inout", +] + +[[package]] +name = "clap" +version = "4.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac230478587d0269d8d6998b82ae69ea51509d55df66d9e92edd1f986904cd4a" +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 = [ + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "895c9d8d2ac2dd8b8a29f3724a14e72aaaa6debcf8c38c82f97305c6a172767a" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "clap_lex" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79" + +[[package]] +name = "cmov" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" + +[[package]] +name = "cobs" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1" +dependencies = [ + "thiserror 2.0.21", +] + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "const-oid" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a" + +[[package]] +name = "constant_time_eq" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" + +[[package]] +name = "convert_case" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +dependencies = [ + "unicode-segmentation", +] + +[[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 = "cordyceps" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b9ab7e0ca1d179628fa0172b2b97203c7fa0cd81be2448bd446fb9559ca9261" +dependencies = [ + "loom", + "tracing", +] + +[[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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "critical-section" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" + +[[package]] +name = "crossbeam-channel" +version = "0.5.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "crypto-common" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" +dependencies = [ + "hybrid-array", + "rand_core", +] + +[[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 0.13.1", + "smallvec", +] + +[[package]] +name = "cssparser" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11119743ad110e8c1bdccd930d7f5c30c99e5fc76a7b63ec9807e84eef0c5f59" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf 0.14.0", + "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.10", +] + +[[package]] +name = "ctor" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea691ed9f36489d087419b8b2ba3ef27d89621380b4178c73e2445a379e4e0f4" +dependencies = [ + "link-section", +] + +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher", +] + +[[package]] +name = "ctutils" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f" +dependencies = [ + "cmov", +] + +[[package]] +name = "curve25519-dalek" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5eed333089e2e1c1ac8c6c0398e5e2497b4c9926ca6d0365ed1e099afa5bc23" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "curve25519-dalek-derive", + "digest 0.11.3", + "fiat-crypto", + "rand_core", + "rustc_version", + "serde", + "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.10", +] + +[[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.10", +] + +[[package]] +name = "data-encoding" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06" + +[[package]] +name = "data-encoding-macro" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6a127ecbb3c4632e1525380e04c0c3fcf8dcb44d32a79ea290d8a36906edcd8" +dependencies = [ + "data-encoding", + "data-encoding-macro-internal", +] + +[[package]] +name = "data-encoding-macro-internal" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c54e03a951783e8b327515db3f2a2fd0e3bed362a96b066f341ce66ed49b4ead" +dependencies = [ + "data-encoding", + "syn 3.0.10", +] + +[[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 = "der" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a996a108feb8b427a6e12fcf6af4aa83409b79d72c15337d7741368131ee004" +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_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 = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", + "unicode-xid", +] + +[[package]] +name = "diatomic-waker" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab03c107fafeb3ee9f5925686dbb7a73bc76e3932abb0d2b365cb64b169cf04c" + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common 0.1.7", +] + +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer 0.12.1", + "const-oid", + "crypto-common 0.2.2", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[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.10", +] + +[[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 0.8.0", + "cssparser 0.37.0", + "foldhash", + "html5ever 0.39.0", + "precomputed-hash", + "selectors 0.38.0", + "tendril", +] + +[[package]] +name = "dom_query" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498c698ac51127148a3984450e51fca7f01805a91d7a1f7a24af0a5f761e3385" +dependencies = [ + "bit-set 0.11.1", + "cssparser 0.38.0", + "foldhash", + "html5ever 0.40.1", + "precomputed-hash", + "selectors 0.41.0", + "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 = "ed25519" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29fcf32e6c73d1079f83ab4d782de2d81620346a5f38c6237a86a22f8368980a" +dependencies = [ + "pkcs8", + "serdect", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ebaa1a2bf1290ab3bfe5a7b771d050ebffab2711c19a81691c683a5144a25de" +dependencies = [ + "curve25519-dalek", + "ed25519", + "rand_core", + "serde", + "sha2 0.11.1", + "signature", + "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.2.1+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 = "embedded-io" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced" + +[[package]] +name = "embedded-io" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enum-assoc" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "378cfad7ff892555026001b3bb6c2becb98f0aafcd7ddccd5dfa506977f17c8a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "erased-serde" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e59b668157f32d3459d4bd634861a06ffa2503a461ca5f0916b9f0252605e66" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "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 = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "fiat-crypto" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64cd1e32ddd350061ae6edb1b082d7c54915b5c672c389143b9a63403a109f24" + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "fixedbitset" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5905ec755cc8386d7928353e4d356d2be3e89e81e5ca01fe630a1ca4d08dc175" + +[[package]] +name = "flate2" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" +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.10", +] + +[[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 = "3.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5c95b673b8f6f7235229ae11c5642d81b04c2e64c1e2fb417bc0cf73ca45f29" +dependencies = [ + "autocfg", +] + +[[package]] +name = "fs4" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5" +dependencies = [ + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "futures" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-buffered" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bf9d35e4228d3bef48dfd0ceb615166ee3eb869a5bfc1923d7d47340a1e5684" +dependencies = [ + "cordyceps", + "diatomic-waker", + "fixedbitset", + "futures-core", + "pin-project-lite", + "spin", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[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-channel", + "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 = "generator" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6c6a73cd1aa4f4f00c02b109fa55d3a9d6ecc2fc4f53177b74ed6ee23b0c53" +dependencies = [ + "cc", + "libc", + "log", + "rustversion", + "windows-core 0.100.0", + "windows-sys 0.61.2", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.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", + "js-sys", + "libc", + "r-efi 6.0.0", + "rand_core", + "wasm-bindgen", +] + +[[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 = "gloo-timers" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994" +dependencies = [ + "futures-channel", + "futures-core", + "js-sys", + "wasm-bindgen", +] + +[[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 = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashlink" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a596f1b20ed2cc5ecac41a164aaebc7258057060f06c0cf7a2ba3991ee7990fb" +dependencies = [ + "hashbrown 0.17.1", +] + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hickory-proto" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12b92608f679a6fa515dd1d15c1ff89443026e391200a2c840c7afcba482893d" +dependencies = [ + "data-encoding", + "idna", + "ipnet", + "jni 0.22.4", + "once_cell", + "rand", + "thiserror 2.0.21", + "tinyvec", + "tracing", + "url", +] + +[[package]] +name = "html5ever" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8" +dependencies = [ + "log", + "markup5ever 0.39.0", +] + +[[package]] +name = "html5ever" +version = "0.40.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456a1a377e608e555d22ddab27ac0114bc7a7b4199078108e34c2aeae6c9b130" +dependencies = [ + "log", + "markup5ever 0.40.0", + "memchr", +] + +[[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 = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hybrid-array" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17" +dependencies = [ + "typenum", +] + +[[package]] +name = "hyper" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +dependencies = [ + "atomic-waker", + "bytes", + "futures-core", + "http", + "http-body", + "httparse", + "httpdate", + "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 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75e94d66081e4d8dcd098bd8dc5254800fea14a26389b298410158d834de167" +dependencies = [ + "byteorder", + "png", +] + +[[package]] +name = "icu_collections" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc" + +[[package]] +name = "icu_properties" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf" + +[[package]] +name = "icu_provider" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "identity-hash" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfdd7caa900436d8f13b2346fe10257e0c05c1f1f9e351f4f5d57c03bd5f45da" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4" +dependencies = [ + "cfb", +] + +[[package]] +name = "inotify" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cc00ea907cab49550b7da656f80ebb97be1b997d931fbcd28d39734e17ce592" +dependencies = [ + "bitflags 2.13.2", + "inotify-sys", + "libc", +] + +[[package]] +name = "inotify-sys" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c033f80b2c113cdf91ab7a33faa9cbc014726dcad99880c8609af2a370edf37d" +dependencies = [ + "libc", +] + +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "generic-array", +] + +[[package]] +name = "ipconfig" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d40460c0ce33d6ce4b0630ad68ff63d6661961c48b6dba35e5a4d81cfb48222" +dependencies = [ + "socket2", + "widestring", + "windows-registry", + "windows-result 0.4.1", + "windows-sys 0.61.2", +] + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" + +[[package]] +name = "iroh" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3689cab508af9bcef7816c1201b403595ec6aa20e7d15e1f9683bb4be4a5b17" +dependencies = [ + "backon", + "blake3", + "bytes", + "cfg_aliases", + "ctutils", + "data-encoding", + "derive_more", + "ed25519-dalek", + "futures-util", + "getrandom 0.4.3", + "http", + "ipnet", + "iroh-base", + "iroh-dns", + "iroh-metrics", + "iroh-relay", + "n0-error", + "n0-future", + "n0-watcher", + "netwatch", + "noq", + "noq-proto", + "noq-udp", + "papaya", + "pin-project", + "portable-atomic", + "rand", + "reqwest", + "rustc-hash", + "rustls", + "rustls-pki-types", + "serde", + "smallvec", + "strum", + "time", + "tokio", + "tokio-stream", + "tokio-util", + "tracing", + "url", + "wasm-bindgen-futures", +] + +[[package]] +name = "iroh-base" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b72366b16001af3a51574233df88ca6d62da0215807549a769e7de887da803" +dependencies = [ + "curve25519-dalek", + "data-encoding", + "data-encoding-macro", + "derive_more", + "ed25519-dalek", + "getrandom 0.4.3", + "n0-error", + "rand", + "serde", + "url", + "zeroize", +] + +[[package]] +name = "iroh-dns" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7481d0792dde1035a2b06ec06ed3cf6d01fcb1a494e6931b489e32073382048d" +dependencies = [ + "arc-swap", + "cfg_aliases", + "derive_more", + "iroh-base", + "n0-dns-resolver", + "n0-error", + "n0-future", + "portable-atomic", + "rand", + "rustls", + "simple-dns", + "strum", + "tokio", + "tracing", + "url", +] + +[[package]] +name = "iroh-mdns-address-lookup" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7e00b132891c9cfad726fb437b62315e722949d409717b6c7dcb535e9f24112" +dependencies = [ + "data-encoding", + "derive_more", + "futures-util", + "iroh", + "iroh-base", + "n0-error", + "n0-future", + "n0-watcher", + "swarm-discovery", + "tokio", + "tokio-stream", + "tracing", +] + +[[package]] +name = "iroh-metrics" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ede55536349842337f7cdc63012ec33dc637945f3259c98a0763aac364cdf09" +dependencies = [ + "iroh-metrics-derive", + "itoa", + "n0-error", + "portable-atomic", + "ryu", + "serde", + "tracing", +] + +[[package]] +name = "iroh-metrics-derive" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ae5f0c4405d1fbc9fb16ff422ca40620e93dc36c30ecaba0c2aee3992b7bd48" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "iroh-relay" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e5589e7c1475700686603a970275687f760df853bc6525c7eb1347aa31d7230" +dependencies = [ + "blake3", + "bytes", + "cfg_aliases", + "data-encoding", + "derive_more", + "getrandom 0.4.3", + "http", + "http-body-util", + "hyper", + "hyper-util", + "iroh-base", + "iroh-dns", + "iroh-metrics", + "lru", + "n0-error", + "n0-future", + "noq", + "noq-proto", + "num_enum", + "percent-encoding", + "pin-project", + "postcard", + "rand", + "reqwest", + "rustls", + "rustls-pki-types", + "serde", + "serde_bytes", + "strum", + "tokio", + "tokio-rustls", + "tokio-util", + "tokio-websockets", + "tracing", + "url", + "webpki-roots", + "ws_stream_wasm", +] + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "itoa" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" + +[[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.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175dc66334db3b9ab9985bf8b61cfed50dc16d20964bb47f9e479adcae984a7f" +dependencies = [ + "jiff-core", + "jiff-static", + "jiff-tzdb-platform", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link 0.2.1", +] + +[[package]] +name = "jiff-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e599b80292e597019b8b3e392de3f4bea2959ddfb8c7dff60e035e9e311a2c1b" +dependencies = [ + "log", +] + +[[package]] +name = "jiff-static" +version = "0.2.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7b1af7547d47354bc438d797e3854601bde8f8d185780c5ba4ab27afa54f1ba" +dependencies = [ + "jiff-core", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jiff-tzdb" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0980fca2cc272465bd60e82397607ba9f33add9e48defd77923301bbd03808f2" + +[[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" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.21", + "walkdir", + "windows-link 0.2.1", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[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 = "jpeg-encoder" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b454d911ac55068f53495488d8ccd0646eaa540c033a28ee15b07838afafb01f" + +[[package]] +name = "js-sys" +version = "0.3.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 2.0.21", +] + +[[package]] +name = "jsonptr" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbe853b403ae61a04233030ae8a79d94975281ed9770a1f9e246732b534b28d" +dependencies = [ + "bitflags 2.13.2", + "serde", +] + +[[package]] +name = "keyring" +version = "3.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eebcc3aff044e5944a8fbaf69eb277d11986064cba30c468730e8b9909fb551c" +dependencies = [ + "byteorder", + "log", + "windows-sys 0.60.2", + "zeroize", +] + +[[package]] +name = "kqueue" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d763e5b24120b4ddf50de6c92308156765aabfbbccebf401da7cff2d70a41ea" +dependencies = [ + "kqueue-sys", + "libc", +] + +[[package]] +name = "kqueue-sys" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07293a4e297ac234359b510362495713f75ea345d5307140414f20c69ffeb087" +dependencies = [ + "bitflags 2.13.2", + "libc", +] + +[[package]] +name = "lazy_static" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" +dependencies = [ + "libc", +] + +[[package]] +name = "libsqlite3-sys" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b06e69070b7e12262b0cd90832f0a7396f142a2b330181255562decf9f0c6215" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "link-section" +version = "0.19.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d9aae57673c1a235149777a74d152f3210ebd3e3b13346d2cdb6809e566bd3c" + +[[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.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" + +[[package]] +name = "loom" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1611ddbf89dc6ae42cfbd51fc207836140130257646eab8d6d2fb16577db2d2" +dependencies = [ + "cfg-if", + "generator", + "scoped-tls", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "lru" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef9ac18847474e638e3702b76c65d4eb93428471a74778ef0f1be711717f89b5" +dependencies = [ + "hashbrown 0.17.1", +] + +[[package]] +name = "lru-slab" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f" + +[[package]] +name = "mac-addr" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3d25b0e0b648a86960ac23b7ad4abb9717601dec6f66c165f5b037f3f03065f" + +[[package]] +name = "markup5ever" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de" +dependencies = [ + "log", + "tendril", + "web_atoms 0.2.6", +] + +[[package]] +name = "markup5ever" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ab3dc68ac4a0f5719e560136778c1ee716e296030d75dbd4484e37e39e3a842" +dependencies = [ + "log", + "tendril", + "web_atoms 0.3.0", +] + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[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.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5848f5a9e8117cf94f2f90faac24a87ff81600ff8628c1e3deaab572e76bfa1" + +[[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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.21", + "windows-sys 0.61.2", +] + +[[package]] +name = "n0-dns-resolver" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "535c99c9a786bee714155d2ee4fc2477405c2c43536e1bc6a51de09a0d1448f7" +dependencies = [ + "derive_more", + "ipconfig", + "jni 0.22.4", + "lru", + "n0-error", + "n0-future", + "ndk-context", + "rand", + "reqwest", + "rustc-hash", + "rustls", + "simple-dns", + "system-configuration", + "tokio", + "tokio-rustls", + "tracing", + "webpki-roots", +] + +[[package]] +name = "n0-error" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c2215d16de3a55894583a539e6b151fb45236c3a6da45a18a40af73dc00636" +dependencies = [ + "n0-error-macros", + "spez", +] + +[[package]] +name = "n0-error-macros" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6217fd5f567ce1e53f324744c14fab04899861e397539c5f3cc08bd7c1dcd2de" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "n0-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2ab99dfb861450e68853d34ae665243a88b8c493d01ba957321a1e9b2312bbe" +dependencies = [ + "cfg_aliases", + "derive_more", + "futures-buffered", + "futures-lite", + "futures-util", + "js-sys", + "pin-project", + "send_wrapper", + "tokio", + "tokio-util", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-time", +] + +[[package]] +name = "n0-watcher" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64bf1ecb076a87e0e3f5edcf726e7d29e788c273bb0161ba30666b53f085906c" +dependencies = [ + "derive_more", + "n0-error", + "n0-future", + "slotmap", +] + +[[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 = "netdev" +version = "0.45.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "096c44b66a9b09b99b4dd36b1c295ff3a492039ccecaf55466bd6ddcdba59968" +dependencies = [ + "block2", + "dispatch2", + "dlopen2", + "ipnet", + "jni 0.21.1", + "libc", + "mac-addr", + "ndk-context", + "netlink-packet-core 0.8.2", + "netlink-packet-route 0.31.0", + "netlink-sys 0.8.8", + "objc2", + "objc2-core-foundation", + "objc2-core-wlan", + "objc2-foundation", + "objc2-system-configuration", + "once_cell", + "plist", + "windows-sys 0.61.2", +] + +[[package]] +name = "netdev" +version = "0.46.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3c52c2584961c68f5a6e3356797344061f818c93b8acc9cd6d7e284795e563e" +dependencies = [ + "block2", + "dispatch2", + "dlopen2", + "ipnet", + "jni 0.21.1", + "libc", + "mac-addr", + "ndk-context", + "netlink-packet-core 0.9.0", + "netlink-packet-route 0.33.0", + "netlink-sys 0.9.0", + "objc2-core-foundation", + "objc2-system-configuration", + "once_cell", + "plist", + "windows-sys 0.61.2", +] + +[[package]] +name = "netlink-packet-core" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b897d7bd4f0af82e68d40d0344cf37e97f9c97ddf74a098de3e4da05e96ca395" +dependencies = [ + "paste", +] + +[[package]] +name = "netlink-packet-core" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d6e2daf9a8c2e21302714706860a0e6be02e03d17294ecc66b354ea7d4059dd" + +[[package]] +name = "netlink-packet-route" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2288fcb784eb3defd5fb16f4c4160d5f477de192eac730f43e1d11c24d9a007" +dependencies = [ + "bitflags 2.13.2", + "libc", + "log", + "netlink-packet-core 0.8.2", +] + +[[package]] +name = "netlink-packet-route" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59d48ffc8b73a506e1ff0878528c72668f2bfbc3d875b6be890a96be5d0d5576" +dependencies = [ + "bitflags 2.13.2", + "libc", + "log", + "netlink-packet-core 0.9.0", + "zerocopy", +] + +[[package]] +name = "netlink-proto" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93af8261786086024cd5e96e0a991dd65ced07bbf7c233a487bbc96b971d5539" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "log", + "netlink-packet-core 0.8.2", + "netlink-sys 0.8.8", + "thiserror 2.0.21", +] + +[[package]] +name = "netlink-sys" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd6c30ed10fa69cc491d491b85cc971f6bdeb8e7367b7cde2ee6cc878d583fae" +dependencies = [ + "bytes", + "futures-util", + "libc", + "log", + "tokio", +] + +[[package]] +name = "netlink-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c99d38e00b420df49e940fe0826e667c3dad82ac68eb4c2bbf754c1c14a83a10" +dependencies = [ + "bytes", + "libc", + "log", +] + +[[package]] +name = "netwatch" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39da9cad5f23aa43401f09497d3b280e51b5feba115d9ffbf38ca35d6ff95e96" +dependencies = [ + "atomic-waker", + "bytes", + "cfg_aliases", + "derive_more", + "ipnet", + "js-sys", + "libc", + "n0-error", + "n0-future", + "n0-watcher", + "netdev 0.45.1", + "netdev 0.46.3", + "netlink-packet-core 0.8.2", + "netlink-packet-route 0.31.0", + "netlink-proto", + "netlink-sys 0.8.8", + "noq-udp", + "objc2-core-foundation", + "objc2-system-configuration", + "pin-project-lite", + "serde", + "socket2", + "time", + "tokio", + "tokio-util", + "tracing", + "web-sys", + "windows", + "windows-result 0.4.1", + "wmi", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nix" +version = "0.31.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bc81ce8148d3b4f3274da811f11cdd824ae661ee4ef732cdb229825cf5be7f7" +dependencies = [ + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "libc", +] + +[[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 = "noq" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6249a065adc1edbc1704a95436f38dd60476064dbc3b7c47cf279e02d1590eb5" +dependencies = [ + "bytes", + "cfg_aliases", + "derive_more", + "noq-proto", + "noq-udp", + "pin-project-lite", + "rustc-hash", + "rustls", + "socket2", + "thiserror 2.0.21", + "tokio", + "tokio-stream", + "tracing", + "web-time", +] + +[[package]] +name = "noq-proto" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c01a35be3ed37558c8db69554419f24eff8a63599b54f711bbe3863ec727c47d" +dependencies = [ + "aes-gcm", + "bytes", + "derive_more", + "enum-assoc", + "getrandom 0.4.3", + "identity-hash", + "lru-slab", + "rand", + "rand_pcg", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "sorted-index-buffer", + "thiserror 2.0.21", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "noq-udp" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d0160422832eea1cc11c34be04ee6d5a046452b0b46cfb14695d55a1f24c954" +dependencies = [ + "cfg_aliases", + "libc", + "socket2", + "tracing", + "windows-sys 0.61.2", +] + +[[package]] +name = "notify" +version = "8.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41a04a5f59df9322cc657286dd2d79f90816119b22c5f847607c850110205ab" +dependencies = [ + "bitflags 2.13.2", + "inotify", + "kqueue", + "libc", + "log", + "mio", + "notify-types", + "objc2-core-foundation", + "objc2-core-services", + "walkdir", + "windows-sys 0.61.2", +] + +[[package]] +name = "notify-types" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbd044e85df3d939d8e32a1c35a3b737c7d0a4eeb7acd737bd207644e00f4e5f" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", + "objc2-quartz-core", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "block2", + "dispatch2", + "libc", + "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-services" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "583300ad934cba24ff5292aee751ecc070f7ca6b39a574cc21b7b5e588e06a0b" +dependencies = [ + "libc", + "objc2-core-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-core-wlan" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c71e34919aba0d701380d911702455038a8a3587467fe0141d6a71501e7ffe48" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", + "objc2-security", + "objc2-security-foundation", +] + +[[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", + "libc", + "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-security" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a" +dependencies = [ + "bitflags 2.13.2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-security-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef76382e9cedd18123099f17638715cc3d81dba3637d4c0d39ab69df2ef345a5" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-service-management" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b213642d6959cc6023ceb1217aa595eaaf09b8094ce95127c103cab611fe65e8" +dependencies = [ + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", + "objc2-security", +] + +[[package]] +name = "objc2-system-configuration" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7216bd11cbda54ccabcab84d523dc93b858ec75ecfb3a7d89513fa22464da396" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "libc", + "objc2", + "objc2-core-foundation", + "objc2-security", +] + +[[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" +dependencies = [ + "critical-section", + "portable-atomic", +] + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "open" +version = "5.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d8c8b8e725ad26404d6896eb2f064294a0a7b4f1d9120210d85544684c4ca95" +dependencies = [ + "dunce", + "is-wsl", + "libc", +] + +[[package]] +name = "openssl-probe" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "os_info" +version = "3.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cf20a545b305cf1da722b236b5155c9bb35f1d5ceb28c048bd96ca842f41b5b" +dependencies = [ + "android_system_properties", + "log", + "nix", + "objc2", + "objc2-foundation", + "objc2-ui-kit", + "windows-sys 0.61.2", +] + +[[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 = "papaya" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da2442474a9404698c42509b8967f437249dbc7b50493e83020333d3943ec0ae" +dependencies = [ + "equivalent", + "seize", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pem-rfc7468" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6305423e0e7738146434843d1694d621cce767262b2a86910beab705e4493d9" +dependencies = [ + "base64ct", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pharos" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9567389417feee6ce15dd6527a8a1ecac205ef62c2932bcf3d9f6fc5b78b414" +dependencies = [ + "futures", + "rustc_version", +] + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros 0.13.1", + "phf_shared 0.13.1", + "serde", +] + +[[package]] +name = "phf" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6" +dependencies = [ + "phf_macros 0.14.0", + "phf_shared 0.14.0", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", +] + +[[package]] +name = "phf_codegen" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41b585a510fb76fdebead6897982ef2a03a21d8e6cbcca904999742a4afc6ffe" +dependencies = [ + "phf_generator 0.14.0", + "phf_shared 0.14.0", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared 0.13.1", +] + +[[package]] +name = "phf_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100" +dependencies = [ + "fastrand", + "phf_shared 0.14.0", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_macros" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085" +dependencies = [ + "phf_generator 0.14.0", + "phf_shared 0.14.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "phf_shared" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkcs8" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7" +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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d86a77b7d9cdebd9643c180c158748db7d894b24a3935ed4b5843e698ae086eb" +dependencies = [ + "base64 0.23.1", + "indexmap 2.14.2", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "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" +dependencies = [ + "serde", +] + +[[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 = "postcard" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24" +dependencies = [ + "cobs", + "embedded-io 0.4.0", + "embedded-io 0.6.1", + "postcard-derive", + "serde", +] + +[[package]] +name = "postcard-derive" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0232bd009a197ceec9cc881ba46f727fcd8060a2d8d6a9dde7a69030a6fe2bb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.19+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 = "qrcode" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec" + +[[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.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rand_pcg" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" +dependencies = [ + "rand_core", +] + +[[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.10", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" +dependencies = [ + "base64 0.23.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "rfd" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20dafead71c16a34e1ff357ddefc8afc11e7d51d6d2b9fbd07eaa48e3e540220" +dependencies = [ + "block2", + "dispatch2", + "glib-sys", + "gobject-sys", + "gtk-sys", + "js-sys", + "libc", + "log", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "percent-encoding", + "raw-window-handle", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows-sys 0.61.2", +] + +[[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 = "rsqlite-vfs" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "353b74f9810d5b085b6c42c9d86a5f0fdb795553235cdd48753b32e3809d18a7" +dependencies = [ + "thiserror 2.0.21", +] + +[[package]] +name = "rusqlite" +version = "0.43.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f172c4812a19b26d1c23cdb0070e69db335503dfa378b910eb857386e5b8beba" +dependencies = [ + "bitflags 2.13.2", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "smallvec", + "sqlite-wasm-rs", +] + +[[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.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +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-native-certs" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pki-types" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98" +dependencies = [ + "core-foundation", + "core-foundation-sys", + "jni 0.22.4", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" + +[[package]] +name = "rustls-webpki" +version = "0.103.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" +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 = "schannel" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[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 = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[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 = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.13.2", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "seize" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b55fb86dfd3a2f5f76ea78310a88f96c4ea21a3031f8d212443d56123fd0521" + +[[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 0.37.0", + "derive_more", + "log", + "new_debug_unreachable", + "phf 0.13.1", + "phf_codegen 0.13.1", + "precomputed-hash", + "rustc-hash", + "servo_arc 0.4.3", + "smallvec", +] + +[[package]] +name = "selectors" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8322aebea94a6cc288ff884e8a49bdbceef60206c400c6c46d22e62fc4fd91a6" +dependencies = [ + "bitflags 2.13.2", + "cssparser 0.38.0", + "derive_more", + "log", + "new_debug_unreachable", + "precomputed-hash", + "rustc-hash", + "servo_arc 0.5.0", + "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 = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" + +[[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_bytes" +version = "0.11.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8" +dependencies = [ + "serde", + "serde_core", +] + +[[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.10", +] + +[[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.10", +] + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f" +dependencies = [ + "base64 0.23.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.2", + "jiff", + "schemars 0.9.0", + "schemars 1.2.3", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "serdect" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66cf8fedced2fcf12406bcb34223dffb92eaf34908ede12fed414c82b7f00b3e" +dependencies = [ + "base16ct", + "serde", +] + +[[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 = "servo_arc" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4eceb519ec34d8290aaf6e46f435102f2bfa63f22b05a144fb16ab266d3b198" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha1_smol" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" + +[[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 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.1", + "digest 0.11.3", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "signature" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28d567dcbaf0049cb8ac2608a76cd95ff9e4412e1899d389ee400918ca7537f5" +dependencies = [ + "rand_core", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "simple-dns" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b6f884fa9a8d48101774bfbd3aeb81e968dd22cffd19a372da69f183db22c1a" +dependencies = [ + "bitflags 2.13.2", +] + +[[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 = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.16.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" + +[[package]] +name = "smappservice-rs" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52703b97a53101cf5d4580e0737aaa634ce1fdcfc123c16b2a9658e358013488" +dependencies = [ + "objc2", + "objc2-foundation", + "objc2-service-management", + "thiserror 2.0.21", +] + +[[package]] +name = "smawk" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8e2fb0f499abb4d162f2bedad68f5ef91a1682b5a03596ddb67efd37768d100" + +[[package]] +name = "smol_str" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fad6c857cbab2627dcf01ec85a623ca4e7dcb5691cbaa3d7fb7653671f0d09c9" + +[[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 = "sorted-index-buffer" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea06cc588e43c632923a55450401b8f25e628131571d4e1baea1bdfdb2b5ed06" + +[[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 = "spez" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c87e960f4dca2788eeb86bbdde8dd246be8948790b7618d656e68f9b720a86e8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "spin" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "023a211cb3138dbc438680b32560ad89f699977624c9f8dbb95a47d5b4c07dd3" + +[[package]] +name = "spki" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef958a98b9d5da290cfc78946e9f3e61e1e62a18db0d92cac0b83cc161491a9" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "sqlite-wasm-rs" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cd504cecbfe7eef649988840f9a6cb768d11085efec138f8e99f160632d867" +dependencies = [ + "cc", + "rsqlite-vfs", +] + +[[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 0.13.1", + "precomputed-hash", +] + +[[package]] +name = "string_cache" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffa8a5dbe8b3f0bbe29d4c3225daafaeead63afdc1b65fc4c01a1384166038e6" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.14.0", + "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 0.13.1", + "phf_shared 0.13.1", + "proc-macro2", + "quote", +] + +[[package]] +name = "string_cache_codegen" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928dcdf75e47626b3617a976ec205d9f057584c371c1f23b782129268d0e6edc" +dependencies = [ + "phf_generator 0.14.0", + "phf_shared 0.14.0", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "swarm-discovery" +version = "0.6.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c349937bc28998d12eed97a4fabcf71e78e15342b10af81eb99e6e0c248ba5fd" +dependencies = [ + "acto", + "hickory-proto", + "rand", + "socket2", + "thiserror 2.0.21", + "tokio", + "tracing", +] + +[[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.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" +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.10", +] + +[[package]] +name = "system-configuration" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "501336eb7ba9e417300a6a0fa985721065467aa83a6dcf0422a8e43e4c0328fa" +dependencies = [ + "bitflags 2.13.2", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.37.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5777b06fe6435126ae8d816eba269e050e1e10d302cf5461e9c49eccabc3548" +dependencies = [ + "bitflags 2.13.2", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni 0.21.1", + "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 0.62.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c2a5cad3827d1fa46c206a6bcaee8ca14203e9b0aaabe447dd4acef33ecd065" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs 7.0.0", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni 0.21.1", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.21", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e03658bfc9cb60f96a05b7d07a7f7cdfbf4c30b1bbfcb5cf6b5342cc2c9e0bc" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs 7.0.0", + "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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c454a15120b885bf57d0cb9ab218c01e12bc672f793452cb6527b460db883aa" +dependencies = [ + "base64 0.23.1", + "brotli", + "ico", + "json-patch", + "plist", + "png", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2 0.11.1", + "syn 2.0.119", + "tauri-utils", + "thiserror 2.0.21", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8f7513896f637528ec27ff76effd90638b1cdfa77499fae3db078043aed7ecb" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51bf2a10dc09e68324a8227b3ec785bd8b61872ddb978c3447b07bc7dd180b25" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "walkdir", +] + +[[package]] +name = "tauri-plugin-autostart" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bce56ceb0a99b8ab5eebc977ba9ffc62391b862648cb9ab76fc8bc7231b8f7e2" +dependencies = [ + "auto-launch", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.21", +] + +[[package]] +name = "tauri-plugin-dialog" +version = "2.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce0fb9c2b6d34a9720627ed930ebc8af26f61e648695aecaeb03d5c33c5896f5" +dependencies = [ + "log", + "raw-window-handle", + "rfd", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "tauri-plugin-fs", + "thiserror 2.0.21", + "url", +] + +[[package]] +name = "tauri-plugin-fs" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d58eb1d4984e535f47a642ffec09a2da6f5c18a12b5902d12126cb7626d628b" +dependencies = [ + "anyhow", + "dunce", + "glob", + "log", + "objc2-foundation", + "percent-encoding", + "schemars 0.8.22", + "serde", + "serde_json", + "serde_repr", + "tauri", + "tauri-plugin", + "tauri-utils", + "thiserror 2.0.21", + "toml 1.2.1+spec-1.1.0", + "url", +] + +[[package]] +name = "tauri-plugin-opener" +version = "2.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54592c6718b42ab198bf11bda6a428a3553ca2f2f8e506df56f6a063ec328331" +dependencies = [ + "dunce", + "glob", + "objc2-app-kit", + "objc2-foundation", + "open", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.21", + "url", + "windows", + "zbus", +] + +[[package]] +name = "tauri-plugin-single-instance" +version = "2.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "726b6da0dd5bd1344f84f4108a622c07d01923baacb5c803a605189672c5352f" +dependencies = [ + "serde", + "serde_json", + "tauri", + "thiserror 2.0.21", + "tokio", + "tracing", + "windows-sys 0.61.2", + "zbus", +] + +[[package]] +name = "tauri-runtime" +version = "2.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c4b2a71c4bf51cde5cdcf1b45d7943282c7c669d3d26f7a324cce25f1b53e75" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni 0.21.1", + "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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d9be5e7af9560a4a60cdd441389a066cdd3e7c5d464a006ae34cb276cc78abd" +dependencies = [ + "gtk", + "http", + "jni 0.21.1", + "log", + "objc2", + "objc2-app-kit", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bf649f12d6fb11e1867214973cd37d89786ae2c0904f79b787b1db4fdcd14c" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata 0.19.2", + "ctor", + "dom_query 0.28.0", + "dunce", + "glob", + "http", + "infer", + "json-patch", + "log", + "memchr", + "phf 0.13.1", + "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.2.1+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c52bb6904475a6ca662f15ef787f18ade61d5740a1ee12c45d3b748efdb6f796" +dependencies = [ + "dunce", + "embed-resource", + "toml 1.2.1+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 = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[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.10", +] + +[[package]] +name = "thread_local" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "time" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" +dependencies = [ + "deranged", + "js-sys", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "signal-hook-registry", + "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.10", +] + +[[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-stream" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", + "tokio-util", +] + +[[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", + "futures-util", + "libc", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-websockets" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52efb639344a7c6adb8e62c6f3d2c19c001ff1b79a5041ba1c6ed42e19c6aa5" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-sink", + "getrandom 0.4.3", + "http", + "httparse", + "rand", + "ring", + "rustls-pki-types", + "sha1_smol", + "simdutf8", + "tokio", + "tokio-rustls", + "tokio-util", +] + +[[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.2.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7" +dependencies = [ + "indexmap 2.14.2", + "serde_core", + "serde_spanned 1.1.3", + "toml_datetime 1.1.3+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.5", +] + +[[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.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" +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.19+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218" +dependencies = [ + "indexmap 2.14.2", + "toml_datetime 1.1.3+spec-1.1.0", + "toml_parser", + "winnow 1.0.5", +] + +[[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.5", +] + +[[package]] +name = "toml_writer" +version = "1.2.0+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" + +[[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 = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "tray-icon" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72" +dependencies = [ + "crossbeam-channel", + "dirs 7.0.0", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png", + "serde", + "thiserror 2.0.21", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "ts-rs" +version = "12.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8" +dependencies = [ + "thiserror 2.0.21", + "ts-rs-macros", +] + +[[package]] +name = "ts-rs-macros" +version = "12.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38d90eea51bc7988ef9e674bf80a85ba6804739e535e9cab48e4bb34a8b652aa" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "termcolor", +] + +[[package]] +name = "tugboat-core" +version = "0.1.0" +dependencies = [ + "blake3", + "fs4", + "getrandom 0.4.3", + "hex", + "rusqlite", + "serde", + "serde_json", + "tempfile", + "thiserror 2.0.21", + "tokio", + "tracing", + "ts-rs", + "tugboat-net", + "unicode-normalization", + "uuid", +] + +[[package]] +name = "tugboat-desktop" +version = "0.1.0" +dependencies = [ + "blake3", + "fs4", + "getrandom 0.4.3", + "hex", + "jpeg-encoder", + "keyring", + "notify", + "png", + "qrcode", + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-autostart", + "tauri-plugin-dialog", + "tauri-plugin-opener", + "tauri-plugin-single-instance", + "tempfile", + "thiserror 2.0.21", + "tokio", + "tracing", + "tracing-subscriber", + "ts-rs", + "tugboat-core", + "uuid", + "windows", +] + +[[package]] +name = "tugboat-ffi" +version = "0.1.0" +dependencies = [ + "getrandom 0.4.3", + "hex", + "tempfile", + "thiserror 2.0.21", + "tokio", + "tracing", + "tracing-subscriber", + "tugboat-core", + "tugboat-net", + "uniffi", + "uuid", +] + +[[package]] +name = "tugboat-net" +version = "0.1.0" +dependencies = [ + "blake3", + "fs4", + "getrandom 0.4.3", + "hex", + "iroh", + "iroh-mdns-address-lookup", + "n0-future", + "serde", + "serde_json", + "tempfile", + "thiserror 2.0.21", + "tokio", + "tracing", +] + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-normalization" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d" +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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "uniffi" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76407f5f396a2c949a069eff4a9fca9ce462410eb872bffef4c2b7b89804a77a" +dependencies = [ + "anyhow", + "camino", + "cargo_metadata 0.23.1", + "clap", + "uniffi_bindgen", + "uniffi_core", + "uniffi_macros", + "uniffi_pipeline", +] + +[[package]] +name = "uniffi_bindgen" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3df3ced8f0eda3de99f6d50820e8628f443da8e4f447f477d1403ceba29dacbd" +dependencies = [ + "anyhow", + "askama", + "camino", + "cargo_metadata 0.23.1", + "fs-err", + "glob", + "goblin", + "heck 0.5.0", + "indexmap 2.14.2", + "once_cell", + "serde", + "tempfile", + "textwrap", + "toml 1.2.1+spec-1.1.0", + "uniffi_internal_macros", + "uniffi_meta", + "uniffi_pipeline", + "uniffi_udl", +] + +[[package]] +name = "uniffi_core" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7530ae8efeaaa488622865966763fe0294832779fff80508c36d69c6a874a6a" +dependencies = [ + "anyhow", + "bytes", + "once_cell", + "static_assertions", +] + +[[package]] +name = "uniffi_internal_macros" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f4bad017164375d99450d70495014810d15a84ba9da6ed14b9628b1424223ba" +dependencies = [ + "anyhow", + "indexmap 2.14.2", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "uniffi_macros" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b855a58da153739ce6e863f6e296edc3716a093768c4d3d957f17f5e4317c60" +dependencies = [ + "camino", + "fs-err", + "once_cell", + "proc-macro2", + "quote", + "serde", + "syn 2.0.119", + "toml 1.2.1+spec-1.1.0", + "uniffi_meta", +] + +[[package]] +name = "uniffi_meta" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af0c88664a9cb9559856f5a250283c9708923b303170e2e5c7db8f4ad65e9459" +dependencies = [ + "anyhow", + "siphasher", + "uniffi_internal_macros", + "uniffi_pipeline", +] + +[[package]] +name = "uniffi_pipeline" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d00f5c044b4a3dca0b1226c92ddaeea626f337470e22180dd182160c87a06b0b" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.14.2", + "tempfile", + "uniffi_internal_macros", +] + +[[package]] +name = "uniffi_udl" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55dfd9c778d6b39cb5acd541d9ff63431974035d2bad83c897b766a6ee3152ac" +dependencies = [ + "anyhow", + "textwrap", + "uniffi_meta", + "weedle2", +] + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common 0.1.7", + "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.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" + +[[package]] +name = "uuid" +version = "1.29.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c" +dependencies = [ + "getrandom 0.4.3", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[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 = "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.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.10", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" +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.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" +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 0.13.1", + "phf_codegen 0.13.1", + "string_cache 0.9.0", + "string_cache_codegen 0.6.1", +] + +[[package]] +name = "web_atoms" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7572660c8890448ba236b7376f27e389c6a7e1c70195622faced601f855c0ada" +dependencies = [ + "phf 0.14.0", + "phf_codegen 0.14.0", + "string_cache 0.11.0", + "string_cache_codegen 0.11.2", +] + +[[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-root-certs" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "293198dcebfb821155b5092ab94b5a82ff180eddd7241df3bd6e66a4ffd1a585" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webpki-roots" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7265c9301c16a8711c992c2d8da90ee77ef54b1ed51482d6dfeb00dc756b1297" +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 0.62.2", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "webview2-com-sys" +version = "0.39.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb" +dependencies = [ + "thiserror 2.0.21", + "windows", + "windows-core 0.62.2", +] + +[[package]] +name = "weedle2" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "998d2c24ec099a87daf9467808859f9d82b61f1d9c9701251aea037f514eae0e" +dependencies = [ + "nom", +] + +[[package]] +name = "widestring" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471" + +[[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 0.62.2", + "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 0.62.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-core" +version = "0.100.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "803590c6856f51d15fa2e9fabe4f4703122c8737f72ef2741b4ac09d4c2192f5" +dependencies = [ + "windows-implement 0.100.0", + "windows-interface 0.100.0", + "windows-link 0.100.0", + "windows-result 0.100.0", + "windows-strings 0.100.0", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core 0.62.2", + "windows-link 0.2.1", + "windows-threading", +] + +[[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-implement" +version = "0.100.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc1bc82e5a1b1a4d7255861b07881a0407b552f50a4d8543c0c7276fa96f6e8" +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-interface" +version = "0.100.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3f7005c3b757b9b82c2f40c0e71094ff1080adddaf3e8b6ce99b545d3c48796" +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-link" +version = "0.100.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b39de7c7fe78858b0144c50c3fc000bab3be17d5e9b85b1053871693c7f7415" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core 0.62.2", + "windows-link 0.2.1", +] + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-result" +version = "0.100.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44873a1ef61c85d5e2991db91fe656cfcf0731097e00dff1ac860f1cb3b752a0" +dependencies = [ + "windows-link 0.100.0", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.100.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a70b590c684f1d2854f74999896f7c0558f1bdde62f599088599e20ea1d2f60" +dependencies = [ + "windows-link 0.100.0", +] + +[[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.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 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 0.52.6", + "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-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link 0.2.1", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[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_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[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_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[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 = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" +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 = "wmi" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c81b85c57a57500e56669586496bf2abd5cf082b9d32995251185d105208b64" +dependencies = [ + "chrono", + "futures", + "log", + "serde", + "thiserror 2.0.21", + "windows", + "windows-core 0.62.2", +] + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a490119196d02a51d0871df7b9119a1f3e46d75b7e90053a801454d5c6b3491c" +dependencies = [ + "base64 0.23.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs 7.0.0", + "dom_query 0.29.0", + "dpi", + "dunce", + "gdkx11", + "gtk", + "http", + "javascriptcore-rs", + "jni 0.21.1", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "raw-window-handle", + "sha2 0.10.9", + "soup3", + "tao-macros", + "thiserror 2.0.21", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.62.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "ws_stream_wasm" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c173014acad22e83f16403ee360115b38846fe754e735c5d9d3803fe70c6abc" +dependencies = [ + "async_io_stream", + "futures", + "js-sys", + "log", + "pharos", + "rustc_version", + "send_wrapper", + "thiserror 2.0.21", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow 1.0.5", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 3.0.10", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" +dependencies = [ + "serde", + "winnow 1.0.5", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "939f186d9ecebe044315a5cb6d6f78568bbc21152adc954d5a0c2f58bdbc9920" +dependencies = [ + "serde", +] + +[[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.10", + "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.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zvariant" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 1.0.5", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 3.0.10", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.10", + "winnow 1.0.5", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..ac79a78 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,39 @@ +[workspace] +resolver = "2" +members = ["crates/net", "crates/core", "crates/ffi", "apps/desktop/src-tauri"] +exclude = ["spike"] + +[workspace.package] +version = "0.1.0" +edition = "2021" +rust-version = "1.85" +license = "Apache-2.0" +authors = ["Nigel Scott"] + +[workspace.dependencies] +# iroh: default-features = false drops "portmapper" (UPnP/NAT-PMP), "metrics" and +# "fast-apple-datapath". Only "tls-ring" (the mandatory crypto provider) is enabled. +# Versions pinned exactly: the M0 spike proved this pair (spike/RESULTS.md). +iroh = { version = "=1.4.1", default-features = false, features = ["tls-ring"] } +iroh-mdns-address-lookup = "=0.6.1" +n0-future = "0.3.2" +tokio = { version = "1.54", features = ["rt-multi-thread", "macros", "fs", "io-util", "time", "sync"] } +blake3 = "1.8.7" +serde = { version = "1.0.229", features = ["derive"] } +serde_json = "1.0.154" +thiserror = "2.0.21" +tracing = "0.1.44" +fs4 = "1.1.0" +getrandom = "0.4.3" +hex = "0.4.3" +rusqlite = { version = "0.43", features = ["bundled"] } +uuid = { version = "1.29", features = ["v7", "serde"] } +unicode-normalization = "0.1.26" +# no-serde-warnings: ts-rs cannot parse #[serde(transparent)] and warned on every build; it ignored the attribute either way (those ids carry ts(type = "string")). +ts-rs = { version = "12.0.1", features = ["no-serde-warnings"] } +tempfile = "3.27" + +[profile.release] +opt-level = 3 +lto = "thin" +strip = true diff --git a/apps/android/.gitignore b/apps/android/.gitignore new file mode 100644 index 0000000..3906201 --- /dev/null +++ b/apps/android/.gitignore @@ -0,0 +1,8 @@ +build/ +.gradle/ +local.properties +.kotlin/ +*.log +# Build output of build-rust.cmd +app/src/main/jniLibs/ +app/src/main/java/uniffi/ diff --git a/apps/android/FFI.md b/apps/android/FFI.md new file mode 100644 index 0000000..e1f3953 --- /dev/null +++ b/apps/android/FFI.md @@ -0,0 +1,326 @@ +# Tugboat FFI: the Kotlin API of the phone core + +Generated by UniFFI 0.32.2 from `crates/ffi` into +`app/src/main/java/uniffi/tugboat_ffi/tugboat_ffi.kt` (package `uniffi.tugboat_ffi`, +native library `libtugboat_ffi.so`, loaded by JNA as `tugboat_ffi`). Never edit the .kt file: +`apps\android\build-rust.cmd` regenerates it. This page lists the API exactly as generated. + +Gradle needs: `net.java.dev.jna:jna:5.17.0@aar` (the spike's proven setup). The bindings use no +coroutines. `.so` files: `app/src/main/jniLibs/arm64-v8a` and `x86_64`, only `libtugboat_ffi.so`. + +## Rules for calling it + +1. Every method is a plain blocking call. Call it from `Dispatchers.IO` or a worker thread. Never + from the main thread, and never from inside `EventListener.onEvent` (the callback runs on a + Rust runtime thread; calling `startNetwork`, `stopNetwork`, `pairWith` or `unpair` there + panics). +2. Slow calls: `startNetwork` (binds the endpoint), `stopNetwork`, `unpair` (up to 3 s while the + PC is told), `pairWith` (until the PC owner clicks Pair, about 2 min at most, or the dial + bound of 8 s on the wrong network), `addFile` (copies and hashes the file: tens of ms for a + photo, seconds for a long video; it holds the database lock while it copies, so sync stalls + for that long). Everything else only reads or writes SQLite. +3. `onEvent` must return at once: post to your own scope. A throwing listener does not kill the + pump (the event is dropped and logged). +4. Ids are strings: items and folders are hyphenated UUIDs, devices are 64 hex chars. Times are + unix milliseconds (`Long`). Sizes and byte counts are `ULong`, counts are `UInt` + (Kotlin unsigned types). +5. Errors are `SnapException` subclasses (below). `e.message` is already one readable line. +6. `PhoneCore` is `AutoCloseable`. Call `stopNetwork()` then `close()`. Dropping it is safe from + any thread. One `PhoneCore` per process (the log file and the database are per data dir). +7. The secret key: `PhoneConfig.secretKey` is the 32-byte iroh key. Create it once with + `generateSecretKey()`, wrap it with an Android Keystore AES-GCM key, store only the wrapped + bytes, unwrap it for `PhoneCore.open`. Core never writes it to disk. +8. `addFile` COPIES the source into app storage. Delete the source (cacheDir) afterwards. + +## Entry points + +```kotlin +// top-level functions in package uniffi.tugboat_ffi +@Throws(SnapException::class) fun generateSecretKey(): kotlin.ByteArray +@Throws(SnapException::class) fun inspectPairingPayload(payload: kotlin.String): PairingPreview + +// PhoneCore.Companion +@Throws(SnapException::class) fun open(config: PhoneConfig, listener: EventListener): PhoneCore +``` + +`inspectPairingPayload` checks a scanned QR text or deep link without touching the network: +`PairBadPayload` for anything that is not a Tugboat pairing code (including one naming a +non-local address). Use it in the scanner (ignore other QR codes) and in the deep-link +"Pair with this PC?" dialog (it gives the PC name and address). + +## PhoneCore + +```kotlin +interface PhoneCoreInterface { + fun activity(before: kotlin.Long?, limit: kotlin.UInt): List + fun addFile(file: NewFile): kotlin.String + fun cancelPairing() + fun deleteItem(id: kotlin.String) + fun deviceId(): kotlin.String + fun folders(): List + fun freeSpaceBytes(): kotlin.ULong + fun item(id: kotlin.String): ItemInfo? + fun items(folderIdFilter: kotlin.String?, bin: kotlin.Boolean, after: kotlin.String?, limit: kotlin.UInt): ItemPage + fun logPath(): kotlin.String + fun moveItem(id: kotlin.String, folderIdTarget: kotlin.String) + fun pairWith(payload: kotlin.String): PairedPc + fun pairedPc(): PairedPc? + fun reconnectNow() + fun restoreItem(id: kotlin.String) + fun routeCapture(fix: LocationFix?): CaptureRoute + fun saveSettings(settings: Settings) + fun setPinned(id: kotlin.String, pinned: kotlin.Boolean) + fun settings(): Settings + fun startNetwork(mdns: kotlin.Boolean) + fun status(): SyncStatus + fun stopNetwork() + fun unpair() +} +``` +Only `deviceId`, `logPath`, `reconnectNow`, `cancelPairing`, `status` and `stopNetwork` cannot +throw; every other method carries `@Throws(SnapException::class)` in the generated class. + +| Method | What it does | +|---|---| +| `open` | Logging, database (backup, migrate; a newer database is refused with `NewerDatabase`), default folders Inbox / Keep / Unsorted, one Bin sweep, event pump, ticker (Bin sweep and pairing expiry at the core's next due time, at most 60 s apart). Does not touch the network. | +| `deviceId` | This phone's public key, 64 hex chars. | +| `logPath` | Current log file. `.1` and `.2` are the older rotated files (5 MB each, three kept). "Export log" shares all that exist, oldest first. | +| `freeSpaceBytes` | Free bytes on the volume holding phone copies, for the storage guard banner against `Settings.storageGuardBytes`. Core does not enforce the guard yet (M4): the banner is the app's. | +| `startNetwork(mdns)` | Starts the endpoint (binds `0.0.0.0`, random UDP port) and the connect loop to the paired PC (cached addresses first, `mdns` = then look it up by name). `Invalid` if already started. | +| `stopNetwork` | Stops it. | +| `reconnectNow` | Wi-Fi changed or app came to the front: dial the PC now instead of waiting out the back-off (up to 30 s). Safe any time. | +| `status` | `SyncStatus`, see below. Events keep it current; call it once on screen start. | +| `pairWith(payload)` | Blocks until paired. The listener gets `PairingCode` first: show it large ("Check your PC shows 482 913"). On success the phone connects to the PC by itself. | +| `cancelPairing` | Releases a waiting `pairWith` with `PairCancelled`. No effect when nothing waits. | +| `pairedPc` | The paired PC or null. | +| `unpair` | Unpairs. Files stay. If the PC cannot be told now, the phone keeps a notice and delivers it later; `status().message` says "PC NOT TOLD YET ..." meanwhile. `NotPaired` if nothing is paired. | +| `folders` | Folders with item counts and retention (`retentionSecs == null` is Keep). | +| `items(folderIdFilter, bin, after, limit)` | Newest first. `folderIdFilter` null = all. `bin` true = only Bin items. `after` = `ItemPage.next` of the previous page. `limit` 0 = 50, max 500. | +| `item(id)` | One item or null. | +| `addFile(file)` | Takes a captured or imported file in. Returns the new item id. Record and sync trigger are done when it returns; the file reaches the PC in the background. | +| `setPinned` | Keep / un-keep. A kept item never expires. | +| `moveItem` | Move to another folder; its retention clock restarts there. | +| `deleteItem` | To the Bin, restorable for `Settings.binDays`. | +| `restoreItem` | From the Bin with a fresh full retention. A file already purged here is fetched from the PC (`local == PENDING` until it arrives). | +| `routeCapture(fix)` | Camera routing, see `CaptureRoute`. The core uses the fix only if `ageMs` < 2 min and `accuracyM` <= 100; smallest radius wins. | +| `activity(before, limit)` | Newest first. `before` = last `id` of the previous page. | +| `settings` / `saveSettings` | Values are validated by core (`Invalid` for nonsense, the old value stays). | + +Not exported (not an M3 screen): creating, renaming and deleting folders, retention changes and +places editing (`put_place`). Add them as thin passthroughs in M4. + +## Data types + +```kotlin +data class PhoneConfig( + var dataDir: kotlin.String, // filesDir: db, thumbs, logs, held files all live under it + var deviceName: kotlin.String, // shown on the PC, e.g. Build.MODEL + var appVersion: kotlin.String, + var secretKey: kotlin.ByteArray, // exactly 32 bytes, else InvalidInput + var bindAddr: kotlin.String? // tests only ("127.0.0.1:0"); null = 0.0.0.0:0 +) + +data class FolderInfo( + var id: kotlin.String, + var kind: FolderKind, + var name: kotlin.String, + var retentionSecs: kotlin.ULong?, // null = Keep (never expires) + var count: kotlin.UInt // items not in the Bin +) + +data class ItemInfo( + var id: kotlin.String, + var name: kotlin.String, + var folderId: kotlin.String, + var kind: MediaKind, + var size: kotlin.ULong, + var ext: kotlin.String, + var capturedAtMs: kotlin.Long, + var pinned: kotlin.Boolean, + var state: ItemStateInfo, + var local: LocalFileState, // PENDING = still downloading from the PC + var path: kotlin.String?, // absolute path of the held file (also in the Bin) + var thumbPath: kotlin.String? // absolute path of the JPEG thumbnail +) + +data class ItemPage(var rows: List, var next: kotlin.String?) // next == null = last page + +data class ActivityInfo( + var id: kotlin.Long, + var atMs: kotlin.Long, + var itemId: kotlin.String?, + var action: ActivityAction, + var detail: kotlin.String // short text, e.g. "Inbox" +) + +data class PairedPc( + var id: kotlin.String, + var name: kotlin.String, + var pairedAtMs: kotlin.Long?, + var lastSeenAtMs: kotlin.Long?, + var addresses: List +) + +data class PairingPreview( + var pcName: kotlin.String, + var addresses: List, + var expiresAtMs: kotlin.Long // by the PC's clock; display only, the PC decides expiry +) + +data class NewFile( + var srcPath: kotlin.String, // file the app owns; core copies it, the caller deletes it + var name: kotlin.String, // display name; extension and magic bytes must agree + var folderId: kotlin.String?, // null = Inbox + var capturedAtMs: kotlin.Long, + var geo: GeoFix?, + var thumbPath: kotlin.String?, // JPEG, longest side 512 px, made by the app + var imported: kotlin.Boolean // false = camera shot, true = Share > Tugboat +) + +data class GeoFix(var lat: kotlin.Double, var lon: kotlin.Double, var accuracyM: kotlin.Double) + +data class LocationFix( + var lat: kotlin.Double, var lon: kotlin.Double, var accuracyM: kotlin.Double, + var ageMs: kotlin.Long +) + +data class SyncStatus( + var state: SyncState, + var peerName: kotlin.String?, + var lastSyncedAt: kotlin.Long?, // unix ms, "Synced 10s ago" + var waiting: kotlin.UInt, // items waiting for the PC's receipt ("3 waiting") + var downloading: kotlin.UInt, + var message: kotlin.String? // one line for REFUSED / PAUSED / "PC NOT TOLD YET ..." +) + +data class Settings( + var binDays: kotlin.UInt, // default 7 + var storageGuardBytes: kotlin.ULong, // default 2 GiB + var missingPauseFiles: kotlin.UInt, // PC rescan rule, unused on the phone + var missingPausePct: kotlin.UInt, // PC rescan rule, unused on the phone + var udpPort: kotlin.UShort, // PC port, unused on the phone + var maxBlobBytes: kotlin.ULong, // default 16 GiB + var stayConnected: kotlin.Boolean // default true +) +``` + +```kotlin +enum class FolderKind { INBOX, KEEP, UNSORTED, USER } +enum class MediaKind { IMAGE, VIDEO } +enum class LocalFileState { PENDING, PRESENT, BINNED, PURGED, LOST, REFUSED } +enum class SyncState { UNPAIRED, OFFLINE, CONNECTING, SYNCING, SYNCED, PAUSED, REFUSED } +enum class ActivityAction { + CAPTURED, ADDED, RECEIVED, MOVED, RENAMED, KEPT, UNKEPT, EDITED, DELETED, BINNED, EXPIRED, + RESTORED, RETURNED, PURGED, REFUSED, CONFLICT, LOST, FOLDER_CREATED, FOLDER_RENAMED, + FOLDER_DELETED, RETENTION_CHANGED, PAIRED, UNPAIRED, PAUSED, RESUMED, SYNC_ERROR +} + +sealed class ItemStateInfo { + data class Deleted(val binnedAtMs: kotlin.Long) : ItemStateInfo() // in the Bin, user-deleted + data class Expired(val binnedAtMs: kotlin.Long) : ItemStateInfo() // in the Bin, expired + object Kept : ItemStateInfo() // pinned: "Kept" + object FolderKeep : ItemStateInfo() // folder never expires: "Keep" + object Waiting : ItemStateInfo() // PC has not confirmed the file: "Waiting for PC" + data class Live(val expiresAtMs: kotlin.Long) : ItemStateInfo() // "Expires in 5h" +} + +sealed class CaptureRoute { + data class Place(val placeId: kotlin.String, val folderId: kotlin.String) : CaptureRoute() + object Unsorted : CaptureRoute() // places exist, no usable fix: "No location", folder Unsorted + object Default : CaptureRoute() // no place applies: the folder on the viewfinder chip (Inbox) +} +``` +`SyncState.REFUSED` also means a version mismatch ("Update Tugboat on the PC", in `message`). +`LocalFileState.LOST` = the PC did not have the file when asked (retried automatically). + +## Events + +```kotlin +interface EventListener { fun onEvent(event: FfiEvent) } + +sealed class FfiEvent { + data class Sync(val status: SyncStatus) : FfiEvent() + data class ItemsChanged(val ids: List) : FfiEvent() // empty list = unknown set, re-read + object FoldersChanged : FfiEvent() + object PlacesChanged : FfiEvent() + object ActivityAdded : FfiEvent() + object SettingsChanged : FfiEvent() + data class PairingCode(val code: kotlin.String, val peerName: kotlin.String) : FfiEvent() // "482 913" + data class PairingCompleted(val peerName: kotlin.String) : FfiEvent() + data class PairingCancelled(val code: kotlin.String, val message: kotlin.String) : FfiEvent() + object Unpaired : FfiEvent() // the PC was unpaired here or on the PC + data class Error(val kind: kotlin.String, val message: kotlin.String) : FfiEvent() + object Resync : FfiEvent() // listener fell behind: re-query everything on screen +} +``` +- Events carry ids, not rows: re-read through `item`, `items`, `folders`. +- `PairingCancelled.code` is the PairError tag: `expired`, `bad_secret`, `secret_reused`, + `cancelled`, `confirm_timeout`, `not_open`, `version_mismatch`, `bad_payload`, or a network + kind (`timeout`, `connect`, `not_local`, ...). `message` is one line, the same text the PC shows. +- `Error` is background failures (a download that failed, a placement problem, a blocked + non-local connection `not_local`, a log file that cannot be written `log`). Show `message`, + keep it in the Activity screen's reach. Each is also in the Rust log. +- The PC-only "pairing window open" event is not forwarded. + +## Errors + +```kotlin +sealed class SnapException(message: String) : kotlin.Exception(message) { + class InvalidInput(message: String) // bad id, key not 32 bytes, bad bind address + class Db(message: String) + class Io(message: String) // source file missing, disk full, permission + class NewerDatabase(message: String) // update Tugboat + class Migration(message: String) + class NotFound(message: String) + class InvalidName(message: String) + class Invalid(message: String) // rule broken: unknown/deleted folder, restore of a non-Bin item, bad setting + class NotMedia(message: String) // not a supported photo/video (extension or magic bytes) + class FileGone(message: String) + class NotPaired(message: String) + class AlreadyPaired(message: String) + class Paused(message: String) + class NetTimeout(message: String) // no answer in time: wrong network or PC asleep + class NetUnreachable(message: String) // cannot connect (also: local network permission denied) + class NetNotLocal(message: String) // address not on the local network, never dialed + class Net(message: String) + class Protocol(message: String) + class VersionMismatch(message: String) // "Update Tugboat on the PC/phone" + class PairExpired(message: String) // "PAIRING CODE EXPIRED - show a new QR" + class PairBadSecret(message: String) + class PairSecretReused(message: String) // "Someone else tried to use this pairing code" + class PairCancelled(message: String) + class PairConfirmTimeout(message: String) // PC owner did not click Pair in time + class PairNotOpen(message: String) + class PairVersionMismatch(message: String) + class PairBadPayload(message: String) // not a Tugboat pairing code + class Pairing(message: String) // any other pairing failure +} +``` +Onboarding mapping: `PairBadPayload` = "That is not a Tugboat code"; `PairExpired` = show a new +QR on the PC; `PairSecretReused` = "already used"; `NetTimeout` / `NetUnreachable` = +"PC not found: same Wi-Fi? Local network allowed?"; `PairConfirmTimeout`, `PairCancelled` = +retry. + +Typed checks pinned by `crates/ffi/tests/phone_flow.rs`: `addFile` of a missing file is `Io` +(message names the file), of an exe renamed `.jpg` is `NotMedia`, into an unknown folder is +`Invalid`; a malformed id is `InvalidInput`; junk to `pairWith` is `PairBadPayload`; `unpair` +with nothing paired is `NotPaired`; `saveSettings` with `binDays = 0` is `Invalid`. + +## Build + +`apps\android\build-rust.cmd` (cmd.exe, from anywhere): host build with the bindgen binary, +`cargo ndk` for arm64-v8a and x86_64 (release; `build-rust.cmd debug` for a debug .so), deletes +stray `libiroh*.so`, regenerates the Kotlin bindings. Needs the Rust Android targets, cargo-ndk +and NDK 30.0.16248370 (or `ANDROID_NDK_HOME`). The .so files and the generated .kt are build +output: add `app/src/main/jniLibs/` and `app/src/main/java/uniffi/` to `.gitignore` if they +should not be committed. + +## Testing without a phone: fake PC + +`cargo run -p tugboat-core --example fake_pc -- --auto-confirm --advertise 10.0.2.2:47300 --push-dir ` +runs a PC-role core on `127.0.0.1:47300` (the emulator reaches it as `10.0.2.2`). It prints JSON +lines: `payload` (the text for the debug "Paste pairing code" field), `pairing_code`, +`pairing_completed`, `sync`, `received` (a phone file arrived and verified: name, size, path, +blake3), `pushed`, `push_error`, `error`. Files dropped in `--push-dir` go to the phone. Without +`--auto-confirm`, type `y` or `n` and Enter after a code is printed. `--new-pairing` replaces an +existing pairing. Kill it by PID. diff --git a/apps/android/app/build.gradle.kts b/apps/android/app/build.gradle.kts new file mode 100644 index 0000000..ed58324 --- /dev/null +++ b/apps/android/app/build.gradle.kts @@ -0,0 +1,79 @@ +plugins { + id("com.android.application") + id("org.jetbrains.kotlin.plugin.compose") +} + +android { + namespace = "app.localtugboat" + compileSdk = 37 + + defaultConfig { + applicationId = providers.gradleProperty("tugboat.applicationId").get() + minSdk = 31 + targetSdk = 37 + versionCode = 3 + versionName = "0.1.1" + // Only the two ABIs build-rust.cmd produces: arm64-v8a (phone) and x86_64 (emulator). + ndk { abiFilters += listOf("arm64-v8a", "x86_64") } + } + + lint { + // "A newer Gradle / library exists" notices, not defects: the AGP, Gradle and JNA versions are pinned on purpose + // (JNA carries libjnidispatch for the UniFFI bindings). Every other check stays on. + disable += listOf("AndroidGradlePluginVersion", "NewerVersionAvailable") + } + + buildFeatures { + compose = true + // BuildConfig.DEBUG gates the paste-pairing-code field and other test-only paths. + buildConfig = true + } + + buildTypes { + release { + // R8 off for now. No signingConfig: the AAB is built UNSIGNED, the user signs it with jarsigner. + isMinifyEnabled = false + } + } + +} + +dependencies { + // UniFFI bindings load libtugboat_ffi.so through JNA (the aar carries libjnidispatch.so). + implementation("net.java.dev.jna:jna:5.17.0@aar") + + implementation("androidx.core:core:1.19.1") + implementation("androidx.activity:activity-compose:1.13.0") + implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.11.0") + implementation("androidx.lifecycle:lifecycle-runtime-compose:2.11.0") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0") + + val bom = platform("androidx.compose:compose-bom:2026.09.00") + implementation(bom) + implementation("androidx.compose.ui:ui") + implementation("androidx.compose.foundation:foundation") + implementation("androidx.compose.material3:material3") + implementation("androidx.compose.ui:ui-tooling-preview") + debugImplementation("androidx.compose.ui:ui-tooling") + + val camerax = "1.6.2" + implementation("androidx.camera:camera-core:$camerax") + implementation("androidx.camera:camera-camera2:$camerax") + implementation("androidx.camera:camera-lifecycle:$camerax") + implementation("androidx.camera:camera-view:$camerax") + implementation("androidx.camera:camera-video:$camerax") + + // Bundled model: no Google Play Services needed to scan the pairing QR. + implementation("com.google.mlkit:barcode-scanning:17.3.0") + + val media3 = "1.11.1" + implementation("androidx.media3:media3-exoplayer:$media3") + implementation("androidx.media3:media3-ui:$media3") + + implementation("androidx.work:work-runtime:2.12.0") + + // Photo orientation (lint: the platform android.media.ExifInterface is the old copy). + implementation("androidx.exifinterface:exifinterface:1.4.2") + + testImplementation("junit:junit:4.13.2") +} diff --git a/apps/android/app/lint.xml b/apps/android/app/lint.xml new file mode 100644 index 0000000..f269fc4 --- /dev/null +++ b/apps/android/app/lint.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/apps/android/app/src/main/AndroidManifest.xml b/apps/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..691fa10 --- /dev/null +++ b/apps/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/android/app/src/main/java/app/localtugboat/ActivityScreen.kt b/apps/android/app/src/main/java/app/localtugboat/ActivityScreen.kt new file mode 100644 index 0000000..c0a3d61 --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/ActivityScreen.kt @@ -0,0 +1,81 @@ +package app.localtugboat + +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.defaultMinSize +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.items +import androidx.compose.foundation.lazy.rememberLazyListState +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.getValue +import androidx.compose.runtime.remember +import androidx.compose.runtime.rememberCoroutineScope +import androidx.compose.runtime.snapshotFlow +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.platform.LocalDensity +import androidx.compose.ui.unit.dp +import java.time.ZoneId +import kotlinx.coroutines.launch +import uniffi.tugboat_ffi.ActivityInfo +import uniffi.tugboat_ffi.FfiEvent +import androidx.compose.ui.text.style.TextOverflow + +/** What happened to the photos and to the sync, newest first. Problems are in words, an icon and the error colour. */ +@Composable +fun ActivityScreen(vm: SnapViewModel) { + val model = remember { + PagedModel(50) { cursor, n -> + val rows = vm.activity(cursor?.toLong(), n.toUInt()) + PageOf(rows, if (rows.size >= n) rows.last().id.toString() else null) + } + } + ReloadOnEvents(vm, model) { it == FfiEvent.ActivityAdded || it == FfiEvent.Resync } + val nowMs by rememberNow(30_000) + val scope = rememberCoroutineScope() + val list = rememberLazyListState() + val zone = ZoneId.systemDefault() + + LaunchedEffect(model, list) { + snapshotFlow { (list.layoutInfo.visibleItemsInfo.lastOrNull()?.index ?: 0) to model.rows.size }.collect { (last, size) -> + if (model.hasMore && last >= size - 10) model.loadMore() + } + } + + Column(Modifier.fillMaxSize()) { + ScreenBar("Activity", onBack = { vm.nav.back() }) + Box(Modifier.weight(1f)) { + ListStates(model, null, false, null, { scope.launch { model.reload() } }, emptyText = "No activity yet.") { + val bottom = with(LocalDensity.current) { WindowInsets.navigationBars.getBottom(this).toDp() } + LazyColumn(state = list, contentPadding = PaddingValues(bottom = bottom)) { + items(model.rows, key = { it.id }) { a -> + val problem = UiLogic.activityIsProblem(a.action) + val cs = MaterialTheme.colorScheme + Row(Modifier.fillMaxWidth().defaultMinSize(minHeight = 56.dp).padding(horizontal = 16.dp, vertical = 8.dp), verticalAlignment = Alignment.CenterVertically) { + if (problem) Ico(R.drawable.ic_sync_problem, null, tint = cs.error) else Spacer(Modifier.width(24.dp)) + Spacer(Modifier.width(12.dp)) + Column(Modifier.weight(1f)) { + Text(UiLogic.activityText(a.action), style = MaterialTheme.typography.bodyLarge, color = if (problem) cs.error else cs.onSurface) + if (a.detail.isNotBlank()) Text(a.detail, style = MaterialTheme.typography.bodySmall, color = cs.onSurfaceVariant, maxLines = 2, overflow = TextOverflow.Ellipsis) + } + Spacer(Modifier.width(8.dp)) + Text(UiLogic.activityTime(a.atMs, nowMs, zone), style = MaterialTheme.typography.labelMedium, color = cs.onSurfaceVariant) + } + } + } + } + } + } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/Background.kt b/apps/android/app/src/main/java/app/localtugboat/Background.kt new file mode 100644 index 0000000..7a181ef --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/Background.kt @@ -0,0 +1,109 @@ +package app.localtugboat + +import android.content.BroadcastReceiver +import android.content.Context +import android.content.Intent +import androidx.work.CoroutineWorker +import androidx.work.WorkerParameters +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.flow.first +import kotlinx.coroutines.CancellationException +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext +import kotlinx.coroutines.withTimeoutOrNull +import uniffi.tugboat_ffi.SyncState + +/** The one rule for "should the foreground service run": paired, and the setting is on. */ +object ServiceGate { + /** Blocking (opens the core). Starts the service if it is wanted and returns whether it was. */ + fun startIfWanted(c: Context, why: String): Boolean { + val core = c.applicationContext.core + return try { + val p = core.phone() + val wanted = p.pairedPc() != null && p.settings().stayConnected + KLog.log(c, "start check ($why): wanted=$wanted running=${core.serviceRunning}") + if (wanted && !core.serviceRunning) SnapService.start(c) + wanted + } catch (e: Exception) { + core.reportError("start check ($why) failed: ${e.message}") + false + } + } +} + +/** + * BOOT_COMPLETED and MY_PACKAGE_REPLACED: both may start a foreground service from the background. + * After a force-stop, Android 15+ also delivers BOOT_COMPLETED once the app is opened again, so this + * can run on a phone that did not reboot: harmless, the gate checks `serviceRunning`. + */ +class BootReceiver : BroadcastReceiver() { + override fun onReceive(context: Context, intent: Intent) { + val pending = goAsync() + val app = context.applicationContext + app.core.scope.launch { + try { + ServiceGate.startIfWanted(app, intent.action ?: "?") + } finally { + pending.finish() + } + } + } +} + +/** + * Every 15 minutes: a catch-up sync when the service is not running, and a service restart when the + * app is exempt from battery optimisation (Android 12+ refuses a background start otherwise). + */ +class CatchUpWorker(c: Context, p: WorkerParameters) : CoroutineWorker(c, p) { + // The core calls block: keep them off the default dispatcher. + override suspend fun doWork(): Result = withContext(Dispatchers.IO) { catchUp() } + + private suspend fun catchUp(): Result { + val app = applicationContext + val core = app.core + try { + val p = core.phone() + val recovered = Capture.recover(app) + if (recovered > 0) KLog.log(app, "worker: took $recovered shot(s) left from an earlier failed hand-off") + if (p.pairedPc() == null) return Result.success() + if (p.settings().stayConnected && !core.serviceRunning) { + if (Perms.batteryExempt(app)) { + KLog.log(app, "worker: service not running, restarting it") + SnapService.start(app) + } else { + KLog.log(app, "worker: service not running and not exempt from battery optimisation, cannot restart it") + } + } + if (core.serviceRunning) return Result.success() // the service is syncing already + if (!Perms.localNetworkAllowed(app)) { + core.reportError("catch-up skipped: local network blocked") + return Result.success() + } + val startedAt = System.currentTimeMillis() + core.hold("worker") + try { + p.reconnectNow() + val done = withTimeoutOrNull(SYNC_WAIT_MS) { + core.status.first { + // A fresh sync, not the stale status left from the last session. + it != null && it.state == SyncState.SYNCED && it.downloading == 0u && (it.lastSyncedAt ?: 0L) >= startedAt - 1000 + } + } + KLog.log(app, "worker: catch-up ${if (done != null) "synced" else "timed out, PC not reachable"}") + } finally { + core.release("worker") + } + } catch (e: CancellationException) { + throw e // WorkManager cancelled this run (an updated schedule, a stop): not a failure to report + } catch (e: Exception) { + // Reported, then success: a retry loop would only drain the battery on a phone that has no PC nearby. + core.reportError("catch-up failed: ${e.message}") + } + return Result.success() + } + + companion object { + const val NAME = "catchup" + private const val SYNC_WAIT_MS = 90_000L + } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/BatteryFix.kt b/apps/android/app/src/main/java/app/localtugboat/BatteryFix.kt new file mode 100644 index 0000000..201383a --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/BatteryFix.kt @@ -0,0 +1,51 @@ +package app.localtugboat + +import android.content.ComponentName +import android.content.Context +import android.content.Intent +import android.os.Build +import android.provider.Settings +import androidx.core.net.toUri + +/** + * The [Fix] flow after "Tugboat was stopped": step 1 opens the system's battery optimisation list, where the + * user sets Tugboat to "Not optimized" (the only thing that lets a worker restart the service on Android 12+); + * step 2 opens the vendor's "never sleeping apps" screen, falling back to the app's own settings page. + * The UI runs the steps in order, launching each with startActivity. + * + * Step 1 is the list, not the one-tap request dialog (ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS): Play bans that + * request for apps whose core function is not hurt by Doze, and a PC sync app is the "Not acceptable" row of the + * Doze use-case table. The list is allowed for every app and needs no permission. + */ +object BatteryFix { + /** Step 1. Null when the app is already exempt. */ + fun exemptionIntent(c: Context): Intent? = + if (Perms.batteryExempt(c)) null + else Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS) + + // ponytail: Samsung component names are not public API. These come from other apps' working deep + // links and were NOT verified on a real One UI phone; the app-details fallback always works. + private val samsung = listOf( + ComponentName("com.samsung.android.lool", "com.samsung.android.sm.battery.ui.BatteryActivity"), + ComponentName("com.samsung.android.lool", "com.samsung.android.sm.ui.battery.BatteryActivity"), + ComponentName("com.samsung.android.sm_cn", "com.samsung.android.sm.ui.battery.BatteryActivity"), + ) + + /** Step 2. Starts the first screen that opens and returns a short name of it for the log. */ + fun openVendorScreen(c: Context): String { + if (Build.MANUFACTURER.equals("samsung", ignoreCase = true)) { + for (cn in samsung) { + try { + c.startActivity(Intent().setComponent(cn).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)) + return cn.className + } catch (e: Exception) { + // Not on this firmware, or not exported: try the next one. + } + } + } + c.startActivity( + Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, "package:${c.packageName}".toUri()).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + ) + return "app details" + } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/CameraScreen.kt b/apps/android/app/src/main/java/app/localtugboat/CameraScreen.kt new file mode 100644 index 0000000..4d682fd --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/CameraScreen.kt @@ -0,0 +1,560 @@ +package app.localtugboat + +import android.annotation.SuppressLint +import android.Manifest +import android.content.pm.PackageManager +import android.os.SystemClock +import android.view.GestureDetector +import android.view.MotionEvent +import android.view.ScaleGestureDetector +import androidx.camera.core.Camera +import androidx.camera.core.CameraSelector +import androidx.camera.core.FocusMeteringAction +import androidx.camera.core.ImageCapture +import androidx.camera.core.ImageCaptureException +import androidx.camera.core.Preview +import androidx.camera.lifecycle.ProcessCameraProvider +import androidx.camera.video.FileOutputOptions +import androidx.camera.video.Quality +import androidx.camera.video.QualitySelector +import androidx.camera.video.Recorder +import androidx.camera.video.Recording +import androidx.camera.video.VideoCapture +import androidx.camera.video.VideoRecordEvent +import androidx.camera.view.PreviewView +import androidx.compose.foundation.BorderStroke +import androidx.compose.foundation.background +import androidx.compose.foundation.border +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.defaultMinSize +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBarsPadding +import androidx.compose.foundation.layout.offset +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.statusBars +import androidx.compose.foundation.layout.statusBarsPadding +import androidx.compose.foundation.layout.widthIn +import androidx.compose.foundation.layout.windowInsetsTopHeight +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.DisposableEffect +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableLongStateOf +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.rememberUpdatedState +import androidx.compose.runtime.saveable.rememberSaveable +import androidx.compose.runtime.setValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.geometry.Offset +import androidx.compose.ui.graphics.Brush +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.hapticfeedback.HapticFeedbackType +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.platform.LocalDensity +import androidx.compose.ui.platform.LocalHapticFeedback +import androidx.compose.ui.semantics.Role +import androidx.compose.ui.semantics.contentDescription +import androidx.compose.ui.semantics.role +import androidx.compose.ui.semantics.selected +import androidx.compose.ui.semantics.semantics +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.IntOffset +import androidx.compose.ui.unit.dp +import androidx.compose.ui.viewinterop.AndroidView +import androidx.core.content.ContextCompat +import androidx.core.content.edit +import androidx.lifecycle.Observer +import androidx.lifecycle.compose.LifecycleResumeEffect +import androidx.lifecycle.compose.LocalLifecycleOwner +import androidx.lifecycle.compose.collectAsStateWithLifecycle +import java.io.File +import java.text.SimpleDateFormat +import java.util.Date +import java.util.Locale +import kotlinx.coroutines.CancellationException +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.delay +import kotlinx.coroutines.launch +import kotlinx.coroutines.withContext +import uniffi.tugboat_ffi.GeoFix +import androidx.compose.ui.text.style.TextOverflow + +/** Zoom numbers the lens chips and the pinch gesture share. */ +private class ZoomInfo(val ratio: Float, val min: Float, val max: Float) + +/** + * The home screen. Full-bleed preview, shutter, flip, flash, zoom chips, tap to focus, the folder chip and the + * sync line. A shot is written to a file by CameraX and handed to the core off the main thread: the shutter + * never waits for the database. + */ +@SuppressLint("ClickableViewAccessibility") +@Composable +fun CameraScreen(vm: SnapViewModel, ui: UiState, banners: List, onBanner: (UiLogic.BannerUi) -> Unit, actions: ShellActions) { + val ctx = LocalContext.current + val owner = LocalLifecycleOwner.current + val haptic = LocalHapticFeedback.current + val main = remember { ContextCompat.getMainExecutor(ctx) } + val nowMs by rememberNow(5_000) + val folders by vm.folders.collectAsStateWithLifecycle() + val latest by vm.latest.collectAsStateWithLifecycle() + val hardDenied by vm.hardDenied.collectAsStateWithLifecycle() + val nextShot by ctx.core.nextShotFolder.collectAsStateWithLifecycle() + val perms = ui.perms + val cameraOk = perms?.camera == true + val micOk = perms?.microphone == true + + var video by rememberSaveable { mutableStateOf(false) } + var front by rememberSaveable { mutableStateOf(false) } + var flash by rememberSaveable { mutableStateOf(UiLogic.Flash.OFF) } + var showFolders by rememberSaveable { mutableStateOf(false) } + + var camera by remember { mutableStateOf(null) } + var imageCapture by remember { mutableStateOf(null) } + var videoCapture by remember { mutableStateOf?>(null) } + var cameraError by remember { mutableStateOf(null) } + var canFlip by remember { mutableStateOf(false) } + var hasFlash by remember { mutableStateOf(false) } + var zoom by remember { mutableStateOf(null) } + var recording by remember { mutableStateOf(null) } + val recordMs = remember { mutableLongStateOf(0L) } + var focusAt by remember { mutableStateOf(null) } + var shutterFlash by remember { mutableStateOf(false) } + var target by remember { mutableStateOf(null) } + val tracker = remember { LocationTracker(ctx) } + + val previewView = remember { PreviewView(ctx).apply { scaleType = PreviewView.ScaleType.FILL_CENTER } } + val cameraNow by rememberUpdatedState(camera) + + LightSystemIcons() + + // Location only while this screen is visible (while-in-use permission, never background). + LifecycleResumeEffect(tracker) { + tracker.start()?.let { KLog.log(ctx, "location not started: $it") } + onPauseOrDispose { tracker.stop() } + } + + // What the chip shows is what the next shot gets: recomputed when the pick changes and every few seconds. + LaunchedEffect(nextShot, folders) { + var lastError: String? = null + while (true) { + try { + target = withContext(Dispatchers.IO) { Capture.target(ctx, tracker.current()) } + lastError = null + } catch (e: CancellationException) { + throw e + } catch (e: Exception) { + target = null + if (e.message != lastError) KLog.log(ctx, "chip target: ${e.message}") + lastError = e.message + } + delay(3_000) + } + } + + // Bind CameraX. Photo mode: preview + ImageCapture. Video mode: preview + VideoCapture. Rebinds on a change. + DisposableEffect(owner, cameraOk, front, video) { + var provider: ProcessCameraProvider? = null + var zoomLive: androidx.lifecycle.LiveData? = null + val zoomObserver = Observer { zoom = ZoomInfo(it.zoomRatio, it.minZoomRatio, it.maxZoomRatio) } + if (cameraOk) { + val future = ProcessCameraProvider.getInstance(ctx) + future.addListener({ + try { + val p = future.get() + provider = p + canFlip = p.hasCamera(CameraSelector.DEFAULT_BACK_CAMERA) && p.hasCamera(CameraSelector.DEFAULT_FRONT_CAMERA) + val selector = if (front) CameraSelector.DEFAULT_FRONT_CAMERA else CameraSelector.DEFAULT_BACK_CAMERA + if (!p.hasCamera(selector)) throw IllegalStateException(if (front) "No front camera on this phone" else "No back camera on this phone") + val preview = Preview.Builder().build().also { it.surfaceProvider = previewView.surfaceProvider } + p.unbindAll() + val c = if (!video) { + val ic = ImageCapture.Builder().setCaptureMode(ImageCapture.CAPTURE_MODE_MINIMIZE_LATENCY).build() + imageCapture = ic + videoCapture = null + p.bindToLifecycle(owner, selector, preview, ic) + } else { + val vc = VideoCapture.withOutput(Recorder.Builder().setQualitySelector(QualitySelector.from(Quality.HD, androidx.camera.video.FallbackStrategy.lowerQualityOrHigherThan(Quality.SD))).build()) + videoCapture = vc + imageCapture = null + p.bindToLifecycle(owner, selector, preview, vc) + } + camera = c + hasFlash = c.cameraInfo.hasFlashUnit() + zoomLive = c.cameraInfo.zoomState.also { it.observe(owner, zoomObserver) } + cameraError = null + } catch (e: Exception) { + camera = null + cameraError = e.message ?: e.javaClass.simpleName + ctx.core.reportError("camera: $cameraError") + } + }, main) + } + onDispose { + // A recording in progress is stopped so its file is finished and kept (the finalize event hands it to the core). + recording?.stop() + zoomLive?.removeObserver(zoomObserver) + provider?.unbindAll() + camera = null + zoom = null + } + } + + // Flash for photos, torch for video. + LaunchedEffect(flash, camera, video) { + imageCapture?.flashMode = when (flash) { + UiLogic.Flash.OFF -> ImageCapture.FLASH_MODE_OFF + UiLogic.Flash.AUTO -> ImageCapture.FLASH_MODE_AUTO + UiLogic.Flash.ON -> ImageCapture.FLASH_MODE_ON + } + camera?.cameraControl?.enableTorch(video && flash == UiLogic.Flash.ON) + } + + // Pinch to zoom, tap to focus. + DisposableEffect(previewView) { + val scale = ScaleGestureDetector(ctx, object : ScaleGestureDetector.SimpleOnScaleGestureListener() { + override fun onScale(d: ScaleGestureDetector): Boolean { + val c = cameraNow ?: return true + val z = c.cameraInfo.zoomState.value ?: return true + c.cameraControl.setZoomRatio((z.zoomRatio * d.scaleFactor).coerceIn(z.minZoomRatio, z.maxZoomRatio)) + return true + } + }) + val tap = GestureDetector(ctx, object : GestureDetector.SimpleOnGestureListener() { + override fun onSingleTapUp(e: MotionEvent): Boolean { + val c = cameraNow ?: return true + val point = previewView.meteringPointFactory.createPoint(e.x, e.y) + c.cameraControl.startFocusAndMetering(FocusMeteringAction.Builder(point).build()) + focusAt = Offset(e.x, e.y) + return true + } + }) + previewView.setOnTouchListener { v, ev -> + scale.onTouchEvent(ev) + if (!scale.isInProgress) tap.onTouchEvent(ev) + if (ev.actionMasked == MotionEvent.ACTION_UP) v.performClick() + true + } + onDispose { previewView.setOnTouchListener(null) } + } + LaunchedEffect(focusAt) { + if (focusAt != null) { + delay(900) + focusAt = null + } + } + LaunchedEffect(shutterFlash) { + if (shutterFlash) { + delay(90) + shutterFlash = false + } + } + + fun newFile(prefix: String, ext: String) = File(Capture.shotsDir(ctx), prefix + SimpleDateFormat("yyyyMMdd_HHmmss_SSS", Locale.ROOT).format(Date()) + "." + ext) + + fun geoNow(): GeoFix? = tracker.current()?.takeIf { UiLogic.usableFix(it.accuracyM, it.ageMs) }?.let { GeoFix(it.lat, it.lon, it.accuracyM) } + + fun takePhoto() { + val ic = imageCapture ?: return + val file = newFile("IMG_", "jpg") + val folderId = target?.folderId + val geo = geoNow() + val at = System.currentTimeMillis() + shutterFlash = true + haptic.performHapticFeedback(HapticFeedbackType.LongPress) + Capture.shotTaken(ctx) + ic.takePicture(ImageCapture.OutputFileOptions.Builder(file).build(), main, object : ImageCapture.OnImageSavedCallback { + override fun onImageSaved(r: ImageCapture.OutputFileResults) = handOff(vm, ctx, file, folderId, at, geo, false) + override fun onError(e: ImageCaptureException) { + file.delete() + ctx.core.reportError("photo: ${e.message}") + vm.say("Photo failed: ${e.message}") + } + }) + } + + @SuppressLint("MissingPermission") // withAudioEnabled is called only after the checkSelfPermission just above it + fun toggleRecording() { + recording?.let { + it.stop() + return + } + val vc = videoCapture ?: return + val file = newFile("VID_", "mp4") + val folderId = target?.folderId + val geo = geoNow() + val at = System.currentTimeMillis() + var pending = vc.output.prepareRecording(ctx, FileOutputOptions.Builder(file).build()) + if (ContextCompat.checkSelfPermission(ctx, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED) pending = pending.withAudioEnabled() + haptic.performHapticFeedback(HapticFeedbackType.LongPress) + Capture.shotTaken(ctx) + recordMs.longValue = 0 + recording = pending.start(main) { ev -> + when (ev) { + is VideoRecordEvent.Status -> recordMs.longValue = ev.recordingStats.recordedDurationNanos / 1_000_000 + is VideoRecordEvent.Finalize -> { + recording = null + if (ev.hasError()) { + // The file is still handed over when it has content: the core checks it, a recording is never thrown away here. + ctx.core.reportError("video: error ${ev.error} ${ev.cause?.message.orEmpty()}") + vm.say("Video stopped: ${videoErrorText(ev.error)}") + } + if (file.length() > 0) handOff(vm, ctx, file, folderId, at, geo, true) else file.delete() + } + else -> {} + } + } + } + + fun chooseVideo(on: Boolean) { + video = on + flash = UiLogic.Flash.OFF + if (on && !micOk && PermKind.MICROPHONE !in hardDenied && !Prefs.of(ctx).getBoolean(PREF_MIC_ASKED, false)) { + Prefs.of(ctx).edit { putBoolean(PREF_MIC_ASKED, true) } + actions.request(PermKind.MICROPHONE) + } + } + + Box(Modifier.fillMaxSize().background(Color.Black)) { + if (cameraOk && cameraError == null) AndroidView({ previewView }, Modifier.fillMaxSize()) + if (shutterFlash) Box(Modifier.fillMaxSize().background(Color.White.copy(alpha = 0.35f))) + + focusAt?.let { p -> + val d = LocalDensity.current + // White ring with a dark edge on both sides: a white ring alone vanishes on a bright scene. + Box( + Modifier.offset { IntOffset((p.x - with(d) { 38.dp.toPx() }).toInt(), (p.y - with(d) { 38.dp.toPx() }).toInt()) }.size(76.dp) + .border(1.dp, Scrim, CircleShape).padding(1.dp).border(2.dp, Color.White, CircleShape).padding(2.dp).border(1.dp, Scrim, CircleShape), + ) + } + + if (!cameraOk || cameraError != null) { + CameraNotice( + if (!cameraOk) "CAMERA OFF - allow the camera to take photos" else "CAMERA UNAVAILABLE - $cameraError", + if (!cameraOk) (if (PermKind.CAMERA in hardDenied) "Open settings" else "Allow camera") else null, + ) { if (PermKind.CAMERA in hardDenied) actions.openAppSettings() else actions.request(PermKind.CAMERA) } + } + + // Darkens the strip behind the clock, signal and battery: white icons over a bright scene are invisible otherwise. + Box( + Modifier.fillMaxWidth().windowInsetsTopHeight(WindowInsets.statusBars) + .background(Brush.verticalGradient(0f to Scrim, 0.85f to Scrim, 1f to Color.Transparent)), + ) + + Column(Modifier.fillMaxSize()) { + // ---- top ---- + Row(Modifier.fillMaxWidth().statusBarsPadding().padding(horizontal = 8.dp, vertical = 4.dp), verticalAlignment = Alignment.CenterVertically) { + if (hasFlash && cameraOk) { + val (icon, desc) = when (flash) { + UiLogic.Flash.OFF -> R.drawable.ic_flash_off to "Flash off" + UiLogic.Flash.AUTO -> R.drawable.ic_flash_auto to "Flash auto" + UiLogic.Flash.ON -> R.drawable.ic_flash_on to (if (video) "Torch on" else "Flash on") + } + ScrimIconBtn(icon, desc, { flash = UiLogic.nextFlash(flash, video) }) + } else { + Spacer(Modifier.size(Touch)) + } + Spacer(Modifier.weight(1f)) + ScrimIconBtn(R.drawable.ic_settings, "Settings", { vm.nav.go(Route.Settings) }) + } + Column(Modifier.padding(horizontal = 12.dp), verticalArrangement = Arrangement.spacedBy(6.dp)) { + BannerStack(banners, onBanner, max = 2) + SyncLine(ui.status, nowMs, onScrim = true, modifier = Modifier.background(Scrim, RoundedCornerShape(50)).padding(horizontal = 10.dp, vertical = 2.dp)) + } + Spacer(Modifier.weight(1f)) + + // ---- bottom, in reach of the thumb ---- + Column(Modifier.fillMaxWidth().navigationBarsPadding().padding(bottom = 12.dp), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(12.dp)) { + // Where the next shot goes, changed per shot: in thumb reach, not under the status bar. + FolderChip(UiLogic.chip(target), enabled = recording == null) { showFolders = true } + val z = zoom + if (z != null && recording == null) { + Row(horizontalArrangement = Arrangement.spacedBy(8.dp), modifier = Modifier.background(Scrim, RoundedCornerShape(50)).padding(4.dp)) { + UiLogic.lensChips(z.min, z.max).forEach { r -> + val on = Math.abs(z.ratio - r) < 0.05f + ZoomChip(UiLogic.zoomLabel(r), on) { cameraNow?.cameraControl?.setZoomRatio(r.coerceIn(z.min, z.max)) } + } + } + } + if (recording != null) { + Row(Modifier.background(Scrim, RoundedCornerShape(50)).padding(horizontal = 14.dp, vertical = 6.dp), verticalAlignment = Alignment.CenterVertically) { + Box(Modifier.size(10.dp).clip(CircleShape).background(Color(0xFFFF6B5E))) + Spacer(Modifier.width(8.dp)) + Text("REC ${UiLogic.clock(recordMs.longValue)}", color = Color.White, style = MaterialTheme.typography.titleMedium) + } + } else { + Row(horizontalArrangement = Arrangement.spacedBy(8.dp), verticalAlignment = Alignment.CenterVertically) { + ModeChip("Photo", !video) { chooseVideo(false) } + ModeChip("Video", video) { chooseVideo(true) } + if (video && !micOk) { + Text( + "NO SOUND", color = Color.White, style = MaterialTheme.typography.labelMedium, + modifier = Modifier.defaultMinSize(minHeight = Touch).clickable(role = Role.Button) { if (PermKind.MICROPHONE in hardDenied) actions.openAppSettings() else actions.request(PermKind.MICROPHONE) } + .background(Scrim, RoundedCornerShape(50)).padding(horizontal = 12.dp, vertical = 14.dp), + ) + } + } + } + Row(Modifier.fillMaxWidth().padding(horizontal = 24.dp), verticalAlignment = Alignment.CenterVertically) { + Box(Modifier.weight(1f), contentAlignment = Alignment.CenterStart) { + LastShot(latest) { vm.nav.go(Route.Gallery(null)) } + } + Shutter(video, recording != null, cameraOk && camera != null) { if (video) toggleRecording() else takePhoto() } + Box(Modifier.weight(1f), contentAlignment = Alignment.CenterEnd) { + if (canFlip && recording == null) ScrimIconBtn(R.drawable.ic_cameraswitch, if (front) "Use back camera" else "Use front camera", { front = !front }) + } + } + } + } + } + + if (showFolders) { + FolderSheet( + title = "Next shot goes to", folders = folders, currentId = nextShot, autoLabel = "Automatic (by place)", + onPick = { id -> + ctx.core.nextShotFolder.value = id + showFolders = false + }, + onDismiss = { showFolders = false }, + ) + } +} + +private const val PREF_MIC_ASKED = "mic_asked" + +/** Hand a finished file to the core on the process scope: it carries on if the user leaves the screen. */ +private fun handOff(vm: SnapViewModel, ctx: android.content.Context, file: File, folderId: String?, atMs: Long, geo: GeoFix?, video: Boolean) { + ctx.core.scope.launch { + try { + Capture.add(ctx, file, file.name, folderId, atMs, geo, imported = false, video = video) + vm.refreshLatest() + } catch (e: Exception) { + // The file stays in shots/ and Capture.recover retries it: nothing is lost. + ctx.core.reportError("add ${file.name}: ${e.message}") + vm.say("Saved on this phone, not synced yet: ${e.message}") + } + } +} + +private fun videoErrorText(code: Int) = when (code) { + VideoRecordEvent.Finalize.ERROR_INSUFFICIENT_STORAGE -> "phone storage is full" + VideoRecordEvent.Finalize.ERROR_SOURCE_INACTIVE -> "the camera was interrupted" + VideoRecordEvent.Finalize.ERROR_DURATION_LIMIT_REACHED, VideoRecordEvent.Finalize.ERROR_FILE_SIZE_LIMIT_REACHED -> "size limit reached" + VideoRecordEvent.Finalize.ERROR_NO_VALID_DATA -> "nothing was recorded" + else -> "recording error $code" +} + +@Composable +private fun CameraNotice(text: String, action: String?, onAction: () -> Unit) { + Column(Modifier.fillMaxSize().padding(32.dp), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center) { + Text(text, color = Color.White, style = MaterialTheme.typography.titleMedium, textAlign = TextAlign.Center) + if (action != null) { + Spacer(Modifier.height(16.dp)) + ActionButton(onClick = onAction, modifier = Modifier.defaultMinSize(minHeight = 56.dp)) { Text(action) } + } + } +} + +/** Round icon button on a dark scrim, readable over any scene. */ +@Composable +private fun ScrimIconBtn(icon: Int, desc: String, onClick: () -> Unit) { + androidx.compose.material3.IconButton(onClick = onClick, modifier = Modifier.size(Touch).background(Scrim, CircleShape)) { + androidx.compose.material3.Icon(androidx.compose.ui.res.painterResource(icon), desc, tint = Color.White) + } +} + +@Composable +private fun FolderChip(chip: UiLogic.ChipUi, enabled: Boolean, onClick: () -> Unit) { + Row( + // Long names (and large font sizes) shorten the name, never push the arrow out of the chip. + Modifier.widthIn(max = 320.dp).defaultMinSize(minHeight = Touch).clip(RoundedCornerShape(50)).background(Scrim) + .clickable(enabled = enabled, role = Role.Button, onClick = onClick) + .padding(start = 14.dp, end = 8.dp).semantics { contentDescription = "Next shot goes to ${chip.text}. Tap to change" }, + verticalAlignment = Alignment.CenterVertically, + ) { + Ico(if (chip.noLocation) R.drawable.ic_location_off else R.drawable.ic_folder, null, tint = Color.White, size = 20) + Spacer(Modifier.width(6.dp)) + Text(chip.text, color = Color.White, style = MaterialTheme.typography.titleSmall, maxLines = 1, overflow = TextOverflow.Ellipsis, modifier = Modifier.weight(1f, fill = false)) + if (enabled) Ico(R.drawable.ic_arrow_drop_down, null, tint = Color.White) else Spacer(Modifier.width(8.dp)) + } +} + +@Composable +private fun ZoomChip(label: String, selected: Boolean, onClick: () -> Unit) { + Box( + Modifier.size(Touch).clip(CircleShape).background(if (selected) Color.White else Color.Transparent) + .clickable(role = Role.Button, onClick = onClick).semantics { this.selected = selected; contentDescription = "Zoom $label" }, + contentAlignment = Alignment.Center, + ) { + Text(label, color = if (selected) Color.Black else Color.White, style = MaterialTheme.typography.labelLarge, fontWeight = if (selected) FontWeight.Bold else FontWeight.Normal) + } +} + +@Composable +private fun ModeChip(label: String, selected: Boolean, onClick: () -> Unit) { + Box( + Modifier.defaultMinSize(minHeight = Touch).clip(RoundedCornerShape(50)).background(if (selected) Color.White else Scrim) + .clickable(role = Role.Tab, onClick = onClick).padding(horizontal = 20.dp).semantics { this.selected = selected }, + contentAlignment = Alignment.Center, + ) { + Text(label.uppercase(), color = if (selected) Color.Black else Color.White, style = MaterialTheme.typography.labelLarge, fontWeight = if (selected) FontWeight.Bold else FontWeight.Normal) + } +} + +@Composable +private fun LastShot(latest: uniffi.tugboat_ffi.ItemInfo?, onClick: () -> Unit) { + // The dark halo keeps the white border visible over a white scene. + Box( + Modifier.background(Scrim, RoundedCornerShape(14.dp)).padding(2.dp).size(56.dp).clip(RoundedCornerShape(12.dp)) + .border(BorderStroke(2.dp, Color.White), RoundedCornerShape(12.dp)).background(Scrim) + .clickable(role = Role.Button, onClick = onClick).described("Open gallery"), + contentAlignment = Alignment.Center, + ) { + if (latest?.thumbPath != null) ThumbImage(latest.thumbPath, null, Modifier.fillMaxSize()) else Ico(R.drawable.ic_photo_library, null, tint = Color.White) + } +} + +/** + * 80 dp shutter on a 75% black disc (worst case, a white scene: #404040): buoy-orange ring, 4.5:1 there; photo = white + * disc, video = red disc, recording = red square. Disabled = grey, not faded white (faded white vanishes on a bright + * scene). Words for screen readers. + */ +@Composable +private fun Shutter(video: Boolean, recording: Boolean, enabled: Boolean, onClick: () -> Unit) { + val desc = if (!video) "Take photo" else if (recording) "Stop recording" else "Start recording" + val ring = if (enabled) ShutterRing else ShutterOff + Box(Modifier.size(88.dp).background(ShutterDisc, CircleShape), contentAlignment = Alignment.Center) { + Box( + Modifier.size(80.dp).clip(CircleShape).border(4.dp, ring, CircleShape) + .clickable(enabled = enabled, role = Role.Button, onClick = onClick).semantics { contentDescription = desc }, + contentAlignment = Alignment.Center, + ) { + val fill = if (!enabled) ShutterOff else if (video) Color(0xFFE5483B) else Color.White + Box( + Modifier.size(if (recording) 30.dp else 62.dp) + .clip(if (recording) RoundedCornerShape(6.dp) else CircleShape) + .background(fill), + ) + } + } +} + +/** Disabled shutter on the scrim: light grey, 7:1 on the worst disc (white scene), unlike white at 40% alpha. */ +private val ShutterOff = Color(0xFFC0C0C0) diff --git a/apps/android/app/src/main/java/app/localtugboat/Components.kt b/apps/android/app/src/main/java/app/localtugboat/Components.kt new file mode 100644 index 0000000..f219bec --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/Components.kt @@ -0,0 +1,225 @@ +package app.localtugboat + +import android.graphics.BitmapFactory +import android.util.LruCache +import androidx.annotation.DrawableRes +import androidx.compose.foundation.Image +import androidx.compose.foundation.background +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.RowScope +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.statusBarsPadding +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.defaultMinSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBarsPadding +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.items +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material3.ExperimentalMaterial3Api +import androidx.compose.material3.Icon +import androidx.compose.material3.IconButton +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.ModalBottomSheet +import androidx.compose.material3.Surface +import androidx.compose.material3.Text +import androidx.compose.material3.TextButton +import androidx.compose.runtime.Composable +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.State +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableLongStateOf +import androidx.compose.runtime.produceState +import androidx.compose.runtime.remember +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.ImageBitmap +import androidx.compose.ui.graphics.asImageBitmap +import androidx.compose.ui.layout.ContentScale +import androidx.compose.ui.res.painterResource +import androidx.compose.ui.semantics.Role +import androidx.compose.ui.semantics.contentDescription +import androidx.compose.ui.semantics.semantics +import androidx.compose.ui.unit.dp +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.delay +import kotlinx.coroutines.withContext +import uniffi.tugboat_ffi.FolderInfo +import uniffi.tugboat_ffi.SyncStatus +import androidx.compose.ui.text.style.TextOverflow + +/** Minimum touch target everywhere. */ +val Touch = 48.dp + +/** Monochrome Material Symbols icon from res/drawable. [desc] null = decorative (the text beside it says it). */ +@Composable +fun Ico(@DrawableRes id: Int, desc: String?, modifier: Modifier = Modifier, tint: Color = MaterialTheme.colorScheme.onSurface, size: Int = 24) { + Icon(painterResource(id), desc, modifier.size(size.dp), tint) +} + +@Composable +fun IconBtn(@DrawableRes id: Int, desc: String, onClick: () -> Unit, modifier: Modifier = Modifier, tint: Color = MaterialTheme.colorScheme.onSurface, enabled: Boolean = true) { + IconButton(onClick = onClick, modifier = modifier.size(Touch), enabled = enabled) { Icon(painterResource(id), desc, tint = tint) } +} + +/** A clock that ticks every [everyMs], so "Synced 10s ago" and "Expires in 5h" stay true on screen. */ +@Composable +fun rememberNow(everyMs: Long = 5_000): State { + val now = remember { mutableLongStateOf(System.currentTimeMillis()) } + LaunchedEffect(everyMs) { + while (true) { + delay(everyMs) + now.longValue = System.currentTimeMillis() + } + } + return now +} + +/** Status as a tinted block: icon + text + optional action. No coloured edge stripe. Blockers are red. */ +@Composable +fun BannerCard(b: UiLogic.BannerUi, onAction: () -> Unit, modifier: Modifier = Modifier) { + val blocker = b.level == UiLogic.Level.BLOCKER + val bg = if (blocker) MaterialTheme.colorScheme.errorContainer else MaterialTheme.colorScheme.tertiaryContainer + val fg = if (blocker) MaterialTheme.colorScheme.onErrorContainer else MaterialTheme.colorScheme.onTertiaryContainer + Surface(color = bg, contentColor = fg, shape = MaterialTheme.shapes.medium, modifier = modifier.fillMaxWidth()) { + Row(Modifier.defaultMinSize(minHeight = Touch).padding(start = 12.dp, end = 4.dp, top = 4.dp, bottom = 4.dp), verticalAlignment = Alignment.CenterVertically) { + Ico(R.drawable.ic_warning, null, tint = fg) + Spacer(Modifier.width(10.dp)) + Text(b.text, style = MaterialTheme.typography.bodyMedium, modifier = Modifier.weight(1f).padding(vertical = 6.dp)) + if (b.action != null) TextButton(onClick = onAction, modifier = Modifier.defaultMinSize(minHeight = Touch)) { Text(b.action, color = fg) } + } + } +} + +@Composable +fun BannerStack(banners: List, onAction: (UiLogic.BannerUi) -> Unit, modifier: Modifier = Modifier, max: Int = Int.MAX_VALUE) { + if (banners.isEmpty()) return + Column(modifier, verticalArrangement = Arrangement.spacedBy(6.dp)) { + banners.take(max).forEach { BannerCard(it, { onAction(it) }) } + if (banners.size > max) Text("+${banners.size - max} more in Settings", style = MaterialTheme.typography.labelMedium, color = Color.White, modifier = Modifier.background(Scrim, MaterialTheme.shapes.small).padding(horizontal = 8.dp, vertical = 2.dp)) + } +} + +/** Dot + words. The words carry the meaning; the dot colour is only a hint. */ +@Composable +fun SyncLine(status: SyncStatus?, nowMs: Long, modifier: Modifier = Modifier, onScrim: Boolean = false) { + val cs = MaterialTheme.colorScheme + val tone = UiLogic.tone(status) + // On the camera scrim the dot colours must read on near-black; elsewhere they follow the theme. + val dot = when (tone) { + UiLogic.Tone.OK -> if (onScrim) c(ScrimDots.OK) else c(LocalPalette.current.ok) + UiLogic.Tone.BUSY -> if (onScrim) c(ScrimDots.BUSY) else cs.primary + UiLogic.Tone.WARN -> if (onScrim) c(ScrimDots.WARN) else cs.tertiary + UiLogic.Tone.BAD -> if (onScrim) c(ScrimDots.BAD) else cs.error + } + val text = if (status == null) "Starting" else Texts.cameraSync(status, nowMs) + Row(modifier.defaultMinSize(minHeight = 24.dp), verticalAlignment = Alignment.CenterVertically) { + Box(Modifier.size(8.dp).clip(CircleShape).background(dot)) + Spacer(Modifier.width(6.dp)) + Text(text, style = MaterialTheme.typography.labelMedium, color = if (onScrim) Color.White else cs.onSurfaceVariant, maxLines = 1, overflow = TextOverflow.Ellipsis) + } +} + +private object ThumbCache { + private const val MAX_KB = 32 * 1024 + val lru = object : LruCache(MAX_KB) { + override fun sizeOf(key: String, value: ImageBitmap) = (value.width * value.height * 4) / 1024 + } +} + +/** A held thumbnail (small JPEG made on the phone), or a placeholder when there is none. Cached, decoded off the main thread. */ +@Composable +fun ThumbImage(path: String?, desc: String?, modifier: Modifier = Modifier, scale: ContentScale = ContentScale.Crop) { + val bmp by produceState(path?.let { ThumbCache.lru.get(it) }, path) { + value = if (path == null) null else ThumbCache.lru.get(path) ?: withContext(Dispatchers.IO) { + BitmapFactory.decodeFile(path)?.asImageBitmap()?.also { ThumbCache.lru.put(path, it) } + } + } + val b = bmp + if (b != null) { + Image(b, desc, modifier, contentScale = scale) + } else { + Box(modifier.background(MaterialTheme.colorScheme.surfaceVariant), contentAlignment = Alignment.Center) { + Ico(R.drawable.ic_broken_image, desc, tint = MaterialTheme.colorScheme.onSurfaceVariant) + } + } +} + +/** + * Bottom sheet to pick a folder. [autoLabel] non-null adds a first row (the rule-based choice). + * [currentId] gets a check mark and a "Current" word, so the choice is not colour or icon alone. + */ +@OptIn(ExperimentalMaterial3Api::class) +@Composable +fun FolderSheet(title: String, folders: List, currentId: String?, autoLabel: String?, onPick: (String?) -> Unit, onDismiss: () -> Unit) { + ModalBottomSheet(onDismissRequest = onDismiss) { + Column(Modifier.navigationBarsPadding()) { + Text(title, style = MaterialTheme.typography.titleMedium, modifier = Modifier.padding(horizontal = 24.dp, vertical = 8.dp)) + LazyColumn { + if (autoLabel != null) item("auto") { FolderRow(autoLabel, null, currentId == null, { onPick(null) }) } + items(folders, key = { it.id }) { f -> FolderRow(f.name, UiLogic.retention(f.retentionSecs), f.id == currentId) { onPick(f.id) } } + } + } + } +} + +@Composable +private fun FolderRow(name: String, sub: String?, current: Boolean, onClick: () -> Unit) { + Row( + Modifier.fillMaxWidth().defaultMinSize(minHeight = 56.dp).clickable(role = Role.Button, onClick = onClick).padding(horizontal = 24.dp, vertical = 6.dp), + verticalAlignment = Alignment.CenterVertically, + ) { + Ico(R.drawable.ic_folder, null, tint = MaterialTheme.colorScheme.onSurfaceVariant) + Spacer(Modifier.width(16.dp)) + Column(Modifier.weight(1f)) { + Text(name, style = MaterialTheme.typography.bodyLarge) + if (sub != null) Text(sub, style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant) + } + if (current) { + Text("Current", style = MaterialTheme.typography.labelMedium, color = MaterialTheme.colorScheme.primary) + Spacer(Modifier.width(6.dp)) + Ico(R.drawable.ic_check, null, tint = MaterialTheme.colorScheme.primary) + } + } +} + +/** Centred message with an optional action: empty, error and permission-denied states. */ +@Composable +fun Notice(text: String, modifier: Modifier = Modifier, action: String? = null, onAction: () -> Unit = {}, blocker: Boolean = false, art: Boolean = false) { + Column(modifier.fillMaxWidth().padding(32.dp), horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center) { + if (art) { + TugboatArt(72.dp) + Spacer(Modifier.size(16.dp)) + } + Text( + text, style = MaterialTheme.typography.bodyLarge, textAlign = androidx.compose.ui.text.style.TextAlign.Center, + color = if (blocker) MaterialTheme.colorScheme.error else MaterialTheme.colorScheme.onSurfaceVariant, + ) + if (action != null) { + Spacer(Modifier.size(12.dp)) + androidx.compose.material3.FilledTonalButton(onClick = onAction, modifier = Modifier.defaultMinSize(minHeight = Touch)) { Text(action) } + } + } +} + +/** Marks a node as one labelled unit for screen readers (a thumbnail cell says its label, not each part). */ +fun Modifier.described(text: String): Modifier = semantics(mergeDescendants = true) { contentDescription = text } + +/** Title row of a sub-screen: back arrow, title, optional action icons. Handles the status bar inset. */ +@Composable +fun ScreenBar(title: String, onBack: (() -> Unit)?, modifier: Modifier = Modifier, actions: @Composable RowScope.() -> Unit = {}) { + Row(modifier.fillMaxWidth().statusBarsPadding().height(56.dp).padding(horizontal = 4.dp), verticalAlignment = Alignment.CenterVertically) { + if (onBack != null) IconBtn(R.drawable.ic_arrow_back, "Back", onBack) else Spacer(Modifier.width(12.dp)) + Text(title, style = MaterialTheme.typography.titleLarge, maxLines = 1, overflow = TextOverflow.Ellipsis, modifier = Modifier.weight(1f)) + actions() + } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/Core.kt b/apps/android/app/src/main/java/app/localtugboat/Core.kt new file mode 100644 index 0000000..3c5bca8 --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/Core.kt @@ -0,0 +1,200 @@ +package app.localtugboat + +import android.app.Application +import android.content.Context +import android.net.wifi.WifiManager +import android.os.Build +import java.io.File +import kotlinx.coroutines.CoroutineScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.ExperimentalCoroutinesApi +import kotlinx.coroutines.Job +import kotlinx.coroutines.SupervisorJob +import kotlinx.coroutines.channels.BufferOverflow +import kotlinx.coroutines.delay +import kotlinx.coroutines.flow.MutableSharedFlow +import kotlinx.coroutines.flow.MutableStateFlow +import kotlinx.coroutines.flow.SharedFlow +import kotlinx.coroutines.flow.StateFlow +import kotlinx.coroutines.flow.collectLatest +import kotlinx.coroutines.flow.combine +import kotlinx.coroutines.flow.distinctUntilChanged +import kotlinx.coroutines.launch +import uniffi.tugboat_ffi.EventListener +import uniffi.tugboat_ffi.FfiEvent +import uniffi.tugboat_ffi.PhoneConfig +import uniffi.tugboat_ffi.PhoneCore +import uniffi.tugboat_ffi.SnapException +import uniffi.tugboat_ffi.SyncState +import uniffi.tugboat_ffi.SyncStatus + +/** The process-wide core. One per process: the database and the log file are per data dir. */ +val Context.core: Core get() = (applicationContext as SnapApp).core + +/** + * Owns the single PhoneCore and the network lifetime. + * + * Every PhoneCore method is a blocking call: use them from Dispatchers.IO ([phone] itself blocks the + * first time). Who wants the network says so with [hold] and lets go with [release]; the endpoint runs + * while at least one owner holds it ("service", "ui", "worker", "pairing"). + */ +@OptIn(ExperimentalCoroutinesApi::class) +class Core(private val app: Application) { + val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO) + + private val openLock = Any() + @Volatile private var phone: PhoneCore? = null + + /** Core events for the screens. Events carry ids, not rows: re-read what is on screen. */ + private val _events = MutableSharedFlow(extraBufferCapacity = 256, onBufferOverflow = BufferOverflow.DROP_OLDEST) + val events: SharedFlow = _events + + private val _status = MutableStateFlow(null) + val status: StateFlow = _status + + /** Newest background errors (a failed download, a blocked non-local address, a log file problem), newest last. */ + private val _errors = MutableStateFlow>(emptyList()) + val errors: StateFlow> = _errors + + /** Folder id chosen on the viewfinder chip for the NEXT shot. The camera clears it after a shot. Share uses it too. */ + val nextShotFolder = MutableStateFlow(null) + + /** True while SnapService runs in this process. A new process starts with false. */ + @Volatile var serviceRunning = false + + private inner class Listener : EventListener { + override fun onEvent(event: FfiEvent) { + // Runs on a Rust runtime thread: record and return, never call back into the core. + when (event) { + is FfiEvent.Sync -> _status.value = event.status + is FfiEvent.Error -> reportError("${event.kind}: ${event.message}") + else -> {} + } + _events.tryEmit(event) + } + } + + fun reportError(text: String) { + KLog.log(app, "ERROR $text") + _errors.value = (_errors.value + text).takeLast(20) + } + + fun clearErrors() { + _errors.value = emptyList() + } + + /** Opens the core on first use. Blocking. Throws UpgradeStoppedException, KeyVaultException or SnapException; the caller shows the message. */ + fun phone(): PhoneCore { + phone?.let { return it } + synchronized(openLock) { + phone?.let { return it } + // The old library could not be moved to its new name: opening now would create an empty tugboat.db and the photos would look gone. + LegacyMigration.stopMessage?.let { throw UpgradeStoppedException(it) } + val secret = KeyVault.loadOrCreate(app) + val p = PhoneCore.open( + PhoneConfig( + dataDir = app.filesDir.path, + deviceName = Build.MODEL, + appVersion = BuildConfig.VERSION_NAME, + secretKey = secret, + bindAddr = null, + ), + Listener(), + ) + phone = p + _status.value = p.status() + KLog.log(app, "core open, device ${p.deviceId().take(8)}") + // An update that renamed old files (LegacyMigration) leaves a note: now the history can take it. + LegacyMigration.flushActivity(app) { p.logUpgrade(it) } + return p + } + } + + /** The core if it is already open, else null. Never blocks. */ + fun phoneIfOpen(): PhoneCore? = phone + + // ---- network lifetime ---- + + // Start/stop calls block, so they run one at a time, in order, on one thread. + private val linkScope = CoroutineScope(SupervisorJob() + Dispatchers.IO.limitedParallelism(1)) + private val holds = mutableSetOf() + private val netUp = MutableStateFlow(false) + + /** The returned Job completes once the network is up (or has failed: the error is in [errors]). */ + fun hold(owner: String): Job = linkScope.launch { + holds += owner + applyLink() + } + + fun release(owner: String): Job = linkScope.launch { + holds -= owner + applyLink() + } + + /** Stop and start the endpoint again (the local-network permission was just granted, for example). */ + fun restartLink() { + linkScope.launch { + if (netUp.value) { + phone?.stopNetwork() + netUp.value = false + } + applyLink() + } + } + + // Only called on linkScope. + private fun applyLink() { + try { + val p = phone() + if (holds.isNotEmpty() && !netUp.value) { + // mDNS without the local-network permission only floods the log with EPERM, so leave it off. + p.startNetwork(Perms.localNetworkAllowed(app)) + netUp.value = true + KLog.log(app, "network up, holders=$holds") + } else if (holds.isEmpty() && netUp.value) { + p.stopNetwork() + netUp.value = false + KLog.log(app, "network down") + } + } catch (e: UpgradeStoppedException) { + reportError(e.message ?: "upgrade stopped") // the screen already shows the blocker; no network without a library + } catch (e: KeyVaultException) { + reportError(e.message ?: "key error") + } catch (e: SnapException) { + reportError("network: ${e.message}") + } + } + + // ---- multicast lock bursts ---- + + init { + // The multicast lock keeps the Wi-Fi radio awake for every multicast packet, so it is held only + // while the PC cannot be reached (that is when mDNS lookups run), in bursts: 30 s on, 2 min off. + scope.launch { + combine(netUp, status) { up, st -> up && (st?.state == SyncState.OFFLINE || st?.state == SyncState.CONNECTING) } + .distinctUntilChanged() + .collectLatest { searching -> if (searching) multicastBursts() } + } + } + + private suspend fun multicastBursts() { + val lock = app.getSystemService(WifiManager::class.java).createMulticastLock("localtugboat-mdns") + lock.setReferenceCounted(false) + try { + while (true) { + lock.acquire() + delay(BURST_MS) + lock.release() + delay(PAUSE_MS) + } + } finally { + // Cancelled when the PC is found or the link goes down: never leave the lock held. + if (lock.isHeld) lock.release() + } + } + + companion object { + const val BURST_MS = 30_000L + const val PAUSE_MS = 120_000L + } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/Export.kt b/apps/android/app/src/main/java/app/localtugboat/Export.kt new file mode 100644 index 0000000..53874a7 --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/Export.kt @@ -0,0 +1,104 @@ +package app.localtugboat + +import android.content.ContentValues +import android.content.Context +import android.content.Intent +import android.net.Uri +import android.os.Build +import android.os.Environment +import android.provider.MediaStore +import androidx.core.content.FileProvider +import java.io.File +import java.io.IOException +import uniffi.tugboat_ffi.ItemInfo + +private fun authority(c: Context) = "${c.packageName}.fileprovider" + +/** "Export log": one text file (Rust log, rotated files oldest first, then the Kotlin log) for the share sheet. */ +object LogExport { + /** Blocking. Works even when the core cannot open: the file then says why. */ + fun intent(c: Context): Intent { + val dir = File(c.cacheDir, "export").apply { mkdirs() } + dir.listFiles()?.forEach { it.delete() } + val out = File(dir, "tugboat-log.txt") + val rustLog = try { + File(c.core.phone().logPath()) + } catch (e: Exception) { + out.appendText("core not open: ${e.message}\n") + null + } + out.appendText("Tugboat ${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE}), Android ${Build.VERSION.SDK_INT}, ${Build.MODEL}\n") + val parts = buildList { + rustLog?.let { addAll(listOf(File("${it.path}.2"), File("${it.path}.1"), it)) } + add(KLog.file(c)) + add(File(c.filesDir, LegacyMigration.NOTE)) // what the 0.1.0 -> 0.1.1 upgrade moved or could not move + } + for (f in parts.filter { it.exists() }) { + out.appendText("\n==== ${f.name} ====\n") + f.inputStream().use { i -> out.appendBytes(i.readBytes()) } + } + val uri = FileProvider.getUriForFile(c, authority(c), out) + return Intent.createChooser( + Intent(Intent.ACTION_SEND).setType("text/plain").putExtra(Intent.EXTRA_STREAM, uri).addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION), + "Export log", + ) + } +} + +/** Share and "Save to phone gallery" for one item. */ +object ItemExport { + /** Share sheet for the held file. Throws IOException with a readable message when the file is not on this phone. */ + fun shareIntent(c: Context, item: ItemInfo): Intent { + val path = item.path ?: throw IOException("File is not on this phone yet") + val uri = try { + FileProvider.getUriForFile(c, authority(c), File(path)) + } catch (e: IllegalArgumentException) { + throw IOException("This file cannot be shared from the Bin. Restore it first") + } + return Intent.createChooser( + Intent(Intent.ACTION_SEND).setType(mimeOf(item)).putExtra(Intent.EXTRA_STREAM, uri).addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION), + "Share", + ) + } + + /** + * Copy into Pictures/Tugboat or Movies/Tugboat through MediaStore (no storage permission needed). + * The copy leaves Tugboat's control: it never expires. Blocking. Throws IOException. + */ + fun saveToGallery(c: Context, item: ItemInfo): Uri { + val src = File(item.path ?: throw IOException("File is not on this phone yet")) + val video = item.kind == uniffi.tugboat_ffi.MediaKind.VIDEO + val collection = if (video) MediaStore.Video.Media.EXTERNAL_CONTENT_URI else MediaStore.Images.Media.EXTERNAL_CONTENT_URI + val name = if (item.name.endsWith(".${item.ext}", ignoreCase = true)) item.name else "${item.name}.${item.ext}" + val values = ContentValues().apply { + put(MediaStore.MediaColumns.DISPLAY_NAME, name) + put(MediaStore.MediaColumns.MIME_TYPE, mimeOf(item)) + put(MediaStore.MediaColumns.RELATIVE_PATH, (if (video) Environment.DIRECTORY_MOVIES else Environment.DIRECTORY_PICTURES) + "/Tugboat") + put(MediaStore.MediaColumns.IS_PENDING, 1) + } + val resolver = c.contentResolver + val uri = resolver.insert(collection, values) ?: throw IOException("The phone gallery refused the file") + try { + val out = resolver.openOutputStream(uri) ?: throw IOException("The phone gallery refused the file") + out.use { o -> src.inputStream().use { it.copyTo(o) } } + resolver.update(uri, ContentValues().apply { put(MediaStore.MediaColumns.IS_PENDING, 0) }, null, null) + return uri + } catch (e: Exception) { + // Never leave a half-written pending row in the gallery. + resolver.delete(uri, null, null) + throw if (e is IOException) e else IOException(e.message ?: "Save failed", e) + } + } + + private fun mimeOf(item: ItemInfo): String = when (item.ext.lowercase()) { + "jpg", "jpeg" -> "image/jpeg" + "png" -> "image/png" + "gif" -> "image/gif" + "webp" -> "image/webp" + "heic", "heif" -> "image/heic" + "mp4", "m4v" -> "video/mp4" + "mov" -> "video/quicktime" + "3gp" -> "video/3gpp" + else -> if (item.kind == uniffi.tugboat_ffi.MediaKind.VIDEO) "video/*" else "image/*" + } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/Gallery.kt b/apps/android/app/src/main/java/app/localtugboat/Gallery.kt new file mode 100644 index 0000000..75094e3 --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/Gallery.kt @@ -0,0 +1,223 @@ +package app.localtugboat + +import androidx.compose.foundation.background +import androidx.compose.foundation.clickable +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.PaddingValues +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.aspectRatio +import androidx.compose.foundation.layout.defaultMinSize +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.LazyRow +import androidx.compose.foundation.lazy.grid.GridCells +import androidx.compose.foundation.lazy.grid.LazyVerticalGrid +import androidx.compose.foundation.lazy.grid.itemsIndexed +import androidx.compose.foundation.lazy.grid.rememberLazyGridState +import androidx.compose.foundation.lazy.items +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.FilterChip +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.material3.TextButton +import androidx.compose.runtime.Composable +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.getValue +import androidx.compose.runtime.remember +import androidx.compose.runtime.snapshotFlow +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.platform.LocalDensity +import androidx.compose.ui.semantics.Role +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp +import androidx.lifecycle.compose.collectAsStateWithLifecycle +import kotlinx.coroutines.delay +import kotlinx.coroutines.flow.collectLatest +import kotlinx.coroutines.flow.filter +import kotlinx.coroutines.launch +import uniffi.tugboat_ffi.FfiEvent +import uniffi.tugboat_ffi.FolderInfo +import uniffi.tugboat_ffi.ItemInfo +import androidx.compose.ui.text.style.TextOverflow + +/** + * Loads [model] when the screen opens and again after a burst of core events [relevant] to it. The pause + * collapses a sync that fires hundreds of events into one reload. + */ +@Composable +fun ReloadOnEvents(vm: SnapViewModel, model: PagedModel<*>, relevant: (FfiEvent) -> Boolean) { + LaunchedEffect(model) { model.reload() } + LaunchedEffect(model) { + // Filter BEFORE collectLatest: it cancels the running block on every new value, so an unrelated event (Sync + // status arrives right after each ItemsChanged) would cancel the pause and the reload would never run. + vm.events.filter(relevant).collectLatest { + delay(150) + model.reload() + } + } +} + +fun itemsRelevant(e: FfiEvent) = e is FfiEvent.ItemsChanged || e == FfiEvent.Resync || e is FfiEvent.FoldersChanged + +/** Loading, error, empty and filtered-empty states of a list, one place for all list screens. */ +@Composable +fun ListStates( + model: PagedModel<*>, folderName: String?, bin: Boolean, onClearFilter: (() -> Unit)?, onRetry: () -> Unit, + emptyText: String? = null, content: @Composable () -> Unit, +) { + when (val s = UiLogic.listUi(model.rows.size, model.loaded, model.error, folderName, bin)) { + UiLogic.ListUi.Content -> content() + UiLogic.ListUi.Loading -> Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) { CircularProgressIndicator() } + is UiLogic.ListUi.Failed -> Notice("CANNOT LOAD - ${s.message}", Modifier.fillMaxSize(), "Try again", onRetry, blocker = true) + is UiLogic.ListUi.Empty -> (emptyText ?: s.text).let { text -> + Notice(text, Modifier.fillMaxSize(), if (onClearFilter != null) "Show all folders" else null, { onClearFilter?.invoke() }, art = text == UiLogic.NOTHING_YET) + } + } +} + +@Composable +fun GalleryScreen(vm: SnapViewModel, ui: UiState, banners: List, onBanner: (UiLogic.BannerUi) -> Unit, route: Route.Gallery) { + val folders by vm.folders.collectAsStateWithLifecycle() + val model = vm.itemsModel(route.folderId, false) + ReloadOnEvents(vm, model, ::itemsRelevant) + val nowMs by rememberNow(30_000) + val gridState = rememberLazyGridState() + val scope = androidx.compose.runtime.rememberCoroutineScope() + val folderName = route.folderId?.let { id -> folders.firstOrNull { it.id == id }?.name ?: "this folder" } + val binDays = ui.settings?.binDays ?: 7u + val all = UiLogic.syncBanner(ui.status)?.let { banners + it } ?: banners + + // Next page when the last visible cell is near the end of what is loaded. + LaunchedEffect(model, gridState) { + snapshotFlow { (gridState.layoutInfo.visibleItemsInfo.lastOrNull()?.index ?: 0) to model.rows.size }.collect { (last, size) -> + if (model.hasMore && last >= size - 12) model.loadMore() + } + } + + Column(Modifier.fillMaxSize()) { + ScreenBar("Gallery", onBack = { vm.nav.back() }) { + IconBtn(R.drawable.ic_history, "Activity", { vm.nav.go(Route.Activity) }) + IconBtn(R.drawable.ic_delete, "Bin", { vm.nav.go(Route.Bin) }) + IconBtn(R.drawable.ic_settings, "Settings", { vm.nav.go(Route.Settings) }) + } + BannerStack(all, onBanner, Modifier.padding(horizontal = 12.dp, vertical = 4.dp)) + FolderTabs(folders, route.folderId) { vm.nav.replaceTop(Route.Gallery(it)) } + Box(Modifier.weight(1f)) { + ListStates(model, folderName, false, if (route.folderId != null) ({ vm.nav.replaceTop(Route.Gallery(null)) }) else null, { scope.launch { model.reload() } }) { + val bottom = with(LocalDensity.current) { WindowInsets.navigationBars.getBottom(this).toDp() } + LazyVerticalGrid( + columns = GridCells.Adaptive(112.dp), state = gridState, + contentPadding = PaddingValues(start = 4.dp, end = 4.dp, top = 4.dp, bottom = 4.dp + bottom), + horizontalArrangement = Arrangement.spacedBy(4.dp), verticalArrangement = Arrangement.spacedBy(4.dp), + ) { + itemsIndexed(model.rows, key = { _, it -> it.id }) { _, item -> + ItemCell(item, UiLogic.cell(item, nowMs, binDays, false)) { vm.nav.go(Route.Viewer(route.folderId, false, item.id)) } + } + } + } + } + } +} + +@Composable +private fun FolderTabs(folders: List, selected: String?, onPick: (String?) -> Unit) { + LazyRow(contentPadding = PaddingValues(horizontal = 12.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) { + item("all") { FolderTab("All", selected == null) { onPick(null) } } + items(folders, key = { it.id }) { f -> FolderTab("${f.name} ${f.count}", f.id == selected) { onPick(f.id) } } + } +} + +/** A selected tab shows a check mark and a filled tint: not colour alone. */ +@Composable +private fun FolderTab(label: String, selected: Boolean, onClick: () -> Unit) { + FilterChip( + selected = selected, onClick = onClick, label = { Text(label, maxLines = 1, overflow = TextOverflow.Ellipsis) }, + leadingIcon = if (selected) ({ Ico(R.drawable.ic_check, null, size = 18) }) else null, + ) +} + +@Composable +private fun Badge(icon: Int) { + Box(Modifier.size(24.dp).background(Scrim, CircleShape), contentAlignment = Alignment.Center) { Ico(icon, null, tint = Color.White, size = 16) } +} + +/** One thumbnail: badge for video and Keep, label strip underneath. Read by screen readers as one sentence. */ +@Composable +private fun ItemCell(item: ItemInfo, cell: UiLogic.CellUi, onClick: () -> Unit) { + Box( + Modifier.aspectRatio(1f).clip(RoundedCornerShape(8.dp)).clickable(role = Role.Button, onClick = onClick) + .described("${if (cell.video) "Video" else "Photo"}, ${cell.label}"), + ) { + ThumbImage(item.thumbPath, null, Modifier.fillMaxSize()) + Row(Modifier.align(Alignment.TopStart).padding(4.dp), horizontalArrangement = Arrangement.spacedBy(4.dp)) { + if (cell.video) Badge(R.drawable.ic_videocam) + if (cell.kept) Badge(R.drawable.ic_star_fill1) + } + Text( + cell.label, color = Color.White, style = MaterialTheme.typography.labelSmall, maxLines = 2, overflow = TextOverflow.Ellipsis, + modifier = Modifier.align(Alignment.BottomStart).fillMaxWidth().background(Scrim).padding(horizontal = 6.dp, vertical = 3.dp), + ) + } +} + +/** Bin: what was deleted or expired, days left, Restore. Tapping a row opens it in the viewer. */ +@Composable +fun BinScreen(vm: SnapViewModel, ui: UiState) { + val model = vm.itemsModel(null, true) + ReloadOnEvents(vm, model, ::itemsRelevant) + val nowMs by rememberNow(60_000) + val binDays = ui.settings?.binDays ?: 7u + val scope = androidx.compose.runtime.rememberCoroutineScope() + + Column(Modifier.fillMaxSize()) { + ScreenBar("Bin", onBack = { vm.nav.back() }) + Text("Items stay ${binDays} days, then this phone removes its copy.", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.padding(horizontal = 16.dp, vertical = 4.dp)) + Box(Modifier.weight(1f)) { + ListStates(model, null, true, null, { scope.launch { model.reload() } }) { + val bottom = with(LocalDensity.current) { WindowInsets.navigationBars.getBottom(this).toDp() } + LazyColumn(contentPadding = PaddingValues(bottom = bottom)) { + items(model.rows, key = { it.id }) { item -> + val cell = UiLogic.cell(item, nowMs, binDays, true) + Row( + Modifier.fillMaxWidth().defaultMinSize(minHeight = 72.dp).clickable(role = Role.Button) { vm.nav.go(Route.Viewer(null, true, item.id)) }.padding(horizontal = 16.dp, vertical = 6.dp), + verticalAlignment = Alignment.CenterVertically, + ) { + ThumbImage(item.thumbPath, null, Modifier.size(56.dp).clip(RoundedCornerShape(8.dp))) + Spacer(Modifier.width(12.dp)) + Column(Modifier.weight(1f)) { + Text(item.name, style = MaterialTheme.typography.bodyLarge, maxLines = 1, overflow = TextOverflow.Ellipsis) + Text(cell.label, style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.onSurfaceVariant) + } + TextButton(onClick = { scope.launchRestore(vm, model, item.id) }, modifier = Modifier.defaultMinSize(minHeight = Touch)) { + Ico(R.drawable.ic_restore_from_trash, null, size = 20) + Spacer(Modifier.width(6.dp)) + Text("Restore") + } + } + } + } + } + } + } +} + +private fun kotlinx.coroutines.CoroutineScope.launchRestore(vm: SnapViewModel, model: PagedModel, id: String) { + launch { + vm.restore(id).join() + model.reload() + } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/Heartbeat.kt b/apps/android/app/src/main/java/app/localtugboat/Heartbeat.kt new file mode 100644 index 0000000..9722d6b --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/Heartbeat.kt @@ -0,0 +1,77 @@ +package app.localtugboat + +import android.content.Context +import androidx.core.content.edit +import java.io.File + +/** + * Pure part of the heartbeat: finding "Tugboat was stopped" gaps in the beat log. + * + * The service appends one epoch-ms line every [BEAT_MS]. A deliberate stop (setting turned off, + * unpaired) appends "S" so the quiet time after it is not reported as a failure. A gap is a + * beat followed by nothing for more than [GAP_MS], whether the next beat exists yet or not. + */ +object HeartbeatLog { + const val BEAT_MS = 30_000L + const val GAP_MS = 120_000L + private const val STOP = 'S' + + class Gap(val fromMs: Long, val toMs: Long) + + private class Entry(val ms: Long, val stop: Boolean) + + private fun parse(lines: List): List = lines.mapNotNull { + val t = it.trim() + // A torn last line from a killed process parses to null and is skipped. + if (t.startsWith(STOP)) t.drop(1).toLongOrNull()?.let { ms -> Entry(ms, true) } else t.toLongOrNull()?.let { ms -> Entry(ms, false) } + } + + /** The newest gap that began after [ackedMs] (the time the user dismissed the banner), or null. */ + fun lastGap(lines: List, nowMs: Long, ackedMs: Long): Gap? { + val e = parse(lines) + var found: Gap? = null + for (i in 1 until e.size) { + if (!e[i - 1].stop && e[i].ms - e[i - 1].ms > GAP_MS) found = Gap(e[i - 1].ms, e[i].ms) + } + val last = e.lastOrNull() + if (last != null && !last.stop && nowMs - last.ms > GAP_MS) found = Gap(last.ms, nowMs) + return found?.takeIf { it.fromMs > ackedMs } + } + + fun beatLine(nowMs: Long) = "$nowMs" + fun stopLine(nowMs: Long) = "$STOP$nowMs" +} + +/** File side of the heartbeat: filesDir/heartbeat.log, trimmed to the newest 1000 lines past 64 KB. */ +object Heartbeat { + private const val MAX_BYTES = 64 * 1024 + private const val PREF_ACK = "gap_acked_ms" + + private fun file(c: Context) = File(c.applicationContext.filesDir, "heartbeat.log") + + @Synchronized + private fun append(c: Context, line: String) { + try { + val f = file(c) + f.appendText(line + "\n") + if (f.length() > MAX_BYTES) f.writeText(f.readLines().takeLast(1000).joinToString("\n") + "\n") + } catch (e: Exception) { + // A heartbeat that cannot be written would later show as a false "stopped" gap: say why. + KLog.log(c, "ERROR heartbeat write failed: $e") + } + } + + fun beat(c: Context) = append(c, HeartbeatLog.beatLine(System.currentTimeMillis())) + fun markStopped(c: Context) = append(c, HeartbeatLog.stopLine(System.currentTimeMillis())) + + @Synchronized + fun lastGap(c: Context, nowMs: Long): HeartbeatLog.Gap? { + val f = file(c) + if (!f.exists()) return null + val acked = Prefs.of(c).getLong(PREF_ACK, 0L) + return HeartbeatLog.lastGap(f.readLines(), nowMs, acked) + } + + /** The user saw the banner (or tapped Fix): do not show gaps that started before now. */ + fun acknowledge(c: Context) = Prefs.of(c).edit { putLong(PREF_ACK, System.currentTimeMillis()) } +} diff --git a/apps/android/app/src/main/java/app/localtugboat/Import.kt b/apps/android/app/src/main/java/app/localtugboat/Import.kt new file mode 100644 index 0000000..cc2920c --- /dev/null +++ b/apps/android/app/src/main/java/app/localtugboat/Import.kt @@ -0,0 +1,273 @@ +package app.localtugboat + +import android.content.Context +import android.graphics.Bitmap +import android.graphics.BitmapFactory +import android.graphics.Matrix +import android.media.MediaMetadataRetriever +import android.net.Uri +import android.provider.OpenableColumns +import androidx.exifinterface.media.ExifInterface +import java.io.File +import java.io.IOException +import java.util.UUID +import uniffi.tugboat_ffi.FolderKind +import uniffi.tugboat_ffi.GeoFix +import uniffi.tugboat_ffi.LocationFix +import uniffi.tugboat_ffi.NewFile +import uniffi.tugboat_ffi.CaptureRoute + +/** JPEG thumbnail, longest side 512 px, made by this device (the core stores and syncs it). */ +object Thumbs { + private const val MAX_SIDE = 512 + + /** Null (and a log line) when no thumbnail can be made: the item still syncs, the gallery shows a placeholder. */ + fun make(c: Context, src: File, video: Boolean, out: File): File? = try { + val bmp = if (video) videoFrame(src) else imageBitmap(src) + if (bmp == null) { + KLog.log(c, "no thumbnail for ${src.name}") + null + } else { + out.outputStream().use { bmp.compress(Bitmap.CompressFormat.JPEG, 80, it) } + bmp.recycle() + out + } + } catch (e: Exception) { + KLog.log(c, "thumbnail failed for ${src.name}: $e") + null + } + + /** Decoded, EXIF-rotated, longest side at most [maxSide] (the viewer asks for more than a thumbnail). Blocking. */ + fun imageBitmap(src: File, maxSide: Int = MAX_SIDE): Bitmap? { + val bounds = BitmapFactory.Options().apply { inJustDecodeBounds = true } + BitmapFactory.decodeFile(src.path, bounds) + if (bounds.outWidth <= 0 || bounds.outHeight <= 0) return null + var sample = 1 + while (maxOf(bounds.outWidth, bounds.outHeight) / (sample * 2) >= maxSide) sample *= 2 + val raw = BitmapFactory.decodeFile(src.path, BitmapFactory.Options().apply { inSampleSize = sample }) ?: return null + val rotation = when (ExifInterface(src.path).getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL)) { + ExifInterface.ORIENTATION_ROTATE_90 -> 90f + ExifInterface.ORIENTATION_ROTATE_180 -> 180f + ExifInterface.ORIENTATION_ROTATE_270 -> 270f + else -> 0f + } + return fit(raw, rotation, maxSide) + } + + private fun videoFrame(src: File): Bitmap? { + val r = MediaMetadataRetriever() + try { + r.setDataSource(src.path) + val frame = r.getFrameAtTime(0, MediaMetadataRetriever.OPTION_CLOSEST_SYNC) ?: return null + val rotation = r.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION)?.toFloatOrNull() ?: 0f + return fit(frame, rotation) + } finally { + r.release() + } + } + + private fun fit(raw: Bitmap, rotation: Float, maxSide: Int = MAX_SIDE): Bitmap { + val scale = minOf(1f, maxSide.toFloat() / maxOf(raw.width, raw.height)) + if (scale == 1f && rotation == 0f) return raw + val m = Matrix().apply { postScale(scale, scale); postRotate(rotation) } + val out = Bitmap.createBitmap(raw, 0, 0, raw.width, raw.height, m, true) + if (out !== raw) raw.recycle() + return out + } +} + +/** Where the next shot goes, for the viewfinder chip and for the shutter. */ +data class Target(val folderId: String, val folderName: String, val noLocation: Boolean) + +object Capture { + /** + * Folder for the next shot or import. Order: the folder picked on the chip, else the place rule + * (smallest radius wins, done by the core), else Unsorted when places exist but there is no usable + * fix, else Inbox. Blocking (SQLite). Throws when the core cannot open or has no Inbox. + */ + fun target(c: Context, fix: LocationFix?): Target { + val p = c.core.phone() + val folders = p.folders() + c.core.nextShotFolder.value?.let { id -> + folders.firstOrNull { it.id == id }?.let { return Target(it.id, it.name, false) } + } + fun byKind(k: FolderKind) = folders.firstOrNull { it.kind == k } ?: throw IOException("Folder $k is missing") + return when (val r = p.routeCapture(fix)) { + is CaptureRoute.Place -> folders.firstOrNull { it.id == r.folderId }?.let { Target(it.id, it.name, false) } + ?: throw IOException("Place folder is missing") + CaptureRoute.Unsorted -> byKind(FolderKind.UNSORTED).let { Target(it.id, it.name, true) } + CaptureRoute.Default -> byKind(FolderKind.INBOX).let { Target(it.id, it.name, false) } + } + } + + /** + * Folder for a Share > Tugboat import: the folder picked on the chip, else Inbox. Place rules never + * apply: other apps' files carry no reliable location, so they must not land in a place folder by guesswork. + */ + fun importTarget(c: Context): Target { + val folders = c.core.phone().folders() + val picked = c.core.nextShotFolder.value?.let { id -> folders.firstOrNull { it.id == id } } + val f = picked ?: folders.firstOrNull { it.kind == FolderKind.INBOX } ?: throw IOException("Inbox is missing") + return Target(f.id, f.name, false) + } + + /** The camera calls this after a shot is taken so the chip returns to the rule-based folder. */ + fun shotTaken(c: Context) { + c.core.nextShotFolder.value = null + } + + /** Camera files live here (not in cache): a shot the core could not take yet must survive until [recover] retries it. */ + fun shotsDir(c: Context): File = File(c.filesDir, "shots").apply { mkdirs() } + + /** + * Hand a finished camera file or an import to the core. Returns the new item id. Blocking; throws + * SnapException / IOException. [src] is deleted only when the core took it: after a failure the file + * stays, so a photo is never lost to a transient error (the screen says so, [recover] retries). + */ + fun add(c: Context, src: File, name: String, folderId: String?, capturedAtMs: Long, geo: GeoFix?, imported: Boolean, video: Boolean): String { + // One hand-off per file: [recover] must not take a file a slow hand-off is still working on. + if (!inFlight.add(src.path)) throw IOException("${src.name} is already being added") + try { + return addNow(c, src, name, folderId, capturedAtMs, geo, imported, video) + } finally { + inFlight.remove(src.path) + } + } + + private val inFlight: MutableSet = java.util.concurrent.ConcurrentHashMap.newKeySet() + + private fun addNow(c: Context, src: File, name: String, folderId: String?, capturedAtMs: Long, geo: GeoFix?, imported: Boolean, video: Boolean): String { + val thumbDir = File(c.cacheDir, "thumbs").apply { mkdirs() } + val thumb = Thumbs.make(c, src, video, File(thumbDir, "${UUID.randomUUID()}.jpg")) + try { + val id = c.core.phone().addFile( + NewFile( + srcPath = src.path, + name = name, + folderId = folderId, + capturedAtMs = capturedAtMs, + geo = geo, + thumbPath = thumb?.path, + imported = imported, + ) + ) + src.delete() + return id + } finally { + thumb?.delete() + } + } + + /** + * Retry shots left in [shotsDir] by a crash or a failed hand-off. Files younger than [minAgeMs] are + * skipped (a shot being written right now). Blocking. Returns how many were taken; failures stay in + * the folder and are logged. + */ + fun recover(c: Context, nowMs: Long = System.currentTimeMillis(), minAgeMs: Long = 60_000): Int { + var taken = 0 + for (f in shotsDir(c).listFiles().orEmpty()) { + if (!f.isFile || nowMs - f.lastModified() < minAgeMs || f.path in inFlight) continue + val video = f.extension.equals("mp4", ignoreCase = true) + try { + if (f.length() == 0L) { + f.delete() // an empty file is no shot + continue + } + add(c, f, f.name, null, f.lastModified(), null, imported = false, video = video) + taken++ + } catch (e: Exception) { + c.core.reportError("recover ${f.name}: ${e.message}") + } + } + return taken + } +} + +/** What a Share > Tugboat run did, in the words the user reads. */ +class ShareResult(val added: Int, val refused: List, val folderName: String) { + /** One line: "2 added to Inbox" or "1 added to Inbox. Not synced: x.zip (not a photo or video)". */ + fun summary(): String { + val ok = if (added > 0) "$added added to $folderName" else "" + val bad = if (refused.isNotEmpty()) "Not synced: ${refused.joinToString("; ")}" else "" + return listOf(ok, bad).filter { it.isNotEmpty() }.joinToString(". ").ifEmpty { "Nothing to add" } + } +} + +/** Share > Tugboat: streamed copy of each shared URI into app storage, type by magic bytes, then the core. */ +object ShareImporter { + /** Keep this much free after the copy: a full phone breaks more than Tugboat. */ + private const val FREE_MARGIN = 64L * 1024 * 1024 + + /** Blocking. One bad file never stops the others; each refusal is named in the result. */ + fun run(c: Context, uris: List): ShareResult { + val target = Capture.importTarget(c) + val importDir = File(c.cacheDir, "import").apply { mkdirs() } + var added = 0 + val refused = mutableListOf() + for (uri in uris) { + val label = displayName(c, uri) ?: "a file" + try { + if (!ShareNames.acceptableUri(uri.scheme, uri.authority, "${c.packageName}.fileprovider")) throw Refusal("not a shared file") + if (importOne(c, uri, label, importDir, target.folderId)) added++ + } catch (e: Refusal) { + refused += "$label (${e.message})" + } catch (e: Exception) { + // Core errors (NotMedia, Io, Invalid) carry a readable one-line message. + c.core.reportError("share $label: ${e.message}") + refused += "$label (${e.message})" + } + } + return ShareResult(added, refused, target.folderName) + } + + private class Refusal(msg: String) : Exception(msg) + + private fun importOne(c: Context, uri: Uri, label: String, dir: File, folderId: String): Boolean { + val resolver = c.contentResolver + val declared = size(c, uri) + val free = c.core.phone().freeSpaceBytes().toLong() + if (declared != null && declared + FREE_MARGIN > free) throw Refusal("phone storage low") + val tmp = File(dir, "${UUID.randomUUID()}.tmp") + val media: Media + try { + val input = resolver.openInputStream(uri) ?: throw Refusal("cannot be opened") + input.use { ins -> + val head = ByteArray(MagicBytes.HEAD_LEN) + var n = 0 + while (n < head.size) { + val r = ins.read(head, n, head.size - n) + if (r < 0) break + n += r + } + media = MagicBytes.sniff(head, n) ?: throw Refusal("not a photo or video") + tmp.outputStream().use { out -> + out.write(head, 0, n) + ins.copyTo(out) + } + } + } catch (e: Exception) { + tmp.delete() + if (e is Refusal) throw e + throw IOException("could not be read: ${e.message}", e) + } + val fallback = "Shared_${System.currentTimeMillis()}" + val name = ShareNames.finalName(label, media, fallback) + try { + Capture.add(c, tmp, name, folderId, System.currentTimeMillis(), null, imported = true, video = media.video) + } catch (e: Exception) { + tmp.delete() // the sender still has the original; our temp copy is only clutter + throw e + } + return true + } + + private fun displayName(c: Context, uri: Uri): String? = query(c, uri, OpenableColumns.DISPLAY_NAME) { it.getString(0) } + + private fun size(c: Context, uri: Uri): Long? = query(c, uri, OpenableColumns.SIZE) { if (it.isNull(0)) null else it.getLong(0) } + + private fun query(c: Context, uri: Uri, col: String, read: (android.database.Cursor) -> T?): T? = try { + c.contentResolver.query(uri, arrayOf(col), null, null, null)?.use { if (it.moveToFirst()) read(it) else null } + } catch (e: Exception) { + null // Some providers refuse the query; the name falls back to Shared_