Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Seanaye/feat/tauri autoupdate (#2584)

Sean Aye05a1bb47c14d
diff --git a/.github/workflows/code-check-infra.yml b/.github/workflows/code-check-infra.yml
index b50082ed39..d3de924015 100644
--- a/.github/workflows/code-check-infra.yml
+++ b/.github/workflows/code-check-infra.yml
@@ -36,7 +36,7 @@ jobs:
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
- version: 2.4.7
+ version: 2.4.10
- name: Run Biome
working-directory: infra
run: biome ci --changed --no-errors-on-unmatched --error-on-warnings
diff --git a/.github/workflows/web-app-check-main.yml b/.github/workflows/web-app-check-main.yml
index c15d888f3a..cec3279dca 100644
--- a/.github/workflows/web-app-check-main.yml
+++ b/.github/workflows/web-app-check-main.yml
@@ -47,7 +47,7 @@ jobs:
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
- version: 2.4.7
+ version: 2.4.10
- name: Generate API Types
if: needs.path-check.outputs.api_changed == 'true'
working-directory: js/app
@@ -70,7 +70,7 @@ jobs:
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
- version: 2.4.7
+ version: 2.4.10
- name: Run Biome
working-directory: js/app
run: biome ci --changed --no-errors-on-unmatched --error-on-warnings
@@ -121,7 +121,7 @@ jobs:
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
- version: 2.4.7
+ version: 2.4.10
- name: Cycles Import Check
working-directory: js/app
run: biome lint --changed --no-errors-on-unmatched --only=suspicious/noImportCycles
diff --git a/js/app/biome.jsonc b/js/app/biome.jsonc
index 3eed8492dd..d1903d6627 100644
--- a/js/app/biome.jsonc
+++ b/js/app/biome.jsonc
@@ -1,5 +1,5 @@
{
- "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
+ "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
"vcs": {
"clientKind": "git",
"enabled": true,
diff --git a/js/app/bun.lock b/js/app/bun.lock
index ec0449d310..3abe63f3ca 100644
--- a/js/app/bun.lock
+++ b/js/app/bun.lock
@@ -59,6 +59,7 @@
"@tanstack/solid-virtual": "^3.13.13",
"@tauri-apps/plugin-haptics": "~2",
"@tauri-apps/plugin-http": "~2.5.8",
+ "@tauri-apps/plugin-log": "^2.8.0",
"@tauri-apps/plugin-notification": "~2",
"@tauri-apps/plugin-os": "~2",
"@tauri-apps/plugin-websocket": "~2",
@@ -1226,6 +1227,8 @@
"@tauri-apps/plugin-http": ["@tauri-apps/[email protected]", "", { "dependencies": { "@tauri-apps/api": "^2.10.1" } }, "sha512-oxd7oypzQeu8kAfFCrw534Kq7Cw+NzozcnCY21O4rz3A+veJiIiuSCMIprgGcZOcLAXFP9GmDhKUbhuKWcunRw=="],
+ "@tauri-apps/plugin-log": ["@tauri-apps/[email protected]", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-a+7rOq3MJwpTOLLKbL8d0qGZ85hgHw5pNOWusA9o3cf7cEgtYHiGY/+O8fj8MvywQIGqFv0da2bYQDlrqLE7rw=="],
+
"@tauri-apps/plugin-notification": ["@tauri-apps/[email protected]", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-7gqgfANSREKhh35fY1L4j3TUjUdePmU735FYDqRGeIf8nMXWpcx6j4FhN9/4nYz+m0mv79DCTPLqIPTySggGgg=="],
"@tauri-apps/plugin-os": ["@tauri-apps/[email protected]", "", { "dependencies": { "@tauri-apps/api": "^2.8.0" } }, "sha512-ty5V8XDUIFbSnrk3zsFoP3kzN+vAufYzalJSlmrVhQTImIZa1aL1a03bOaP2vuBvfR+WDRC6NgV2xBl8G07d+w=="],
@@ -3454,6 +3457,8 @@
"@tauri-apps/plugin-http/@tauri-apps/api": ["@tauri-apps/[email protected]", "", {}, "sha512-hKL/jWf293UDSUN09rR69hrToyIXBb8CjGaWC7gfinvnQrBVvnLr08FeFi38gxtugAVyVcTa5/FD/Xnkb1siBw=="],
+ "@tauri-apps/plugin-log/@tauri-apps/api": ["@tauri-apps/[email protected]", "", {}, "sha512-hKL/jWf293UDSUN09rR69hrToyIXBb8CjGaWC7gfinvnQrBVvnLr08FeFi38gxtugAVyVcTa5/FD/Xnkb1siBw=="],
+
"@testing-library/dom/aria-query": ["[email protected]", "", { "dependencies": { "dequal": "^2.0.3" } }, "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A=="],
"@testing-library/dom/dom-accessibility-api": ["[email protected]", "", {}, "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg=="],
diff --git a/js/app/flake.lock b/js/app/flake.lock
index 8f527ffad5..f08a2c9042 100644
--- a/js/app/flake.lock
+++ b/js/app/flake.lock
@@ -8,11 +8,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
- "lastModified": 1770966612,
- "narHash": "sha256-S6k14z/JsDwX6zZyLucDBTOe/9RsvxH9GTUxHn2o4vc=",
+ "lastModified": 1776240401,
+ "narHash": "sha256-S9m5SrxUT6dNPZrCscuQR2zLD3QIAlUlvlXchPKBnxs=",
"owner": "nix-community",
"repo": "fenix",
- "rev": "e90d48dcfaebac7ea7a5687888a2d0733be26343",
+ "rev": "a30830ebacdf957690dd8ea9ade9f12809ae0982",
"type": "github"
},
"original": {
@@ -41,11 +41,11 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1770841267,
- "narHash": "sha256-9xejG0KoqsoKEGp2kVbXRlEYtFFcDTHjidiuX8hGO44=",
+ "lastModified": 1775710090,
+ "narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "ec7c70d12ce2fc37cb92aff673dcdca89d187bae",
+ "rev": "4c1018dae018162ec878d42fec712642d214fdfa",
"type": "github"
},
"original": {
@@ -55,38 +55,21 @@
"type": "github"
}
},
- "nixpkgs-biome": {
- "locked": {
- "lastModified": 1760405615,
- "narHash": "sha256-x8dOnMBX0X9L62O5J2Q/uweOROie/cmjg+Tzq+j2Ezw=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "af70ad706db919d644586e8f95c1d8d3d0a1ac56",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "af70ad706db919d644586e8f95c1d8d3d0a1ac56",
- "type": "github"
- }
- },
"root": {
"inputs": {
"fenix": "fenix",
"flake-utils": "flake-utils",
- "nixpkgs": "nixpkgs",
- "nixpkgs-biome": "nixpkgs-biome"
+ "nixpkgs": "nixpkgs"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
- "lastModified": 1770934477,
- "narHash": "sha256-GX0cINHhhzUbQHyDYN2Mc+ovb6Sx/4yrF95VVou9aW4=",
+ "lastModified": 1776173606,
+ "narHash": "sha256-o2ism66hEAnfWZSUMs22KX5zpMZDxS/Bg4N/HcDCkXM=",
"owner": "rust-lang",
"repo": "rust-analyzer",
- "rev": "931cd553be123b11db1435ac7ea5657e62e5e601",
+ "rev": "17d028e9d7161cf6ebf21e21d3c4a1835099e039",
"type": "github"
},
"original": {
diff --git a/js/app/flake.nix b/js/app/flake.nix
index 4c3fc1ca59..e9492e6baf 100644
--- a/js/app/flake.nix
+++ b/js/app/flake.nix
@@ -4,14 +4,12 @@
flake-utils.url = "github:numtide/flake-utils";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
- nixpkgs-biome.url = "github:NixOS/nixpkgs/af70ad706db919d644586e8f95c1d8d3d0a1ac56";
};
outputs =
{
self,
nixpkgs,
- nixpkgs-biome,
flake-utils,
fenix,
}:
@@ -23,7 +21,6 @@
config.allowUnfree = true;
config.android_sdk.accept_license = true;
};
- pkgs-biome = nixpkgs-biome.legacyPackages.${system};
isDarwin = pkgs.stdenv.isDarwin;
isLinux = pkgs.stdenv.isLinux;
@@ -55,7 +52,7 @@
pkg-config
just
bun
- pkgs-biome.biome
+ biome
nodejs_24
typescript-language-server
cargo-tauri
diff --git a/js/app/package.json b/js/app/package.json
index d9dad6f522..38b9ccb9e2 100644
--- a/js/app/package.json
+++ b/js/app/package.json
@@ -76,6 +76,7 @@
"@tanstack/solid-virtual": "^3.13.13",
"@tauri-apps/plugin-haptics": "~2",
"@tauri-apps/plugin-http": "~2.5.8",
+ "@tauri-apps/plugin-log": "^2.8.0",
"@tauri-apps/plugin-notification": "~2",
"@tauri-apps/plugin-os": "~2",
"@tauri-apps/plugin-websocket": "~2",
diff --git a/js/app/packages/app/component/auth/Login.tsx b/js/app/packages/app/component/auth/Login.tsx
index b94aee5bbb..8155da19c3 100644
--- a/js/app/packages/app/component/auth/Login.tsx
+++ b/js/app/packages/app/component/auth/Login.tsx
@@ -81,9 +81,13 @@ export function Login() {
if (searchParams.email) {
setStage(Stage.Email);
}
- // block copied from Mobile.tsx
- if (searchParams.token && typeof searchParams.token === 'string') {
- const session_code = searchParams.token;
+ // token may be an array if the redirect URL contained duplicate token params;
+ // take the last one as it is the most recently appended by the auth service
+ const rawToken = searchParams.token;
+ const session_code = Array.isArray(rawToken)
+ ? rawToken[rawToken.length - 1]
+ : rawToken;
+ if (session_code && typeof session_code === 'string') {
console.log({ session_code });
unsetTokenPromise();
authServiceClient.sessionLogin({ session_code }).then(async (res) => {
diff --git a/js/app/packages/app/vite.base.ts b/js/app/packages/app/vite.base.ts
index 0f4f0ab8c0..11af383411 100644
--- a/js/app/packages/app/vite.base.ts
+++ b/js/app/packages/app/vite.base.ts
@@ -25,10 +25,10 @@ export const createAppViteConfig = ({
const ENV_MODE = process.env.MODE ?? mode;
const NO_MINIFY = process.env.NO_MINIFY === 'true';
const isLegacyTauriBuild = process.env.VITE_TAURI === 'true';
- const isTauriPlatform = platform !== 'web' || isLegacyTauriBuild;
+ const _isTauriPlatform = platform !== 'web' || isLegacyTauriBuild;
return {
- base: command === 'serve' || isTauriPlatform ? '/' : '/app',
+ base: command === 'serve' ? '/' : '/app',
assetsInclude: ['**/*.glb'],
css: {
preprocessorMaxWorkers: true,
diff --git a/js/app/packages/tauri/src/TauriProvider.tsx b/js/app/packages/tauri/src/TauriProvider.tsx
index dbd2daf657..2025108645 100644
--- a/js/app/packages/tauri/src/TauriProvider.tsx
+++ b/js/app/packages/tauri/src/TauriProvider.tsx
@@ -7,10 +7,12 @@ import {
createContext,
createSignal,
type JSX,
+ onCleanup,
onMount,
useContext,
} from 'solid-js';
import { getInsets, type Insets } from 'tauri-plugin-safe-area-insets';
+import { listen } from '@tauri-apps/api/event';
import { listenForHeartbeat } from './heartbeat';
import { useTauriNavigationEffect } from './navigation';
import { MaybePushNotificationRegistration } from './PushNotification';
@@ -39,6 +41,12 @@ function TauriProvider(props: { children: JSX.Element }) {
onMount(() => {
listenForHeartbeat();
+ const unlistenPromise = listen('bundle-update-status', (ev) => {
+ console.info('[bundle-update]', ev.payload);
+ });
+ onCleanup(() => {
+ unlistenPromise.then((unlisten) => unlisten());
+ });
if (value.os === 'android') {
getInsets().then((insets) => {
diff --git a/js/app/tauri/Cargo.lock b/js/app/tauri/Cargo.lock
index 1d60c16eaa..85ceec71f7 100644
--- a/js/app/tauri/Cargo.lock
+++ b/js/app/tauri/Cargo.lock
@@ -8,13 +8,24 @@ version = "2.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+[[package]]
+name = "aes"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"
+dependencies = [
+ "cfg-if",
+ "cipher",
+ "cpufeatures",
+]
+
[[package]]
name = "ahash"
version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9"
dependencies = [
- "getrandom 0.2.16",
+ "getrandom 0.2.17",
"once_cell",
"version_check",
]
@@ -71,16 +82,19 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.100"
+version = "1.0.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
+checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
[[package]]
name = "app"
version = "0.1.0"
dependencies = [
+ "http",
"log",
"logger",
+ "macro_bundle_updater_plugin",
+ "mime_guess",
"navigation_plugin",
"nom",
"reqwest",
@@ -104,7 +118,7 @@ dependencies = [
"tauri-plugin-single-instance",
"tauri-plugin-virtual-keyboard",
"tauri-plugin-websocket",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tokio",
"tracing",
"tracing-oslog",
@@ -113,6 +127,15 @@ dependencies = [
"urlencoding",
]
+[[package]]
+name = "arbitrary"
+version = "1.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
+dependencies = [
+ "derive_arbitrary",
+]
+
[[package]]
name = "arrayvec"
version = "0.7.6"
@@ -145,9 +168,9 @@ dependencies = [
[[package]]
name = "async-executor"
-version = "1.13.3"
+version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "497c00e0fd83a72a79a39fcbd8e3e2f055d6f6c7e025f3b3d91f4f8e76527fb8"
+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
dependencies = [
"async-task",
"concurrent-queue",
@@ -177,9 +200,9 @@ dependencies = [
[[package]]
name = "async-lock"
-version = "3.4.1"
+version = "3.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5fd03604047cee9b6ce9de9f70c6cd540a0520c813cbd49bae61f33ab80ed1dc"
+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
dependencies = [
"event-listener",
"event-listener-strategy",
@@ -212,14 +235,14 @@ checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "async-signal"
-version = "0.2.13"
+version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c"
+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
dependencies = [
"async-io",
"async-lock",
@@ -247,7 +270,7 @@ checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -319,6 +342,21 @@ version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+[[package]]
+name = "bit-set"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
+dependencies = [
+ "bit-vec",
+]
+
+[[package]]
+name = "bit-vec"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
+
[[package]]
name = "bitflags"
version = "1.3.2"
@@ -355,22 +393,13 @@ dependencies = [
"generic-array",
]
-[[package]]
-name = "block2"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"
-dependencies = [
- "objc2 0.5.2",
-]
-
[[package]]
name = "block2"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
dependencies = [
- "objc2 0.6.3",
+ "objc2",
]
[[package]]
@@ -388,25 +417,26 @@ dependencies = [
[[package]]
name = "borsh"
-version = "1.6.0"
+version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d1da5ab77c1437701eeff7c88d968729e7766172279eab0676857b3d63af7a6f"
+checksum = "cfd1e3f8955a5d7de9fab72fc8373fade9fb8a703968cb200ae3dc6cf08e185a"
dependencies = [
"borsh-derive",
+ "bytes",
"cfg_aliases",
]
[[package]]
name = "borsh-derive"
-version = "1.6.0"
+version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0686c856aa6aac0c4498f936d7d6a02df690f614c03e4d906d1018062b5c5e2c"
+checksum = "bfcfdc083699101d5a7965e49925975f2f55060f94f9a05e7187be95d530ca59"
dependencies = [
"once_cell",
- "proc-macro-crate 3.4.0",
+ "proc-macro-crate 3.5.0",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -432,9 +462,9 @@ dependencies = [
[[package]]
name = "bumpalo"
-version = "3.19.0"
+version = "3.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43"
+checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
[[package]]
name = "byte-unit"
@@ -443,7 +473,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c6d47a4e2961fb8721bcfc54feae6455f2f64e7054f9bc67e875f0e77f4c58d"
dependencies = [
"rust_decimal",
- "schemars 1.1.0",
+ "schemars 1.2.1",
"serde",
"utf8-width",
]
@@ -472,9 +502,9 @@ dependencies = [
[[package]]
name = "bytemuck"
-version = "1.24.0"
+version = "1.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fbdf580320f38b612e485521afda1ee26d10cc9884efaaa750d383e13e3c5f4"
+checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"
[[package]]
name = "byteorder"
@@ -491,6 +521,15 @@ dependencies = [
"serde",
]
+[[package]]
+name = "bzip2"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f3a53fac24f34a81bc9954b5d6cfce0c21e18ec6959f44f56e8e90e4bb7c346c"
+dependencies = [
+ "libbz2-rs-sys",
+]
+
[[package]]
name = "cairo-rs"
version = "0.18.5"
@@ -518,9 +557,9 @@ dependencies = [
[[package]]
name = "camino"
-version = "1.2.1"
+version = "1.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "276a59bf2b2c967788139340c9f0c5b12d7fd6630315c15c217e559de85d2609"
+checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48"
dependencies = [
"serde_core",
]
@@ -545,7 +584,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
]
[[package]]
@@ -555,14 +594,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"
dependencies = [
"serde",
- "toml 0.9.8",
+ "toml 0.9.12+spec-1.1.0",
]
[[package]]
name = "cc"
-version = "1.2.48"
+version = "1.2.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c481bdbf0ed3b892f6f806287d72acd515b352a4ec27a208489b8c1bc839633a"
+checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"
dependencies = [
"find-msvc-tools",
"jobserver",
@@ -611,9 +650,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "chrono"
-version = "0.4.42"
+version = "0.4.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2"
+checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"
dependencies = [
"iana-time-zone",
"num-traits",
@@ -621,6 +660,16 @@ dependencies = [
"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",
+ "inout",
+]
+
[[package]]
name = "cmake"
version = "0.1.58"
@@ -664,11 +713,17 @@ version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e"
dependencies = [
- "getrandom 0.2.16",
+ "getrandom 0.2.17",
"once_cell",
"tiny-keccak",
]
+[[package]]
+name = "constant_time_eq"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
+
[[package]]
name = "convert_case"
version = "0.4.0"
@@ -732,9 +787,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
[[package]]
name = "core-graphics"
-version = "0.24.0"
+version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
+checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
dependencies = [
"bitflags 2.11.1",
"core-foundation 0.10.1",
@@ -763,6 +818,21 @@ dependencies = [
"libc",
]
+[[package]]
+name = "crc"
+version = "3.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5eb8a2a1cd12ab0d987a5d5e825195d372001a4094a0376319d5a0ad71c1ba0d"
+dependencies = [
+ "crc-catalog",
+]
+
+[[package]]
+name = "crc-catalog"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5"
+
[[package]]
name = "crc32fast"
version = "1.5.0"
@@ -820,6 +890,19 @@ dependencies = [
"syn 1.0.109",
]
+[[package]]
+name = "cssparser"
+version = "0.36.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"
+dependencies = [
+ "cssparser-macros",
+ "dtoa-short",
+ "itoa",
+ "phf 0.13.1",
+ "smallvec",
+]
+
[[package]]
name = "cssparser-macros"
version = "0.6.1"
@@ -827,24 +910,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
dependencies = [
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "ctor"
-version = "0.2.9"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"
+checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"
dependencies = [
- "quote",
- "syn 2.0.111",
+ "ctor-proc-macro",
+ "dtor",
]
+[[package]]
+name = "ctor-proc-macro"
+version = "0.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"
+
[[package]]
name = "darling"
-version = "0.21.3"
+version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9cdf337090841a411e2a7f3deb9187445851f91b309c0c0a29e05f74a00a48c0"
+checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
dependencies = [
"darling_core",
"darling_macro",
@@ -852,34 +941,33 @@ dependencies = [
[[package]]
name = "darling_core"
-version = "0.21.3"
+version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1247195ecd7e3c85f83c8d2a366e4210d588e802133e1e355180a9870b517ea4"
+checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
dependencies = [
- "fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "darling_macro"
-version = "0.21.3"
+version = "0.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d38308df82d1080de0afee5d069fa14b0326a88c14f15c5ccda35b4a6c414c81"
+checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
dependencies = [
"darling_core",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "data-encoding"
-version = "2.9.0"
+version = "2.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476"
+checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea"
[[package]]
name = "data-url"
@@ -887,16 +975,44 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376"
+[[package]]
+name = "dbus"
+version = "0.9.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "21b3aa68d7e7abee336255bd7248ea965cc393f3e70411135a6f6a4b651345d4"
+dependencies = [
+ "libc",
+ "libdbus-sys",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "deflate64"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac6b926516df9c60bfa16e107b21086399f8285a44ca9711344b9e553c5146e2"
+
[[package]]
name = "deranged"
-version = "0.5.5"
+version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587"
+checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
dependencies = [
"powerfmt",
"serde_core",
]
+[[package]]
+name = "derive_arbitrary"
+version = "1.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
+
[[package]]
name = "derive_more"
version = "0.99.20"
@@ -907,7 +1023,28 @@ dependencies = [
"proc-macro2",
"quote",
"rustc_version",
- "syn 2.0.111",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "derive_more"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"
+dependencies = [
+ "derive_more-impl",
+]
+
+[[package]]
+name = "derive_more-impl"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "syn 2.0.117",
]
[[package]]
@@ -918,6 +1055,7 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer",
"crypto-common",
+ "subtle",
]
[[package]]
@@ -938,23 +1076,19 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
-[[package]]
-name = "dispatch"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
-
[[package]]
name = "dispatch2"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
dependencies = [
"bitflags 2.11.1",
- "objc2 0.6.3",
+ "block2",
+ "libc",
+ "objc2",
]
[[package]]
@@ -965,14 +1099,14 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "dlopen2"
-version = "0.8.1"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8d65cde5fb0c42a3d5882d99807698b459f5928de035fa7f547c784fb7b34219"
+checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4"
dependencies = [
"dlopen2_derive",
"libc",
@@ -982,13 +1116,13 @@ dependencies = [
[[package]]
name = "dlopen2_derive"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95f4a04e1bfbfa4835a6073177aafb95ead4de0722dbb339195fdc7e0a09599b"
+checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -1009,6 +1143,21 @@ dependencies = [
"litrs",
]
+[[package]]
+name = "dom_query"
+version = "0.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"
+dependencies = [
+ "bit-set",
+ "cssparser 0.36.0",
+ "foldhash 0.2.0",
+ "html5ever 0.38.0",
+ "precomputed-hash",
+ "selectors 0.36.1",
+ "tendril 0.5.0",
+]
+
[[package]]
name = "dpi"
version = "0.1.2"
@@ -1020,9 +1169,9 @@ dependencies = [
[[package]]
name = "dtoa"
-version = "1.0.10"
+version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d6add3b8cff394282be81f3fc1a0605db594ed69890078ca6e2cab1c408bcf04"
+checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590"
[[package]]
name = "dtoa-short"
@@ -1033,6 +1182,21 @@ dependencies = [
"dtoa",
]
+[[package]]
+name = "dtor"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"
+dependencies = [
+ "dtor-proc-macro",
+]
+
+[[package]]
+name = "dtor-proc-macro"
+version = "0.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"
+
[[package]]
name = "dunce"
version = "1.0.5"
@@ -1047,14 +1211,14 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
[[package]]
name = "embed-resource"
-version = "3.0.6"
+version = "3.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55a075fc573c64510038d7ee9abc7990635863992f83ebc52c8b433b8411a02e"
+checksum = "63a1d0de4f2249aa0ff5884d7080814f446bb241a559af6c170a41e878ed2d45"
dependencies = [
"cc",
"memchr",
"rustc_version",
- "toml 0.9.8",
+ "toml 0.9.12+spec-1.1.0",
"vswhom",
"winreg",
]
@@ -1098,7 +1262,7 @@ checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -1119,9 +1283,9 @@ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
[[package]]
name = "erased-serde"
-version = "0.4.9"
+version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89e8918065695684b2b0702da20382d5ae6065cf3327bc2d6436bd49a71ce9f3"
+checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
dependencies = [
"serde",
"serde_core",
@@ -1135,7 +1299,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -1161,9 +1325,9 @@ dependencies = [
[[package]]
name = "fastrand"
-version = "2.3.0"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
+checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
[[package]]
name = "fdeflate"
@@ -1195,18 +1359,19 @@ dependencies = [
[[package]]
name = "find-msvc-tools"
-version = "0.1.5"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a3076410a55c90011c298b04d0cfa770b00fa04e1e3c97d3f6c9de105a03844"
+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
[[package]]
name = "flate2"
-version = "1.1.7"
+version = "1.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a2152dbcb980c05735e2a651d96011320a949eb31a0c8b38b72645ce97dec676"
+checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
dependencies = [
"crc32fast",
"miniz_oxide",
+ "zlib-rs",
]
[[package]]
@@ -1215,6 +1380,18 @@ version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+[[package]]
+name = "foldhash"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+
+[[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"
@@ -1233,7 +1410,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -1273,26 +1450,42 @@ dependencies = [
"new_debug_unreachable",
]
+[[package]]
+name = "futures"
+version = "0.3.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-io",
+ "futures-sink",
+ "futures-task",
+ "futures-util",
+]
+
[[package]]
name = "futures-channel"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
+checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
dependencies = [
"futures-core",
+ "futures-sink",
]
[[package]]
name = "futures-core"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
+checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
[[package]]
name = "futures-executor"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
+checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"
dependencies = [
"futures-core",
"futures-task",
@@ -1301,9 +1494,9 @@ dependencies = [
[[package]]
name = "futures-io"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
+checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
[[package]]
name = "futures-lite"
@@ -1320,33 +1513,34 @@ dependencies = [
[[package]]
name = "futures-macro"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
+checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "futures-sink"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
+checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
[[package]]
name = "futures-task"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
+checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
[[package]]
name = "futures-util"
-version = "0.3.31"
+version = "0.3.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
+checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
dependencies = [
+ "futures-channel",
"futures-core",
"futures-io",
"futures-macro",
@@ -1354,7 +1548,6 @@ dependencies = [
"futures-task",
"memchr",
"pin-project-lite",
- "pin-utils",
"slab",
]
@@ -1499,9 +1692,9 @@ dependencies = [
[[package]]
name = "getrandom"
-version = "0.2.16"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
dependencies = [
"cfg-if",
"js-sys",
@@ -1519,11 +1712,24 @@ dependencies = [
"cfg-if",
"js-sys",
"libc",
- "r-efi",
+ "r-efi 5.3.0",
"wasip2",
"wasm-bindgen",
]
+[[package]]
+name = "getrandom"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 6.0.0",
+ "wasip2",
+ "wasip3",
+]
+
[[package]]
name = "gio"
version = "0.18.4"
@@ -1590,7 +1796,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -1669,14 +1875,14 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "h2"
-version = "0.4.12"
+version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3c0b69cfcb4e1b9f1bf2f53f95f766e4661169728ec61cd3fe5a0166f2d1386"
+checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54"
dependencies = [
"atomic-waker",
"bytes",
@@ -1684,7 +1890,7 @@ dependencies = [
"futures-core",
"futures-sink",
"http",
- "indexmap 2.12.1",
+ "indexmap 2.14.0",
"slab",
"tokio",
"tokio-util",
@@ -1706,12 +1912,27 @@ version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
+[[package]]
+name = "hashbrown"
+version = "0.15.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
+dependencies = [
+ "foldhash 0.1.5",
+]
+
[[package]]
name = "hashbrown"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
+[[package]]
+name = "hashbrown"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51"
+
[[package]]
name = "heck"
version = "0.4.1"
@@ -1736,6 +1957,15 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+[[package]]
+name = "hmac"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
+dependencies = [
+ "digest",
+]
+
[[package]]
name = "html5ever"
version = "0.29.1"
@@ -1744,10 +1974,20 @@ checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c"
dependencies = [
"log",
"mac",
- "markup5ever",
+ "markup5ever 0.14.1",
"match_token",
]
+[[package]]
+name = "html5ever"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"
+dependencies = [
+ "log",
+ "markup5ever 0.38.0",
+]
+
[[package]]
name = "http"
version = "1.4.0"
@@ -1789,9 +2029,9 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "hyper"
-version = "1.8.1"
+version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11"
+checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca"
dependencies = [
"atomic-waker",
"bytes",
@@ -1803,7 +2043,6 @@ dependencies = [
"httparse",
"itoa",
"pin-project-lite",
- "pin-utils",
"smallvec",
"tokio",
"want",
@@ -1811,15 +2050,14 @@ dependencies = [
[[package]]
name = "hyper-rustls"
-version = "0.27.7"
+version = "0.27.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"
+checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
dependencies = [
"http",
"hyper",
"hyper-util",
"rustls",
- "rustls-pki-types",
"tokio",
"tokio-rustls",
"tower-service",
@@ -1827,14 +2065,13 @@ dependencies = [
[[package]]
name = "hyper-util"
-version = "0.1.19"
+version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "727805d60e7938b76b826a6ef209eb70eaa1812794f9424d4a4e2d740662df5f"
+checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
dependencies = [
"base64 0.22.1",
"bytes",
"futures-channel",
- "futures-core",
"futures-util",
"http",
"http-body",
@@ -1848,14 +2085,14 @@ dependencies = [
"tokio",
"tower-service",
"tracing",
- "windows-registry",
+ "windows-registry 0.6.1",
]
[[package]]
name = "iana-time-zone"
-version = "0.1.64"
+version = "0.1.65"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb"
+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
dependencies = [
"android_system_properties",
"core-foundation-sys",
@@ -1887,12 +2124,13 @@ dependencies = [
[[package]]
name = "icu_collections"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43"
+checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
dependencies = [
"displaydoc",
"potential_utf",
+ "utf8_iter",
"yoke",
"zerofrom",
"zerovec",
@@ -1900,9 +2138,9 @@ dependencies = [
[[package]]
name = "icu_locale_core"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6"
+checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
dependencies = [
"displaydoc",
"litemap",
@@ -1913,9 +2151,9 @@ dependencies = [
[[package]]
name = "icu_normalizer"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599"
+checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
dependencies = [
"icu_collections",
"icu_normalizer_data",
@@ -1927,15 +2165,15 @@ dependencies = [
[[package]]
name = "icu_normalizer_data"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a"
+checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
[[package]]
name = "icu_properties"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e93fcd3157766c0c8da2f8cff6ce651a31f0810eaa1c51ec363ef790bbb5fb99"
+checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
dependencies = [
"icu_collections",
"icu_locale_core",
@@ -1947,15 +2185,15 @@ dependencies = [
[[package]]
name = "icu_properties_data"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02845b3647bb045f1100ecd6480ff52f34c35f82d9880e029d329c21d1054899"
+checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
[[package]]
name = "icu_provider"
-version = "2.1.1"
+version = "2.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614"
+checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
dependencies = [
"displaydoc",
"icu_locale_core",
@@ -1966,6 +2204,12 @@ dependencies = [
"zerovec",
]
+[[package]]
+name = "id-arena"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
+
[[package]]
name = "ident_case"
version = "1.0.1"
@@ -2006,12 +2250,12 @@ dependencies = [
[[package]]
name = "indexmap"
-version = "2.12.1"
+version = "2.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ad4bb2b565bca0645f4d68c5c9af97fba094e9791da685bf83cb5f3ce74acf2"
+checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
dependencies = [
"equivalent",
- "hashbrown 0.16.1",
+ "hashbrown 0.17.0",
"serde",
"serde_core",
]
@@ -2025,17 +2269,26 @@ dependencies = [
"cfb",
]
+[[package]]
+name = "inout"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"
+dependencies = [
+ "generic-array",
+]
+
[[package]]
name = "ipnet"
-version = "2.11.0"
+version = "2.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
+checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"
[[package]]
name = "iri-string"
-version = "0.7.9"
+version = "0.7.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f867b9d1d896b67beb18518eda36fdb77a32ea590de864f1325b294a6d14397"
+checksum = "25e659a4bb38e810ebc252e53b5814ff908a8c58c2a9ce2fae1bbec24cbf4e20"
dependencies = [
"memchr",
"serde",
@@ -2062,9 +2315,9 @@ dependencies = [
[[package]]
name = "itoa"
-version = "1.0.15"
+version = "1.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
[[package]]
name = "javascriptcore-rs"
@@ -2098,7 +2351,7 @@ dependencies = [
"cesu8",
"cfg-if",
"combine",
- "jni-sys",
+ "jni-sys 0.3.1",
"log",
"thiserror 1.0.69",
"walkdir",
@@ -2107,28 +2360,50 @@ dependencies = [
[[package]]
name = "jni-sys"
-version = "0.3.0"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
+dependencies = [
+ "jni-sys 0.4.1",
+]
[[package]]
-name = "jobserver"
-version = "0.1.34"
+name = "jni-sys"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
dependencies = [
- "getrandom 0.3.4",
- "libc",
+ "jni-sys-macros",
]
[[package]]
-name = "js-sys"
-version = "0.3.95"
+name = "jni-sys-macros"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2964e92d1d9dc3364cae4d718d93f227e3abb088e747d92e0395bfdedf1c12ca"
+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
dependencies = [
- "cfg-if",
- "futures-util",
+ "quote",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "jobserver"
+version = "0.1.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
+dependencies = [
+ "getrandom 0.3.4",
+ "libc",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.95"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2964e92d1d9dc3364cae4d718d93f227e3abb088e747d92e0395bfdedf1c12ca"
+dependencies = [
+ "cfg-if",
+ "futures-util",
"once_cell",
"wasm-bindgen",
]
@@ -2172,10 +2447,10 @@ version = "0.8.8-speedreader"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2"
dependencies = [
- "cssparser",
- "html5ever",
- "indexmap 2.12.1",
- "selectors",
+ "cssparser 0.29.6",
+ "html5ever 0.29.1",
+ "indexmap 2.14.0",
+ "selectors 0.24.0",
]
[[package]]
@@ -2184,6 +2459,12 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
+[[package]]
+name = "leb128fmt"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
+
[[package]]
name = "libappindicator"
version = "0.9.0"
@@ -2208,11 +2489,26 @@ dependencies = [
"once_cell",
]
+[[package]]
+name = "libbz2-rs-sys"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c4a545a15244c7d945065b5d392b2d2d7f21526fba56ce51467b06ed445e8f7"
+
[[package]]
name = "libc"
-version = "0.2.178"
+version = "0.2.185"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
+checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f"
+
+[[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"
@@ -2226,25 +2522,24 @@ dependencies = [
[[package]]
name = "libredox"
-version = "0.1.10"
+version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "416f7e718bdb06000964960ffa43b4335ad4012ae8b99060261aa4a8088d5ccb"
+checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c"
dependencies = [
- "bitflags 2.11.1",
"libc",
]
[[package]]
name = "linux-raw-sys"
-version = "0.11.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
[[package]]
name = "litemap"
-version = "0.8.1"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77"
+checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
[[package]]
name = "litrs"
@@ -2283,6 +2578,16 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
+[[package]]
+name = "lzma-rust2"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c60a23ffb90d527e23192f1246b14746e2f7f071cb84476dd879071696c18a4a"
+dependencies = [
+ "crc",
+ "sha2",
+]
+
[[package]]
name = "mac"
version = "0.1.1"
@@ -2291,16 +2596,37 @@ checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
[[package]]
name = "mac-notification-sys"
-version = "0.6.9"
+version = "0.6.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65fd3f75411f4725061682ed91f131946e912859d0044d39c4ec0aac818d7621"
+checksum = "29a16783dd1a47849b8c8133c9cd3eb2112cfbc6901670af3dba47c8bbfb07d3"
dependencies = [
"cc",
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
"time",
]
+[[package]]
+name = "macro_bundle_updater_plugin"
+version = "0.1.0"
+dependencies = [
+ "digest",
+ "futures",
+ "reqwest",
+ "rootcause",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2",
+ "strum",
+ "tauri",
+ "thiserror 2.0.18",
+ "tokio",
+ "tracing",
+ "url",
+ "zip",
+]
+
[[package]]
name = "markup5ever"
version = "0.14.1"
@@ -2310,9 +2636,20 @@ dependencies = [
"log",
"phf 0.11.3",
"phf_codegen 0.11.3",
- "string_cache",
- "string_cache_codegen",
- "tendril",
+ "string_cache 0.8.9",
+ "string_cache_codegen 0.5.4",
+ "tendril 0.4.3",
+]
+
+[[package]]
+name = "markup5ever"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"
+dependencies = [
+ "log",
+ "tendril 0.5.0",
+ "web_atoms",
]
[[package]]
@@ -2323,7 +2660,7 @@ checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -2343,9 +2680,9 @@ checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"
[[package]]
name = "memchr"
-version = "2.7.6"
+version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
+checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
[[package]]
name = "memoffset"
@@ -2362,6 +2699,16 @@ version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
+[[package]]
+name = "mime_guess"
+version = "2.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e"
+dependencies = [
+ "mime",
+ "unicase",
+]
+
[[package]]
name = "miniz_oxide"
version = "0.8.9"
@@ -2374,9 +2721,9 @@ dependencies = [
[[package]]
name = "mio"
-version = "1.1.1"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc"
+checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
dependencies = [
"libc",
"wasi 0.11.1+wasi-snapshot-preview1",
@@ -2385,22 +2732,22 @@ dependencies = [
[[package]]
name = "muda"
-version = "0.17.1"
+version = "0.17.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01c1738382f66ed56b3b9c8119e794a2e23148ac8ea214eda86622d4cb9d415a"
+checksum = "7c9fec5a4e89860383d778d10563a605838f8f0b2f9303868937e5ff32e86177"
dependencies = [
"crossbeam-channel",
"dpi",
"gtk",
"keyboard-types",
- "objc2 0.6.3",
+ "objc2",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
"once_cell",
"png",
"serde",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"windows-sys 0.60.2",
]
@@ -2412,10 +2759,11 @@ dependencies = [
"nom",
"rootcause",
"serde",
+ "serde_json",
"serde_qs",
"tauri",
"tauri-plugin-opener",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tracing",
"url",
]
@@ -2427,7 +2775,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
dependencies = [
"bitflags 2.11.1",
- "jni-sys",
+ "jni-sys 0.3.1",
"log",
"ndk-sys",
"num_enum",
@@ -2435,19 +2783,13 @@ dependencies = [
"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",
+ "jni-sys 0.3.1",
]
[[package]]
@@ -2466,7 +2808,6 @@ dependencies = [
"cfg-if",
"cfg_aliases",
"libc",
- "memoffset",
]
[[package]]
@@ -2486,9 +2827,9 @@ dependencies = [
[[package]]
name = "notify-rust"
-version = "4.11.7"
+version = "4.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6442248665a5aa2514e794af3b39661a8e73033b1cc5e59899e1276117ee4400"
+checksum = "3c8146c105ae33d744e2d645f684d063b01176a99daf5986556266777b428816"
dependencies = [
"futures-lite",
"log",
@@ -2504,14 +2845,14 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
name = "num-conv"
-version = "0.2.0"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050"
+checksum = "c6673768db2d862beb9b39a78fdcb1a69439615d5794a1be50caa9bc92c81967"
[[package]]
name = "num-traits"
@@ -2524,9 +2865,9 @@ dependencies = [
[[package]]
name = "num_enum"
-version = "0.7.5"
+version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1207a7e20ad57b847bbddc6776b968420d38292bbfe2089accff5e19e82454c"
+checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
dependencies = [
"num_enum_derive",
"rustversion",
@@ -2534,14 +2875,14 @@ dependencies = [
[[package]]
name = "num_enum_derive"
-version = "0.7.5"
+version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff32365de1b6743cb203b710788263c44a03de03802daf96092f2da4fe6ba4d7"
+checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
dependencies = [
- "proc-macro-crate 3.4.0",
+ "proc-macro-crate 3.5.0",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -2553,27 +2894,11 @@ dependencies = [
"libc",
]
-[[package]]
-name = "objc-sys"
-version = "0.3.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
-
-[[package]]
-name = "objc2"
-version = "0.5.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804"
-dependencies = [
- "objc-sys",
- "objc2-encode",
-]
-
[[package]]
name = "objc2"
-version = "0.6.3"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05"
+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"
dependencies = [
"objc2-encode",
"objc2-exception-helper",
@@ -2586,10 +2911,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
dependencies = [
"bitflags 2.11.1",
- "block2 0.6.2",
- "objc2 0.6.3",
+ "block2",
+ "objc2",
"objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
]
[[package]]
@@ -2599,8 +2924,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
dependencies = [
"bitflags 2.11.1",
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
]
[[package]]
@@ -2609,8 +2934,8 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
dependencies = [
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
]
[[package]]
@@ -2621,7 +2946,7 @@ checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
dependencies = [
"bitflags 2.11.1",
"dispatch2",
- "objc2 0.6.3",
+ "objc2",
]
[[package]]
@@ -2632,7 +2957,7 @@ checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
dependencies = [
"bitflags 2.11.1",
"dispatch2",
- "objc2 0.6.3",
+ "objc2",
"objc2-core-foundation",
"objc2-io-surface",
]
@@ -2643,8 +2968,8 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
dependencies = [
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
]
[[package]]
@@ -2653,8 +2978,8 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
dependencies = [
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
]
[[package]]
@@ -2664,7 +2989,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
dependencies = [
"bitflags 2.11.1",
- "objc2 0.6.3",
+ "objc2",
"objc2-core-foundation",
"objc2-core-graphics",
]
@@ -2684,18 +3009,6 @@ dependencies = [
"cc",
]
-[[package]]
-name = "objc2-foundation"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
-dependencies = [
- "bitflags 2.11.1",
- "block2 0.5.1",
- "libc",
- "objc2 0.5.2",
-]
-
[[package]]
name = "objc2-foundation"
version = "0.3.2"
@@ -2703,9 +3016,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
dependencies = [
"bitflags 2.11.1",
- "block2 0.6.2",
+ "block2",
"libc",
- "objc2 0.6.3",
+ "objc2",
"objc2-core-foundation",
]
@@ -2716,35 +3029,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
dependencies = [
"bitflags 2.11.1",
- "objc2 0.6.3",
+ "objc2",
"objc2-core-foundation",
]
-[[package]]
-name = "objc2-metal"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
-dependencies = [
- "bitflags 2.11.1",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-quartz-core"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
-dependencies = [
- "bitflags 2.11.1",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
- "objc2-metal",
-]
-
[[package]]
name = "objc2-quartz-core"
version = "0.3.2"
@@ -2752,9 +3040,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
dependencies = [
"bitflags 2.11.1",
- "objc2 0.6.3",
+ "objc2",
"objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
]
[[package]]
@@ -2764,8 +3052,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
dependencies = [
"bitflags 2.11.1",
- "block2 0.6.2",
- "objc2 0.6.3",
+ "block2",
+ "objc2",
"objc2-cloud-kit",
"objc2-core-data",
"objc2-core-foundation",
@@ -2773,8 +3061,8 @@ dependencies = [
"objc2-core-image",
"objc2-core-location",
"objc2-core-text",
- "objc2-foundation 0.3.2",
- "objc2-quartz-core 0.3.2",
+ "objc2-foundation",
+ "objc2-quartz-core",
"objc2-user-notifications",
]
@@ -2784,8 +3072,8 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
dependencies = [
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
]
[[package]]
@@ -2795,18 +3083,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
dependencies = [
"bitflags 2.11.1",
- "block2 0.6.2",
- "objc2 0.6.3",
+ "block2",
+ "objc2",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
]
[[package]]
name = "once_cell"
-version = "1.21.3"
+version = "1.21.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
[[package]]
name = "open"
@@ -2854,15 +3142,15 @@ dependencies = [
[[package]]
name = "os_info"
-version = "3.13.0"
+version = "3.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c39b5918402d564846d5aba164c09a66cc88d232179dfd3e3c619a25a268392"
+checksum = "e4022a17595a00d6a369236fdae483f0de7f0a339960a53118b818238e132224"
dependencies = [
"android_system_properties",
"log",
"nix",
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
"objc2-ui-kit",
"serde",
"windows-sys 0.61.2",
@@ -2928,6 +3216,16 @@ version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"
+[[package]]
+name = "pbkdf2"
+version = "0.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"
+dependencies = [
+ "digest",
+ "hmac",
+]
+
[[package]]
name = "percent-encoding"
version = "2.3.2"
@@ -2964,6 +3262,17 @@ dependencies = [
"phf_shared 0.11.3",
]
+[[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_codegen"
version = "0.8.0"
@@ -2984,6 +3293,16 @@ dependencies = [
"phf_shared 0.11.3",
]
+[[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_generator"
version = "0.8.0"
@@ -3014,6 +3333,16 @@ dependencies = [
"rand 0.8.5",
]
+[[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_macros"
version = "0.10.0"
@@ -3038,7 +3367,20 @@ dependencies = [
"phf_shared 0.11.3",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
+]
+
+[[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.117",
]
[[package]]
@@ -3065,26 +3407,29 @@ version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"
dependencies = [
- "siphasher 1.0.1",
+ "siphasher 1.0.2",
]
[[package]]
-name = "pin-project-lite"
-version = "0.2.16"
+name = "phf_shared"
+version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
+dependencies = [
+ "siphasher 1.0.2",
+]
[[package]]
-name = "pin-utils"
-version = "0.1.0"
+name = "pin-project-lite"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
[[package]]
name = "piper"
-version = "0.2.4"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
dependencies = [
"atomic-waker",
"fastrand",
@@ -3093,9 +3438,9 @@ dependencies = [
[[package]]
name = "pkg-config"
-version = "0.3.32"
+version = "0.3.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
+checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
[[package]]
name = "plist"
@@ -3104,7 +3449,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07"
dependencies = [
"base64 0.22.1",
- "indexmap 2.12.1",
+ "indexmap 2.14.0",
"quick-xml 0.38.4",
"serde",
"time",
@@ -3139,9 +3484,9 @@ dependencies = [
[[package]]
name = "potential_utf"
-version = "0.1.4"
+version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77"
+checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
dependencies = [
"zerovec",
]
@@ -3152,6 +3497,12 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
+[[package]]
+name = "ppmd-rust"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "efca4c95a19a79d1c98f791f10aebd5c1363b473244630bb7dbde1dc98455a24"
+
[[package]]
name = "ppv-lite86"
version = "0.2.21"
@@ -3167,6 +3518,16 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+[[package]]
+name = "prettyplease"
+version = "0.2.37"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
+dependencies = [
+ "proc-macro2",
+ "syn 2.0.117",
+]
+
[[package]]
name = "proc-macro-crate"
version = "1.3.1"
@@ -3189,11 +3550,11 @@ dependencies = [
[[package]]
name = "proc-macro-crate"
-version = "3.4.0"
+version = "3.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983"
+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
dependencies = [
- "toml_edit 0.23.7",
+ "toml_edit 0.25.11+spec-1.1.0",
]
[[package]]
@@ -3228,9 +3589,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
[[package]]
name = "proc-macro2"
-version = "1.0.103"
+version = "1.0.106"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8"
+checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
dependencies = [
"unicode-ident",
]
@@ -3303,7 +3664,7 @@ dependencies = [
"rustc-hash",
"rustls",
"socket2",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tokio",
"tracing",
"web-time",
@@ -3319,13 +3680,13 @@ dependencies = [
"bytes",
"getrandom 0.3.4",
"lru-slab",
- "rand 0.9.2",
+ "rand 0.9.4",
"ring",
"rustc-hash",
"rustls",
"rustls-pki-types",
"slab",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tinyvec",
"tracing",
"web-time",
@@ -3342,14 +3703,14 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
]
[[package]]
name = "quote"
-version = "1.0.42"
+version = "1.0.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
+checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
dependencies = [
"proc-macro2",
]
@@ -3360,6 +3721,12 @@ 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 = "radium"
version = "0.7.0"
@@ -3393,12 +3760,12 @@ dependencies = [
[[package]]
name = "rand"
-version = "0.9.2"
+version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
+checksum = "44c5af06bb1b7d3216d91932aed5265164bf384dc89cd6ba05cf59a35f5f76ea"
dependencies = [
"rand_chacha 0.9.0",
- "rand_core 0.9.3",
+ "rand_core 0.9.5",
]
[[package]]
@@ -3428,7 +3795,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
dependencies = [
"ppv-lite86",
- "rand_core 0.9.3",
+ "rand_core 0.9.5",
]
[[package]]
@@ -3446,14 +3813,14 @@ version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
- "getrandom 0.2.16",
+ "getrandom 0.2.17",
]
[[package]]
name = "rand_core"
-version = "0.9.3"
+version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38"
+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
dependencies = [
"getrandom 0.3.4",
]
@@ -3497,9 +3864,9 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
dependencies = [
- "getrandom 0.2.16",
+ "getrandom 0.2.17",
"libredox",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
]
[[package]]
@@ -3519,14 +3886,14 @@ checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "regex"
-version = "1.12.2"
+version = "1.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
+checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
dependencies = [
"aho-corasick",
"memchr",
@@ -3536,9 +3903,9 @@ dependencies = [
[[package]]
name = "regex-automata"
-version = "0.4.13"
+version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
+checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
dependencies = [
"aho-corasick",
"memchr",
@@ -3547,9 +3914,9 @@ dependencies = [
[[package]]
name = "regex-syntax"
-version = "0.8.8"
+version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
+checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
[[package]]
name = "rend"
@@ -3613,7 +3980,7 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
dependencies = [
"cc",
"cfg-if",
- "getrandom 0.2.16",
+ "getrandom 0.2.17",
"libc",
"untrusted",
"windows-sys 0.52.0",
@@ -3621,9 +3988,9 @@ dependencies = [
[[package]]
name = "rkyv"
-version = "0.7.45"
+version = "0.7.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b"
+checksum = "2297bf9c81a3f0dc96bc9521370b88f054168c29826a75e89c55ff196e7ed6a1"
dependencies = [
"bitvec",
"bytecheck",
@@ -3639,9 +4006,9 @@ dependencies = [
[[package]]
name = "rkyv_derive"
-version = "0.7.45"
+version = "0.7.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "503d1d27590a2b0a3a4ca4c94755aa2875657196ecbf401a42eff41d7de532c0"
+checksum = "84d7b42d4b8d06048d3ac8db0eb31bcb942cbeb709f0b5f2b2ebde398d3038f5"
dependencies = [
"proc-macro2",
"quote",
@@ -3650,24 +4017,22 @@ dependencies = [
[[package]]
name = "rootcause"
-version = "0.10.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12e6b4d9966d17c1e58cd682656e9e1551f19f421b07d7618723009445f06099"
+checksum = "4fc4bd36159c7ce180fe2de1e5371ef107a2885f0048430f631e78202e2255d4"
dependencies = [
"hashbrown 0.16.1",
- "indexmap 2.12.1",
+ "indexmap 2.14.0",
"rootcause-internals",
"rustc-hash",
- "spin",
"triomphe",
- "unsize",
]
[[package]]
name = "rootcause-internals"
-version = "0.10.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac64da7400123d25e3603dfd91a0ce7a78a3ad6e2d9400e6cdbb1aef0574c0d7"
+checksum = "4d0df4f84d119d09b5c9c9e8db0fe9bfb5b47b04d0bb95b0763cf81bd9baa559"
dependencies = [
"triomphe",
]
@@ -3684,9 +4049,9 @@ dependencies = [
[[package]]
name = "rust_decimal"
-version = "1.39.0"
+version = "1.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35affe401787a9bd846712274d97654355d21b2a2c092a3139aabe31e9022282"
+checksum = "2ce901f9a19d251159075a4c37af514c3b8ef99c22e02dd8c19161cf397ee94a"
dependencies = [
"arrayvec",
"borsh",
@@ -3696,13 +4061,14 @@ dependencies = [
"rkyv",
"serde",
"serde_json",
+ "wasm-bindgen",
]
[[package]]
name = "rustc-hash"
-version = "2.1.1"
+version = "2.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
+checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
[[package]]
name = "rustc_version"
@@ -3715,22 +4081,22 @@ dependencies = [
[[package]]
name = "rustix"
-version = "1.1.2"
+version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd15f8a2c5551a84d56efdc1cd049089e409ac19a3072d5037a17fd70719ff3e"
+checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
dependencies = [
"bitflags 2.11.1",
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
name = "rustls"
-version = "0.23.35"
+version = "0.23.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "533f54bc6a7d4f647e46ad909549eda97bf5afc1585190ef692b4286b198bd8f"
+checksum = "69f9466fb2c14ea04357e91413efb882e2a6d4a406e625449bc0a5d360d53a21"
dependencies = [
"aws-lc-rs",
"once_cell",
@@ -3754,9 +4120,9 @@ dependencies = [
[[package]]
name = "rustls-pki-types"
-version = "1.13.1"
+version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "708c0f9d5f54ba0272468c1d306a52c495b31fa155e91bc25371e6df7996908c"
+checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd"
dependencies = [
"web-time",
"zeroize",
@@ -3780,7 +4146,7 @@ dependencies = [
"security-framework",
"security-framework-sys",
"webpki-root-certs",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -3791,9 +4157,9 @@ checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"
[[package]]
name = "rustls-webpki"
-version = "0.103.10"
+version = "0.103.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df33b2b81ac578cabaf06b89b0631153a3f416b0a886e8a7a1707fb51abbd1ef"
+checksum = "8279bb85272c9f10811ae6a6c547ff594d6a7f3c6c6b02ee9726d1d0dcfcdd06"
dependencies = [
"aws-lc-rs",
"ring",
@@ -3807,12 +4173,6 @@ version = "1.0.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
-[[package]]
-name = "ryu"
-version = "1.0.20"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
-
[[package]]
name = "same-file"
version = "1.0.6"
@@ -3860,9 +4220,9 @@ dependencies = [
[[package]]
name = "schemars"
-version = "1.1.0"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9558e172d4e8533736ba97870c4b2cd63f84b382a3d6eb063da41b91cce17289"
+checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc"
dependencies = [
"dyn-clone",
"ref-cast",
@@ -3879,7 +4239,7 @@ dependencies = [
"proc-macro2",
"quote",
"serde_derive_internals",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -3924,22 +4284,41 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416"
dependencies = [
"bitflags 1.3.2",
- "cssparser",
- "derive_more",
+ "cssparser 0.29.6",
+ "derive_more 0.99.20",
"fxhash",
"log",
"phf 0.8.0",
"phf_codegen 0.8.0",
"precomputed-hash",
- "servo_arc",
+ "servo_arc 0.2.0",
+ "smallvec",
+]
+
+[[package]]
+name = "selectors"
+version = "0.36.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"
+dependencies = [
+ "bitflags 2.11.1",
+ "cssparser 0.36.0",
+ "derive_more 2.1.1",
+ "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 = "semver"
-version = "1.0.27"
+version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
dependencies = [
"serde",
"serde_core",
@@ -3984,7 +4363,7 @@ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -3995,20 +4374,20 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "serde_json"
-version = "1.0.145"
+version = "1.0.149"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c"
+checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
dependencies = [
"itoa",
"memchr",
- "ryu",
"serde",
"serde_core",
+ "zmij",
]
[[package]]
@@ -4019,7 +4398,7 @@ checksum = "f3faaf9e727533a19351a43cc5a8de957372163c7d35cc48c90b75cdda13c352"
dependencies = [
"percent-encoding",
"serde",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
]
[[package]]
@@ -4030,7 +4409,7 @@ checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -4044,26 +4423,26 @@ dependencies = [
[[package]]
name = "serde_spanned"
-version = "1.0.3"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e24345aa0fe688594e73770a5f6d1b216508b4f93484c0026d521acd30134392"
+checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
dependencies = [
"serde_core",
]
[[package]]
name = "serde_with"
-version = "3.16.1"
+version = "3.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fa237f2807440d238e0364a218270b98f767a00d3dada77b1c53ae88940e2e7"
+checksum = "dd5414fad8e6907dbdd5bc441a50ae8d6e26151a03b1de04d89a5576de61d01f"
dependencies = [
"base64 0.22.1",
"chrono",
"hex",
"indexmap 1.9.3",
- "indexmap 2.12.1",
+ "indexmap 2.14.0",
"schemars 0.9.0",
- "schemars 1.1.0",
+ "schemars 1.2.1",
"serde_core",
"serde_json",
"serde_with_macros",
@@ -4072,14 +4451,14 @@ dependencies = [
[[package]]
name = "serde_with_macros"
-version = "3.16.1"
+version = "3.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52a8e3ca0ca629121f70ab50f95249e5a6f925cc0f6ffe8256c45b728875706c"
+checksum = "d3db8978e608f1fe7357e211969fd9abdcae80bac1ba7a3369bb7eb6b404eb65"
dependencies = [
"darling",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -4101,7 +4480,7 @@ checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -4114,6 +4493,15 @@ dependencies = [
"stable_deref_trait",
]
+[[package]]
+name = "servo_arc"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
+dependencies = [
+ "stable_deref_trait",
+]
+
[[package]]
name = "sha1"
version = "0.10.6"
@@ -4153,18 +4541,19 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
[[package]]
name = "signal-hook-registry"
-version = "1.4.7"
+version = "1.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7664a098b8e616bdfcc2dc0e9ac44eb231eedf41db4e9fe95d8d32ec728dedad"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
dependencies = [
+ "errno",
"libc",
]
[[package]]
name = "simd-adler32"
-version = "0.3.7"
+version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
+checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
[[package]]
name = "simdutf8"
@@ -4180,15 +4569,15 @@ checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
[[package]]
name = "siphasher"
-version = "1.0.1"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
+checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e"
[[package]]
name = "slab"
-version = "0.4.11"
+version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
[[package]]
name = "smallvec"
@@ -4198,34 +4587,34 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
[[package]]
name = "socket2"
-version = "0.6.1"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881"
+checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
dependencies = [
"libc",
- "windows-sys 0.60.2",
+ "windows-sys 0.61.2",
]
[[package]]
name = "softbuffer"
-version = "0.4.6"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18051cdd562e792cad055119e0cdb2cfc137e44e3987532e0f9659a77931bb08"
+checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"
dependencies = [
"bytemuck",
- "cfg_aliases",
- "core-graphics",
- "foreign-types",
"js-sys",
- "log",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
- "objc2-quartz-core 0.2.2",
+ "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.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4254,24 +4643,12 @@ dependencies = [
"system-deps",
]
-[[package]]
-name = "spin"
-version = "0.10.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5fe4ccb98d9c292d56fec89a5e07da7fc4cf0dc11e156b41793132775d3e591"
-
[[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 = "string_cache"
version = "0.8.9"
@@ -4285,24 +4662,69 @@ dependencies = [
"serde",
]
+[[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_codegen"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"
+checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"
+dependencies = [
+ "phf_generator 0.11.3",
+ "phf_shared 0.11.3",
+ "proc-macro2",
+ "quote",
+]
+
+[[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 = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "strum"
+version = "0.27.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf"
+dependencies = [
+ "strum_macros",
+]
+
+[[package]]
+name = "strum_macros"
+version = "0.27.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7"
dependencies = [
- "phf_generator 0.11.3",
- "phf_shared 0.11.3",
+ "heck 0.5.0",
"proc-macro2",
"quote",
+ "syn 2.0.117",
]
-[[package]]
-name = "strsim"
-version = "0.11.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
-
[[package]]
name = "subtle"
version = "2.6.1"
@@ -4333,9 +4755,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.111"
+version = "2.0.117"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
+checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
dependencies = [
"proc-macro2",
"quote",
@@ -4359,7 +4781,7 @@ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -4373,9 +4795,9 @@ dependencies = [
[[package]]
name = "system-configuration"
-version = "0.6.1"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
+checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
dependencies = [
"bitflags 2.11.1",
"core-foundation 0.9.4",
@@ -4407,35 +4829,35 @@ dependencies = [
[[package]]
name = "tao"
-version = "0.34.5"
+version = "0.35.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3a753bdc39c07b192151523a3f77cd0394aa75413802c883a0f6f6a0e5ee2e7"
+checksum = "1cf65722394c2ac443e80120064987f8914ee1d4e4e36e63cdf10f2990f01159"
dependencies = [
"bitflags 2.11.1",
- "block2 0.6.2",
+ "block2",
"core-foundation 0.10.1",
"core-graphics",
"crossbeam-channel",
- "dispatch",
+ "dbus",
+ "dispatch2",
"dlopen2",
"dpi",
"gdkwayland-sys",
"gdkx11-sys",
"gtk",
"jni",
- "lazy_static",
"libc",
"log",
"ndk",
- "ndk-context",
"ndk-sys",
- "objc2 0.6.3",
+ "objc2",
"objc2-app-kit",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
+ "objc2-ui-kit",
"once_cell",
"parking_lot",
+ "percent-encoding",
"raw-window-handle",
- "scopeguard",
"tao-macros",
"unicode-segmentation",
"url",
@@ -4453,7 +4875,7 @@ checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -4471,8 +4893,7 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
[[package]]
name = "tauri"
version = "2.10.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da77cc00fb9028caf5b5d4650f75e31f1ef3693459dfca7f7e506d1ecef0ba2d"
+source = "git+https://github.com/seanaye/tauri?branch=seanaye%2Ffeat%2Fexpose-protocol-handlers#99cf168c53f981029dae098fb6412ce3daa47566"
dependencies = [
"anyhow",
"bytes",
@@ -4490,9 +4911,9 @@ dependencies = [
"log",
"mime",
"muda",
- "objc2 0.6.3",
+ "objc2",
"objc2-app-kit",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
"objc2-ui-kit",
"objc2-web-kit",
"percent-encoding",
@@ -4509,7 +4930,7 @@ dependencies = [
"tauri-runtime",
"tauri-runtime-wry",
"tauri-utils",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tokio",
"tray-icon",
"url",
@@ -4522,8 +4943,7 @@ dependencies = [
[[package]]
name = "tauri-build"
version = "2.5.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4bbc990d1dbf57a8e1c7fa2327f2a614d8b757805603c1b9ba5c81bade09fd4d"
+source = "git+https://github.com/seanaye/tauri?branch=seanaye%2Ffeat%2Fexpose-protocol-handlers#99cf168c53f981029dae098fb6412ce3daa47566"
dependencies = [
"anyhow",
"cargo_toml",
@@ -4537,15 +4957,13 @@ dependencies = [
"serde_json",
"tauri-utils",
"tauri-winres",
- "toml 0.9.8",
"walkdir",
]
[[package]]
name = "tauri-codegen"
version = "2.5.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4a24476afd977c5d5d169f72425868613d82747916dd29e0a357c84c4bd6d29"
+source = "git+https://github.com/seanaye/tauri?branch=seanaye%2Ffeat%2Fexpose-protocol-handlers#99cf168c53f981029dae098fb6412ce3daa47566"
dependencies = [
"base64 0.22.1",
"brotli",
@@ -4559,9 +4977,9 @@ dependencies = [
"serde",
"serde_json",
"sha2",
- "syn 2.0.111",
+ "syn 2.0.117",
"tauri-utils",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"time",
"url",
"uuid",
@@ -4571,22 +4989,21 @@ dependencies = [
[[package]]
name = "tauri-macros"
version = "2.5.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d39b349a98dadaffebb73f0a40dcd1f23c999211e5a2e744403db384d0c33de7"
+source = "git+https://github.com/seanaye/tauri?branch=seanaye%2Ffeat%2Fexpose-protocol-handlers#99cf168c53f981029dae098fb6412ce3daa47566"
dependencies = [
"heck 0.5.0",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
"tauri-codegen",
"tauri-utils",
]
[[package]]
name = "tauri-plugin"
-version = "2.5.2"
+version = "2.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e1d0a4860b7ff570c891e1d2a586bf1ede205ff858fbc305e0b5ae5d14c1377"
+checksum = "ddde7d51c907b940fb573006cdda9a642d6a7c8153657e88f8a5c3c9290cd4aa"
dependencies = [
"anyhow",
"glob",
@@ -4595,7 +5012,7 @@ dependencies = [
"serde",
"serde_json",
"tauri-utils",
- "toml 0.9.8",
+ "toml 0.9.12+spec-1.1.0",
"walkdir",
]
@@ -4612,9 +5029,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-deep-link"
-version = "2.4.5"
+version = "2.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e82759f7c7d51de3cbde51c04b3f2332de52436ed84541182cd8944b04e9e73"
+checksum = "3db49816aee496a9b200d55b55ab6ae73fd50847c79f2fabc7ee20871fa75c95"
dependencies = [
"dunce",
"plist",
@@ -4624,10 +5041,10 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-utils",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tracing",
"url",
- "windows-registry",
+ "windows-registry 0.5.3",
"windows-result 0.3.4",
]
@@ -4640,7 +5057,7 @@ dependencies = [
"dunce",
"glob",
"log",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
"percent-encoding",
"schemars 0.8.22",
"serde",
@@ -4649,8 +5066,8 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-utils",
- "thiserror 2.0.17",
- "toml 0.9.8",
+ "thiserror 2.0.18",
+ "toml 0.9.12+spec-1.1.0",
"url",
]
@@ -4665,7 +5082,7 @@ dependencies = [
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
]
[[package]]
@@ -4685,7 +5102,7 @@ dependencies = [
"tauri",
"tauri-plugin",
"tauri-plugin-fs",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tokio",
"url",
"urlpattern",
@@ -4701,23 +5118,23 @@ dependencies = [
[[package]]
name = "tauri-plugin-log"
-version = "2.7.1"
+version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5709c792b8630290b5d9811a1f8fe983dd925fc87c7fc7f4923616458cd00b6"
+checksum = "7545bd67f070a4500432c826e2e0682146a1d6712aee22a2786490156b574d93"
dependencies = [
"android_logger",
"byte-unit",
"fern",
"log",
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
+ "objc2",
+ "objc2-foundation",
"serde",
"serde_json",
"serde_repr",
"swift-rs",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"time",
"tracing",
]
@@ -4730,13 +5147,13 @@ checksum = "01fc2c5ff41105bd1f7242d8201fdf3efd70749b82fa013a17f2126357d194cc"
dependencies = [
"log",
"notify-rust",
- "rand 0.9.2",
+ "rand 0.9.4",
"serde",
"serde_json",
"serde_repr",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"time",
"url",
]
@@ -4754,21 +5171,21 @@ dependencies = [
[[package]]
name = "tauri-plugin-opener"
-version = "2.5.2"
+version = "2.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c26b72571d25dee25667940027114e60f569fc3974f8cefbe50c2cbc5fd65e3b"
+checksum = "fc624469b06f59f5a29f874bbc61a2ed737c0f9c23ef09855a292c389c42e83f"
dependencies = [
"dunce",
"glob",
"objc2-app-kit",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
"open",
"schemars 0.8.22",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"url",
"windows",
"zbus",
@@ -4789,7 +5206,7 @@ dependencies = [
"sys-locale",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
]
[[package]]
@@ -4801,20 +5218,20 @@ dependencies = [
"serde",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
]
[[package]]
name = "tauri-plugin-single-instance"
-version = "2.3.6"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd707f8c86b4e3004e2c141fa24351f1909ba40ce1b8437e30d5ed5277dd3710"
+checksum = "a33a5b7d78f0dec4406b003ea87c40bf928d801b6fd9323a556172c91d8712c1"
dependencies = [
"serde",
"serde_json",
"tauri",
"tauri-plugin-deep-link",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tracing",
"windows-sys 0.60.2",
"zbus",
@@ -4828,7 +5245,7 @@ dependencies = [
"serde",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
]
[[package]]
@@ -4839,13 +5256,13 @@ dependencies = [
"futures-util",
"http",
"log",
- "rand 0.9.2",
+ "rand 0.9.4",
"rustls",
"serde",
"serde_json",
"tauri",
"tauri-plugin",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"tokio",
"tokio-tungstenite",
]
@@ -4853,22 +5270,21 @@ dependencies = [
[[package]]
name = "tauri-runtime"
version = "2.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2826d79a3297ed08cd6ea7f412644ef58e32969504bc4fbd8d7dbeabc4445ea2"
+source = "git+https://github.com/seanaye/tauri?branch=seanaye%2Ffeat%2Fexpose-protocol-handlers#99cf168c53f981029dae098fb6412ce3daa47566"
dependencies = [
"cookie",
"dpi",
"gtk",
"http",
"jni",
- "objc2 0.6.3",
+ "objc2",
"objc2-ui-kit",
"objc2-web-kit",
"raw-window-handle",
"serde",
"serde_json",
"tauri-utils",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"url",
"webkit2gtk",
"webview2-com",
@@ -4878,14 +5294,13 @@ dependencies = [
[[package]]
name = "tauri-runtime-wry"
version = "2.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e11ea2e6f801d275fdd890d6c9603736012742a1c33b96d0db788c9cdebf7f9e"
+source = "git+https://github.com/seanaye/tauri?branch=seanaye%2Ffeat%2Fexpose-protocol-handlers#99cf168c53f981029dae098fb6412ce3daa47566"
dependencies = [
"gtk",
"http",
"jni",
"log",
- "objc2 0.6.3",
+ "objc2",
"objc2-app-kit",
"once_cell",
"percent-encoding",
@@ -4904,16 +5319,16 @@ dependencies = [
[[package]]
name = "tauri-utils"
version = "2.8.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219a1f983a2af3653f75b5747f76733b0da7ff03069c7a41901a5eb3ace4557d"
+source = "git+https://github.com/seanaye/tauri?branch=seanaye%2Ffeat%2Fexpose-protocol-handlers#99cf168c53f981029dae098fb6412ce3daa47566"
dependencies = [
"anyhow",
"brotli",
"cargo_metadata",
"ctor",
+ "dom_query",
"dunce",
"glob",
- "html5ever",
+ "html5ever 0.29.1",
"http",
"infer",
"json-patch",
@@ -4921,6 +5336,7 @@ dependencies = [
"log",
"memchr",
"phf 0.11.3",
+ "plist",
"proc-macro2",
"quote",
"regex",
@@ -4931,8 +5347,8 @@ dependencies = [
"serde_json",
"serde_with",
"swift-rs",
- "thiserror 2.0.17",
- "toml 0.9.8",
+ "thiserror 2.0.18",
+ "toml 1.1.2+spec-1.1.0",
"url",
"urlpattern",
"uuid",
@@ -4947,7 +5363,7 @@ checksum = "1087b111fe2b005e42dbdc1990fc18593234238d47453b0c99b7de1c9ab2c1e0"
dependencies = [
"dunce",
"embed-resource",
- "toml 0.9.8",
+ "toml 0.9.12+spec-1.1.0",
]
[[package]]
@@ -4957,22 +5373,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b1e66e07de489fe43a46678dd0b8df65e0c973909df1b60ba33874e297ba9b9"
dependencies = [
"quick-xml 0.37.5",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"windows",
"windows-version",
]
[[package]]
name = "tempfile"
-version = "3.23.0"
+version = "3.27.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d31c77bdf42a745371d260a26ca7163f1e0924b64afa0b688e61b5a9fa02f16"
+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
dependencies = [
"fastrand",
- "getrandom 0.3.4",
+ "getrandom 0.4.2",
"once_cell",
"rustix",
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -4986,6 +5402,16 @@ dependencies = [
"utf-8",
]
+[[package]]
+name = "tendril"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24"
+dependencies = [
+ "new_debug_unreachable",
+ "utf-8",
+]
+
[[package]]
name = "thiserror"
version = "1.0.69"
@@ -4997,11 +5423,11 @@ dependencies = [
[[package]]
name = "thiserror"
-version = "2.0.17"
+version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
+checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
dependencies = [
- "thiserror-impl 2.0.17",
+ "thiserror-impl 2.0.18",
]
[[package]]
@@ -5012,18 +5438,18 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "thiserror-impl"
-version = "2.0.17"
+version = "2.0.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
+checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -5079,9 +5505,9 @@ dependencies = [
[[package]]
name = "tinystr"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869"
+checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
dependencies = [
"displaydoc",
"zerovec",
@@ -5089,9 +5515,9 @@ dependencies = [
[[package]]
name = "tinyvec"
-version = "1.10.0"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
+checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3"
dependencies = [
"tinyvec_macros",
]
@@ -5104,9 +5530,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
-version = "1.48.0"
+version = "1.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff360e02eab121e0bc37a2d3b4d4dc622e6eda3a8e5253d5435ecf5bd4c68408"
+checksum = "a91135f59b1cbf38c91e73cf3386fca9bb77915c45ce2771460c9d92f0f3d776"
dependencies = [
"bytes",
"libc",
@@ -5121,13 +5547,13 @@ dependencies = [
[[package]]
name = "tokio-macros"
-version = "2.6.0"
+version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5"
+checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -5158,9 +5584,9 @@ dependencies = [
[[package]]
name = "tokio-util"
-version = "0.7.17"
+version = "0.7.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2efa149fe76073d6e8fd97ef4f4eca7b67f599660115591483572e406e165594"
+checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
dependencies = [
"bytes",
"futures-core",
@@ -5183,17 +5609,32 @@ dependencies = [
[[package]]
name = "toml"
-version = "0.9.8"
+version = "0.9.12+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863"
+dependencies = [
+ "indexmap 2.14.0",
+ "serde_core",
+ "serde_spanned 1.1.1",
+ "toml_datetime 0.7.5+spec-1.1.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 0.7.15",
+]
+
+[[package]]
+name = "toml"
+version = "1.1.2+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0dc8b1fb61449e27716ec0e1bdf0f6b8f3e8f6b05391e8497b8b6d7804ea6d8"
+checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee"
dependencies = [
- "indexmap 2.12.1",
+ "indexmap 2.14.0",
"serde_core",
- "serde_spanned 1.0.3",
- "toml_datetime 0.7.3",
+ "serde_spanned 1.1.1",
+ "toml_datetime 1.1.1+spec-1.1.0",
"toml_parser",
"toml_writer",
- "winnow 0.7.14",
+ "winnow 1.0.1",
]
[[package]]
@@ -5207,9 +5648,18 @@ dependencies = [
[[package]]
name = "toml_datetime"
-version = "0.7.3"
+version = "0.7.5+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.1+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2cdb639ebbc97961c51720f858597f7f24c4fc295327923af55b74c3c724533"
+checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
dependencies = [
"serde_core",
]
@@ -5220,7 +5670,7 @@ version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap 2.12.1",
+ "indexmap 2.14.0",
"toml_datetime 0.6.3",
"winnow 0.5.40",
]
@@ -5231,7 +5681,7 @@ version = "0.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
dependencies = [
- "indexmap 2.12.1",
+ "indexmap 2.14.0",
"serde",
"serde_spanned 0.6.9",
"toml_datetime 0.6.3",
@@ -5240,36 +5690,36 @@ dependencies = [
[[package]]
name = "toml_edit"
-version = "0.23.7"
+version = "0.25.11+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6485ef6d0d9b5d0ec17244ff7eb05310113c3f316f2d14200d4de56b3cb98f8d"
+checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b"
dependencies = [
- "indexmap 2.12.1",
- "toml_datetime 0.7.3",
+ "indexmap 2.14.0",
+ "toml_datetime 1.1.1+spec-1.1.0",
"toml_parser",
- "winnow 0.7.14",
+ "winnow 1.0.1",
]
[[package]]
name = "toml_parser"
-version = "1.0.4"
+version = "1.1.2+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0cbe268d35bdb4bb5a56a2de88d0ad0eb70af5384a99d648cd4b3d04039800e"
+checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"
dependencies = [
- "winnow 0.7.14",
+ "winnow 1.0.1",
]
[[package]]
name = "toml_writer"
-version = "1.0.4"
+version = "1.1.1+spec-1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df8b2b54733674ad286d16267dcfc7a71ed5c776e4ac7aa3c3e2561f7c637bf2"
+checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db"
[[package]]
name = "tower"
-version = "0.5.2"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
dependencies = [
"futures-core",
"futures-util",
@@ -5312,9 +5762,9 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
[[package]]
name = "tracing"
-version = "0.1.43"
+version = "0.1.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2d15d90a0b5c19378952d479dc858407149d7bb45a14de0142f6c534b16fc647"
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
dependencies = [
"pin-project-lite",
"tracing-attributes",
@@ -5329,14 +5779,14 @@ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "tracing-core"
-version = "0.1.35"
+version = "0.1.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a04e24fab5c89c6a36eb8558c9656f30d81de51dfa4d3b45f26b21d61fa0a6c"
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
dependencies = [
"once_cell",
"valuable",
@@ -5367,9 +5817,9 @@ dependencies = [
[[package]]
name = "tracing-subscriber"
-version = "0.3.22"
+version = "0.3.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e"
+checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
dependencies = [
"matchers",
"nu-ansi-term",
@@ -5385,23 +5835,23 @@ dependencies = [
[[package]]
name = "tray-icon"
-version = "0.21.2"
+version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3d5572781bee8e3f994d7467084e1b1fd7a93ce66bd480f8156ba89dee55a2b"
+checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c"
dependencies = [
"crossbeam-channel",
"dirs",
"libappindicator",
"muda",
- "objc2 0.6.3",
+ "objc2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-core-graphics",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
"once_cell",
"png",
"serde",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"windows-sys 0.60.2",
]
@@ -5410,9 +5860,6 @@ name = "triomphe"
version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd69c5aa8f924c7519d6372789a74eac5b94fb0f8fcf0d4a97eb0bfc3e785f39"
-dependencies = [
- "unsize",
-]
[[package]]
name = "try-lock"
@@ -5431,11 +5878,11 @@ dependencies = [
"http",
"httparse",
"log",
- "rand 0.9.2",
+ "rand 0.9.4",
"rustls",
"rustls-pki-types",
"sha1",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"utf-8",
]
@@ -5453,13 +5900,13 @@ checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
[[package]]
name = "uds_windows"
-version = "1.1.0"
+version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9"
+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "winapi",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5503,26 +5950,29 @@ dependencies = [
"unic-common",
]
+[[package]]
+name = "unicase"
+version = "2.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142"
+
[[package]]
name = "unicode-ident"
-version = "1.0.22"
+version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
[[package]]
name = "unicode-segmentation"
-version = "1.12.0"
+version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
+checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
[[package]]
-name = "unsize"
-version = "1.1.0"
+name = "unicode-xid"
+version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fa7a7a734c1a5664a662ddcea0b6c9472a21da8888c957c7f1eaa09dba7a939"
-dependencies = [
- "autocfg",
-]
+checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
[[package]]
name = "untrusted"
@@ -5532,14 +5982,15 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "url"
-version = "2.5.7"
+version = "2.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"
+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
dependencies = [
"form_urlencoded",
"idna",
"percent-encoding",
"serde",
+ "serde_derive",
]
[[package]]
@@ -5580,11 +6031,11 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
[[package]]
name = "uuid"
-version = "1.19.0"
+version = "1.23.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2e054861b4bd027cd373e18e8d8d8e6548085000e41290d95ce0c373a654b4a"
+checksum = "5ac8b6f42ead25368cf5b098aeb3dc8a1a2c05a3eee8a9a1a68c640edbfc79d9"
dependencies = [
- "getrandom 0.3.4",
+ "getrandom 0.4.2",
"js-sys",
"serde_core",
"wasm-bindgen",
@@ -5667,9 +6118,18 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
[[package]]
name = "wasip2"
-version = "1.0.1+wasi-0.2.4"
+version = "1.0.2+wasi-0.2.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"
+dependencies = [
+ "wit-bindgen",
+]
+
+[[package]]
+name = "wasip3"
+version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
+checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
dependencies = [
"wit-bindgen",
]
@@ -5716,7 +6176,7 @@ dependencies = [
"bumpalo",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
"wasm-bindgen-shared",
]
@@ -5729,6 +6189,28 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "wasm-encoder"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
+dependencies = [
+ "leb128fmt",
+ "wasmparser",
+]
+
+[[package]]
+name = "wasm-metadata"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
+dependencies = [
+ "anyhow",
+ "indexmap 2.14.0",
+ "wasm-encoder",
+ "wasmparser",
+]
+
[[package]]
name = "wasm-streams"
version = "0.5.0"
@@ -5742,6 +6224,18 @@ dependencies = [
"web-sys",
]
+[[package]]
+name = "wasmparser"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
+dependencies = [
+ "bitflags 2.11.1",
+ "hashbrown 0.15.5",
+ "indexmap 2.14.0",
+ "semver",
+]
+
[[package]]
name = "web-sys"
version = "0.3.95"
@@ -5762,6 +6256,18 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "web_atoms"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57a9779e9f04d2ac1ce317aee707aa2f6b773afba7b931222bff6983843b1576"
+dependencies = [
+ "phf 0.13.1",
+ "phf_codegen 0.13.1",
+ "string_cache 0.9.0",
+ "string_cache_codegen 0.6.1",
+]
+
[[package]]
name = "webkit2gtk"
version = "2.0.2"
@@ -5821,23 +6327,23 @@ version = "0.26.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"
dependencies = [
- "webpki-roots 1.0.4",
+ "webpki-roots 1.0.6",
]
[[package]]
name = "webpki-roots"
-version = "1.0.4"
+version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b2878ef029c47c6e8cf779119f20fcf52bde7ad42a731b2a304bc221df17571e"
+checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed"
dependencies = [
"rustls-pki-types",
]
[[package]]
name = "webview2-com"
-version = "0.38.0"
+version = "0.38.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4ba622a989277ef3886dd5afb3e280e3dd6d974b766118950a08f8f678ad6a4"
+checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a"
dependencies = [
"webview2-com-macros",
"webview2-com-sys",
@@ -5849,22 +6355,22 @@ dependencies = [
[[package]]
name = "webview2-com-macros"
-version = "0.8.0"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d228f15bba3b9d56dde8bddbee66fa24545bd17b48d5128ccf4a8742b18e431"
+checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "webview2-com-sys"
-version = "0.38.0"
+version = "0.38.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "36695906a1b53a3bf5c4289621efedac12b73eeb0b89e7e1a89b517302d5d75c"
+checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c"
dependencies = [
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"windows",
"windows-core 0.61.2",
]
@@ -5891,7 +6397,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.59.0",
+ "windows-sys 0.61.2",
]
[[package]]
@@ -5906,10 +6412,10 @@ version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"
dependencies = [
- "objc2 0.6.3",
+ "objc2",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
"raw-window-handle",
"windows-sys 0.59.0",
"windows-version",
@@ -5982,7 +6488,7 @@ checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -5993,7 +6499,7 @@ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
@@ -6029,6 +6535,17 @@ dependencies = [
"windows-strings 0.4.2",
]
+[[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.3.4"
@@ -6325,9 +6842,18 @@ dependencies = [
[[package]]
name = "winnow"
-version = "0.7.14"
+version = "0.7.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winnow"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829"
+checksum = "09dac053f1cd375980747450bfc7250c264eaae0583872e845c0c7cd578872b5"
dependencies = [
"memchr",
]
@@ -6344,42 +6870,123 @@ dependencies = [
[[package]]
name = "wit-bindgen"
-version = "0.46.0"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
+dependencies = [
+ "wit-bindgen-rust-macro",
+]
+
+[[package]]
+name = "wit-bindgen-core"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
+dependencies = [
+ "anyhow",
+ "heck 0.5.0",
+ "wit-parser",
+]
+
+[[package]]
+name = "wit-bindgen-rust"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
+dependencies = [
+ "anyhow",
+ "heck 0.5.0",
+ "indexmap 2.14.0",
+ "prettyplease",
+ "syn 2.0.117",
+ "wasm-metadata",
+ "wit-bindgen-core",
+ "wit-component",
+]
+
+[[package]]
+name = "wit-bindgen-rust-macro"
+version = "0.51.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
+dependencies = [
+ "anyhow",
+ "prettyplease",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+ "wit-bindgen-core",
+ "wit-bindgen-rust",
+]
+
+[[package]]
+name = "wit-component"
+version = "0.244.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
+dependencies = [
+ "anyhow",
+ "bitflags 2.11.1",
+ "indexmap 2.14.0",
+ "log",
+ "serde",
+ "serde_derive",
+ "serde_json",
+ "wasm-encoder",
+ "wasm-metadata",
+ "wasmparser",
+ "wit-parser",
+]
+
+[[package]]
+name = "wit-parser"
+version = "0.244.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
+checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
+dependencies = [
+ "anyhow",
+ "id-arena",
+ "indexmap 2.14.0",
+ "log",
+ "semver",
+ "serde",
+ "serde_derive",
+ "serde_json",
+ "unicode-xid",
+ "wasmparser",
+]
[[package]]
name = "writeable"
-version = "0.6.2"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"
+checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
[[package]]
name = "wry"
-version = "0.54.2"
+version = "0.55.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb26159b420aa77684589a744ae9a9461a95395b848764ad12290a14d960a11a"
+checksum = "3013fd6116aac351dd2e18f349b28b2cfef3a5ff3253a9d0ce2d7193bb1b4429"
dependencies = [
"base64 0.22.1",
- "block2 0.6.2",
+ "block2",
"cookie",
"crossbeam-channel",
"dirs",
+ "dom_query",
"dpi",
"dunce",
"gdkx11",
"gtk",
- "html5ever",
"http",
"javascriptcore-rs",
"jni",
- "kuchikiki",
"libc",
"ndk",
- "objc2 0.6.3",
+ "objc2",
"objc2-app-kit",
"objc2-core-foundation",
- "objc2-foundation 0.3.2",
+ "objc2-foundation",
"objc2-ui-kit",
"objc2-web-kit",
"once_cell",
@@ -6388,7 +6995,7 @@ dependencies = [
"sha2",
"soup3",
"tao-macros",
- "thiserror 2.0.17",
+ "thiserror 2.0.18",
"url",
"webkit2gtk",
"webkit2gtk-sys",
@@ -6431,9 +7038,9 @@ dependencies = [
[[package]]
name = "yoke"
-version = "0.8.1"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954"
+checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
dependencies = [
"stable_deref_trait",
"yoke-derive",
@@ -6442,21 +7049,21 @@ dependencies = [
[[package]]
name = "yoke-derive"
-version = "0.8.1"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d"
+checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
"synstructure",
]
[[package]]
name = "zbus"
-version = "5.12.0"
+version = "5.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b622b18155f7a93d1cd2dc8c01d2d6a44e08fb9ebb7b3f9e6ed101488bad6c91"
+checksum = "ca82f95dbd3943a40a53cfded6c2d0a2ca26192011846a1810c4256ef92c60bc"
dependencies = [
"async-broadcast",
"async-executor",
@@ -6472,15 +7079,16 @@ dependencies = [
"futures-core",
"futures-lite",
"hex",
- "nix",
+ "libc",
"ordered-stream",
+ "rustix",
"serde",
"serde_repr",
"tracing",
"uds_windows",
"uuid",
"windows-sys 0.61.2",
- "winnow 0.7.14",
+ "winnow 0.7.15",
"zbus_macros",
"zbus_names",
"zvariant",
@@ -6488,14 +7096,14 @@ dependencies = [
[[package]]
name = "zbus_macros"
-version = "5.12.0"
+version = "5.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1cdb94821ca8a87ca9c298b5d1cbd80e2a8b67115d99f6e4551ac49e42b6a314"
+checksum = "897e79616e84aac4b2c46e9132a4f63b93105d54fe8c0e8f6bffc21fa8d49222"
dependencies = [
- "proc-macro-crate 3.4.0",
+ "proc-macro-crate 3.5.0",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
"zbus_names",
"zvariant",
"zvariant_utils",
@@ -6503,54 +7111,53 @@ dependencies = [
[[package]]
name = "zbus_names"
-version = "4.2.0"
+version = "4.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7be68e64bf6ce8db94f63e72f0c7eb9a60d733f7e0499e628dfab0f84d6bcb97"
+checksum = "ffd8af6d5b78619bab301ff3c560a5bd22426150253db278f164d6cf3b72c50f"
dependencies = [
"serde",
- "static_assertions",
- "winnow 0.7.14",
+ "winnow 0.7.15",
"zvariant",
]
[[package]]
name = "zerocopy"
-version = "0.8.31"
+version = "0.8.48"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd74ec98b9250adb3ca554bdde269adf631549f51d8a8f8f0a10b50f1cb298c3"
+checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.31"
+version = "0.8.48"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8a8d209fdf45cf5138cbb5a506f6b52522a25afccc534d1475dad8e31105c6a"
+checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
]
[[package]]
name = "zerofrom"
-version = "0.1.6"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
+checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df"
dependencies = [
"zerofrom-derive",
]
[[package]]
name = "zerofrom-derive"
-version = "0.1.6"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
+checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
"synstructure",
]
@@ -6559,12 +7166,26 @@ name = "zeroize"
version = "1.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
+dependencies = [
+ "zeroize_derive",
+]
+
+[[package]]
+name = "zeroize_derive"
+version = "1.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.117",
+]
[[package]]
name = "zerotrie"
-version = "0.2.3"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851"
+checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
dependencies = [
"displaydoc",
"yoke",
@@ -6573,9 +7194,9 @@ dependencies = [
[[package]]
name = "zerovec"
-version = "0.11.5"
+version = "0.11.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002"
+checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
dependencies = [
"yoke",
"zerofrom",
@@ -6584,51 +7205,130 @@ dependencies = [
[[package]]
name = "zerovec-derive"
-version = "0.11.2"
+version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3"
+checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
+]
+
+[[package]]
+name = "zip"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb2a05c7c36fde6c09b08576c9f7fb4cda705990f73b58fe011abf7dfb24168b"
+dependencies = [
+ "aes",
+ "arbitrary",
+ "bzip2",
+ "constant_time_eq",
+ "crc32fast",
+ "deflate64",
+ "flate2",
+ "getrandom 0.3.4",
+ "hmac",
+ "indexmap 2.14.0",
+ "lzma-rust2",
+ "memchr",
+ "pbkdf2",
+ "ppmd-rust",
+ "sha1",
+ "time",
+ "zeroize",
+ "zopfli",
+ "zstd",
+]
+
+[[package]]
+name = "zlib-rs"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3be3d40e40a133f9c916ee3f9f4fa2d9d63435b5fbe1bfc6d9dae0aa0ada1513"
+
+[[package]]
+name = "zmij"
+version = "1.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
+
+[[package]]
+name = "zopfli"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249"
+dependencies = [
+ "bumpalo",
+ "crc32fast",
+ "log",
+ "simd-adler32",
+]
+
+[[package]]
+name = "zstd"
+version = "0.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"
+dependencies = [
+ "zstd-safe",
+]
+
+[[package]]
+name = "zstd-safe"
+version = "7.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d"
+dependencies = [
+ "zstd-sys",
+]
+
+[[package]]
+name = "zstd-sys"
+version = "2.0.16+zstd.1.5.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748"
+dependencies = [
+ "cc",
+ "pkg-config",
]
[[package]]
name = "zvariant"
-version = "5.8.0"
+version = "5.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2be61892e4f2b1772727be11630a62664a1826b62efa43a6fe7449521cb8744c"
+checksum = "5708299b21903bbe348e94729f22c49c55d04720a004aa350f1f9c122fd2540b"
dependencies = [
"endi",
"enumflags2",
"serde",
- "winnow 0.7.14",
+ "winnow 0.7.15",
"zvariant_derive",
"zvariant_utils",
]
[[package]]
name = "zvariant_derive"
-version = "5.8.0"
+version = "5.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "da58575a1b2b20766513b1ec59d8e2e68db2745379f961f86650655e862d2006"
+checksum = "5b59b012ebe9c46656f9cc08d8da8b4c726510aef12559da3e5f1bf72780752c"
dependencies = [
- "proc-macro-crate 3.4.0",
+ "proc-macro-crate 3.5.0",
"proc-macro2",
"quote",
- "syn 2.0.111",
+ "syn 2.0.117",
"zvariant_utils",
]
[[package]]
name = "zvariant_utils"
-version = "3.2.1"
+version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c6949d142f89f6916deca2232cf26a8afacf2b9fdc35ce766105e104478be599"
+checksum = "f75c23a64ef8f40f13a6989991e643554d9bef1d682a281160cf0c1bc389c5e9"
dependencies = [
"proc-macro2",
"quote",
"serde",
- "syn 2.0.111",
- "winnow 0.7.14",
+ "syn 2.0.117",
+ "winnow 0.7.15",
]
diff --git a/js/app/tauri/Cargo.toml b/js/app/tauri/Cargo.toml
index 1b2edae7bd..01d7527b36 100644
--- a/js/app/tauri/Cargo.toml
+++ b/js/app/tauri/Cargo.toml
@@ -1,12 +1,30 @@
[workspace]
+members = [
+ "input_accessory_plugin",
+ "logger",
+ "macro_bundle_updater_plugin",
+ "navigation_plugin",
+ "src-tauri",
+]
+package.edition = "2024"
resolver = "2"
-members = ["src-tauri", "navigation_plugin", "logger", "input_accessory_plugin"]
[workspace.dependencies]
-rootcause = "0.10"
-tracing = "0.1"
-url = "2.5.4"
-anyhow = "1"
+reqwest = "0.13"
+rootcause = "0.12"
+semver = "1"
serde = "1"
-tauri = { version = "2.7.0" }
+tauri = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
thiserror = "2"
+tokio = "1"
+tracing = "0.1"
+url = "2.5.4"
+
+[patch.crates-io]
+tauri = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
+tauri-runtime = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
+tauri-runtime-wry = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
+tauri-utils = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
+tauri-macros = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
+tauri-codegen = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
+tauri-build = { git = "https://github.com/seanaye/tauri", branch = "seanaye/feat/expose-protocol-handlers" }
diff --git a/js/app/tauri/logger/Cargo.toml b/js/app/tauri/logger/Cargo.toml
index 828408de29..bf3449acdd 100644
--- a/js/app/tauri/logger/Cargo.toml
+++ b/js/app/tauri/logger/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "logger"
version = "0.1.0"
-edition = "2024"
+edition.workspace = true
[dependencies]
tracing = { workspace = true }
diff --git a/js/app/tauri/macro_bundle_updater_plugin/Cargo.toml b/js/app/tauri/macro_bundle_updater_plugin/Cargo.toml
new file mode 100644
index 0000000000..23b17ede1e
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+edition.workspace = true
+name = "macro_bundle_updater_plugin"
+version = "0.1.0"
+
+[dependencies]
+rootcause = { workspace = true }
+futures = { version = "0.3" }
+digest = "0.10"
+reqwest = { workspace = true, features = ["json", "stream"] }
+sha2 = "0.10"
+semver = { workspace = true, features = ["serde"] }
+serde = { workspace = true, features = ["derive"] }
+serde_json = "1"
+strum = { version = "0.27", features = ["derive"] }
+tauri = { workspace = true }
+thiserror = { workspace = true }
+tokio = { workspace = true, features = ["fs", "sync"] }
+tracing = { workspace = true }
+url = { workspace = true }
+zip = "6"
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/domain.rs b/js/app/tauri/macro_bundle_updater_plugin/src/domain.rs
new file mode 100644
index 0000000000..901e625fda
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/domain.rs
@@ -0,0 +1,3 @@
+pub mod models;
+pub mod ports;
+pub mod service;
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/domain/models.rs b/js/app/tauri/macro_bundle_updater_plugin/src/domain/models.rs
new file mode 100644
index 0000000000..ca20907eca
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/domain/models.rs
@@ -0,0 +1,267 @@
+use serde::Deserialize;
+use std::path::{Path, PathBuf};
+use strum::IntoStaticStr;
+use thiserror::Error;
+use tokio::sync::mpsc::{Receiver, channel};
+use url::Url;
+
+/// the bounded size of mpsc channels
+const MPSC_CHAN_SIZE: usize = 10;
+
+#[derive(Debug, Clone)]
+pub struct AppInfo {
+ pub current_version: semver::Version,
+ pub arch: Arch,
+ pub target: Target,
+}
+
+/// The possible input desktop operating systems
+/// See https://v2.tauri.app/plugin/updater/#dynamic-update-server
+#[derive(Debug, Clone, Copy, IntoStaticStr)]
+#[strum(serialize_all = "lowercase")]
+pub enum Target {
+ /// the requesting client is on linux
+ Linux,
+ /// the requesting client is on Windows
+ Windows,
+ /// the requesting client is on Darwin/MacOS
+ Darwin,
+ /// the requesting client is on ios
+ Ios,
+ /// the requesting client is on android
+ Android,
+}
+
+/// The possible input architechtures
+/// See https://v2.tauri.app/plugin/updater/#dynamic-update-server
+#[derive(Debug, Clone, Copy, IntoStaticStr)]
+#[strum(serialize_all = "lowercase")]
+pub enum Arch {
+ /// the x86 architecture
+ X86_64,
+ /// this is an old and mostly deprecated system architecture
+ /// but it technically could be sent
+ I686,
+ /// most phones and apple devices use this arch
+ Aarch64,
+ /// predecessor to the more modern arm architecture
+ Armv7,
+}
+
+/// a struct which indicates how to update only the javascript bundle of the application
+#[derive(Debug, Clone, Deserialize)]
+#[non_exhaustive]
+pub struct BundleUpdate {
+ /// the version that we are going to update to
+ pub version: semver::Version,
+ /// some optional notes about the update
+ pub notes: Option<String>,
+ /// the fully qualified Url where the update bundle exists
+ pub url: Url,
+ /// the expected SHA-256 hex digest of the downloaded zip file
+ pub checksum: String,
+}
+
+impl BundleUpdate {
+ pub fn into_download_request<P: AsRef<Path>>(
+ self,
+ destination: P,
+ ) -> (DownloadBundleRequest<P>, Receiver<ProgressPercentage>) {
+ let (tx, rx) = channel(MPSC_CHAN_SIZE);
+ (
+ DownloadBundleRequest {
+ url: self.url,
+ destination,
+ on_progress: tx,
+ },
+ rx,
+ )
+ }
+}
+
+pub struct Progress {
+ numerator: usize,
+ denominator: usize,
+}
+
+impl Progress {
+ pub fn from_total(total: usize) -> Self {
+ Progress {
+ numerator: 0,
+ denominator: total,
+ }
+ }
+
+ pub fn inc_by(&mut self, step: usize) {
+ self.numerator += step;
+ }
+
+ pub fn set(&mut self, numerator: usize) {
+ self.numerator = numerator;
+ }
+
+ pub fn percentage(&self) -> ProgressPercentage {
+ if self.denominator == 0 {
+ return ProgressPercentage(0.0);
+ }
+ let pct = (self.numerator as f64 / self.denominator as f64) * 100.0;
+ ProgressPercentage(pct.clamp(0.0, 100.0))
+ }
+}
+
+/// represents a [Progress] as a percentage
+/// guaranteed to be (0..=100)
+#[derive(Debug, Clone, Copy, Default)]
+pub struct ProgressPercentage(f64);
+
+impl ProgressPercentage {
+ /// 100% progress
+ pub fn complete() -> Self {
+ Self(100.0)
+ }
+
+ pub fn value(self) -> f64 {
+ self.0
+ }
+}
+
+#[non_exhaustive]
+pub struct DownloadBundleRequest<P> {
+ pub url: Url,
+ pub destination: P,
+ pub on_progress: tokio::sync::mpsc::Sender<ProgressPercentage>,
+}
+
+#[derive(Debug, Error)]
+pub enum DownloadBundleError {
+ #[error("An error occurred reading the file")]
+ FileError,
+ #[error("An unknown error occurred")]
+ OtherError,
+}
+
+#[non_exhaustive]
+pub struct UnzipRequest {
+ /// the path of the zip file
+ pub archive_path: PathBuf,
+ /// the path the zip should be extracted to
+ pub archive_target: PathBuf,
+ /// a sender for the progress of the extraction
+ pub on_progress: tokio::sync::mpsc::Sender<ProgressPercentage>,
+}
+
+impl UnzipRequest {
+ pub fn new(
+ archive_path: PathBuf,
+ archive_target: PathBuf,
+ ) -> (Self, Receiver<ProgressPercentage>) {
+ let (tx, rx) = channel(MPSC_CHAN_SIZE);
+ (
+ UnzipRequest {
+ archive_path,
+ archive_target,
+ on_progress: tx,
+ },
+ rx,
+ )
+ }
+}
+
+#[derive(Debug, Error)]
+pub enum UnzipError {
+ #[error("Could not find the archive at {path}")]
+ ArchiveNotFound { path: PathBuf },
+ #[error("Checksum mismatch: expected {expected}, got {actual}")]
+ ChecksumMismatch { expected: String, actual: String },
+ #[error(transparent)]
+ IoErr(#[from] std::io::Error),
+ #[error("{report}")]
+ Other { report: rootcause::Report },
+}
+
+impl From<rootcause::Report> for UnzipError {
+ fn from(report: rootcause::Report) -> Self {
+ Self::Other { report }
+ }
+}
+
+#[derive(Debug, Error)]
+pub enum UpdateError {
+ #[error("Failed to download the update")]
+ DownloadErr,
+ #[error("Failed to unzip the update")]
+ Unzip,
+ #[error("Failed to grant permission to update")]
+ GrantErr,
+ #[error("An io error occurred")]
+ IoErr,
+ #[error("An unknown error occurred")]
+ Other,
+}
+
+/// denotes that an update has been found and we are requesting approval
+#[derive(Debug, Clone, Copy)]
+pub struct UpdateRequested(());
+/// denotes that an update was approved via an [UpdateRequested]
+#[derive(Debug, Clone)]
+pub struct UpdateGranted(());
+
+/// denotes that an update was denied via an [UpdateRequest]
+#[derive(Debug, Clone, Copy)]
+pub struct UpdateDenied(());
+
+#[derive(Debug, Clone)]
+pub enum UpdateApproval {
+ Granted(UpdateGranted),
+ Denied(UpdateDenied),
+}
+
+impl UpdateRequested {
+ pub(crate) fn new_request() -> Self {
+ UpdateRequested(())
+ }
+
+ pub fn grant(self) -> UpdateGranted {
+ UpdateGranted(())
+ }
+
+ pub fn deny(self) -> UpdateDenied {
+ UpdateDenied(())
+ }
+}
+
+#[derive(Debug, Clone)]
+pub struct UpdateFoundStatus {
+ pub request: UpdateRequested,
+ pub bundle: BundleUpdate,
+}
+
+#[derive(Debug, Clone)]
+pub struct UpdateDownloadingStatus {
+ pub grant: UpdateGranted,
+ pub update: BundleUpdate,
+ pub progress: ProgressPercentage,
+}
+
+#[derive(Debug, Clone)]
+pub struct UnzipStatus {
+ pub zip_filename: PathBuf,
+ pub expected_checksum: String,
+ pub progress: ProgressPercentage,
+}
+
+#[derive(Debug, Clone)]
+pub struct CompletedStatus {
+ pub entrypoint: PathBuf,
+}
+
+#[derive(Debug, Clone)]
+pub enum UpdateStatus {
+ Idle,
+ CheckingForDownload(AppInfo),
+ UpdateFound(UpdateFoundStatus),
+ NoUpdateNeeded,
+ DownloadingBundle(UpdateDownloadingStatus),
+ UnzippingBundle(UnzipStatus),
+ Completed(CompletedStatus),
+}
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/domain/ports.rs b/js/app/tauri/macro_bundle_updater_plugin/src/domain/ports.rs
new file mode 100644
index 0000000000..22d7c7b0a2
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/domain/ports.rs
@@ -0,0 +1,47 @@
+use rootcause::Report;
+
+use crate::domain::models::{
+ AppInfo, BundleUpdate, DownloadBundleError, DownloadBundleRequest, UnzipError, UnzipRequest,
+ UpdateApproval, UpdateError, UpdateStatus,
+};
+use std::path::{Path, PathBuf};
+
+pub trait UpdateRepo: Send + Sync + 'static {
+ fn check_for_update(
+ &self,
+ request: AppInfo,
+ ) -> impl Future<Output = Result<Option<BundleUpdate>, rootcause::Report>> + Send;
+
+ fn get_update_bundle<P: AsRef<Path> + Send>(
+ &self,
+ request: DownloadBundleRequest<P>,
+ ) -> impl Future<Output = Result<(), Report<DownloadBundleError>>> + Send;
+}
+
+pub trait FsRepo: Send + Sync + 'static {
+ fn verify_checksum<P: AsRef<Path> + Send>(
+ &self,
+ path: P,
+ expected: &str,
+ ) -> impl Future<Output = Result<(), UnzipError>> + Send;
+
+ fn unzip(
+ &self,
+ request: UnzipRequest,
+ ) -> impl Future<Output = Result<PathBuf, UnzipError>> + Send;
+
+ fn create_dir_all<P: AsRef<Path> + Send>(
+ &self,
+ path: P,
+ ) -> impl Future<Output = Result<(), std::io::Error>> + Send;
+}
+
+pub trait SystemQuery: Send + Sync + 'static {
+ fn get_system_info(&self) -> impl Future<Output = Result<AppInfo, rootcause::Report>> + Send;
+ fn get_update_dir(&self) -> impl Future<Output = Result<PathBuf, std::io::Error>> + Send;
+}
+
+pub trait AutoUpdateService: 'static {
+ fn status(&self) -> &tokio::sync::watch::Receiver<Result<UpdateStatus, Report<UpdateError>>>;
+ fn grant_or_deny(&mut self, grant: UpdateApproval) -> Result<(), Report>;
+}
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/domain/service.rs b/js/app/tauri/macro_bundle_updater_plugin/src/domain/service.rs
new file mode 100644
index 0000000000..a8fc28b46d
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/domain/service.rs
@@ -0,0 +1,243 @@
+use crate::domain::{
+ models::{
+ CompletedStatus, ProgressPercentage, UnzipRequest, UnzipStatus, UpdateApproval,
+ UpdateDownloadingStatus, UpdateError, UpdateFoundStatus, UpdateRequested, UpdateStatus,
+ },
+ ports::{AutoUpdateService, FsRepo, SystemQuery, UpdateRepo},
+};
+use rootcause::{Report, prelude::ResultExt, report};
+use semver::Version;
+use std::path::PathBuf;
+
+pub struct Service {
+ handle: WorkerHandle,
+}
+
+struct Worker<U, Fs, Q> {
+ update_repo: U,
+ fs_repo: Fs,
+ system_query: Q,
+ status_tx: tokio::sync::watch::Sender<Result<UpdateStatus, Report<UpdateError>>>,
+ grant_rx: Option<tokio::sync::oneshot::Receiver<UpdateApproval>>,
+}
+
+struct WorkerHandle {
+ status_rx: tokio::sync::watch::Receiver<Result<UpdateStatus, Report<UpdateError>>>,
+ grant_tx: Option<tokio::sync::oneshot::Sender<UpdateApproval>>,
+}
+
+/// the name of the app entrypoint
+const ENTRYPOINT_NAME: &str = "index.html";
+
+impl<U: UpdateRepo, Fs: FsRepo, Q: SystemQuery> Worker<U, Fs, Q> {
+ fn new_handle(update_repo: U, fs_repo: Fs, system_query: Q) -> WorkerHandle {
+ let (status_tx, status_rx) = tokio::sync::watch::channel(Ok(UpdateStatus::Idle));
+ let (grant_tx, grant_rx) = tokio::sync::oneshot::channel();
+
+ Worker {
+ update_repo,
+ fs_repo,
+ system_query,
+ status_tx,
+ grant_rx: Some(grant_rx),
+ }
+ .run_background();
+
+ WorkerHandle {
+ status_rx,
+ grant_tx: Some(grant_tx),
+ }
+ }
+
+ fn run_background(mut self) {
+ tauri::async_runtime::spawn(async move {
+ loop {
+ let Ok(status) = self.status_tx.borrow().as_ref().cloned() else {
+ break;
+ };
+ if let UpdateStatus::NoUpdateNeeded | UpdateStatus::Completed(_) = status {
+ break;
+ }
+
+ let next = self.next_status(status).await;
+
+ let Ok(()) = self.status_tx.send(next) else {
+ break;
+ };
+ }
+ });
+ }
+
+ #[tracing::instrument(ret, err, skip(self))]
+ async fn next_status(
+ &mut self,
+ status: UpdateStatus,
+ ) -> Result<UpdateStatus, Report<UpdateError>> {
+ match status {
+ UpdateStatus::Idle => {
+ let app_info = self
+ .system_query
+ .get_system_info()
+ .await
+ .context(UpdateError::Other)?;
+
+ Ok(UpdateStatus::CheckingForDownload(app_info))
+ }
+ UpdateStatus::CheckingForDownload(app_info) => {
+ let res = self
+ .update_repo
+ .check_for_update(app_info)
+ .await
+ .context(UpdateError::DownloadErr)?;
+
+ match res {
+ Some(update) => Ok(UpdateStatus::UpdateFound(UpdateFoundStatus {
+ request: UpdateRequested::new_request(),
+ bundle: update,
+ })),
+ None => Ok(UpdateStatus::NoUpdateNeeded),
+ }
+ }
+ UpdateStatus::UpdateFound(update_found_status) => {
+ let Some(rx) = self.grant_rx.take() else {
+ return Err(
+ report!("Already granted permission").context(UpdateError::GrantErr)
+ );
+ };
+ let res = rx.await.map_err(|e| {
+ rootcause::report!("Failed to receive grant {e:?}. The sender was dropped")
+ .context(UpdateError::GrantErr)
+ })?;
+ match res {
+ UpdateApproval::Granted(grant) => {
+ Ok(UpdateStatus::DownloadingBundle(UpdateDownloadingStatus {
+ grant,
+ update: update_found_status.bundle,
+ progress: ProgressPercentage::default(),
+ }))
+ }
+ UpdateApproval::Denied(_update_denied) => Ok(UpdateStatus::NoUpdateNeeded),
+ }
+ }
+ UpdateStatus::NoUpdateNeeded => Ok(UpdateStatus::NoUpdateNeeded),
+ UpdateStatus::DownloadingBundle(status) => {
+ let update_dir = self
+ .system_query
+ .get_update_dir()
+ .await
+ .context(UpdateError::IoErr)?;
+
+ let download_filename = self
+ .create_download_directory(update_dir, &status.update.version)
+ .await
+ .context(UpdateError::IoErr)?;
+
+ let expected_checksum = status.update.checksum.clone();
+ let (req, rx) = status.update.into_download_request(&download_filename);
+
+ let status_tx = self.status_tx.clone();
+ tokio::task::spawn(glue_channels(rx, status_tx, |cur, progress| match cur {
+ UpdateStatus::DownloadingBundle(download) => {
+ download.progress = progress;
+ true
+ }
+ _ => false,
+ }));
+
+ let () = self
+ .update_repo
+ .get_update_bundle(req)
+ .await
+ .context(UpdateError::DownloadErr)?;
+ Ok(UpdateStatus::UnzippingBundle(UnzipStatus {
+ zip_filename: download_filename,
+ expected_checksum,
+ progress: ProgressPercentage::default(),
+ }))
+ }
+ UpdateStatus::UnzippingBundle(unzip_status) => {
+ self.fs_repo
+ .verify_checksum(&unzip_status.zip_filename, &unzip_status.expected_checksum)
+ .await
+ .context(UpdateError::Unzip)?;
+
+ let archive_target = unzip_status
+ .zip_filename
+ .parent()
+ .unwrap_or(&unzip_status.zip_filename)
+ .to_path_buf();
+ let (req, rx) = UnzipRequest::new(unzip_status.zip_filename, archive_target);
+
+ let status_tx = self.status_tx.clone();
+ tokio::task::spawn(glue_channels(rx, status_tx, |cur, progress| match cur {
+ UpdateStatus::UnzippingBundle(zip) => {
+ zip.progress = progress;
+ true
+ }
+ _ => false,
+ }));
+
+ let mut entrypoint = self.fs_repo.unzip(req).await.context(UpdateError::Unzip)?;
+ entrypoint.push(ENTRYPOINT_NAME);
+ Ok(UpdateStatus::Completed(CompletedStatus { entrypoint }))
+ }
+ UpdateStatus::Completed(x) => Ok(UpdateStatus::Completed(x)),
+ }
+ }
+
+ /// given an input directory and a semver, create a folder for the semver and return the path
+ /// that the download should be placed at
+ async fn create_download_directory(
+ &self,
+ mut bundle: PathBuf,
+ version: &Version,
+ ) -> Result<PathBuf, std::io::Error> {
+ let version_str = version.to_string().to_lowercase();
+ bundle.push(PathBuf::from(version_str));
+ self.fs_repo.create_dir_all(&bundle).await?;
+ bundle.push("bundle.zip");
+ Ok(bundle)
+ }
+}
+
+/// helper function which pipes the progress of an event from one channel into another
+/// returning true if the value in the sender channel was modified
+async fn glue_channels<F>(
+ mut rx: tokio::sync::mpsc::Receiver<ProgressPercentage>,
+ status_tx: tokio::sync::watch::Sender<Result<UpdateStatus, Report<UpdateError>>>,
+ mut f: F,
+) where
+ F: FnMut(&mut UpdateStatus, ProgressPercentage) -> bool + 'static + Send,
+{
+ while let Some(progress) = rx.recv().await {
+ status_tx.send_if_modified(|cur| match cur {
+ Ok(r) => f(r, progress),
+ Err(_) => false,
+ });
+ }
+}
+
+impl Service {
+ pub fn new<U: UpdateRepo, Fs: FsRepo, Q: SystemQuery>(
+ update_repo: U,
+ fs_repo: Fs,
+ system_query: Q,
+ ) -> Self {
+ let handle = Worker::new_handle(update_repo, fs_repo, system_query);
+ Service { handle }
+ }
+}
+
+impl AutoUpdateService for Service {
+ fn status(&self) -> &tokio::sync::watch::Receiver<Result<UpdateStatus, Report<UpdateError>>> {
+ &self.handle.status_rx
+ }
+
+ fn grant_or_deny(&mut self, grant: UpdateApproval) -> Result<(), Report> {
+ let Some(tx) = self.handle.grant_tx.take() else {
+ return Err(report!("Already granted"));
+ };
+ tx.send(grant)
+ .map_err(|e| rootcause::report!("Failed to send {e:?}. The rx channel was dropped"))
+ }
+}
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/inbound.rs b/js/app/tauri/macro_bundle_updater_plugin/src/inbound.rs
new file mode 100644
index 0000000000..962cb1bb99
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/inbound.rs
@@ -0,0 +1 @@
+pub mod plugin;
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/inbound/plugin.rs b/js/app/tauri/macro_bundle_updater_plugin/src/inbound/plugin.rs
new file mode 100644
index 0000000000..432d52bd1a
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/inbound/plugin.rs
@@ -0,0 +1,170 @@
+use std::sync::Mutex;
+
+use rootcause::Report;
+use serde::Serialize;
+use tauri::{Emitter, Manager, Runtime, plugin::Plugin};
+use url::Url;
+
+use crate::{
+ domain::{
+ models::{UpdateApproval, UpdateError, UpdateStatus},
+ ports::AutoUpdateService,
+ service::Service,
+ },
+ outbound::{api_client::BundleClient, fs::FileSystem, system_info::SystemInfo},
+};
+
+const EVENT_NAME: &str = "bundle-update-status";
+
+#[derive(Clone, Serialize)]
+#[serde(tag = "status", content = "data")]
+pub enum BundleUpdateEvent {
+ Idle,
+ CheckingForUpdate,
+ UpdateFound {
+ version: String,
+ notes: Option<String>,
+ },
+ NoUpdateNeeded,
+ Downloading {
+ progress: f64,
+ },
+ Unzipping {
+ progress: f64,
+ },
+ Completed,
+ Error {
+ message: String,
+ },
+}
+
+impl BundleUpdateEvent {
+ fn new(cur: &Result<UpdateStatus, Report<UpdateError>>) -> Self {
+ match cur.as_ref() {
+ Ok(UpdateStatus::Idle) => BundleUpdateEvent::Idle,
+ Ok(UpdateStatus::CheckingForDownload(_)) => BundleUpdateEvent::CheckingForUpdate,
+ Ok(UpdateStatus::UpdateFound(found)) => BundleUpdateEvent::UpdateFound {
+ version: found.bundle.version.to_string(),
+ notes: found.bundle.notes.clone(),
+ },
+ Ok(UpdateStatus::NoUpdateNeeded) => BundleUpdateEvent::NoUpdateNeeded,
+ Ok(UpdateStatus::DownloadingBundle(dl)) => BundleUpdateEvent::Downloading {
+ progress: dl.progress.value(),
+ },
+ Ok(UpdateStatus::UnzippingBundle(uz)) => BundleUpdateEvent::Unzipping {
+ progress: uz.progress.value(),
+ },
+ Ok(UpdateStatus::Completed(_completed)) => BundleUpdateEvent::Completed,
+ Err(e) => BundleUpdateEvent::Error {
+ message: e.to_string(),
+ },
+ }
+ }
+}
+
+pub struct MacroBundleUpdaterPlugin {
+ base_url: Url,
+}
+
+impl MacroBundleUpdaterPlugin {
+ pub fn new(base_url: Url) -> Self {
+ Self { base_url }
+ }
+}
+
+#[tauri::command]
+pub fn grant_bundle_update(
+ service: tauri::State<'_, Mutex<Service>>,
+ approved: bool,
+) -> Result<(), String> {
+ let mut service = service.lock().unwrap();
+ let request = {
+ let status = service.status().borrow();
+ match status.as_ref() {
+ Ok(UpdateStatus::UpdateFound(found)) => found.request,
+ _ => return Err("No pending update request".into()),
+ }
+ };
+ let approval = if approved {
+ UpdateApproval::Granted(request.grant())
+ } else {
+ UpdateApproval::Denied(request.deny())
+ };
+ service.grant_or_deny(approval).map_err(|e| e.to_string())
+}
+
+#[tauri::command]
+#[tracing::instrument(err, skip(service, bundle_root))]
+pub fn perform_update<R: Runtime>(
+ service: tauri::State<'_, Mutex<Service>>,
+ bundle_root: tauri::State<'_, crate::BundleRoot>,
+ app_handle: tauri::AppHandle<R>,
+) -> Result<(), String> {
+ let Ok(service) = service.lock() else {
+ return Err("autoupdate state mutex is poisoned".to_string());
+ };
+ let entrypoint = {
+ let status = service.status().borrow();
+ match status.as_ref() {
+ Ok(UpdateStatus::Completed(bundle_location)) => bundle_location.entrypoint.clone(),
+ _ => return Err("No pending update".into()),
+ }
+ };
+
+ // Set the bundle root to the parent of index.html (the unzipped directory)
+ let bundle_dir = entrypoint
+ .parent()
+ .ok_or_else(|| format!("entrypoint {entrypoint:?} has no parent directory"))?
+ .to_path_buf();
+ tracing::info!("Setting bundle root to {bundle_dir:?}");
+ *bundle_root.0.write().map_err(|e| e.to_string())? = Some(bundle_dir);
+
+ // Navigate to the updated bundle, preserving the current hash route.
+ if let Some(webview) = app_handle.webview_windows().values().next() {
+ tracing::info!("Bundle update complete, navigating to updated bundle");
+ let _ = webview.eval(
+ "window.location.href = 'tauri://localhost/app/index.html' + window.location.hash;"
+ );
+ }
+ Ok(())
+}
+
+impl<R: Runtime> Plugin<R> for MacroBundleUpdaterPlugin {
+ fn name(&self) -> &'static str {
+ "macro-bundle-updater"
+ }
+
+ fn initialize(
+ &mut self,
+ app: &tauri::AppHandle<R>,
+ _config: serde_json::Value,
+ ) -> Result<(), Box<dyn std::error::Error>> {
+ let client = BundleClient::new(self.base_url.clone());
+ let fs = FileSystem;
+ let system_info = SystemInfo::new(app.clone());
+
+ let service = Service::new(client, fs, system_info);
+ let mut status_rx = service.status().clone();
+
+ app.manage(Mutex::new(service));
+
+ let app_handle = app.clone();
+ tauri::async_runtime::spawn(async move {
+ // Emit current state before waiting for changes
+ {
+ let event = status_rx.borrow_and_update();
+ let _ = app_handle.emit(EVENT_NAME, BundleUpdateEvent::new(&event));
+ }
+ loop {
+ if status_rx.changed().await.is_err() {
+ tracing::error!("The sender handle was dropped unexpectedly");
+ break;
+ }
+ let event = status_rx.borrow_and_update();
+ let _ = app_handle.emit(EVENT_NAME, BundleUpdateEvent::new(&event));
+ }
+ });
+
+ Ok(())
+ }
+}
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/lib.rs b/js/app/tauri/macro_bundle_updater_plugin/src/lib.rs
new file mode 100644
index 0000000000..13157aeb41
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/lib.rs
@@ -0,0 +1,11 @@
+use std::path::PathBuf;
+use std::sync::RwLock;
+
+pub mod domain;
+pub mod inbound;
+pub mod outbound;
+
+/// Swappable root directory for serving frontend assets.
+/// `None` = use built-in asset resolver (initial bundle from `frontendDist`).
+/// `Some(path)` = serve files from this directory (after OTA update).
+pub struct BundleRoot(pub RwLock<Option<PathBuf>>);
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/outbound.rs b/js/app/tauri/macro_bundle_updater_plugin/src/outbound.rs
new file mode 100644
index 0000000000..44e200dfb6
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/outbound.rs
@@ -0,0 +1,3 @@
+pub mod api_client;
+pub mod fs;
+pub mod system_info;
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/outbound/api_client.rs b/js/app/tauri/macro_bundle_updater_plugin/src/outbound/api_client.rs
new file mode 100644
index 0000000000..12ab7f8350
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/outbound/api_client.rs
@@ -0,0 +1,118 @@
+use crate::domain::{
+ models::{BundleUpdate, DownloadBundleError, DownloadBundleRequest, Progress},
+ ports::UpdateRepo,
+};
+use futures::TryStreamExt;
+use reqwest::{StatusCode, header::CONTENT_LENGTH};
+use rootcause::{Report, report};
+use thiserror::Error;
+use tokio::io::AsyncWriteExt;
+use url::Url;
+
+pub struct BundleClient {
+ client: reqwest::Client,
+ base: Url,
+}
+
+#[derive(Debug, Error)]
+pub enum BundleClientErr {
+ #[error(transparent)]
+ Reqwest(#[from] reqwest::Error),
+ #[error("Url {0} cannot be a base")]
+ CannotBeABase(Url),
+}
+
+impl BundleClient {
+ pub fn new(mut base: Url) -> Self {
+ base.set_path("");
+ let client = reqwest::Client::new();
+ Self { client, base }
+ }
+
+ // pub async fn request(&self) -> Result<Option<BundleUpdate>, BundleClientErr> {
+ // }
+}
+
+impl UpdateRepo for BundleClient {
+ async fn check_for_update(
+ &self,
+ request: crate::domain::models::AppInfo,
+ ) -> Result<Option<BundleUpdate>, rootcause::Report> {
+ let mut url = self.base.clone();
+ url.path_segments_mut()
+ .map_err(|_| BundleClientErr::CannotBeABase(self.base.clone()))?
+ .clear()
+ .push("update")
+ .push("bundle")
+ .push(request.target.into())
+ .push(request.arch.into())
+ .push(&request.current_version.to_string());
+
+ let res = self.client.get(url).send().await?.error_for_status()?;
+
+ if res.status() == StatusCode::NO_CONTENT {
+ return Ok(None);
+ }
+
+ Ok(Some(res.json().await?))
+ }
+
+ async fn get_update_bundle<P: AsRef<std::path::Path> + Send>(
+ &self,
+ request: crate::domain::models::DownloadBundleRequest<P>,
+ ) -> Result<(), Report<DownloadBundleError>> {
+ let DownloadBundleRequest {
+ url,
+ destination,
+ on_progress,
+ ..
+ } = request;
+ let res = self
+ .client
+ .get(url)
+ .send()
+ .await
+ .map_err(|e| report!(e).context(DownloadBundleError::OtherError))?
+ .error_for_status()
+ .map_err(|e| report!(e).context(DownloadBundleError::OtherError))?;
+
+ let mut content_length_progress = res
+ .headers()
+ .get(CONTENT_LENGTH)
+ .and_then(|v| v.to_str().ok())
+ .and_then(|x| x.parse::<usize>().ok())
+ .map(Progress::from_total);
+
+ let mut file = tokio::fs::File::create(destination.as_ref())
+ .await
+ .map_err(|e| report!(e).context(DownloadBundleError::FileError))?;
+
+ let mut stream = res
+ .bytes_stream()
+ .map_err(|e| report!(e).context(DownloadBundleError::OtherError));
+ while let Some(mut chunk) = stream.try_next().await? {
+ let size = chunk.len();
+ file.write_all_buf(&mut chunk)
+ .await
+ .map_err(|e| report!(e).context(DownloadBundleError::FileError))?;
+
+ if let Some(progress) = content_length_progress.as_mut() {
+ progress.inc_by(size);
+ on_progress
+ .send(progress.percentage())
+ .await
+ .inspect_err(|e| tracing::error!("Failed to send {e:?}"))
+ .ok();
+ }
+ }
+
+ file.flush()
+ .await
+ .map_err(|e| report!(e).context(DownloadBundleError::FileError))?;
+ file.sync_all()
+ .await
+ .map_err(|e| report!(e).context(DownloadBundleError::FileError))?;
+
+ Ok(())
+ }
+}
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/outbound/fs.rs b/js/app/tauri/macro_bundle_updater_plugin/src/outbound/fs.rs
new file mode 100644
index 0000000000..bba8b19a1f
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/outbound/fs.rs
@@ -0,0 +1,81 @@
+use crate::domain::{
+ models::{UnzipError, UnzipRequest},
+ ports::FsRepo,
+};
+use digest::Digest;
+use sha2::Sha256;
+use std::path::PathBuf;
+use zip::{read::root_dir_common_filter, result::ZipError};
+
+pub struct FileSystem;
+
+fn map_zip_err(err: ZipError) -> UnzipError {
+ match err {
+ ZipError::Io(error) => UnzipError::IoErr(error),
+ x => UnzipError::Other {
+ report: rootcause::Report::from(x),
+ },
+ }
+}
+
+impl FsRepo for FileSystem {
+ async fn verify_checksum<P: AsRef<std::path::Path> + Send>(
+ &self,
+ path: P,
+ expected: &str,
+ ) -> Result<(), UnzipError> {
+ let path = path.as_ref().to_path_buf();
+ let expected = expected.to_owned();
+ let mut file = tokio::fs::File::open(&path).await?.into_std().await;
+ tokio::task::spawn_blocking(move || {
+ let mut hasher = Sha256::new();
+ std::io::copy(&mut file, &mut hasher)?;
+ let actual = format!("{:x}", hasher.finalize());
+ if actual != expected {
+ return Err(UnzipError::ChecksumMismatch { expected, actual });
+ }
+ Ok(())
+ })
+ .await
+ .map_err(rootcause::Report::from)?
+ }
+
+ async fn unzip(
+ &self,
+ request: UnzipRequest,
+ ) -> Result<std::path::PathBuf, crate::domain::models::UnzipError> {
+ let UnzipRequest {
+ archive_path,
+ archive_target,
+ on_progress,
+ } = request;
+
+ let target = archive_target.clone();
+ tokio::task::spawn_blocking(move || -> Result<PathBuf, UnzipError> {
+ let file = std::fs::File::open(archive_path)?;
+
+ let mut archive = zip::ZipArchive::new(file).map_err(map_zip_err)?;
+
+ let () = archive
+ .extract_unwrapped_root_dir(&archive_target, root_dir_common_filter)
+ .map_err(map_zip_err)?;
+
+ Ok(archive_target)
+ })
+ .await
+ .map_err(rootcause::Report::from)??;
+
+ let _ = on_progress
+ .send(crate::domain::models::ProgressPercentage::complete())
+ .await;
+
+ Ok(target)
+ }
+
+ fn create_dir_all<P: AsRef<std::path::Path> + Send>(
+ &self,
+ path: P,
+ ) -> impl Future<Output = Result<(), std::io::Error>> + Send {
+ tokio::fs::create_dir_all(path)
+ }
+}
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/outbound/system_info.rs b/js/app/tauri/macro_bundle_updater_plugin/src/outbound/system_info.rs
new file mode 100644
index 0000000000..cf7685923f
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/outbound/system_info.rs
@@ -0,0 +1,59 @@
+use semver::Version;
+use tauri::{Manager, Runtime};
+
+use crate::domain::{
+ models::{AppInfo, Arch, Target},
+ ports::SystemQuery,
+};
+
+pub struct SystemInfo<R: Runtime> {
+ app_handle: tauri::AppHandle<R>,
+}
+
+impl<R: Runtime> SystemInfo<R> {
+ pub fn new(app_handle: tauri::AppHandle<R>) -> Self {
+ Self { app_handle }
+ }
+
+ fn get_target(&self) -> Target {
+ match std::env::consts::OS {
+ "linux" => Target::Linux,
+ "windows" => Target::Windows,
+ "macos" => Target::Darwin,
+ "ios" => Target::Ios,
+ "android" => Target::Android,
+ x => unreachable!("Encountered unknown target: {x}"),
+ }
+ }
+
+ fn get_version(&self) -> Version {
+ self.app_handle.package_info().version.clone()
+ }
+
+ fn get_arch(&self) -> Arch {
+ match std::env::consts::ARCH {
+ "aarch64" => Arch::Aarch64,
+ "armv7" => Arch::Armv7,
+ "x86_64" => Arch::X86_64,
+ "i686" => Arch::I686,
+ x => unreachable!("Encountered unknown arch: {x}"),
+ }
+ }
+}
+
+impl<R: Runtime> SystemQuery for SystemInfo<R> {
+ async fn get_system_info(&self) -> Result<AppInfo, rootcause::Report> {
+ Ok(AppInfo {
+ current_version: self.get_version(),
+ arch: self.get_arch(),
+ target: self.get_target(),
+ })
+ }
+
+ async fn get_update_dir(&self) -> Result<std::path::PathBuf, std::io::Error> {
+ self.app_handle
+ .path()
+ .app_cache_dir()
+ .map_err(|e| std::io::Error::new(std::io::ErrorKind::NotFound, e))
+ }
+}
diff --git a/js/app/tauri/macro_bundle_updater_plugin/src/worker.rs b/js/app/tauri/macro_bundle_updater_plugin/src/worker.rs
new file mode 100644
index 0000000000..dc31565524
--- /dev/null
+++ b/js/app/tauri/macro_bundle_updater_plugin/src/worker.rs
@@ -0,0 +1,10 @@
+pub struct State<S>(S);
+
+impl<S> State<S> {
+ pub fn transition<F, U>(self, f: F) -> State<U>
+ where
+ F: FnOnce(S) -> U,
+ {
+ State(f(self.0))
+ }
+}
diff --git a/js/app/tauri/navigation_plugin/Cargo.toml b/js/app/tauri/navigation_plugin/Cargo.toml
index a2674df9be..192f99b3cc 100644
--- a/js/app/tauri/navigation_plugin/Cargo.toml
+++ b/js/app/tauri/navigation_plugin/Cargo.toml
@@ -1,13 +1,14 @@
[package]
name = "navigation_plugin"
version = "0.1.0"
-edition = "2024"
+edition.workspace = true
[dependencies]
rootcause = { workspace = true }
nom = "8"
logger = { path = "../logger" }
serde = { workspace = true, features = ["derive"] }
+serde_json = "1"
serde_qs = "0.15"
tauri = { workspace = true }
tauri-plugin-opener = "2"
diff --git a/js/app/tauri/navigation_plugin/src/lib.rs b/js/app/tauri/navigation_plugin/src/lib.rs
index 318f302ca0..68bf3c0668 100644
--- a/js/app/tauri/navigation_plugin/src/lib.rs
+++ b/js/app/tauri/navigation_plugin/src/lib.rs
@@ -1,7 +1,7 @@
use crate::scheme::MacroScheme;
use logger::Logger;
use serde::{Deserialize, Serialize};
-use std::{borrow::Cow, collections::HashMap, sync::Arc};
+use std::{borrow::Cow, collections::HashMap, path::PathBuf, sync::Arc};
use tauri::{Manager, Runtime, plugin::Plugin};
use tauri_plugin_opener::OpenerExt;
use url::Url;
@@ -53,7 +53,7 @@ pub enum Platform {
#[derive(Clone)]
pub struct MacroNavigationPlugin {
internal_domains: Arc<[Url]>,
- platform: Platform,
+ allowed_file_prefix: Option<PathBuf>,
}
#[derive(Debug, Deserialize)]
@@ -71,19 +71,21 @@ struct MacroCallbackQuery<'a> {
}
impl MacroNavigationPlugin {
- pub fn new(
- allow_list: &'static [&'static str],
- platform: Platform,
- ) -> Result<Self, url::ParseError> {
+ pub fn new(allow_list: &'static [&'static str]) -> Result<Self, url::ParseError> {
Ok(MacroNavigationPlugin {
internal_domains: allow_list
.iter()
.map(|s| s.parse())
.collect::<Result<Arc<_>, _>>()?,
- platform,
+ allowed_file_prefix: None,
})
}
+ pub fn with_allowed_file_prefix(mut self, prefix: PathBuf) -> Self {
+ self.allowed_file_prefix = Some(prefix);
+ self
+ }
+
#[tracing::instrument(ret, level = tracing::Level::DEBUG, skip(self))]
fn get_destination<'a>(&self, url: &'a Url) -> NavigationOutput<'a> {
let internal = match self.as_internal_url(url) {
@@ -101,15 +103,31 @@ impl MacroNavigationPlugin {
#[tracing::instrument(ret, level = tracing::Level::DEBUG, skip(self))]
fn as_internal_url<'a>(&self, url: &'a Url) -> Result<InternalUrl<'a>, ExternalUrl<'a>> {
- self.internal_domains
- .iter()
- .any(|cur| {
- cur.scheme().eq(url.scheme())
- && cur.domain().eq(&url.domain())
- && cur.port().eq(&url.port())
- })
- .then_some(InternalUrl(Cow::Borrowed(url)))
- .ok_or(ExternalUrl(Cow::Borrowed(url)))
+ let is_allowed_domain = self.internal_domains.iter().any(|cur| {
+ cur.scheme().eq(url.scheme())
+ && cur.domain().eq(&url.domain())
+ && cur.port().eq(&url.port())
+ });
+
+ let is_allowed_file = url.scheme() == "file"
+ && self.allowed_file_prefix.as_ref().is_some_and(|prefix| {
+ url.to_file_path()
+ .ok()
+ .and_then(|path| path.canonicalize().ok())
+ .and_then(|canonical| {
+ prefix
+ .canonicalize()
+ .ok()
+ .map(|cp| canonical.starts_with(cp))
+ })
+ .unwrap_or(false)
+ });
+
+ if is_allowed_domain || is_allowed_file {
+ Ok(InternalUrl(Cow::Borrowed(url)))
+ } else {
+ Err(ExternalUrl(Cow::Borrowed(url)))
+ }
}
}
@@ -137,7 +155,11 @@ fn transform_external_url(mut url: Url) -> Url {
.as_str(),
));
}
- if let None = url.query_pairs().find(|(k, _v)| k.as_ref() == "is_mobile") {
+ if url
+ .query_pairs()
+ .find(|(k, _v)| k.as_ref() == "is_mobile")
+ .is_none()
+ {
url.query_pairs_mut().append_pair("is_mobile", "true");
}
url
@@ -148,6 +170,20 @@ impl<R: Runtime> Plugin<R> for MacroNavigationPlugin {
std::any::type_name_of_val(self)
}
+ fn initialize(
+ &mut self,
+ app: &tauri::AppHandle<R>,
+ _config: serde_json::Value,
+ ) -> Result<(), Box<dyn std::error::Error>> {
+ if self.allowed_file_prefix.is_none()
+ && let Ok(cache_dir) = app.path().app_cache_dir()
+ {
+ tracing::debug!("Setting allowed file prefix to {cache_dir:?}");
+ self.allowed_file_prefix = Some(cache_dir);
+ }
+ Ok(())
+ }
+
fn on_navigation(&mut self, webview: &tauri::Webview<R>, url: &tauri::Url) -> bool {
let dest = self.get_destination(url);
diff --git a/js/app/tauri/src-tauri/Cargo.toml b/js/app/tauri/src-tauri/Cargo.toml
index 11eeaaca9e..56ed0debc7 100644
--- a/js/app/tauri/src-tauri/Cargo.toml
+++ b/js/app/tauri/src-tauri/Cargo.toml
@@ -1,7 +1,7 @@
[package]
authors = ["you"]
description = "A Tauri App"
-edition = "2024"
+edition.workspace = true
license = ""
name = "app"
repository = ""
@@ -20,15 +20,17 @@ tauri-build = { version = "2.3.1", features = [] }
default = []
[dependencies]
+http = "1"
log = "0.4"
logger = { path = "../logger" }
+mime_guess = "2"
rootcause = { workspace = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracing-oslog = { version = "0.3" }
nom = "8.0.0"
-reqwest = { version = "0.13", features = [
+reqwest = { workspace = true, features = [
"cookies",
] }
serde_qs = "0.15.0"
@@ -48,6 +50,7 @@ urlencoding = "2.1.3"
# system notifications for when the app is open
tauri-plugin-notification = "2"
# push notifications for mobile (when app is closed)
+macro_bundle_updater_plugin = { path = "../macro_bundle_updater_plugin" }
navigation_plugin = { path = "../navigation_plugin" }
tauri-plugin-notifications = { git = "https://github.com/macro-inc/tauri-plugins", rev = "2b2257722f60458921eadf4a9ab4d9e1db36e34f" }
tauri-plugin-os = "2"
diff --git a/js/app/tauri/src-tauri/src/lib.rs b/js/app/tauri/src-tauri/src/lib.rs
index a6b6de3036..ffe041bd11 100644
--- a/js/app/tauri/src-tauri/src/lib.rs
+++ b/js/app/tauri/src-tauri/src/lib.rs
@@ -1,16 +1,20 @@
use logger::Logger;
+use macro_bundle_updater_plugin::BundleRoot;
+use navigation_plugin::MacroNavigationPlugin;
use navigation_plugin::scheme::MacroScheme;
-use navigation_plugin::{MacroNavigationPlugin, Platform};
use reqwest::cookie::CookieStore;
use reqwest::header::COOKIE;
use rootcause::{Report, report};
use serde::Serialize;
-use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
#[cfg(target_os = "ios")]
use std::sync::OnceLock;
+use std::sync::RwLock;
+use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
use tauri::http::{HeaderMap, HeaderValue};
use tauri::{AppHandle, Emitter};
use tauri::{Manager, Runtime};
+
+mod tauri_protocol;
use tauri_plugin_deep_link::{DeepLinkExt, OpenUrlEvent};
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
@@ -120,9 +124,7 @@ pub fn run() {
.with_line_number(true)
.pretty();
- let registry = tracing_subscriber::registry()
- .with(filter)
- .with(fmt_layer);
+ let registry = tracing_subscriber::registry().with(filter).with(fmt_layer);
#[cfg(target_os = "ios")]
let registry = registry.with(tracing_oslog::OsLogger::new(
@@ -170,14 +172,11 @@ pub fn run() {
.build(),
)
.plugin(tauri_plugin_opener::init())
+ .plugin(MacroNavigationPlugin::new(ALLOWED_DOMAINS).expect("Domains must be valid urls"))
.plugin(
- MacroNavigationPlugin::new(
- ALLOWED_DOMAINS,
- cfg!(mobile)
- .then_some(Platform::Mobile)
- .unwrap_or(Platform::Desktop),
- )
- .expect("Domains must be valid urls"),
+ macro_bundle_updater_plugin::inbound::plugin::MacroBundleUpdaterPlugin::new(
+ "http://localhost:3001/".parse().expect("valid url"),
+ ),
);
#[cfg(mobile)]
@@ -190,12 +189,44 @@ pub fn run() {
.plugin(tauri_plugin_auth::init());
}
+ // Window origin differs by platform:
+ // macOS/iOS/Linux: tauri://localhost
+ // Windows/Android: https://tauri.localhost (or http://)
+ let window_origin = if cfg!(any(target_os = "windows", target_os = "android")) {
+ "https://tauri.localhost"
+ } else {
+ "tauri://localhost"
+ };
+
builder
+ .register_asynchronous_uri_scheme_protocol("tauri", {
+ // Build this outside the closure so we only create it once.
+ // We need the AppHandle which isn't available until setup, but
+ // register_asynchronous_uri_scheme_protocol gives us UriSchemeContext.
+ // However, tauri_protocol::get needs AppHandle upfront.
+ // Use a lazy init pattern via the context.
+ let window_origin = window_origin.to_string();
+ let handler: std::sync::OnceLock<
+ Box<dyn Fn(&str, http::Request<Vec<u8>>, tauri::UriSchemeResponder) + Send + Sync>,
+ > = std::sync::OnceLock::new();
+
+ move |ctx, request, responder| {
+ let h = handler.get_or_init(|| {
+ tauri_protocol::get(ctx.app_handle().clone(), &window_origin)
+ });
+ h(ctx.webview_label(), request, responder);
+ }
+ })
+ .manage(BundleRoot(RwLock::new(None)))
.manage(HeartbeatState {
alive: AtomicBool::new(true),
generation: AtomicU64::new(0),
})
- .invoke_handler(tauri::generate_handler![heartbeat_response])
+ .invoke_handler(tauri::generate_handler![
+ heartbeat_response,
+ macro_bundle_updater_plugin::inbound::plugin::grant_bundle_update,
+ macro_bundle_updater_plugin::inbound::plugin::perform_update
+ ])
.setup(|app| {
#[cfg(any(target_os = "linux", all(windows, debug_assertions)))]
{
diff --git a/js/app/tauri/src-tauri/src/tauri_protocol.rs b/js/app/tauri/src-tauri/src/tauri_protocol.rs
new file mode 100644
index 0000000000..19eb55492b
--- /dev/null
+++ b/js/app/tauri/src-tauri/src/tauri_protocol.rs
@@ -0,0 +1,173 @@
+// Wrapper around the upstream tauri protocol handler.
+//
+// Adds two behaviors on top of the built-in `tauri://` protocol:
+// 1. Strips the `/app/` base path prefix before asset resolution
+// 2. Checks `BundleRoot` state to serve from an OTA-updated bundle on disk
+//
+// When `BundleRoot` is `None`, the request (with `/app/` stripped) is forwarded
+// to the upstream handler which handles dev proxy, CSP, security headers, etc.
+// When `BundleRoot` is `Some(path)`, files are served directly from disk.
+
+use http::{header::CONTENT_TYPE, Response as HttpResponse, StatusCode};
+use tauri::{Manager, Runtime, UriSchemeResponder};
+
+use macro_bundle_updater_plugin::BundleRoot;
+
+type ProtocolHandler = Box<dyn Fn(&str, http::Request<Vec<u8>>, UriSchemeResponder) + Send + Sync>;
+
+/// Strip the `/app` or `/app/` prefix used as the frontend base path.
+/// Only strips when `/app` is a complete path segment (not e.g. `/app.css`).
+fn strip_app_prefix(path: &str) -> &str {
+ if let Some(rest) = path.strip_prefix("/app/") {
+ return rest;
+ }
+ if path == "/app" {
+ return "";
+ }
+ path
+}
+
+/// Rewrite a URI by stripping the `/app/` prefix from the path portion.
+/// e.g. `tauri://localhost/app/index.html` → `tauri://localhost/index.html`
+fn rewrite_uri(uri: &str) -> String {
+ for prefix in &[
+ "tauri://localhost/app/",
+ "tauri://localhost/app",
+ "https://tauri.localhost/app/",
+ "https://tauri.localhost/app",
+ ] {
+ if let Some(rest) = uri.strip_prefix(prefix) {
+ // Only match bare "/app" when rest is empty or starts with a
+ // path separator — avoid rewriting "/app.css" etc.
+ if !prefix.ends_with('/') && !rest.is_empty() && !rest.starts_with('/') {
+ continue;
+ }
+ let origin = prefix
+ .trim_end_matches("/app/")
+ .trim_end_matches("/app");
+ return format!("{}/{}", origin, rest);
+ }
+ }
+ uri.to_string()
+}
+
+/// Build the protocol handler that wraps the built-in `tauri://` protocol.
+///
+/// The upstream handler is called for all requests where `BundleRoot` is not set.
+/// When `BundleRoot` is set (after an OTA update), files are served from disk instead.
+pub fn get<R: Runtime>(
+ app_handle: tauri::AppHandle<R>,
+ window_origin: &str,
+) -> ProtocolHandler {
+ let upstream = tauri::protocol::tauri::get(app_handle.clone(), window_origin, None);
+ let origin = window_origin.to_string();
+
+ Box::new(move |webview_id, request, responder| {
+ let bundle_root = app_handle.try_state::<BundleRoot>();
+ let has_bundle = bundle_root
+ .as_ref()
+ .and_then(|br| br.0.read().ok())
+ .as_ref()
+ .and_then(|guard| guard.as_ref())
+ .is_some();
+
+ if has_bundle {
+ // Serve from the OTA bundle directory on disk
+ let raw_path = request
+ .uri()
+ .to_string()
+ .split(&['?', '#'][..])
+ .next()
+ .unwrap_or_default()
+ .to_string();
+
+ let path = raw_path
+ .strip_prefix("tauri://localhost")
+ .or_else(|| raw_path.strip_prefix("https://tauri.localhost"))
+ .unwrap_or(&raw_path);
+
+ let asset_path = strip_app_prefix(path);
+
+ let br = bundle_root.unwrap();
+ let guard = br.0.read().unwrap();
+ let root_dir = guard.as_ref().unwrap();
+
+ // Prevent path traversal: canonicalize both paths and verify
+ // the resolved file stays within the bundle root.
+ let canonical_root = match root_dir.canonicalize() {
+ Ok(p) => p,
+ Err(_) => {
+ responder.respond(
+ HttpResponse::builder()
+ .status(StatusCode::NOT_FOUND)
+ .header("Access-Control-Allow-Origin", &*origin)
+ .body(Vec::new())
+ .unwrap(),
+ );
+ return;
+ }
+ };
+ let file_path = root_dir.join(asset_path);
+ let canonical_file = match file_path.canonicalize() {
+ Ok(p) => p,
+ Err(_) => {
+ responder.respond(
+ HttpResponse::builder()
+ .status(StatusCode::NOT_FOUND)
+ .header("Access-Control-Allow-Origin", &*origin)
+ .body(Vec::new())
+ .unwrap(),
+ );
+ return;
+ }
+ };
+ if !canonical_file.starts_with(&canonical_root) {
+ responder.respond(
+ HttpResponse::builder()
+ .status(StatusCode::FORBIDDEN)
+ .header("Access-Control-Allow-Origin", &*origin)
+ .body(Vec::new())
+ .unwrap(),
+ );
+ return;
+ }
+
+ match std::fs::read(&canonical_file) {
+ Ok(data) => {
+ let mime = mime_guess::from_path(&file_path)
+ .first_or_octet_stream()
+ .to_string();
+ responder.respond(
+ HttpResponse::builder()
+ .header(CONTENT_TYPE, &mime)
+ .header("Access-Control-Allow-Origin", &*origin)
+ .body(data)
+ .unwrap(),
+ );
+ }
+ Err(_) => {
+ responder.respond(
+ HttpResponse::builder()
+ .status(StatusCode::NOT_FOUND)
+ .header("Access-Control-Allow-Origin", &*origin)
+ .body(Vec::new())
+ .unwrap(),
+ );
+ }
+ }
+ } else {
+ // Strip /app/ prefix and delegate to upstream handler
+ let uri = request.uri().to_string();
+ let rewritten = rewrite_uri(&uri);
+
+ if rewritten != uri {
+ let (mut parts, body) = request.into_parts();
+ parts.uri = rewritten.parse().unwrap_or(parts.uri);
+ let request = http::Request::from_parts(parts, body);
+ upstream(webview_id, request, responder);
+ } else {
+ upstream(webview_id, request, responder);
+ }
+ }
+ })
+}
diff --git a/rust/cloud-storage/Cargo.lock b/rust/cloud-storage/Cargo.lock
index 4fb9ce45b5..9856bf3aa8 100644
--- a/rust/cloud-storage/Cargo.lock
+++ b/rust/cloud-storage/Cargo.lock
@@ -608,6 +608,7 @@ dependencies = [
"macro_env",
"macro_env_var",
"macro_middleware",
+ "macro_service_urls",
"macro_tower_layers",
"macro_user_id",
"macro_uuid",
@@ -4458,6 +4459,7 @@ dependencies = [
"jsonwebtoken 10.3.0 (git+https://github.com/whutchinson98/jsonwebtoken)",
"macro_db_migrator",
"macro_env",
+ "macro_service_urls",
"macro_user_id",
"macro_uuid",
"mockall",
@@ -4853,6 +4855,12 @@ dependencies = [
"pin-project-lite",
]
+[[package]]
+name = "http-range-header"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c"
+
[[package]]
name = "http-serde"
version = "2.1.1"
@@ -6053,7 +6061,6 @@ dependencies = [
"strum",
"thiserror 2.0.17",
"tracing",
- "url",
]
[[package]]
@@ -6947,6 +6954,20 @@ dependencies = [
"tempfile",
]
+[[package]]
+name = "native_app_server"
+version = "0.1.0"
+dependencies = [
+ "axum",
+ "native_app_service",
+ "semver",
+ "tokio",
+ "tower-http",
+ "tracing",
+ "tracing-subscriber",
+ "url",
+]
+
[[package]]
name = "native_app_service"
version = "0.1.0"
@@ -6954,11 +6975,11 @@ dependencies = [
"anyhow",
"axum",
"cool_asserts",
- "macro_env",
"reqwest",
"semver",
"serde",
"serde_json",
+ "sha2",
"strum",
"thiserror 2.0.17",
"tokio",
@@ -11127,7 +11148,12 @@ dependencies = [
"http 1.3.1",
"http-body 1.0.1",
"http-body-util",
+ "http-range-header",
+ "httpdate",
"iri-string",
+ "mime",
+ "mime_guess",
+ "percent-encoding",
"pin-project-lite",
"tokio",
"tokio-util",
diff --git a/rust/cloud-storage/Cargo.toml b/rust/cloud-storage/Cargo.toml
index d56fcfe9ac..3a71dfa03c 100644
--- a/rust/cloud-storage/Cargo.toml
+++ b/rust/cloud-storage/Cargo.toml
@@ -137,6 +137,7 @@ members = [
"user_link_cleanup_handler",
"user_quota",
"worker_trigger",
+ "tools/native_app_server",
]
[workspace.dependencies]
@@ -202,6 +203,7 @@ reqwest = { version = "0.12.12", features = ["hickory-dns", "json"] }
reqwest-middleware = { git = "https://github.com/seanaye/reqwest-middleware" }
rootcause = "0.11"
schemars = { version = "1.0.4", features = ["chrono04", "uuid1"] }
+semver = { version = "1", features = ["serde"] }
serde = { version = "1.0.214", features = ["derive"] }
serde_dynamo = { version = "4", features = ["aws-sdk-dynamodb+1"] }
serde_json = { version = "1.0.132" }
diff --git a/rust/cloud-storage/authentication_service/Cargo.toml b/rust/cloud-storage/authentication_service/Cargo.toml
index ab837a3eb6..fc9f691020 100644
--- a/rust/cloud-storage/authentication_service/Cargo.toml
+++ b/rust/cloud-storage/authentication_service/Cargo.toml
@@ -67,7 +67,7 @@ macro_db_client = { path = "../macro_db_client", default-features = false, featu
"team",
] }
macro_entrypoint = { path = "../macro_entrypoint" }
-macro_env = { path = "../macro_env", features = ["frontend_url"] }
+macro_env = { path = "../macro_env" }
macro_env_var = { path = "../macro_env_var" }
macro_middleware = { path = "../macro_middleware", default-features = false, features = [
"auth",
@@ -75,6 +75,7 @@ macro_middleware = { path = "../macro_middleware", default-features = false, fea
"user_permissions",
] }
macro_tower_layers = { path = "../macro_tower_layers" }
+macro_service_urls = { path = "../macro_service_urls" }
macro_user_id = { path = "../macro_user_id" }
macro_uuid = { path = "../macro_uuid" }
maud = { version = "0.27.0" }
diff --git a/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect.rs b/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect.rs
index 612198b1e4..92a5942f0b 100644
--- a/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect.rs
+++ b/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect.rs
@@ -201,6 +201,14 @@ async fn update_url_with_session_code(
return Ok(url);
};
+ // Strip any existing token params from the URL (e.g. from a previous login
+ // attempt embedded in the original_url) before appending the new one.
+ let filtered: Vec<(String, String)> = url
+ .query_pairs()
+ .filter(|(k, _)| k != "token")
+ .map(|(k, v)| (k.into_owned(), v.into_owned()))
+ .collect();
+ url.query_pairs_mut().clear().extend_pairs(filtered);
url.query_pairs_mut().append_pair("token", &session_code.0);
write_db(session_code).await?;
diff --git a/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect/tests.rs b/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect/tests.rs
index 26f70a10af..3bf6dbe51e 100644
--- a/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect/tests.rs
+++ b/rust/cloud-storage/authentication_service/src/api/oauth/oauth_redirect/tests.rs
@@ -87,6 +87,30 @@ async fn it_writes_session_code_to_db() {
);
}
+#[tokio::test]
+async fn update_url_replaces_existing_token_and_preserves_other_params() {
+ let url: Url = "https://example.com?token=old_token&other=param"
+ .parse()
+ .unwrap();
+ let code = SessionCode("new_code".to_string());
+ let mut dummy = DummyCb::default();
+
+ let result = update_url_with_session_code(url, Some(&code), async |x| dummy.cb(x).await)
+ .await
+ .unwrap();
+
+ let pairs: Vec<(String, String)> = result
+ .query_pairs()
+ .map(|(k, v)| (k.into_owned(), v.into_owned()))
+ .collect();
+
+ let token_pairs: Vec<_> = pairs.iter().filter(|(k, _)| k == "token").collect();
+ assert_eq!(token_pairs.len(), 1, "should have exactly one token param");
+ assert_eq!(token_pairs[0].1, "new_code");
+ assert!(pairs.iter().any(|(k, v)| k == "other" && v == "param"));
+ assert_eq!(dummy.called, 1);
+}
+
#[test]
fn html_redirect_works() {
let res = html_redirect_inner(&"https://example.com".parse().unwrap()).into_string();
diff --git a/rust/cloud-storage/authentication_service/src/api/oauth2/login.rs b/rust/cloud-storage/authentication_service/src/api/oauth2/login.rs
index d11bd91db8..d13a709b84 100644
--- a/rust/cloud-storage/authentication_service/src/api/oauth2/login.rs
+++ b/rust/cloud-storage/authentication_service/src/api/oauth2/login.rs
@@ -80,7 +80,13 @@ pub(in crate::api::oauth2) async fn handler(
};
if let Some(session_code) = session_code {
- // Append the session code to the url
+ // Strip any existing token params from the URL before appending the new one
+ let filtered: Vec<(String, String)> = url
+ .query_pairs()
+ .filter(|(k, _)| k != "token")
+ .map(|(k, v)| (k.into_owned(), v.into_owned()))
+ .collect();
+ url.query_pairs_mut().clear().extend_pairs(filtered);
url.query_pairs_mut().append_pair("token", &session_code);
ctx.macro_cache_client
diff --git a/rust/cloud-storage/authentication_service/src/main.rs b/rust/cloud-storage/authentication_service/src/main.rs
index 7b31066f10..d2aa9b445c 100644
--- a/rust/cloud-storage/authentication_service/src/main.rs
+++ b/rust/cloud-storage/authentication_service/src/main.rs
@@ -15,6 +15,7 @@ use github::{
use macro_auth::middleware::decode_jwt::JwtValidationArgs;
use macro_entrypoint::MacroEntrypoint;
use macro_middleware::auth::internal_access::InternalApiSecretKey;
+use macro_service_urls::EnvExtMacroServiceUrls;
use native_app_service::{
domain::{models::PlatformData, service::NativeAppServiceImpl},
outbound::DefaultBundleFetcher,
@@ -311,8 +312,7 @@ async fn main() -> anyhow::Result<()> {
teams_service: Arc::new(teams_service_impl),
referral_service: Arc::new(referral_service),
native_app_service: Arc::new(NativeAppServiceImpl {
- bundle_fetcher: DefaultBundleFetcher::default(),
- environment: config.environment,
+ bundle_fetcher: DefaultBundleFetcher::new(config.environment.app()),
platform_data: PlatformData {
ios_development_team_id: IOS_DEVELOPMENT_TEAM_ID.to_string(),
ios_app_bundle_id: IOS_APP_BUNDLE_ID.to_string(),
diff --git a/rust/cloud-storage/deny.toml b/rust/cloud-storage/deny.toml
index f0c335663c..fc5db10b8a 100644
--- a/rust/cloud-storage/deny.toml
+++ b/rust/cloud-storage/deny.toml
@@ -75,8 +75,8 @@ ignore = [
{ id = "RUSTSEC-2024-0436", reason = "Paste is a 'finished' crate which is heavily depended on" },
{ id = "RUSTSEC-2025-0012", reason = "Cannot remove dep due to 3rd party openai dependency" },
{ id = "RUSTSEC-2025-0057", reason = "We should switch to rustc-hash, but haven't got to that yet" },
- { id = "RUSTSEC-2026-0098", reason = "rustls-webpki 0.101.7 is pinned by AWS SDK's rustls 0.21.x, no patch in 0.101.x line" },
- { id = "RUSTSEC-2026-0099", reason = "rustls-webpki 0.101.7 is pinned by AWS SDK's rustls 0.21.x, no patch in 0.101.x line" },
+ { id = "RUSTSEC-2026-0098", reason = "rustls-webpki 0.101.7 pinned by AWS SDK via rustls 0.21" },
+ { id = "RUSTSEC-2026-0099", reason = "rustls-webpki 0.101.7 pinned by AWS SDK via rustls 0.21" },
#{ id = "RUSTSEC-0000-0000", reason = "you can specify a reason the advisory is ignored" },
#"[email protected]", # you can also ignore yanked crate versions if you wish
#{ crate = "[email protected]", reason = "you can specify why you are ignoring the yanked crate" },
@@ -190,6 +190,7 @@ deny = [
"email", # Dev logging only
"lambda_runtime_api_client", # External crate allowed to use tracing-subscriber
"macro_entrypoint",
+ "native_app_server", # Dev tooling only
"notification_sandbox", # This is not production code its just tooling
"tracing-opentelemetry", # OpenTelemetry integration requires tracing-subscriber
"tracing-panic", # External crate allowed to use tracing-subscriber
@@ -223,15 +224,29 @@ deny = [
# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
# These duplicates are due to complex dependency trees from AWS SDK, async-stripe, axum, and other major dependencies
+ { crate = "aligned-vec", reason = "Different dependencies require different versions" },
+ { crate = "base16ct", reason = "Cryptographic dependencies version mismatch" },
{ crate = "base64", reason = "AWS SDK and other dependencies require different versions" },
+ { crate = "bitflags", reason = "Different dependencies require different versions" },
+ { crate = "cpufeatures", reason = "Different dependencies require different versions" },
{ crate = "core-foundation", reason = "Different dependencies require different versions" },
{ crate = "crypto-bigint", reason = "AWS cryptographic dependencies version mismatch" },
{ crate = "cssparser", reason = "HTML parsing dependencies version mismatch" },
+ { crate = "darling", reason = "Derive macro dependencies version mismatch" },
+ { crate = "darling_core", reason = "Derive macro dependencies version mismatch" },
+ { crate = "darling_macro", reason = "Derive macro dependencies version mismatch" },
{ crate = "der", reason = "Cryptographic dependencies version mismatch" },
+ { crate = "ecdsa", reason = "Cryptographic dependencies version mismatch" },
+ { crate = "elliptic-curve", reason = "Cryptographic dependencies version mismatch" },
+ { crate = "event-listener", reason = "Async dependencies version mismatch" },
{ crate = "fastrand", reason = "Different dependencies require different versions" },
+ { crate = "ff", reason = "Cryptographic dependencies version mismatch" },
+ { crate = "foldhash", reason = "Hash function dependencies" },
{ crate = "getrandom", reason = "Random number generation dependencies" },
+ { crate = "group", reason = "Cryptographic dependencies version mismatch" },
{ crate = "h2", reason = "HTTP/2 dependencies version mismatch" },
{ crate = "hashbrown", reason = "Different dependencies require different versions" },
+ { crate = "heck", reason = "Different dependencies require different versions" },
{ crate = "html5ever", reason = "HTML parsing dependencies" },
{ crate = "http", reason = "Hyper and AWS SDK version mismatch" },
{ crate = "http-body", reason = "Hyper and AWS SDK version mismatch" },
@@ -240,25 +255,38 @@ skip = [
{ crate = "hyper-tls", reason = "TLS dependencies version mismatch" },
{ crate = "infer", reason = "File type detection dependencies" },
{ crate = "itertools", reason = "Various dependencies require different versions" },
+ { crate = "jsonwebtoken", reason = "Git fork and crates.io version coexist" },
+ { crate = "match_token", reason = "HTML parsing dependencies" },
{ crate = "markup5ever", reason = "HTML parsing dependencies" },
+ { crate = "mio", reason = "Different dependencies require different versions" },
+ { crate = "nix", reason = "Different dependencies require different versions" },
{ crate = "nom", reason = "Parser combinator dependencies" },
+ { crate = "p256", reason = "Cryptographic dependencies version mismatch" },
+ { crate = "pastey", reason = "Macro dependencies version mismatch" },
{ crate = "phf", reason = "Perfect hash function dependencies" },
{ crate = "phf_codegen", reason = "Perfect hash function dependencies" },
{ crate = "phf_generator", reason = "Perfect hash function dependencies" },
{ crate = "phf_shared", reason = "Perfect hash function dependencies" },
{ crate = "pkcs8", reason = "Cryptographic dependencies" },
+ { crate = "prost", reason = "Protocol buffer dependencies version mismatch" },
+ { crate = "prost-derive", reason = "Protocol buffer dependencies version mismatch" },
{ crate = "rand", reason = "Different dependencies require different versions" },
{ crate = "rand_chacha", reason = "Random number generation dependencies" },
{ crate = "rand_core", reason = "Different dependencies require different versions" },
+ { crate = "rfc6979", reason = "Cryptographic dependencies version mismatch" },
{ crate = "rustc-hash", reason = "Hash function dependencies" },
{ crate = "rustls", reason = "TLS dependencies version mismatch" },
{ crate = "rustls-webpki", reason = "TLS dependencies version mismatch" },
{ crate = "security-framework", reason = "macOS security framework dependencies" },
+ { crate = "sec1", reason = "Cryptographic dependencies version mismatch" },
{ crate = "selectors", reason = "CSS selector dependencies" },
{ crate = "serde_qs", reason = "Query string serialization dependencies" },
{ crate = "servo_arc", reason = "Arc implementation dependencies" },
{ crate = "signature", reason = "Cryptographic signature dependencies" },
{ crate = "siphasher", reason = "Hash function dependencies" },
+ { crate = "smol_str", reason = "Different dependencies require different versions" },
+ { crate = "socket2", reason = "Different dependencies require different versions" },
+ { crate = "spin", reason = "Different dependencies require different versions" },
{ crate = "spki", reason = "Cryptographic dependencies" },
{ crate = "syn", reason = "Procedural macros require different versions" },
{ crate = "thiserror", reason = "Error handling dependencies" },
@@ -276,7 +304,10 @@ skip = [
{ crate = "windows_x86_64_gnu", reason = "Windows dependencies" },
{ crate = "windows_x86_64_gnullvm", reason = "Windows dependencies" },
{ crate = "windows_x86_64_msvc", reason = "Windows dependencies" },
+ { crate = "windows-link", reason = "Windows dependencies" },
+ { crate = "windows_i686_gnullvm", reason = "Windows dependencies" },
{ crate = "zerocopy", reason = "Zero-copy serialization dependencies" },
+ { crate = "zip", reason = "Different dependencies require different versions" },
{ crate = "zune-core", reason = "Duplicated dep" },
{ crate = "zune-jpeg", reason = "Deuplicated dep" },
]
@@ -303,7 +334,10 @@ unknown-git = "warn"
# if not specified. If it is specified but empty, no registries are allowed.
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
# List of URLs for allowed Git repositories
-allow-git = ["git+https://github.com/seanaye/reqwest-middleware"]
+allow-git = [
+ "git+https://github.com/seanaye/reqwest-middleware",
+ "git+https://github.com/whutchinson98/jsonwebtoken",
+]
[sources.allow-org]
# github.com organizations to allow git sources for
diff --git a/rust/cloud-storage/entity_access_management/src/domain/service.rs b/rust/cloud-storage/entity_access_management/src/domain/service.rs
index ef4a7f4811..655644c903 100644
--- a/rust/cloud-storage/entity_access_management/src/domain/service.rs
+++ b/rust/cloud-storage/entity_access_management/src/domain/service.rs
@@ -70,10 +70,8 @@ impl<R: EntityAccessManagementRepository> EntityAccessManagementService
) -> Result<(), EntityAccessManagementError> {
match (old_project_id, new_project_id) {
// cannot both be the same
- (Some(old_project_id), Some(new_project_id)) => {
- if old_project_id.eq(new_project_id) {
- return Err(EntityAccessManagementError::InvalidProjectMove);
- }
+ (Some(old_project_id), Some(new_project_id)) if old_project_id.eq(new_project_id) => {
+ return Err(EntityAccessManagementError::InvalidProjectMove);
}
// cannot both be empty
(None, None) => {
diff --git a/rust/cloud-storage/github/Cargo.toml b/rust/cloud-storage/github/Cargo.toml
index ec9c53e8c2..ec16940ee4 100644
--- a/rust/cloud-storage/github/Cargo.toml
+++ b/rust/cloud-storage/github/Cargo.toml
@@ -33,7 +33,8 @@ entity_access = { path = "../entity_access", default-features = false, features
hex = { workspace = true }
hmac = { workspace = true }
jsonwebtoken = { workspace = true }
-macro_env = { path = "../macro_env", features = ["frontend_url"] }
+macro_env = { path = "../macro_env" }
+macro_service_urls = { path = "../macro_service_urls" }
regex = { workspace = true }
reqwest = { workspace = true, optional = true }
serde = { workspace = true }
diff --git a/rust/cloud-storage/github/src/inbound/github_sync_router/mod.rs b/rust/cloud-storage/github/src/inbound/github_sync_router/mod.rs
index 5fcd97f64d..241a1767eb 100644
--- a/rust/cloud-storage/github/src/inbound/github_sync_router/mod.rs
+++ b/rust/cloud-storage/github/src/inbound/github_sync_router/mod.rs
@@ -13,7 +13,7 @@ use axum::{
extract::{FromRequest, Request, State},
response::Redirect,
};
-use macro_env::ext::frontend_url::FrontendUrl;
+use macro_service_urls::EnvExtMacroServiceUrls;
use reqwest::StatusCode;
use std::sync::Arc;
@@ -101,11 +101,7 @@ pub struct SyncRedirectParams {
pub async fn sync_redirect_handler<T: GithubSyncService>(
axum::extract::Query(_params): axum::extract::Query<SyncRedirectParams>,
) -> Redirect {
- Redirect::temporary(
- macro_env::Environment::new_or_prod()
- .get_frontend_url()
- .as_str(),
- )
+ Redirect::temporary(macro_env::Environment::new_or_prod().app().as_str())
}
/// Extractor that validates an incoming GitHub webhook event.
diff --git a/rust/cloud-storage/macro_env/Cargo.toml b/rust/cloud-storage/macro_env/Cargo.toml
index d210d791a9..17326eb1dc 100644
--- a/rust/cloud-storage/macro_env/Cargo.toml
+++ b/rust/cloud-storage/macro_env/Cargo.toml
@@ -5,7 +5,6 @@ publish = false
version = "0.1.0"
[features]
-frontend_url = ["dep:url"]
strum = ["dep:strum"]
[dependencies]
@@ -14,4 +13,3 @@ serde = { workspace = true }
strum = { workspace = true, features = ["derive"], optional = true }
thiserror = { workspace = true }
tracing = { workspace = true }
-url = { workspace = true, optional = true }
diff --git a/rust/cloud-storage/macro_env/src/ext.rs b/rust/cloud-storage/macro_env/src/ext.rs
deleted file mode 100644
index f586526698..0000000000
--- a/rust/cloud-storage/macro_env/src/ext.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-//! This module provides common extention traits for the [super::Environment] that may be usefull in your service
-
-#[cfg(feature = "frontend_url")]
-/// Provides the implementation to return the expected [url::Url] for the frontend javascript bundle
-pub mod frontend_url;
diff --git a/rust/cloud-storage/macro_env/src/ext/frontend_url.rs b/rust/cloud-storage/macro_env/src/ext/frontend_url.rs
deleted file mode 100644
index 0833a6af03..0000000000
--- a/rust/cloud-storage/macro_env/src/ext/frontend_url.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-use crate::Environment;
-use url::Url;
-
-/// Return the expected [Url] for the frontend javascript bundle
-pub trait FrontendUrl {
- /// get the [Url]
- fn get_frontend_url(&self) -> Url;
-}
-
-impl FrontendUrl for Environment {
- fn get_frontend_url(&self) -> Url {
- match self {
- Environment::Production => "https://macro.com/app/".parse().unwrap(),
- Environment::Develop => "https://dev.macro.com/app/".parse().unwrap(),
- Environment::Local => {
- let port = std::env::var("FRONTEND_PORT").unwrap_or_else(|_| "3000".to_string());
- format!("http://localhost:{port}/app/").parse().unwrap()
- }
- }
- }
-}
diff --git a/rust/cloud-storage/macro_env/src/lib.rs b/rust/cloud-storage/macro_env/src/lib.rs
index ee0915252a..7d4fde4075 100644
--- a/rust/cloud-storage/macro_env/src/lib.rs
+++ b/rust/cloud-storage/macro_env/src/lib.rs
@@ -5,8 +5,6 @@ use macro_env_var::VarNameErr;
use std::{fmt::Display, str::FromStr};
use thiserror::Error;
-pub mod ext;
-
mod var {
macro_env_var::env_var!(
#[derive(Clone)]
diff --git a/rust/cloud-storage/native_app_service/Cargo.toml b/rust/cloud-storage/native_app_service/Cargo.toml
index 8a1a87e2eb..d7767d9ec2 100644
--- a/rust/cloud-storage/native_app_service/Cargo.toml
+++ b/rust/cloud-storage/native_app_service/Cargo.toml
@@ -7,17 +7,17 @@ version = "0.1.0"
[dependencies]
anyhow = { workspace = true }
axum = { workspace = true, features = ["macros"] }
-macro_env = { path = "../macro_env", features = ["frontend_url"] }
reqwest = { workspace = true }
-semver = { version = "1", features = ["serde"] }
+semver = { workspace = true }
+sha2 = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
thiserror = { workspace = true }
+tokio = { workspace = true }
tracing = { workspace = true }
url = { workspace = true, features = ["serde"] }
[dev-dependencies]
cool_asserts = "2"
-macro_env = { path = "../macro_env", features = ["strum"] }
strum = { workspace = true, features = ["derive"] }
tokio = { workspace = true, features = ["macros", "rt"] }
diff --git a/rust/cloud-storage/native_app_service/src/domain/models.rs b/rust/cloud-storage/native_app_service/src/domain/models.rs
index 268d4fcb0a..c231f38ab2 100644
--- a/rust/cloud-storage/native_app_service/src/domain/models.rs
+++ b/rust/cloud-storage/native_app_service/src/domain/models.rs
@@ -76,6 +76,8 @@ pub struct BundleUpdate {
pub(crate) notes: Option<String>,
/// the fully qualified Url where the update bundle exists
pub(crate) url: Url,
+ /// the expected SHA-256 hex digest of the bundle archive
+ pub(crate) checksum: String,
}
/// The payload to check if there is a native app js bundle update available
diff --git a/rust/cloud-storage/native_app_service/src/domain/ports.rs b/rust/cloud-storage/native_app_service/src/domain/ports.rs
index 93b2a4f348..bb6ace30bc 100644
--- a/rust/cloud-storage/native_app_service/src/domain/ports.rs
+++ b/rust/cloud-storage/native_app_service/src/domain/ports.rs
@@ -1,16 +1,17 @@
use crate::domain::models::{BundleUpdate, BundleUpdateRequest, PlatformVerifier, UpdateErr};
-use macro_env::Environment;
use url::Url;
/// outbound trait for sending network requests to query the bundle state
pub trait GetJsBundleSemver: Send + Sync + 'static {
/// fetch the semver of the current app over the network
- fn get_app_semver(
- &self,
- env: &Environment,
- ) -> impl Future<Output = Result<semver::Version, UpdateErr>> + Send;
+ fn get_app_semver(&self) -> impl Future<Output = Result<semver::Version, UpdateErr>> + Send;
/// get the Url of the bundle
- fn get_app_bundle_path(&self, env: &Environment) -> Url;
+ fn get_app_bundle_path(&self) -> Url;
+ /// get the SHA-256 hex digest of the bundle archive for the given version
+ fn get_app_bundle_checksum(
+ &self,
+ version: &semver::Version,
+ ) -> impl Future<Output = Result<String, UpdateErr>> + Send;
}
/// the service level trait for dealing with tauri app integration
diff --git a/rust/cloud-storage/native_app_service/src/domain/service.rs b/rust/cloud-storage/native_app_service/src/domain/service.rs
index 540de2a5d4..6a582f67b3 100644
--- a/rust/cloud-storage/native_app_service/src/domain/service.rs
+++ b/rust/cloud-storage/native_app_service/src/domain/service.rs
@@ -1,5 +1,3 @@
-use macro_env::Environment;
-
use crate::domain::{
models::{BundleUpdate, BundleUpdateRequest, PlatformData, PlatformVerifier, UpdateErr},
ports::{GetJsBundleSemver, NativeAppService},
@@ -9,9 +7,6 @@ use crate::domain::{
pub struct NativeAppServiceImpl<T> {
/// the implementation of [GetJsBundleSemver]
pub bundle_fetcher: T,
- /// the environment we are running in
- pub environment: Environment,
-
/// the platform data for various platforms
pub platform_data: PlatformData,
}
@@ -31,15 +26,17 @@ where
semver: cur_ver,
} = req;
- let most_recent = self
- .bundle_fetcher
- .get_app_semver(&self.environment)
- .await?;
+ let most_recent = self.bundle_fetcher.get_app_semver().await?;
if most_recent > cur_ver {
+ let checksum = self
+ .bundle_fetcher
+ .get_app_bundle_checksum(&most_recent)
+ .await?;
return Ok(Some(BundleUpdate {
version: most_recent,
notes: None,
- url: self.bundle_fetcher.get_app_bundle_path(&self.environment),
+ url: self.bundle_fetcher.get_app_bundle_path(),
+ checksum,
}));
}
diff --git a/rust/cloud-storage/native_app_service/src/outbound.rs b/rust/cloud-storage/native_app_service/src/outbound.rs
index b974ff0e72..fe9a0d4801 100644
--- a/rust/cloud-storage/native_app_service/src/outbound.rs
+++ b/rust/cloud-storage/native_app_service/src/outbound.rs
@@ -2,32 +2,55 @@ use crate::domain::{
models::{BUNDLE_ARCHIVE_NAME, SEMVER_FILE_NAME, UpdateErr},
ports::GetJsBundleSemver,
};
-use macro_env::{Environment, ext::frontend_url::FrontendUrl};
+use sha2::{Digest, Sha256};
use std::str::FromStr;
+use tokio::sync::RwLock;
use url::Url;
/// unit struct to define the default behaviour of the service
/// (not mocked service)
pub struct DefaultBundleFetcher {
+ /// the base url of the frontend app
+ pub base_url: Url,
/// the file name of the semver file in the js app s3 bucket
pub semver_file_name: &'static str,
/// the name of the bundle archive on the s3 bucket
pub bundle_archive_name: &'static str,
+ /// cached (version, checksum) to avoid re-downloading the bundle
+ checksum_cache: RwLock<Option<(semver::Version, String)>>,
}
-impl Default for DefaultBundleFetcher {
- fn default() -> Self {
+impl DefaultBundleFetcher {
+ /// Create a new [DefaultBundleFetcher] with the given base URL and default file names
+ pub fn new(base_url: Url) -> Self {
Self {
+ base_url,
semver_file_name: SEMVER_FILE_NAME,
bundle_archive_name: BUNDLE_ARCHIVE_NAME,
+ checksum_cache: RwLock::new(None),
}
}
+
+ /// Download the bundle and compute its SHA-256 hex digest
+ async fn compute_checksum(&self) -> Result<String, UpdateErr> {
+ let url = self.get_app_bundle_path();
+ let bytes = reqwest::get(url)
+ .await
+ .map_err(anyhow::Error::from)?
+ .error_for_status()
+ .map_err(anyhow::Error::from)?
+ .bytes()
+ .await
+ .map_err(anyhow::Error::from)?;
+ let hash = Sha256::digest(&bytes);
+ Ok(format!("{:x}", hash))
+ }
}
impl GetJsBundleSemver for DefaultBundleFetcher {
#[tracing::instrument(skip(self), ret, err)]
- async fn get_app_semver(&self, env: &Environment) -> Result<semver::Version, UpdateErr> {
- let url = env.get_frontend_url().join(self.semver_file_name).unwrap();
+ async fn get_app_semver(&self) -> Result<semver::Version, UpdateErr> {
+ let url = self.base_url.join(self.semver_file_name).unwrap();
let res = reqwest::get(url)
.await
.map_err(anyhow::Error::from)?
@@ -40,9 +63,24 @@ impl GetJsBundleSemver for DefaultBundleFetcher {
Ok(cur_ver)
}
- fn get_app_bundle_path(&self, env: &Environment) -> Url {
- env.get_frontend_url()
- .join(self.bundle_archive_name)
- .unwrap()
+ fn get_app_bundle_path(&self) -> Url {
+ self.base_url.join(self.bundle_archive_name).unwrap()
+ }
+
+ #[tracing::instrument(skip(self), ret, err)]
+ async fn get_app_bundle_checksum(
+ &self,
+ version: &semver::Version,
+ ) -> Result<String, UpdateErr> {
+ // return cached checksum if version matches
+ if let Some((cached_ver, cached_checksum)) = self.checksum_cache.read().await.as_ref()
+ && cached_ver == version
+ {
+ return Ok(cached_checksum.clone());
+ }
+
+ let checksum = self.compute_checksum().await?;
+ *self.checksum_cache.write().await = Some((version.clone(), checksum.clone()));
+ Ok(checksum)
}
}
diff --git a/rust/cloud-storage/native_app_service/src/tests.rs b/rust/cloud-storage/native_app_service/src/tests.rs
index f2abe313cd..06cb173f69 100644
--- a/rust/cloud-storage/native_app_service/src/tests.rs
+++ b/rust/cloud-storage/native_app_service/src/tests.rs
@@ -9,7 +9,6 @@ use crate::{
},
outbound::DefaultBundleFetcher,
};
-use macro_env::Environment;
use reqwest::Url;
use cool_asserts::assert_matches;
@@ -18,25 +17,27 @@ use strum::IntoEnumIterator;
#[test]
fn all_urls_work() {
- let fetcher = DefaultBundleFetcher {
- semver_file_name: "",
- bundle_archive_name: "",
- };
- let _urls = Environment::iter()
- .map(|e| fetcher.get_app_bundle_path(&e))
- .collect::<Vec<_>>();
+ let fetcher = DefaultBundleFetcher::new("https://macro.com".parse().unwrap());
+ let _url = fetcher.get_app_bundle_path();
}
struct MockBundleFetcher;
impl GetJsBundleSemver for MockBundleFetcher {
- async fn get_app_semver(&self, _env: &Environment) -> Result<semver::Version, UpdateErr> {
+ async fn get_app_semver(&self) -> Result<semver::Version, UpdateErr> {
Ok("1.1.1".parse().unwrap())
}
- fn get_app_bundle_path(&self, _env: &Environment) -> Url {
+ fn get_app_bundle_path(&self) -> Url {
"https://example.com".parse().unwrap()
}
+
+ async fn get_app_bundle_checksum(
+ &self,
+ _version: &semver::Version,
+ ) -> Result<String, UpdateErr> {
+ Ok("abc123".to_string())
+ }
}
fn mock_platform_data() -> PlatformData {
@@ -50,125 +51,118 @@ fn mock_platform_data() -> PlatformData {
async fn it_should_not_downgrade_mobile() {
let semver: Version = "1.2.1".parse().unwrap();
- let iter = MobileTarget::iter()
- .flat_map(move |target| {
- let semver = semver.clone();
- Arch::iter().map(move |arch| (AllTargets::Mobile(target), arch, semver.clone()))
- })
- .flat_map(|p| Environment::iter().map(move |e| (p.clone(), e)))
- .map(|((target, arch, semver), e)| async move {
- let service = NativeAppServiceImpl {
- bundle_fetcher: MockBundleFetcher,
- environment: e,
- platform_data: mock_platform_data(),
- };
+ let service = NativeAppServiceImpl {
+ bundle_fetcher: MockBundleFetcher,
+ platform_data: mock_platform_data(),
+ };
+
+ let iter = MobileTarget::iter().flat_map(move |target| {
+ let semver = semver.clone();
+ Arch::iter().map(move |arch| (AllTargets::Mobile(target), arch, semver.clone()))
+ });
+ for (target, arch, semver) in iter {
+ assert_matches!(
service
.get_bundle_update(domain::models::BundleUpdateRequest {
target,
arch,
semver,
})
- .await
- });
-
- for fut in iter {
- assert_matches!(fut.await, Ok(None))
+ .await,
+ Ok(None)
+ );
}
}
#[tokio::test]
async fn it_should_upgrade_mobile() {
let semver: Version = "1.0.1".parse().unwrap();
- let iter = MobileTarget::iter()
- .flat_map(move |target| {
- let semver = semver.clone();
- Arch::iter().map(move |arch| (AllTargets::Mobile(target), arch, semver.clone()))
- })
- .flat_map(|p| Environment::iter().map(move |e| (p.clone(), e)))
- .map(|((target, arch, semver), e)| async move {
- let service = NativeAppServiceImpl {
- bundle_fetcher: MockBundleFetcher,
- environment: e,
- platform_data: mock_platform_data(),
- };
+ let service = NativeAppServiceImpl {
+ bundle_fetcher: MockBundleFetcher,
+ platform_data: mock_platform_data(),
+ };
+
+ let iter = MobileTarget::iter().flat_map(move |target| {
+ let semver = semver.clone();
+ Arch::iter().map(move |arch| (AllTargets::Mobile(target), arch, semver.clone()))
+ });
+
+ for (target, arch, semver) in iter {
+ assert_matches!(
service
.get_bundle_update(domain::models::BundleUpdateRequest {
target,
arch,
semver,
})
- .await
- });
-
- for fut in iter {
- assert_matches!(fut.await, Ok(Some(BundleUpdate { version, notes: _, url })) => {
- assert_eq!(version.to_string(), "1.1.1");
- assert_eq!(url.as_str(), "https://example.com/");
- })
+ .await,
+ Ok(Some(BundleUpdate { version, notes: _, url, checksum })) => {
+ assert_eq!(version.to_string(), "1.1.1");
+ assert_eq!(url.as_str(), "https://example.com/");
+ assert_eq!(checksum, "abc123");
+ }
+ );
}
}
#[tokio::test]
async fn it_should_not_downgrade_desktop() {
let semver: Version = "1.2.1".parse().unwrap();
- let iter = DesktopTarget::iter()
- .flat_map(move |target| {
- let semver = semver.clone();
- Arch::iter().map(move |arch| (AllTargets::Desktop(target), arch, semver.clone()))
- })
- .flat_map(|p| Environment::iter().map(move |e| (p.clone(), e)))
- .map(|((target, arch, semver), e)| async move {
- let service = NativeAppServiceImpl {
- bundle_fetcher: MockBundleFetcher,
- environment: e,
- platform_data: mock_platform_data(),
- };
+ let service = NativeAppServiceImpl {
+ bundle_fetcher: MockBundleFetcher,
+ platform_data: mock_platform_data(),
+ };
+
+ let iter = DesktopTarget::iter().flat_map(move |target| {
+ let semver = semver.clone();
+ Arch::iter().map(move |arch| (AllTargets::Desktop(target), arch, semver.clone()))
+ });
+
+ for (target, arch, semver) in iter {
+ assert_matches!(
service
.get_bundle_update(domain::models::BundleUpdateRequest {
target,
arch,
semver,
})
- .await
- });
-
- for fut in iter {
- assert_matches!(fut.await, Ok(None));
+ .await,
+ Ok(None)
+ );
}
}
#[tokio::test]
async fn it_should_upgrade_desktop() {
let semver: Version = "1.0.1".parse().unwrap();
- let iter = DesktopTarget::iter()
- .flat_map(move |target| {
- let semver = semver.clone();
- Arch::iter().map(move |arch| (AllTargets::Desktop(target), arch, semver.clone()))
- })
- .flat_map(|p| Environment::iter().map(move |e| (p.clone(), e)))
- .map(|((target, arch, semver), e)| async move {
- let service = NativeAppServiceImpl {
- bundle_fetcher: MockBundleFetcher,
- environment: e,
- platform_data: mock_platform_data(),
- };
+ let service = NativeAppServiceImpl {
+ bundle_fetcher: MockBundleFetcher,
+ platform_data: mock_platform_data(),
+ };
+
+ let iter = DesktopTarget::iter().flat_map(move |target| {
+ let semver = semver.clone();
+ Arch::iter().map(move |arch| (AllTargets::Desktop(target), arch, semver.clone()))
+ });
+
+ for (target, arch, semver) in iter {
+ assert_matches!(
service
.get_bundle_update(domain::models::BundleUpdateRequest {
target,
arch,
semver,
})
- .await
- });
-
- for fut in iter {
- assert_matches!(fut.await, Ok(Some(BundleUpdate { version, notes: _, url })) => {
- assert_eq!(version.to_string(), "1.1.1");
- assert_eq!(url.as_str(), "https://example.com/");
- })
+ .await,
+ Ok(Some(BundleUpdate { version, notes: _, url, checksum })) => {
+ assert_eq!(version.to_string(), "1.1.1");
+ assert_eq!(url.as_str(), "https://example.com/");
+ assert_eq!(checksum, "abc123");
+ }
+ );
}
}
diff --git a/rust/cloud-storage/notification_service/Cargo.toml b/rust/cloud-storage/notification_service/Cargo.toml
index 8655daf8ea..a0464362ec 100644
--- a/rust/cloud-storage/notification_service/Cargo.toml
+++ b/rust/cloud-storage/notification_service/Cargo.toml
@@ -37,7 +37,7 @@ macro_auth = { path = "../macro_auth" }
macro_aws_config = { path = "../macro_aws_config" }
macro_cors = { path = "../macro_cors" }
macro_entrypoint = { path = "../macro_entrypoint" }
-macro_env = { path = "../macro_env", features = ["frontend_url"] }
+macro_env = { path = "../macro_env" }
macro_env_var = { path = "../macro_env_var" }
macro_middleware = { path = "../macro_middleware", default-features = false, features = [
"auth",
diff --git a/rust/cloud-storage/sqs_client/Cargo.toml b/rust/cloud-storage/sqs_client/Cargo.toml
index 07eeceda1f..716578361e 100644
--- a/rust/cloud-storage/sqs_client/Cargo.toml
+++ b/rust/cloud-storage/sqs_client/Cargo.toml
@@ -24,8 +24,8 @@ default = [
]
document = []
document_text_extractor = []
-email = ["uuid", "models_email", "dep:email"]
-gmail = ["model", "uuid"]
+email = ["uuid", "models_email", "dep:email", "gmail"]
+gmail = ["model", "models_email", "uuid"]
organization_retention = []
search = ["chrono", "model", "models_opensearch", "uuid", "futures"]
sfs_delete = []
diff --git a/rust/cloud-storage/tools/native_app_server/.gitignore b/rust/cloud-storage/tools/native_app_server/.gitignore
new file mode 100644
index 0000000000..223a3561d4
--- /dev/null
+++ b/rust/cloud-storage/tools/native_app_server/.gitignore
@@ -0,0 +1 @@
+app-archive.zip
diff --git a/rust/cloud-storage/tools/native_app_server/Cargo.toml b/rust/cloud-storage/tools/native_app_server/Cargo.toml
new file mode 100644
index 0000000000..239464b067
--- /dev/null
+++ b/rust/cloud-storage/tools/native_app_server/Cargo.toml
@@ -0,0 +1,15 @@
+[package]
+name = "native_app_server"
+version = "0.1.0"
+edition = "2024"
+publish = false
+
+[dependencies]
+axum = { workspace = true }
+native_app_service = { path = "../../native_app_service" }
+semver = { workspace = true }
+tokio = { workspace = true }
+tower-http = { workspace = true, features = ["fs"] }
+tracing = { workspace = true }
+tracing-subscriber = { workspace = true }
+url = { workspace = true }
diff --git a/rust/cloud-storage/tools/native_app_server/src/main.rs b/rust/cloud-storage/tools/native_app_server/src/main.rs
new file mode 100644
index 0000000000..56fab75a99
--- /dev/null
+++ b/rust/cloud-storage/tools/native_app_server/src/main.rs
@@ -0,0 +1,75 @@
+use std::sync::Arc;
+
+use native_app_service::{
+ domain::{
+ models::{PlatformData, UpdateErr},
+ ports::GetJsBundleSemver,
+ service::NativeAppServiceImpl,
+ },
+ inbound::{RouterState, native_app_router},
+};
+use tower_http::services::ServeFile;
+use url::Url;
+
+/// Bundle fetcher that always reports a very high version, forcing an update.
+struct AlwaysUpdateFetcher {
+ bundle_url: Url,
+ checksum: String,
+}
+
+impl GetJsBundleSemver for AlwaysUpdateFetcher {
+ async fn get_app_semver(&self) -> Result<semver::Version, UpdateErr> {
+ Ok(semver::Version::new(999, 0, 0))
+ }
+
+ fn get_app_bundle_path(&self) -> Url {
+ self.bundle_url.clone()
+ }
+
+ async fn get_app_bundle_checksum(
+ &self,
+ _version: &semver::Version,
+ ) -> Result<String, UpdateErr> {
+ Ok(self.checksum.clone())
+ }
+}
+
+const ADDR: &str = "127.0.0.1:3001";
+const ARCHIVE_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/app-archive.zip");
+
+#[tokio::main]
+async fn main() {
+ tracing_subscriber::fmt::init();
+
+ let bundle_url: Url = std::env::var("BUNDLE_URL")
+ .unwrap_or_else(|_| format!("http://{ADDR}/app-archive.zip"))
+ .parse()
+ .expect("BUNDLE_URL must be a valid URL");
+
+ let checksum = std::env::var("BUNDLE_CHECKSUM").unwrap_or_else(|_| {
+ "1be759e3b1befdd6639cd89f93e9aa79857ca5c06c06e71de9b3702a9cd8af29".to_string()
+ });
+
+ let service = NativeAppServiceImpl {
+ bundle_fetcher: AlwaysUpdateFetcher {
+ bundle_url,
+ checksum,
+ },
+ platform_data: PlatformData {
+ ios_development_team_id: String::new(),
+ ios_app_bundle_id: String::new(),
+ },
+ };
+
+ let state = RouterState {
+ inner: Arc::new(service),
+ };
+
+ let app =
+ native_app_router(state).route_service("/app-archive.zip", ServeFile::new(ARCHIVE_PATH));
+
+ tracing::info!("Listening on {ADDR}");
+
+ let listener = tokio::net::TcpListener::bind(ADDR).await.unwrap();
+ axum::serve(listener, app).await.unwrap();
+}