Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

LordOS Imager for the desktop (Tauri)

Federico Pereira3925571b7621
diff --git a/.gitignore b/.gitignore
index 24fc4c0..6439c10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,8 @@ assets/locales/*.tgz
logs/
/code-manifest.json
/code-manifest.sig
+# the desktop imager's builds (desktop/imager, docs/IMAGER.md)
+desktop/imager/target/
+desktop/imager/dist/
+desktop/imager/node_modules/
+desktop/imager/src-tauri/gen/
diff --git a/apps/imager/state.js b/apps/imager/state.js
index 85e15a8..64a7257 100644
--- a/apps/imager/state.js
+++ b/apps/imager/state.js
@@ -52,7 +52,7 @@ export async function loadReleases() {
set((st) => ({ releases: { state: 'ok', list, error: null, all: text }, image: st.image || (list[0] ? officialImage(list[0]) : null) }));
} catch (e) {
// offline: what was fetched before still works (the signature is checked again before writing)
- const cached = platform.cachedReleases();
+ const cached = await platform.cachedReleases();
const list = cached ? parseReleases(cached, app.get().device) : [];
set({ releases: { state: list.length ? 'stale' : 'error', list, error: e.message || String(e), all: cached } });
}
@@ -105,7 +105,7 @@ export async function run() {
setJob({ phase: 'signature' });
const sumsPath = await platform.download(r.tag, r.sums);
const sigPath = await platform.download(r.tag, r.sig);
- const check = platform.checkSums(await platform.readText(sumsPath), await platform.readText(sigPath));
+ const check = await platform.checkSums(await platform.readText(sumsPath), await platform.readText(sigPath));
if (!check || !check.ok) throw Object.assign(new Error('imager.err.badSignature'), { code: 'imager.badSignature' });
if (!check.files[r.image.name]) throw Object.assign(new Error('imager.err.notListed'), { code: 'imager.notListed' });
mark('signature');
diff --git a/apps/imager/ui/StepStorage.jsx b/apps/imager/ui/StepStorage.jsx
index fec05ec..08e17b9 100644
--- a/apps/imager/ui/StepStorage.jsx
+++ b/apps/imager/ui/StepStorage.jsx
@@ -19,6 +19,7 @@ const BIG = 300e9; // a removable drive this large is probably someone'
export function driveProblem(s, d) {
const dev = deviceById(s.device);
if (d.readOnly) return 'imager.storage.readOnly';
+ if (d.size > 2 ** 41) return 'imager.storage.tooLargeMbr'; // MBR images: 2 TiB at most (and not a card)
const need = s.image?.raw || (s.image?.official ? null : s.image?.size);
if (need && fits(need, d.size) === 'no') return 'imager.storage.tooSmall';
if (d.size < MIN[dev.kind]) return dev.kind === 'pi' ? 'imager.storage.tooSmallPi' : 'imager.storage.tooSmallPc';
diff --git a/assets/locales/en/errors.json b/assets/locales/en/errors.json
index a272b1c..d83a1c6 100644
--- a/assets/locales/en/errors.json
+++ b/assets/locales/en/errors.json
@@ -587,5 +587,13 @@
"imager.hashMismatch": "The image doesn't match its signed SHA-256: it was not written",
"imager.cancelledWiped": "Cancelled: the drive was cleared",
"imager.xzFailed": "The image couldn't be decompressed",
- "imager.imageChanged": "The image file changed while it was written: the drive was cleared"
+ "imager.imageChanged": "The image file changed while it was written: the drive was cleared",
+ "imager.driveTooLarge": "{name} is larger than 2 TiB: LordOS images can't use it",
+ "imager.notAuthorized": "Writing to the drive wasn't allowed",
+ "imager.listFailed": "The drives couldn't be listed",
+ "imager.bootNotFound": "The card's boot partition didn't appear",
+ "imager.ejectFailed": "The drive couldn't be ejected",
+ "imager.noUdisks": "The disk service (udisks2) isn't running",
+ "imager.hashFailed": "The password couldn't be hashed",
+ "imager.pskFailed": "The Wi-Fi key couldn't be derived"
}
diff --git a/assets/locales/en/imager.json b/assets/locales/en/imager.json
index 9228830..c7ffdf8 100644
--- a/assets/locales/en/imager.json
+++ b/assets/locales/en/imager.json
@@ -279,6 +279,7 @@
"storage.readOnly": "Write-protected: slide the card's lock switch.",
"storage.text": "The SD card or USB drive LordOS will be written to.",
"storage.title": "Choose the storage",
+ "storage.tooLargeMbr": "Larger than 2 TiB: LordOS images can't use a drive this big (and it isn't a card or a stick).",
"storage.tooSmall": "Too small for this image.",
"storage.tooSmallPc": "Too small: use a drive of at least 2 GB.",
"storage.tooSmallPi": "Too small: use a card of at least 8 GB (16 GB or more is better).",
diff --git a/assets/locales/es/errors.json b/assets/locales/es/errors.json
index fd1254b..557f28d 100644
--- a/assets/locales/es/errors.json
+++ b/assets/locales/es/errors.json
@@ -587,5 +587,13 @@
"imager.hashMismatch": "La imagen no coincide con su SHA-256 firmado: no se grabó",
"imager.cancelledWiped": "Cancelado: la unidad quedó limpia",
"imager.xzFailed": "No se pudo descomprimir la imagen",
- "imager.imageChanged": "El archivo de imagen cambió mientras se grababa: la unidad quedó limpia"
+ "imager.imageChanged": "El archivo de imagen cambió mientras se grababa: la unidad quedó limpia",
+ "imager.driveTooLarge": "{name} tiene más de 2 TiB: las imágenes de LordOS no pueden usarla",
+ "imager.notAuthorized": "No se permitió grabar en la unidad",
+ "imager.listFailed": "No se pudieron listar las unidades",
+ "imager.bootNotFound": "No apareció la partición de arranque de la tarjeta",
+ "imager.ejectFailed": "No se pudo expulsar la unidad",
+ "imager.noUdisks": "El servicio de discos (udisks2) no está funcionando",
+ "imager.hashFailed": "No se pudo calcular el hash de la contraseña",
+ "imager.pskFailed": "No se pudo derivar la clave del Wi-Fi"
}
diff --git a/assets/locales/es/imager.json b/assets/locales/es/imager.json
index f031c02..a46c525 100644
--- a/assets/locales/es/imager.json
+++ b/assets/locales/es/imager.json
@@ -279,6 +279,7 @@
"storage.readOnly": "Protegida contra escritura: mové la traba de la tarjeta.",
"storage.text": "La tarjeta SD o la unidad USB donde se va a grabar LordOS.",
"storage.title": "Elegí el almacenamiento",
+ "storage.tooLargeMbr": "Más de 2 TiB: las imágenes de LordOS no pueden usar una unidad tan grande (y no es una tarjeta ni un pendrive).",
"storage.tooSmall": "Demasiado chica para esta imagen.",
"storage.tooSmallPc": "Demasiado chica: usá una unidad de al menos 2 GB.",
"storage.tooSmallPi": "Demasiado chica: usá una tarjeta de al menos 8 GB (16 GB o más es mejor).",
diff --git a/assets/locales/pt/errors.json b/assets/locales/pt/errors.json
index 6cea98f..942f7b8 100644
--- a/assets/locales/pt/errors.json
+++ b/assets/locales/pt/errors.json
@@ -587,5 +587,13 @@
"imager.hashMismatch": "A imagem não confere com o seu SHA-256 assinado: ela não foi gravada",
"imager.cancelledWiped": "Cancelado: a unidade foi limpa",
"imager.xzFailed": "Não foi possível descompactar a imagem",
- "imager.imageChanged": "O arquivo de imagem mudou durante a gravação: a unidade foi limpa"
+ "imager.imageChanged": "O arquivo de imagem mudou durante a gravação: a unidade foi limpa",
+ "imager.driveTooLarge": "{name} tem mais de 2 TiB: as imagens do LordOS não podem usá-la",
+ "imager.notAuthorized": "A gravação na unidade não foi permitida",
+ "imager.listFailed": "Não foi possível listar as unidades",
+ "imager.bootNotFound": "A partição de boot do cartão não apareceu",
+ "imager.ejectFailed": "Não foi possível ejetar a unidade",
+ "imager.noUdisks": "O serviço de discos (udisks2) não está funcionando",
+ "imager.hashFailed": "Não foi possível calcular o hash da senha",
+ "imager.pskFailed": "Não foi possível derivar a chave do Wi-Fi"
}
diff --git a/assets/locales/pt/imager.json b/assets/locales/pt/imager.json
index 52471d1..1c999cf 100644
--- a/assets/locales/pt/imager.json
+++ b/assets/locales/pt/imager.json
@@ -279,6 +279,7 @@
"storage.readOnly": "Protegido contra gravação: mova a trava do cartão.",
"storage.text": "O cartão SD ou a unidade USB onde o LordOS será gravado.",
"storage.title": "Escolha o armazenamento",
+ "storage.tooLargeMbr": "Maior que 2 TiB: as imagens do LordOS não podem usar uma unidade tão grande (e não é um cartão nem um pendrive).",
"storage.tooSmall": "Pequena demais para esta imagem.",
"storage.tooSmallPc": "Pequena demais: use uma unidade de pelo menos 2 GB.",
"storage.tooSmallPi": "Pequeno demais: use um cartão de pelo menos 8 GB (16 GB ou mais é melhor).",
diff --git a/desktop/imager/Cargo.lock b/desktop/imager/Cargo.lock
new file mode 100644
index 0000000..dfadf4e
--- /dev/null
+++ b/desktop/imager/Cargo.lock
@@ -0,0 +1,5685 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "adler2"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+
+[[package]]
+name = "aho-corasick"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "alloc-no-stdlib"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a"
+
+[[package]]
+name = "alloc-stdlib"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1"
+dependencies = [
+ "alloc-no-stdlib",
+]
+
+[[package]]
+name = "android_system_properties"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "anyhow"
+version = "1.0.104"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
+
+[[package]]
+name = "async-broadcast"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-channel"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
+dependencies = [
+ "concurrent-queue",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-executor"
+version = "1.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "async-fs"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5"
+dependencies = [
+ "async-lock",
+ "blocking",
+ "futures-lite",
+]
+
+[[package]]
+name = "async-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-lock"
+version = "3.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-process"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
+dependencies = [
+ "async-channel",
+ "async-io",
+ "async-lock",
+ "async-signal",
+ "async-task",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "rustix",
+]
+
+[[package]]
+name = "async-recursion"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "async-signal"
+version = "0.2.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
+dependencies = [
+ "async-io",
+ "async-lock",
+ "atomic-waker",
+ "cfg-if",
+ "futures-core",
+ "futures-io",
+ "rustix",
+ "signal-hook-registry",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-task"
+version = "4.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
+
+[[package]]
+name = "async-trait"
+version = "0.1.92"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "atk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b"
+dependencies = [
+ "atk-sys",
+ "glib",
+ "libc",
+]
+
+[[package]]
+name = "atk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "atomic-waker"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
+
+[[package]]
+name = "autocfg"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
+
+[[package]]
+name = "base64"
+version = "0.21.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
+
+[[package]]
+name = "base64"
+version = "0.22.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+
+[[package]]
+name = "base64"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
+
+[[package]]
+name = "base64ct"
+version = "1.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
+
+[[package]]
+name = "bit-set"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
+dependencies = [
+ "bit-vec",
+]
+
+[[package]]
+name = "bit-vec"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "block-buffer"
+version = "0.10.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "block2"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
+dependencies = [
+ "objc2",
+]
+
+[[package]]
+name = "blocking"
+version = "1.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa"
+dependencies = [
+ "async-channel",
+ "async-task",
+ "futures-io",
+ "futures-lite",
+ "piper",
+]
+
+[[package]]
+name = "brotli"
+version = "9.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8b851b75c23ca7873623d612fe49bd1989aeb03d08fb9432187eb253d3d4c6b"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+ "brotli-decompressor",
+]
+
+[[package]]
+name = "brotli-decompressor"
+version = "6.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "941cd9bd4ddab83cb46fa5a2d428f1c857b24ac78cb876cf7beb710840934bd7"
+dependencies = [
+ "alloc-no-stdlib",
+ "alloc-stdlib",
+]
+
+[[package]]
+name = "bs58"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4"
+dependencies = [
+ "tinyvec",
+]
+
+[[package]]
+name = "bumpalo"
+version = "3.20.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
+
+[[package]]
+name = "bytemuck"
+version = "1.25.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "bytes"
+version = "1.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "cairo-rs"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"
+dependencies = [
+ "bitflags 2.13.2",
+ "cairo-sys-rs",
+ "glib",
+ "libc",
+ "once_cell",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "cairo-sys-rs"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "camino"
+version = "1.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bbbad30e4b4c14a39e3cc8aed085a12a327257c316619c93581e017bc52be591"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "cargo-platform"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "cargo_metadata"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"
+dependencies = [
+ "camino",
+ "cargo-platform",
+ "semver",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "cargo_toml"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82f4b26e751e711a5302649417f2da046dce6391b2ea30a4820f37462314f0b9"
+dependencies = [
+ "semver",
+ "serde",
+ "toml 1.1.8+spec-1.1.0",
+]
+
+[[package]]
+name = "cc"
+version = "1.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "877bf67ac8e52449eb2f9e98a344ea163beb70dd1f9eebe3cc5357dcfeaee4df"
+dependencies = [
+ "find-msvc-tools",
+ "shlex",
+]
+
+[[package]]
+name = "cesu8"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
+
+[[package]]
+name = "cfb"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a347dcabdae9c31b0825fd6a8bed285ec9c2acb89c47827126d52fa4f59cece3"
+dependencies = [
+ "fnv",
+ "uuid",
+ "web-time",
+]
+
+[[package]]
+name = "cfg-expr"
+version = "0.15.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"
+dependencies = [
+ "smallvec",
+ "target-lexicon",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
+
+[[package]]
+name = "cfg_aliases"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
+
+[[package]]
+name = "chacha20"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.3.1",
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "chrono"
+version = "0.4.45"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
+dependencies = [
+ "iana-time-zone",
+ "num-traits",
+ "serde",
+ "windows-link",
+]
+
+[[package]]
+name = "combine"
+version = "4.6.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92"
+dependencies = [
+ "bytes",
+ "memchr",
+]
+
+[[package]]
+name = "concurrent-queue"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "const-oid"
+version = "0.9.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
+
+[[package]]
+name = "cookie"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87"
+dependencies = [
+ "time",
+ "version_check",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+
+[[package]]
+name = "core-graphics"
+version = "0.25.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation",
+ "core-graphics-types",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics-types"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation",
+ "libc",
+]
+
+[[package]]
+name = "cpufeatures"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "cpufeatures"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "crc32fast"
+version = "1.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "crossbeam-channel"
+version = "0.5.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
+
+[[package]]
+name = "crypto-common"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
+dependencies = [
+ "generic-array",
+ "typenum",
+]
+
+[[package]]
+name = "cssparser"
+version = "0.37.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98"
+dependencies = [
+ "cssparser-macros",
+ "dtoa-short",
+ "itoa",
+ "phf",
+ "smallvec",
+]
+
+[[package]]
+name = "cssparser-macros"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
+dependencies = [
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "ctor"
+version = "1.0.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"
+
+[[package]]
+name = "curve25519-dalek"
+version = "4.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "curve25519-dalek-derive",
+ "digest",
+ "fiat-crypto",
+ "rustc_version",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "curve25519-dalek-derive"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "darling"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec"
+dependencies = [
+ "darling_core",
+ "darling_macro",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "dbus"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e"
+dependencies = [
+ "libc",
+ "libdbus-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "defmt"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4a0795ac740cb54d7b3775c9c17345f6aaecf884c01733b39d6017738e0e3e1"
+dependencies = [
+ "bitflags 1.3.2",
+ "defmt-macros",
+]
+
+[[package]]
+name = "defmt-macros"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "840bb056bd99c495c9188198a258ab787c79f306d864db3e6e8451442d6d8366"
+dependencies = [
+ "defmt-parser",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "defmt-parser"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71958f69fb2de856c5dd51ac9377e986ca1aa5919f931bf5395a807277f889a0"
+dependencies = [
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "der"
+version = "0.7.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
+dependencies = [
+ "const-oid",
+ "zeroize",
+]
+
+[[package]]
+name = "deranged"
+version = "0.5.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "derive_more"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"
+dependencies = [
+ "derive_more-impl",
+]
+
+[[package]]
+name = "derive_more-impl"
+version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "digest"
+version = "0.10.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
+dependencies = [
+ "block-buffer",
+ "crypto-common",
+ "subtle",
+]
+
+[[package]]
+name = "dirs"
+version = "5.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"
+dependencies = [
+ "dirs-sys 0.4.1",
+]
+
+[[package]]
+name = "dirs"
+version = "7.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"
+dependencies = [
+ "dirs-sys 0.5.0",
+]
+
+[[package]]
+name = "dirs-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
+dependencies = [
+ "libc",
+ "option-ext",
+ "redox_users 0.4.6",
+ "windows-sys 0.48.0",
+]
+
+[[package]]
+name = "dirs-sys"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"
+dependencies = [
+ "libc",
+ "option-ext",
+ "redox_users 0.5.3",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "dispatch2"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "libc",
+ "objc2",
+]
+
+[[package]]
+name = "displaydoc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "dlopen2"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4"
+dependencies = [
+ "dlopen2_derive",
+ "libc",
+ "once_cell",
+ "winapi",
+]
+
+[[package]]
+name = "dlopen2_derive"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "dom_query"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"
+dependencies = [
+ "bit-set",
+ "cssparser",
+ "foldhash",
+ "html5ever",
+ "precomputed-hash",
+ "selectors",
+ "tendril",
+]
+
+[[package]]
+name = "dpi"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "dtoa"
+version = "1.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590"
+
+[[package]]
+name = "dtoa-short"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"
+dependencies = [
+ "dtoa",
+]
+
+[[package]]
+name = "dunce"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
+[[package]]
+name = "ed25519"
+version = "2.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
+dependencies = [
+ "pkcs8",
+ "signature",
+]
+
+[[package]]
+name = "ed25519-dalek"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
+dependencies = [
+ "curve25519-dalek",
+ "ed25519",
+ "serde",
+ "sha2",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "embed-resource"
+version = "3.0.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6168487b5e7eb2673e6efe1200b1848016e436a6ca0b8031bf04bd9d493a249f"
+dependencies = [
+ "cc",
+ "memchr",
+ "rustc_version",
+ "toml 1.1.8+spec-1.1.0",
+ "vswhom",
+ "winreg",
+]
+
+[[package]]
+name = "embed_plist"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"
+
+[[package]]
+name = "endi"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
+
+[[package]]
+name = "enumflags2"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
+dependencies = [
+ "enumflags2_derive",
+ "serde",
+]
+
+[[package]]
+name = "enumflags2_derive"
+version = "0.7.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "equivalent"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
+
+[[package]]
+name = "erased-serde"
+version = "0.4.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
+dependencies = [
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
+[[package]]
+name = "errno"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "event-listener"
+version = "5.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
+dependencies = [
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "event-listener-strategy"
+version = "0.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
+dependencies = [
+ "event-listener",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "fastrand"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
+
+[[package]]
+name = "fdeflate"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
+dependencies = [
+ "simd-adler32",
+]
+
+[[package]]
+name = "fiat-crypto"
+version = "0.2.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
+
+[[package]]
+name = "field-offset"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"
+dependencies = [
+ "memoffset",
+ "rustc_version",
+]
+
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
+
+[[package]]
+name = "flate2"
+version = "1.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
+dependencies = [
+ "crc32fast",
+ "miniz_oxide 0.9.1",
+ "zlib-rs",
+]
+
+[[package]]
+name = "fnv"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+
+[[package]]
+name = "foldhash"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+
+[[package]]
+name = "foreign-types"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
+dependencies = [
+ "foreign-types-macros",
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-macros"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+dependencies = [
+ "percent-encoding",
+]
+
+[[package]]
+name = "futures-channel"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
+dependencies = [
+ "futures-core",
+ "futures-sink",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+
+[[package]]
+name = "futures-executor"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
+dependencies = [
+ "futures-core",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-io"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
+
+[[package]]
+name = "futures-lite"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "futures-macro"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
+
+[[package]]
+name = "futures-task"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
+
+[[package]]
+name = "futures-util"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
+dependencies = [
+ "futures-core",
+ "futures-io",
+ "futures-macro",
+ "futures-sink",
+ "futures-task",
+ "memchr",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "gdk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691"
+dependencies = [
+ "cairo-rs",
+ "gdk-pixbuf",
+ "gdk-sys",
+ "gio",
+ "glib",
+ "libc",
+ "pango",
+]
+
+[[package]]
+name = "gdk-pixbuf"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec"
+dependencies = [
+ "gdk-pixbuf-sys",
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+]
+
+[[package]]
+name = "gdk-pixbuf-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7"
+dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "gdk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7"
+dependencies = [
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkwayland-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pkg-config",
+ "system-deps",
+]
+
+[[package]]
+name = "gdkx11"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe"
+dependencies = [
+ "gdk",
+ "gdkx11-sys",
+ "gio",
+ "glib",
+ "libc",
+ "x11",
+]
+
+[[package]]
+name = "gdkx11-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d"
+dependencies = [
+ "gdk-sys",
+ "glib-sys",
+ "libc",
+ "system-deps",
+ "x11",
+]
+
+[[package]]
+name = "generic-array"
+version = "0.14.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
+dependencies = [
+ "typenum",
+ "version_check",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
+dependencies = [
+ "cfg-if",
+ "js-sys",
+ "libc",
+ "wasi",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 5.3.0",
+ "wasip2",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
+dependencies = [
+ "cfg-if",
+ "js-sys",
+ "libc",
+ "r-efi 6.0.0",
+ "rand_core 0.10.1",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "gio"
+version = "0.18.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-util",
+ "gio-sys",
+ "glib",
+ "libc",
+ "once_cell",
+ "pin-project-lite",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "gio-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+ "winapi",
+]
+
+[[package]]
+name = "glib"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"
+dependencies = [
+ "bitflags 2.13.2",
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-task",
+ "futures-util",
+ "gio-sys",
+ "glib-macros",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "memchr",
+ "once_cell",
+ "smallvec",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "glib-macros"
+version = "0.18.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"
+dependencies = [
+ "heck 0.4.1",
+ "proc-macro-crate 2.0.2",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "glib-sys"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898"
+dependencies = [
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "glob"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
+
+[[package]]
+name = "gobject-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44"
+dependencies = [
+ "glib-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "gtk"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a"
+dependencies = [
+ "atk",
+ "cairo-rs",
+ "field-offset",
+ "futures-channel",
+ "gdk",
+ "gdk-pixbuf",
+ "gio",
+ "glib",
+ "gtk-sys",
+ "gtk3-macros",
+ "libc",
+ "pango",
+ "pkg-config",
+]
+
+[[package]]
+name = "gtk-sys"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414"
+dependencies = [
+ "atk-sys",
+ "cairo-sys-rs",
+ "gdk-pixbuf-sys",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "pango-sys",
+ "system-deps",
+]
+
+[[package]]
+name = "gtk3-macros"
+version = "0.18.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d"
+dependencies = [
+ "proc-macro-crate 1.3.1",
+ "proc-macro-error",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
+
+[[package]]
+name = "hashbrown"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+
+[[package]]
+name = "heck"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "hermit-abi"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
+
+[[package]]
+name = "hex"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+
+[[package]]
+name = "hmac"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
+dependencies = [
+ "digest",
+]
+
+[[package]]
+name = "html5ever"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"
+dependencies = [
+ "log",
+ "markup5ever",
+]
+
+[[package]]
+name = "http"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
+dependencies = [
+ "bytes",
+ "itoa",
+]
+
+[[package]]
+name = "http-body"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
+dependencies = [
+ "bytes",
+ "http",
+]
+
+[[package]]
+name = "http-body-util"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "httparse"
+version = "1.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
+
+[[package]]
+name = "hyper"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c"
+dependencies = [
+ "atomic-waker",
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "httparse",
+ "itoa",
+ "pin-project-lite",
+ "smallvec",
+ "tokio",
+ "want",
+]
+
+[[package]]
+name = "hyper-rustls"
+version = "0.27.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53"
+dependencies = [
+ "http",
+ "hyper",
+ "hyper-util",
+ "rustls",
+ "tokio",
+ "tokio-rustls",
+ "tower-service",
+ "webpki-roots",
+]
+
+[[package]]
+name = "hyper-util"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-channel",
+ "futures-util",
+ "http",
+ "http-body",
+ "httparse",
+ "hyper",
+ "ipnet",
+ "libc",
+ "percent-encoding",
+ "pin-project-lite",
+ "socket2",
+ "tokio",
+ "tower-service",
+ "tracing",
+]
+
+[[package]]
+name = "iana-time-zone"
+version = "0.1.65"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
+dependencies = [
+ "android_system_properties",
+ "core-foundation-sys",
+ "iana-time-zone-haiku",
+ "js-sys",
+ "log",
+ "wasm-bindgen",
+ "windows-core",
+]
+
+[[package]]
+name = "iana-time-zone-haiku"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "ico"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"
+dependencies = [
+ "byteorder",
+ "png 0.17.16",
+]
+
+[[package]]
+name = "icu_collections"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"
+dependencies = [
+ "displaydoc",
+ "potential_utf",
+ "utf8_iter",
+ "yoke",
+ "zerofrom",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_locale_core"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
+dependencies = [
+ "displaydoc",
+ "litemap",
+ "tinystr",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"
+dependencies = [
+ "icu_collections",
+ "icu_normalizer_data",
+ "icu_properties",
+ "icu_provider",
+ "smallvec",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"
+
+[[package]]
+name = "icu_properties"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"
+dependencies = [
+ "displaydoc",
+ "icu_collections",
+ "icu_locale_core",
+ "icu_properties_data",
+ "icu_provider",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_properties_data"
+version = "2.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"
+
+[[package]]
+name = "icu_provider"
+version = "2.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"
+dependencies = [
+ "displaydoc",
+ "icu_locale_core",
+ "writeable",
+ "yoke",
+ "zerofrom",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
+[[package]]
+name = "idna"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
+dependencies = [
+ "idna_adapter",
+ "smallvec",
+ "utf8_iter",
+]
+
+[[package]]
+name = "idna_adapter"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
+dependencies = [
+ "icu_normalizer",
+ "icu_properties",
+]
+
+[[package]]
+name = "indexmap"
+version = "1.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
+dependencies = [
+ "autocfg",
+ "hashbrown 0.12.3",
+ "serde",
+]
+
+[[package]]
+name = "indexmap"
+version = "2.14.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
+dependencies = [
+ "equivalent",
+ "hashbrown 0.17.1",
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "infer"
+version = "0.22.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4"
+dependencies = [
+ "cfb",
+]
+
+[[package]]
+name = "ipnet"
+version = "2.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"
+
+[[package]]
+name = "itoa"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
+
+[[package]]
+name = "javascriptcore-rs"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc"
+dependencies = [
+ "bitflags 1.3.2",
+ "glib",
+ "javascriptcore-rs-sys",
+]
+
+[[package]]
+name = "javascriptcore-rs-sys"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "jiff"
+version = "0.2.38"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2b005715dcbeb0089a3c0dab99f2ff1cc3b2525323552703d648585d342a383"
+dependencies = [
+ "defmt",
+ "jiff-core",
+ "jiff-static",
+ "jiff-tzdb-platform",
+ "log",
+ "portable-atomic",
+ "portable-atomic-util",
+ "serde_core",
+ "windows-link",
+]
+
+[[package]]
+name = "jiff-core"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e52fe76043ccecc9005d2305ebaadf7d7fc0cc89ca6baa10a94d6bc68c7128c"
+dependencies = [
+ "defmt",
+ "log",
+]
+
+[[package]]
+name = "jiff-static"
+version = "0.2.38"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2cc9817253cf7c7ee4684451bd327e88d6f3658014e54a29198625590650695c"
+dependencies = [
+ "jiff-core",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jiff-tzdb"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa8377070c6bae868759445e5a77f66d84f0b72f3a054bfb00e6d038b8282da7"
+
+[[package]]
+name = "jiff-tzdb-platform"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8"
+dependencies = [
+ "jiff-tzdb",
+]
+
+[[package]]
+name = "jni"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
+dependencies = [
+ "cesu8",
+ "cfg-if",
+ "combine",
+ "jni-sys 0.3.1",
+ "log",
+ "thiserror 1.0.69",
+ "walkdir",
+ "windows-sys 0.45.0",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
+dependencies = [
+ "jni-sys 0.4.1",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
+dependencies = [
+ "jni-sys-macros",
+]
+
+[[package]]
+name = "jni-sys-macros"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
+dependencies = [
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.106"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5"
+dependencies = [
+ "cfg-if",
+ "futures-util",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "json-patch"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72"
+dependencies = [
+ "jsonptr",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "jsonptr"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe"
+dependencies = [
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "keyboard-types"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0fbe853b403ae61a04233030ae8a79d94975281ed9770a1f9e246732b534b28d"
+dependencies = [
+ "bitflags 2.13.2",
+ "serde",
+]
+
+[[package]]
+name = "libappindicator"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a"
+dependencies = [
+ "glib",
+ "gtk",
+ "gtk-sys",
+ "libappindicator-sys",
+ "log",
+]
+
+[[package]]
+name = "libappindicator-sys"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"
+dependencies = [
+ "gtk-sys",
+ "libloading",
+ "once_cell",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.191"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
+
+[[package]]
+name = "libdbus-sys"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"
+dependencies = [
+ "pkg-config",
+]
+
+[[package]]
+name = "libloading"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
+dependencies = [
+ "cfg-if",
+ "winapi",
+]
+
+[[package]]
+name = "libredox"
+version = "0.1.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
+
+[[package]]
+name = "litemap"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
+
+[[package]]
+name = "lordos-imager"
+version = "0.8.4"
+dependencies = [
+ "dirs 5.0.1",
+ "iana-time-zone",
+ "lordos-imager-core",
+ "reqwest 0.12.28",
+ "serde",
+ "serde_json",
+ "sys-locale",
+ "tauri",
+ "tauri-build",
+ "tauri-plugin-dialog",
+]
+
+[[package]]
+name = "lordos-imager-core"
+version = "0.8.4"
+dependencies = [
+ "base64 0.22.1",
+ "ed25519-dalek",
+ "hmac",
+ "libc",
+ "pbkdf2",
+ "plist",
+ "rand_core 0.6.4",
+ "serde",
+ "serde_json",
+ "sha-crypt",
+ "sha1",
+ "sha2",
+ "tempfile",
+ "windows-sys 0.59.0",
+ "xz2",
+ "zbus",
+]
+
+[[package]]
+name = "lru-slab"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f"
+
+[[package]]
+name = "lzma-sys"
+version = "0.1.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "markup5ever"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
+dependencies = [
+ "log",
+ "tendril",
+ "web_atoms",
+]
+
+[[package]]
+name = "memchr"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+
+[[package]]
+name = "memoffset"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "mime"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
+
+[[package]]
+name = "miniz_oxide"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "miniz_oxide"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "mio"
+version = "1.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
+dependencies = [
+ "libc",
+ "wasi",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "muda"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "gtk",
+ "keyboard-types",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "once_cell",
+ "png 0.18.1",
+ "serde",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "ndk"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+dependencies = [
+ "bitflags 2.13.2",
+ "jni-sys 0.3.1",
+ "log",
+ "ndk-sys",
+ "num_enum",
+ "raw-window-handle",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "ndk-context"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+
+[[package]]
+name = "ndk-sys"
+version = "0.6.0+11769913"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+dependencies = [
+ "jni-sys 0.3.1",
+]
+
+[[package]]
+name = "new_debug_unreachable"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
+
+[[package]]
+name = "nix"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
+dependencies = [
+ "bitflags 2.13.2",
+ "cfg-if",
+ "cfg_aliases",
+ "libc",
+ "memoffset",
+]
+
+[[package]]
+name = "num-conv"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "num_enum"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
+dependencies = [
+ "num_enum_derive",
+ "rustversion",
+]
+
+[[package]]
+name = "num_enum_derive"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "objc2"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8"
+dependencies = [
+ "objc2-encode",
+ "objc2-exception-helper",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-quartz-core",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
+dependencies = [
+ "bitflags 2.13.2",
+ "dispatch2",
+ "objc2",
+]
+
+[[package]]
+name = "objc2-core-graphics"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+dependencies = [
+ "bitflags 2.13.2",
+ "dispatch2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-core-text"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+
+[[package]]
+name = "objc2-exception-helper"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "objc2-foundation"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "libc",
+ "objc2",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-surface"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-cloud-kit",
+ "objc2-core-data",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-core-image",
+ "objc2-core-location",
+ "objc2-core-text",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "objc2-user-notifications",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"
+dependencies = [
+ "objc2",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "objc2-web-kit"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+
+[[package]]
+name = "option-ext"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+
+[[package]]
+name = "ordered-stream"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+dependencies = [
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "pango"
+version = "0.18.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"
+dependencies = [
+ "gio",
+ "glib",
+ "libc",
+ "once_cell",
+ "pango-sys",
+]
+
+[[package]]
+name = "pango-sys"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"
+dependencies = [
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "parking"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-link",
+]
+
+[[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"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+
+[[package]]
+name = "phf"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
+dependencies = [
+ "phf_macros",
+ "phf_shared",
+ "serde",
+]
+
+[[package]]
+name = "phf_codegen"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
+]
+
+[[package]]
+name = "phf_generator"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
+dependencies = [
+ "fastrand",
+ "phf_shared",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
+dependencies = [
+ "siphasher",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
+[[package]]
+name = "pkcs8"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
+dependencies = [
+ "der",
+ "spki",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+
+[[package]]
+name = "plist"
+version = "1.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2896bade328c13f7042a297ea5ac5b0951f6cf989dea5f32c2fd98da398195cb"
+dependencies = [
+ "base64 0.23.1",
+ "indexmap 2.14.2",
+ "quick-xml",
+ "serde",
+ "time",
+]
+
+[[package]]
+name = "png"
+version = "0.17.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
+dependencies = [
+ "bitflags 1.3.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
+]
+
+[[package]]
+name = "png"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
+dependencies = [
+ "bitflags 2.13.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
+]
+
+[[package]]
+name = "polling"
+version = "3.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
+dependencies = [
+ "cfg-if",
+ "concurrent-queue",
+ "hermit-abi",
+ "pin-project-lite",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "portable-atomic"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
+
+[[package]]
+name = "portable-atomic-util"
+version = "0.2.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
+dependencies = [
+ "portable-atomic",
+]
+
+[[package]]
+name = "potential_utf"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
+dependencies = [
+ "zerovec",
+]
+
+[[package]]
+name = "powerfmt"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
+dependencies = [
+ "zerocopy",
+]
+
+[[package]]
+name = "precomputed-hash"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
+
+[[package]]
+name = "proc-macro-crate"
+version = "1.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
+dependencies = [
+ "once_cell",
+ "toml_edit 0.19.15",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"
+dependencies = [
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
+]
+
+[[package]]
+name = "proc-macro-crate"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
+dependencies = [
+ "toml_edit 0.25.17+spec-1.1.0",
+]
+
+[[package]]
+name = "proc-macro-error"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
+dependencies = [
+ "proc-macro-error-attr",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro-error-attr"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "version_check",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "quick-xml"
+version = "0.42.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "quinn"
+version = "0.11.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11"
+dependencies = [
+ "bytes",
+ "cfg_aliases",
+ "pin-project-lite",
+ "quinn-proto",
+ "quinn-udp",
+ "rustc-hash",
+ "rustls",
+ "socket2",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+ "web-time",
+]
+
+[[package]]
+name = "quinn-proto"
+version = "0.11.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe"
+dependencies = [
+ "bytes",
+ "getrandom 0.4.3",
+ "lru-slab",
+ "rand 0.10.3",
+ "rand_pcg",
+ "ring",
+ "rustc-hash",
+ "rustls",
+ "rustls-pki-types",
+ "slab",
+ "thiserror 2.0.21",
+ "tinyvec",
+ "tracing",
+ "web-time",
+]
+
+[[package]]
+name = "quinn-udp"
+version = "0.5.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016"
+dependencies = [
+ "cfg_aliases",
+ "libc",
+ "once_cell",
+ "socket2",
+ "tracing",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "r-efi"
+version = "5.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+
+[[package]]
+name = "r-efi"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+
+[[package]]
+name = "rand"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c"
+dependencies = [
+ "libc",
+ "rand_chacha",
+ "rand_core 0.6.4",
+]
+
+[[package]]
+name = "rand"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
+dependencies = [
+ "chacha20",
+ "getrandom 0.4.3",
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.6.4",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
+dependencies = [
+ "getrandom 0.2.17",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
+
+[[package]]
+name = "rand_pcg"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
+dependencies = [
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "raw-window-handle"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+dependencies = [
+ "bitflags 2.13.2",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
+dependencies = [
+ "getrandom 0.2.17",
+ "libredox",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0"
+dependencies = [
+ "libredox",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "ref-cast"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
+dependencies = [
+ "ref-cast-impl",
+]
+
+[[package]]
+name = "ref-cast-impl"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "regex"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-automata",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-automata"
+version = "0.4.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
+
+[[package]]
+name = "reqwest"
+version = "0.12.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
+dependencies = [
+ "base64 0.22.1",
+ "bytes",
+ "futures-channel",
+ "futures-core",
+ "futures-util",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-rustls",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "percent-encoding",
+ "pin-project-lite",
+ "quinn",
+ "rustls",
+ "rustls-pki-types",
+ "serde",
+ "serde_json",
+ "serde_urlencoded",
+ "sync_wrapper",
+ "tokio",
+ "tokio-rustls",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "webpki-roots",
+]
+
+[[package]]
+name = "reqwest"
+version = "0.13.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-core",
+ "futures-util",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "percent-encoding",
+ "pin-project-lite",
+ "serde",
+ "serde_json",
+ "sync_wrapper",
+ "tokio",
+ "tokio-util",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wasm-streams",
+ "web-sys",
+]
+
+[[package]]
+name = "rfd"
+version = "0.16.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672"
+dependencies = [
+ "block2",
+ "dispatch2",
+ "glib-sys",
+ "gobject-sys",
+ "gtk-sys",
+ "js-sys",
+ "log",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "raw-window-handle",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "windows-sys 0.60.2",
+]
+
+[[package]]
+name = "ring"
+version = "0.17.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
+dependencies = [
+ "cc",
+ "cfg-if",
+ "getrandom 0.2.17",
+ "libc",
+ "untrusted",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "rustc-hash"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+
+[[package]]
+name = "rustc_version"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+dependencies = [
+ "semver",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
+dependencies = [
+ "bitflags 2.13.2",
+ "errno",
+ "libc",
+ "linux-raw-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustls"
+version = "0.23.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
+dependencies = [
+ "once_cell",
+ "ring",
+ "rustls-pki-types",
+ "rustls-webpki",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "rustls-pki-types"
+version = "1.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
+dependencies = [
+ "web-time",
+ "zeroize",
+]
+
+[[package]]
+name = "rustls-webpki"
+version = "0.103.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
+dependencies = [
+ "ring",
+ "rustls-pki-types",
+ "untrusted",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+
+[[package]]
+name = "ryu"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
+
+[[package]]
+name = "same-file"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "schemars"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"
+dependencies = [
+ "dyn-clone",
+ "indexmap 1.9.3",
+ "schemars_derive",
+ "serde",
+ "serde_json",
+ "url",
+ "uuid",
+]
+
+[[package]]
+name = "schemars"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab508826f74a77ca9d5aba6ff19b522583ee3eaf28a19384ff3d0e5835fadf6e"
+dependencies = [
+ "dyn-clone",
+ "ref-cast",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars_derive"
+version = "0.8.22"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde_derive_internals",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "selectors"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"
+dependencies = [
+ "bitflags 2.13.2",
+ "cssparser",
+ "derive_more",
+ "log",
+ "new_debug_unreachable",
+ "phf",
+ "phf_codegen",
+ "precomputed-hash",
+ "rustc-hash",
+ "servo_arc",
+ "smallvec",
+]
+
+[[package]]
+name = "semver"
+version = "1.0.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+dependencies = [
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "serde"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
+dependencies = [
+ "serde_core",
+ "serde_derive",
+]
+
+[[package]]
+name = "serde-untagged"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"
+dependencies = [
+ "erased-serde",
+ "serde",
+ "serde_core",
+ "typeid",
+]
+
+[[package]]
+name = "serde_core"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "serde_derive_internals"
+version = "0.29.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "serde_json"
+version = "1.0.154"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
+dependencies = [
+ "itoa",
+ "memchr",
+ "serde",
+ "serde_core",
+ "zmij",
+]
+
+[[package]]
+name = "serde_repr"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "0.6.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "serde_urlencoded"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
+dependencies = [
+ "form_urlencoded",
+ "itoa",
+ "ryu",
+ "serde",
+]
+
+[[package]]
+name = "serde_with"
+version = "3.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f"
+dependencies = [
+ "base64 0.23.1",
+ "bs58",
+ "chrono",
+ "hex",
+ "indexmap 1.9.3",
+ "indexmap 2.14.2",
+ "jiff",
+ "schemars 0.9.0",
+ "schemars 1.2.3",
+ "serde_core",
+ "serde_json",
+ "serde_with_macros",
+ "time",
+]
+
+[[package]]
+name = "serde_with_macros"
+version = "3.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49"
+dependencies = [
+ "darling",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "serialize-to-javascript"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"
+dependencies = [
+ "serde",
+ "serde_json",
+ "serialize-to-javascript-impl",
+]
+
+[[package]]
+name = "serialize-to-javascript-impl"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "servo_arc"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"
+dependencies = [
+ "stable_deref_trait",
+]
+
+[[package]]
+name = "sha-crypt"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88e79009728d8311d42d754f2f319a975f9e38f156fd5e422d2451486c78b286"
+dependencies = [
+ "base64ct",
+ "rand 0.8.8",
+ "sha2",
+ "subtle",
+]
+
+[[package]]
+name = "sha1"
+version = "0.10.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "digest",
+]
+
+[[package]]
+name = "sha2"
+version = "0.10.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "digest",
+]
+
+[[package]]
+name = "shlex"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "signature"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
+dependencies = [
+ "rand_core 0.6.4",
+]
+
+[[package]]
+name = "simd-adler32"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
+
+[[package]]
+name = "siphasher"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
+
+[[package]]
+name = "slab"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+
+[[package]]
+name = "smallvec"
+version = "1.16.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b"
+
+[[package]]
+name = "socket2"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "softbuffer"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"
+dependencies = [
+ "bytemuck",
+ "js-sys",
+ "ndk",
+ "objc2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "raw-window-handle",
+ "redox_syscall",
+ "tracing",
+ "wasm-bindgen",
+ "web-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "soup3"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f"
+dependencies = [
+ "futures-channel",
+ "gio",
+ "glib",
+ "libc",
+ "soup3-sys",
+]
+
+[[package]]
+name = "soup3-sys"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27"
+dependencies = [
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "libc",
+ "system-deps",
+]
+
+[[package]]
+name = "spki"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
+dependencies = [
+ "base64ct",
+ "der",
+]
+
+[[package]]
+name = "stable_deref_trait"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
+[[package]]
+name = "static_vcruntime"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff7589a1859b09232522bb9edf076ca7fcf14ded96685d3fa629db73023ffbb7"
+
+[[package]]
+name = "string_cache"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
+dependencies = [
+ "new_debug_unreachable",
+ "parking_lot",
+ "phf_shared",
+ "precomputed-hash",
+]
+
+[[package]]
+name = "string_cache_codegen"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
+ "proc-macro2",
+ "quote",
+]
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "subtle"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
+
+[[package]]
+name = "swift-rs"
+version = "1.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cefd87076fd385308ee4aff597256c902f1fbb4d031de1558efc12f8ffefadd9"
+dependencies = [
+ "base64 0.21.7",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "syn"
+version = "1.0.109"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
+dependencies = [
+ "proc-macro2",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "sync_wrapper"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
+dependencies = [
+ "futures-core",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "sys-locale"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "system-deps"
+version = "6.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"
+dependencies = [
+ "cfg-expr",
+ "heck 0.5.0",
+ "pkg-config",
+ "toml 0.8.2",
+ "version-compare",
+]
+
+[[package]]
+name = "tao"
+version = "0.37.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f37f381f4e048e6cdf038b5705f8cf14ad108279d46eb968140a7b291aba9400"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2",
+ "core-foundation",
+ "core-graphics",
+ "crossbeam-channel",
+ "dbus",
+ "dispatch2",
+ "dlopen2",
+ "dpi",
+ "gdkwayland-sys",
+ "gdkx11-sys",
+ "gtk",
+ "jni",
+ "libc",
+ "log",
+ "ndk",
+ "ndk-context",
+ "ndk-sys",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "parking_lot",
+ "percent-encoding",
+ "raw-window-handle",
+ "tao-macros",
+ "unicode-segmentation",
+ "url",
+ "windows",
+ "windows-core",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "tao-macros"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "target-lexicon"
+version = "0.12.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
+
+[[package]]
+name = "tauri"
+version = "2.12.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f316751027fc2644221d1a448564d519efb07067fda584879d9cda966391d212"
+dependencies = [
+ "anyhow",
+ "bytes",
+ "cookie",
+ "dirs 7.0.0",
+ "dunce",
+ "embed_plist",
+ "getrandom 0.3.4",
+ "glob",
+ "gtk",
+ "heck 0.5.0",
+ "http",
+ "jni",
+ "libc",
+ "log",
+ "mime",
+ "muda",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "percent-encoding",
+ "plist",
+ "raw-window-handle",
+ "reqwest 0.13.5",
+ "serde",
+ "serde_json",
+ "serde_repr",
+ "serialize-to-javascript",
+ "swift-rs",
+ "tauri-build",
+ "tauri-macros",
+ "tauri-runtime",
+ "tauri-runtime-wry",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "tokio",
+ "tray-icon",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "window-vibrancy",
+ "windows",
+]
+
+[[package]]
+name = "tauri-build"
+version = "2.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "641dd5fd297c99ab92717b0428cca5b9c6f960b2ac96ca131b3eebc9d70b8ddc"
+dependencies = [
+ "anyhow",
+ "cargo_toml",
+ "dirs 7.0.0",
+ "glob",
+ "heck 0.5.0",
+ "json-patch",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde_json",
+ "static_vcruntime",
+ "strsim",
+ "tauri-utils",
+ "tauri-winres",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-codegen"
+version = "2.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6585c5b536c00f039d12ce70a9755172d5423bbcfd3969863baa70314c3e02f"
+dependencies = [
+ "base64 0.23.1",
+ "brotli",
+ "ico",
+ "json-patch",
+ "plist",
+ "png 0.18.1",
+ "proc-macro2",
+ "quote",
+ "semver",
+ "serde",
+ "serde_json",
+ "sha2",
+ "syn 2.0.119",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "time",
+ "url",
+ "uuid",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-macros"
+version = "2.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2e83a0cfa1bae376e8fbbdc0b1692707aed50cd6072ce85cae4789af5d6c19f"
+dependencies = [
+ "heck 0.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "tauri-codegen",
+ "tauri-utils",
+]
+
+[[package]]
+name = "tauri-plugin"
+version = "2.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67fb21a77e8f94e8beb3325e583102488659365af0a3948b7ea244c5b779c291"
+dependencies = [
+ "anyhow",
+ "glob",
+ "plist",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-plugin-dialog"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7461aaacf1901915ea7b9f5cd74f8224a351ed96af0a62c07fce934003cb34b"
+dependencies = [
+ "log",
+ "raw-window-handle",
+ "rfd",
+ "serde",
+ "serde_json",
+ "tauri",
+ "tauri-plugin",
+ "tauri-plugin-fs",
+ "thiserror 2.0.21",
+ "url",
+]
+
+[[package]]
+name = "tauri-plugin-fs"
+version = "2.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d58eb1d4984e535f47a642ffec09a2da6f5c18a12b5902d12126cb7626d628b"
+dependencies = [
+ "anyhow",
+ "dunce",
+ "glob",
+ "log",
+ "objc2-foundation",
+ "percent-encoding",
+ "schemars 0.8.22",
+ "serde",
+ "serde_json",
+ "serde_repr",
+ "tauri",
+ "tauri-plugin",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "toml 1.1.8+spec-1.1.0",
+ "url",
+]
+
+[[package]]
+name = "tauri-runtime"
+version = "2.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7c55766d99cea69055904d1735b93c2049302b2e09effd462120deb5581d78e9"
+dependencies = [
+ "cookie",
+ "dpi",
+ "gtk",
+ "http",
+ "jni",
+ "objc2",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "raw-window-handle",
+ "serde",
+ "serde_json",
+ "tauri-utils",
+ "thiserror 2.0.21",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "windows",
+]
+
+[[package]]
+name = "tauri-runtime-wry"
+version = "2.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d61892587aea2a85245bcaec98c6fe46268874c0a0deae5535fb71ca7b93eae"
+dependencies = [
+ "gtk",
+ "http",
+ "jni",
+ "log",
+ "objc2",
+ "objc2-app-kit",
+ "once_cell",
+ "percent-encoding",
+ "raw-window-handle",
+ "softbuffer",
+ "tao",
+ "tauri-runtime",
+ "tauri-utils",
+ "url",
+ "webkit2gtk",
+ "webview2-com",
+ "windows",
+ "wry",
+]
+
+[[package]]
+name = "tauri-utils"
+version = "2.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "362ab21cd4cc713f2a02b1a9b5688198b1541cfb6907c4281e9190e0f0ef4aa3"
+dependencies = [
+ "anyhow",
+ "brotli",
+ "cargo_metadata",
+ "ctor",
+ "dom_query",
+ "dunce",
+ "glob",
+ "http",
+ "infer",
+ "json-patch",
+ "log",
+ "memchr",
+ "phf",
+ "plist",
+ "proc-macro2",
+ "quote",
+ "regex",
+ "schemars 0.8.22",
+ "semver",
+ "serde",
+ "serde-untagged",
+ "serde_json",
+ "serde_with",
+ "swift-rs",
+ "thiserror 2.0.21",
+ "toml 1.1.8+spec-1.1.0",
+ "url",
+ "urlpattern",
+ "uuid",
+ "walkdir",
+]
+
+[[package]]
+name = "tauri-winres"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c52bb6904475a6ca662f15ef787f18ade61d5740a1ee12c45d3b748efdb6f796"
+dependencies = [
+ "dunce",
+ "embed-resource",
+ "toml 1.1.8+spec-1.1.0",
+]
+
+[[package]]
+name = "tempfile"
+version = "3.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
+dependencies = [
+ "fastrand",
+ "getrandom 0.4.3",
+ "once_cell",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tendril"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"
+dependencies = [
+ "new_debug_unreachable",
+]
+
+[[package]]
+name = "thiserror"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+dependencies = [
+ "thiserror-impl 1.0.69",
+]
+
+[[package]]
+name = "thiserror"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
+dependencies = [
+ "thiserror-impl 2.0.21",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "time"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
+dependencies = [
+ "deranged",
+ "num-conv",
+ "powerfmt",
+ "serde_core",
+ "time-core",
+ "time-macros",
+]
+
+[[package]]
+name = "time-core"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
+
+[[package]]
+name = "time-macros"
+version = "0.2.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
+dependencies = [
+ "num-conv",
+ "time-core",
+]
+
+[[package]]
+name = "tinystr"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
+dependencies = [
+ "displaydoc",
+ "zerovec",
+]
+
+[[package]]
+name = "tinyvec"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
+
+[[package]]
+name = "tokio"
+version = "1.54.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0c168a474b95bfecfe908a65d4bdffc523144b649a74c09c286afb35d53e0bc"
+dependencies = [
+ "bytes",
+ "libc",
+ "mio",
+ "pin-project-lite",
+ "socket2",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tokio-rustls"
+version = "0.26.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db"
+dependencies = [
+ "rustls",
+ "tokio",
+]
+
+[[package]]
+name = "tokio-util"
+version = "0.7.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "futures-sink",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "toml"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"
+dependencies = [
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
+ "toml_edit 0.20.2",
+]
+
+[[package]]
+name = "toml"
+version = "1.1.8+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d"
+dependencies = [
+ "indexmap 2.14.2",
+ "serde_core",
+ "serde_spanned 1.1.2",
+ "toml_datetime 1.1.2+spec-1.1.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.2+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.19.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
+dependencies = [
+ "indexmap 2.14.2",
+ "toml_datetime 0.6.3",
+ "winnow 0.5.40",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
+dependencies = [
+ "indexmap 2.14.2",
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.3",
+ "winnow 0.5.40",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.25.17+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c"
+dependencies = [
+ "indexmap 2.14.2",
+ "toml_datetime 1.1.2+spec-1.1.0",
+ "toml_parser",
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_parser"
+version = "1.1.5+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
+dependencies = [
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_writer"
+version = "1.1.3+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770"
+
+[[package]]
+name = "tower"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
+dependencies = [
+ "futures-core",
+ "futures-util",
+ "pin-project-lite",
+ "sync_wrapper",
+ "tokio",
+ "tower-layer",
+ "tower-service",
+]
+
+[[package]]
+name = "tower-http"
+version = "0.6.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
+dependencies = [
+ "bitflags 2.13.2",
+ "bytes",
+ "futures-util",
+ "http",
+ "http-body",
+ "pin-project-lite",
+ "tower",
+ "tower-layer",
+ "tower-service",
+ "url",
+]
+
+[[package]]
+name = "tower-layer"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
+
+[[package]]
+name = "tower-service"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
+
+[[package]]
+name = "tracing"
+version = "0.1.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
+dependencies = [
+ "pin-project-lite",
+ "tracing-attributes",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-attributes"
+version = "0.1.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "tracing-core"
+version = "0.1.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
+dependencies = [
+ "once_cell",
+]
+
+[[package]]
+name = "tray-icon"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2b9c52859a94554803ccd4a24b98f74148ebc73b90676d783f3490b1bff9d72"
+dependencies = [
+ "crossbeam-channel",
+ "dirs 7.0.0",
+ "libappindicator",
+ "muda",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation",
+ "once_cell",
+ "png 0.18.1",
+ "serde",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "try-lock"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
+
+[[package]]
+name = "typeid"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
+
+[[package]]
+name = "typenum"
+version = "1.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
+
+[[package]]
+name = "uds_windows"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
+dependencies = [
+ "memoffset",
+ "tempfile",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
+
+[[package]]
+name = "unicode-segmentation"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
+
+[[package]]
+name = "untrusted"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
+
+[[package]]
+name = "url"
+version = "2.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
+dependencies = [
+ "form_urlencoded",
+ "idna",
+ "percent-encoding",
+ "serde",
+ "serde_derive",
+]
+
+[[package]]
+name = "urlpattern"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df16f50ef4cc145211879a3867ba757076b25dfee812040dcb0658bd9ae7904b"
+dependencies = [
+ "icu_properties",
+ "regex",
+ "serde",
+ "url",
+]
+
+[[package]]
+name = "utf8_iter"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
+
+[[package]]
+name = "uuid"
+version = "1.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7cc1186384beb7dd8eedea376413fd654937285ea6c9cfbb928dc3043ea4b606"
+dependencies = [
+ "getrandom 0.4.3",
+ "js-sys",
+ "serde_core",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "version-compare"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e"
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[package]]
+name = "vswhom"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"
+dependencies = [
+ "libc",
+ "vswhom-sys",
+]
+
+[[package]]
+name = "vswhom-sys"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"
+dependencies = [
+ "cc",
+ "libc",
+]
+
+[[package]]
+name = "walkdir"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
+dependencies = [
+ "same-file",
+ "winapi-util",
+]
+
+[[package]]
+name = "want"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b"
+dependencies = [
+ "try-lock",
+]
+
+[[package]]
+name = "wasi"
+version = "0.11.1+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
+
+[[package]]
+name = "wasip2"
+version = "1.0.4+wasi-0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
+dependencies = [
+ "wit-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"
+dependencies = [
+ "cfg-if",
+ "once_cell",
+ "rustversion",
+ "wasm-bindgen-macro",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-futures"
+version = "0.4.79"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e"
+dependencies = [
+ "js-sys",
+ "tokio",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen-macro"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"
+dependencies = [
+ "quote",
+ "wasm-bindgen-macro-support",
+]
+
+[[package]]
+name = "wasm-bindgen-macro-support"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"
+dependencies = [
+ "bumpalo",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-shared"
+version = "0.2.129"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "wasm-streams"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb"
+dependencies = [
+ "futures-util",
+ "js-sys",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
+[[package]]
+name = "web-sys"
+version = "0.3.106"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web_atoms"
+version = "0.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
+dependencies = [
+ "phf",
+ "phf_codegen",
+ "string_cache",
+ "string_cache_codegen",
+]
+
+[[package]]
+name = "webkit2gtk"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-rs",
+ "gdk",
+ "gdk-sys",
+ "gio",
+ "gio-sys",
+ "glib",
+ "glib-sys",
+ "gobject-sys",
+ "gtk",
+ "gtk-sys",
+ "javascriptcore-rs",
+ "libc",
+ "once_cell",
+ "soup3",
+ "webkit2gtk-sys",
+]
+
+[[package]]
+name = "webkit2gtk-sys"
+version = "2.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5"
+dependencies = [
+ "bitflags 1.3.2",
+ "cairo-sys-rs",
+ "gdk-sys",
+ "gio-sys",
+ "glib-sys",
+ "gobject-sys",
+ "gtk-sys",
+ "javascriptcore-rs-sys",
+ "libc",
+ "pkg-config",
+ "soup3-sys",
+ "system-deps",
+]
+
+[[package]]
+name = "webpki-roots"
+version = "1.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
+dependencies = [
+ "rustls-pki-types",
+]
+
+[[package]]
+name = "webview2-com"
+version = "0.39.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f89fca7a704cee10dcb3654c1dbb8941d1783132f1917358af75bec37a7d7e6"
+dependencies = [
+ "webview2-com-macros",
+ "webview2-com-sys",
+ "windows",
+ "windows-core",
+]
+
+[[package]]
+name = "webview2-com-macros"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "webview2-com-sys"
+version = "0.39.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb"
+dependencies = [
+ "thiserror 2.0.21",
+ "windows",
+ "windows-core",
+]
+
+[[package]]
+name = "winapi"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
+dependencies = [
+ "winapi-i686-pc-windows-gnu",
+ "winapi-x86_64-pc-windows-gnu",
+]
+
+[[package]]
+name = "winapi-i686-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
+
+[[package]]
+name = "winapi-util"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "winapi-x86_64-pc-windows-gnu"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+
+[[package]]
+name = "window-vibrancy"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "111e51caca442cafd9bab396628ac4d814880eaea4e63dfd76a12e9f342b5580"
+dependencies = [
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-quartz-core",
+ "raw-window-handle",
+ "windows-sys 0.61.2",
+ "windows-version",
+]
+
+[[package]]
+name = "windows"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
+dependencies = [
+ "windows-collections",
+ "windows-core",
+ "windows-future",
+ "windows-numerics",
+]
+
+[[package]]
+name = "windows-collections"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
+dependencies = [
+ "windows-core",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-link",
+ "windows-result",
+ "windows-strings",
+]
+
+[[package]]
+name = "windows-future"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
+dependencies = [
+ "windows-core",
+ "windows-link",
+ "windows-threading",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-numerics"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
+dependencies = [
+ "windows-core",
+ "windows-link",
+]
+
+[[package]]
+name = "windows-result"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.45.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
+dependencies = [
+ "windows-targets 0.42.2",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.48.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
+dependencies = [
+ "windows-targets 0.48.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
+dependencies = [
+ "windows-targets 0.53.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
+dependencies = [
+ "windows_aarch64_gnullvm 0.42.2",
+ "windows_aarch64_msvc 0.42.2",
+ "windows_i686_gnu 0.42.2",
+ "windows_i686_msvc 0.42.2",
+ "windows_x86_64_gnu 0.42.2",
+ "windows_x86_64_gnullvm 0.42.2",
+ "windows_x86_64_msvc 0.42.2",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
+dependencies = [
+ "windows_aarch64_gnullvm 0.48.5",
+ "windows_aarch64_msvc 0.48.5",
+ "windows_i686_gnu 0.48.5",
+ "windows_i686_msvc 0.48.5",
+ "windows_x86_64_gnu 0.48.5",
+ "windows_x86_64_gnullvm 0.48.5",
+ "windows_x86_64_msvc 0.48.5",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm 0.52.6",
+ "windows_aarch64_msvc 0.52.6",
+ "windows_i686_gnu 0.52.6",
+ "windows_i686_gnullvm 0.52.6",
+ "windows_i686_msvc 0.52.6",
+ "windows_x86_64_gnu 0.52.6",
+ "windows_x86_64_gnullvm 0.52.6",
+ "windows_x86_64_msvc 0.52.6",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.53.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
+dependencies = [
+ "windows-link",
+ "windows_aarch64_gnullvm 0.53.1",
+ "windows_aarch64_msvc 0.53.1",
+ "windows_i686_gnu 0.53.1",
+ "windows_i686_gnullvm 0.53.1",
+ "windows_i686_msvc 0.53.1",
+ "windows_x86_64_gnu 0.53.1",
+ "windows_x86_64_gnullvm 0.53.1",
+ "windows_x86_64_msvc 0.53.1",
+]
+
+[[package]]
+name = "windows-threading"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-version"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.42.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.53.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
+
+[[package]]
+name = "winnow"
+version = "0.5.40"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winnow"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winreg"
+version = "0.56.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10"
+dependencies = [
+ "cfg-if",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "wit-bindgen"
+version = "0.57.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
+
+[[package]]
+name = "writeable"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
+
+[[package]]
+name = "wry"
+version = "0.57.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a819957a01b3119af85e638a38d242af76dbc87d130dca67bfd0441072e21ff0"
+dependencies = [
+ "base64 0.22.1",
+ "block2",
+ "cookie",
+ "crossbeam-channel",
+ "dirs 7.0.0",
+ "dom_query",
+ "dpi",
+ "dunce",
+ "gdkx11",
+ "gtk",
+ "http",
+ "javascriptcore-rs",
+ "jni",
+ "libc",
+ "ndk",
+ "objc2",
+ "objc2-app-kit",
+ "objc2-core-foundation",
+ "objc2-foundation",
+ "objc2-ui-kit",
+ "objc2-web-kit",
+ "once_cell",
+ "percent-encoding",
+ "raw-window-handle",
+ "sha2",
+ "soup3",
+ "tao-macros",
+ "thiserror 2.0.21",
+ "url",
+ "webkit2gtk",
+ "webkit2gtk-sys",
+ "webview2-com",
+ "windows",
+ "windows-core",
+ "windows-version",
+ "x11-dl",
+]
+
+[[package]]
+name = "x11"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"
+dependencies = [
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "x11-dl"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
+dependencies = [
+ "libc",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "xdg-home"
+version = "1.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec1cdab258fb55c0da61328dc52c8764709b249011b2cad0454c72f0bf10a1f6"
+dependencies = [
+ "libc",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "xz2"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"
+dependencies = [
+ "lzma-sys",
+]
+
+[[package]]
+name = "yoke"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
+dependencies = [
+ "stable_deref_trait",
+ "yoke-derive",
+ "zerofrom",
+]
+
+[[package]]
+name = "yoke-derive"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+ "synstructure",
+]
+
+[[package]]
+name = "zbus"
+version = "4.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725"
+dependencies = [
+ "async-broadcast",
+ "async-executor",
+ "async-fs",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "async-recursion",
+ "async-task",
+ "async-trait",
+ "blocking",
+ "enumflags2",
+ "event-listener",
+ "futures-core",
+ "futures-sink",
+ "futures-util",
+ "hex",
+ "nix",
+ "ordered-stream",
+ "rand 0.8.8",
+ "serde",
+ "serde_repr",
+ "sha1",
+ "static_assertions",
+ "tracing",
+ "uds_windows",
+ "windows-sys 0.52.0",
+ "xdg-home",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus_macros"
+version = "4.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zbus_names"
+version = "3.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c"
+dependencies = [
+ "serde",
+ "static_assertions",
+ "zvariant",
+]
+
+[[package]]
+name = "zerocopy"
+version = "0.8.63"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8"
+dependencies = [
+ "zerocopy-derive",
+]
+
+[[package]]
+name = "zerocopy-derive"
+version = "0.8.63"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "zerofrom"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
+dependencies = [
+ "zerofrom-derive",
+]
+
+[[package]]
+name = "zerofrom-derive"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+ "synstructure",
+]
+
+[[package]]
+name = "zeroize"
+version = "1.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
+
+[[package]]
+name = "zerotrie"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
+dependencies = [
+ "displaydoc",
+ "yoke",
+ "zerofrom",
+]
+
+[[package]]
+name = "zerovec"
+version = "0.11.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
+dependencies = [
+ "yoke",
+ "zerofrom",
+ "zerovec-derive",
+]
+
+[[package]]
+name = "zerovec-derive"
+version = "0.11.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "zlib-rs"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
+
+[[package]]
+name = "zmij"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+
+[[package]]
+name = "zvariant"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe"
+dependencies = [
+ "endi",
+ "enumflags2",
+ "serde",
+ "static_assertions",
+ "zvariant_derive",
+]
+
+[[package]]
+name = "zvariant_derive"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449"
+dependencies = [
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_utils"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
diff --git a/desktop/imager/Cargo.toml b/desktop/imager/Cargo.toml
new file mode 100644
index 0000000..4283233
--- /dev/null
+++ b/desktop/imager/Cargo.toml
@@ -0,0 +1,19 @@
+# LordOS Imager for the three desktop platforms (docs/IMAGER.md, "The desktop app"): a Tauri shell
+# (src-tauri) around the same React UI as the native app, and the writer in a library (core) that
+# is tested on its own.
+[workspace]
+members = ["core", "src-tauri"]
+resolver = "2"
+
+[workspace.package]
+version = "0.8.4"
+edition = "2021"
+license = "MIT"
+repository = "https://github.com/lordbasex/LordOS"
+
+[profile.release]
+opt-level = "s"
+lto = true
+codegen-units = 1
+strip = true
+panic = "abort"
diff --git a/desktop/imager/build-web.mjs b/desktop/imager/build-web.mjs
new file mode 100644
index 0000000..1d81baa
--- /dev/null
+++ b/desktop/imager/build-web.mjs
@@ -0,0 +1,51 @@
+// build-web.mjs — builds the desktop app's window (dist/) from the SAME UI as LordOS's native imager
+// (apps/imager): @lordos/sdk becomes web/sdk.jsx (DOM versions of the few primitives it uses) and
+// apps/imager/platform.js becomes web/platform.js (the Tauri commands). docs/IMAGER.md.
+//
+// node build-web.mjs → dist/index.html, dist/app.js, dist/assets/…
+import * as esbuild from 'esbuild';
+import fs from 'node:fs';
+import path from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const here = path.dirname(fileURLToPath(import.meta.url));
+const repo = path.join(here, '../..');
+const dist = path.join(here, 'dist');
+const nm = path.join(here, 'node_modules');
+
+const swap = {
+ name: 'lordos-desktop',
+ setup(b) {
+ b.onResolve({ filter: /^@lordos\/sdk$/ }, () => ({ path: path.join(here, 'web/sdk.jsx') }));
+ // the native platform module → the desktop one (only apps/imager's own)
+ b.onResolve({ filter: /platform\.js$/ }, (a) => {
+ const p = path.resolve(a.resolveDir, a.path);
+ return p === path.join(repo, 'apps/imager/platform.js') ? { path: path.join(here, 'web/platform.js') } : undefined;
+ });
+ // one React for everything (the shared files live outside this folder)
+ b.onResolve({ filter: /^(react|react-dom|react-dom\/client|react\/jsx-runtime|scheduler)$/ }, (a) => ({ path: require.resolve(a.path, nm) }));
+ },
+};
+import { createRequire } from 'node:module';
+const require = createRequire(path.join(nm, 'x.js'));
+require.resolve = ((orig) => (id, base) => orig(id, { paths: [base] }))(require.resolve);
+
+fs.rmSync(dist, { recursive: true, force: true });
+fs.mkdirSync(path.join(dist, 'assets/mascot'), { recursive: true });
+fs.mkdirSync(path.join(dist, 'assets/icons'), { recursive: true });
+fs.mkdirSync(path.join(dist, 'assets/fonts'), { recursive: true });
+const t0 = Date.now();
+await esbuild.build({
+ entryPoints: [path.join(here, 'web/main.jsx')],
+ bundle: true, minify: true, format: 'esm', target: 'es2022', jsx: 'automatic', legalComments: 'none',
+ outfile: path.join(dist, 'app.js'), plugins: [swap], loader: { '.json': 'json' },
+ define: { 'process.env.NODE_ENV': '"production"' },
+});
+for (const f of fs.readdirSync(path.join(repo, 'assets/mascot'))) if (f.endsWith('-256.png')) fs.copyFileSync(path.join(repo, 'assets/mascot', f), path.join(dist, 'assets/mascot', f));
+fs.copyFileSync(path.join(repo, 'assets/icons/lordos-icon-128.png'), path.join(dist, 'assets/icons/lordos-icon-128.png'));
+for (const f of ['Inter-Regular.ttf', 'Inter-Medium.ttf', 'Inter-SemiBold.ttf', 'Inter-Bold.ttf', 'Inter-LICENSE.txt', 'JetBrainsMono-Regular.ttf', 'JetBrainsMono-LICENSE.txt'])
+ fs.copyFileSync(path.join(repo, 'assets/fonts', f), path.join(dist, 'assets/fonts', f));
+fs.copyFileSync(path.join(here, 'web/index.html'), path.join(dist, 'index.html'));
+fs.copyFileSync(path.join(here, 'web/style.css'), path.join(dist, 'style.css'));
+const kb = (p) => Math.round(fs.statSync(p).size / 1024);
+console.log(`dist/app.js ${kb(path.join(dist, 'app.js'))} KB in ${Date.now() - t0} ms`);
diff --git a/desktop/imager/core/Cargo.toml b/desktop/imager/core/Cargo.toml
new file mode 100644
index 0000000..546ccc8
--- /dev/null
+++ b/desktop/imager/core/Cargo.toml
@@ -0,0 +1,33 @@
+[package]
+name = "lordos-imager-core"
+description = "LordOS Imager: release signature, image reading and verified writing (no UI)"
+version.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+ed25519-dalek = { version = "2", default-features = false, features = ["std"] }
+sha2 = "0.10"
+base64 = "0.22"
+xz2 = { version = "0.1", features = ["static"] }
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
+sha-crypt = "0.5"
+pbkdf2 = { version = "0.12", default-features = false, features = ["hmac"] }
+hmac = "0.12"
+sha1 = "0.10"
+rand_core = { version = "0.6", features = ["getrandom"] }
+
+[target.'cfg(target_os = "macos")'.dependencies]
+plist = "1"
+libc = "0.2"
+
+[target.'cfg(target_os = "linux")'.dependencies]
+libc = "0.2"
+zbus = "4"
+
+[target.'cfg(windows)'.dependencies]
+windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_Storage_FileSystem", "Win32_System_IO", "Win32_System_Ioctl", "Win32_Security"] }
+
+[dev-dependencies]
+tempfile = "3"
diff --git a/desktop/imager/core/src/drives.rs b/desktop/imager/core/src/drives.rs
new file mode 100644
index 0000000..72011cc
--- /dev/null
+++ b/desktop/imager/core/src/drives.rs
@@ -0,0 +1,428 @@
+//! Removable drives, per platform. The rules are the native imager's: only removable drives (USB,
+//! SD cards), never an internal disk and never the disk this computer runs from; the drive's
+//! identity (size, model, serial) is checked again right before it is opened; nothing is mounted
+//! on it while it's written.
+//!
+//! - `macos`: `diskutil` (external, physical disks; the boot disk and internal ones are left out). The
+//! device is opened directly when the user may (a disk image the user attached for testing), or
+//! through the system's authorized-open helper, which asks for an administrator's approval and
+//! hands back only that one open device.
+//! - `linux`: `lsblk` for the list; the device is opened through udisks2 (`OpenDevice`, approved by
+//! polkit like any desktop's "format disk"), so the app never runs as root.
+//! - `windows`: `Get-Disk` (USB, SD and MMC bus types, never a boot or system disk); the app's
+//! manifest asks for administrator rights; volumes on the disk are locked and dismounted first.
+use crate::{Error, Result};
+use serde::{Deserialize, Serialize};
+
+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
+pub struct Drive {
+ /// stable id for this session: "disk4" (`macos`), "sdb" (`linux`), "2" (`windows` disk number)
+ pub id: String,
+ /// what to open: /dev/rdisk4, /dev/sdb, \\.\PhysicalDrive2
+ pub path: String,
+ pub model: String,
+ pub serial: String,
+ pub size: u64,
+ pub transport: String,
+ pub removable: bool,
+ pub system: bool,
+ pub read_only: bool,
+ pub labels: Vec<String>,
+ pub mounted: Vec<String>,
+ /// a disk image (`macos`) or loop device (`linux`) attached for testing, only listed when its backing
+ /// file is inside LORDOS_IMAGER_TEST_DEVICES=<folder>
+ pub test_device: bool,
+}
+
+/// The identity the user picked must still be the drive's (a stick swapped under the same name is refused).
+pub fn same_identity(a: &Drive, b: &Drive) -> bool {
+ a.id == b.id && a.size == b.size && a.model == b.model && a.serial == b.serial && b.removable && !b.system
+}
+
+pub fn writable(d: &Drive) -> bool { d.removable && !d.system && !d.read_only && d.size <= MAX_DRIVE }
+
+/// Testing only: also list disk images (`macos`) or loop devices (`linux`) whose backing file is inside
+/// this folder (LORDOS_IMAGER_TEST_DEVICES=<absolute folder>). Images attached for anything else are
+/// never listed, so a test run can't reach someone's other disk images.
+pub fn test_dir() -> Option<std::path::PathBuf> {
+ let v = std::env::var("LORDOS_IMAGER_TEST_DEVICES").ok()?;
+ let p = std::path::PathBuf::from(v);
+ if p.is_absolute() { p.canonicalize().ok() } else { None }
+}
+fn in_test_dir(backing: &str) -> bool {
+ match (test_dir(), std::path::Path::new(backing).canonicalize()) { (Some(d), Ok(b)) => b.starts_with(d), _ => false }
+}
+
+/// LordOS images use an MBR partition table, which can't address more than 2 TiB: a larger drive is
+/// refused (it is also very unlikely to be a card or a stick).
+pub const MAX_DRIVE: u64 = 2 << 40;
+
+#[allow(dead_code)]
+fn run(cmd: &str, args: &[&str]) -> Result<String> {
+ let out = std::process::Command::new(cmd).args(args).output().map_err(|e| Error::new("imager.listFailed", format!("{cmd}: {e}")))?;
+ if !out.status.success() {
+ return Err(Error::new("imager.listFailed", format!("{cmd}: {}", String::from_utf8_lossy(&out.stderr).trim())));
+ }
+ Ok(String::from_utf8_lossy(&out.stdout).into_owned())
+}
+
+#[cfg(target_os = "macos")]
+pub use mac::*;
+#[cfg(target_os = "linux")]
+pub use linux::*;
+#[cfg(windows)]
+pub use win::*;
+
+// ---------------------------------------------------------------------------------------------
+#[cfg(target_os = "macos")]
+mod mac {
+ use super::*;
+ use std::fs::File;
+ use std::os::fd::FromRawFd;
+
+ fn info(dev: &str) -> Result<plist::Dictionary> {
+ let out = run("/usr/sbin/diskutil", &["info", "-plist", dev])?;
+ plist::from_bytes::<plist::Dictionary>(out.as_bytes()).map_err(|e| Error::new("imager.listFailed", e.to_string()))
+ }
+ fn s(d: &plist::Dictionary, k: &str) -> String { d.get(k).and_then(|v| v.as_string()).unwrap_or("").trim().to_string() }
+ fn b(d: &plist::Dictionary, k: &str) -> bool { d.get(k).and_then(|v| v.as_boolean()).unwrap_or(false) }
+ fn n(d: &plist::Dictionary, k: &str) -> u64 { d.get(k).and_then(|v| v.as_unsigned_integer()).unwrap_or(0) }
+
+ /// The whole disk that holds "/" (and its APFS container's physical store).
+ fn boot_disks() -> Vec<String> {
+ let mut out = vec![];
+ if let Ok(d) = info("/") {
+ let w = s(&d, "ParentWholeDisk");
+ if !w.is_empty() { out.push(w); }
+ if let Some(stores) = d.get("APFSPhysicalStores").and_then(|v| v.as_array()) {
+ for st in stores {
+ if let Some(id) = st.as_dictionary().map(|x| s(x, "APFSPhysicalStore")) {
+ if let Ok(pd) = info(&id) { out.push(s(&pd, "ParentWholeDisk")); }
+ }
+ }
+ }
+ }
+ out
+ }
+
+ /// disk image backing files by device (hdiutil info), for the test folder rule
+ fn image_files() -> std::collections::HashMap<String, String> {
+ let mut m = std::collections::HashMap::new();
+ let Ok(out) = run("/usr/bin/hdiutil", &["info", "-plist"]) else { return m };
+ let Ok(d) = plist::from_bytes::<plist::Dictionary>(out.as_bytes()) else { return m };
+ for img in d.get("images").and_then(|v| v.as_array()).cloned().unwrap_or_default().iter().filter_map(|v| v.as_dictionary().cloned()) {
+ let path = s(&img, "image-path");
+ for e in img.get("system-entities").and_then(|v| v.as_array()).cloned().unwrap_or_default().iter().filter_map(|v| v.as_dictionary().cloned()) {
+ let dev = s(&e, "dev-entry");
+ if !dev.is_empty() { m.insert(dev.trim_start_matches("/dev/").to_string(), path.clone()); }
+ }
+ }
+ m
+ }
+
+ pub fn list() -> Result<Vec<Drive>> {
+ let listing = run("/usr/sbin/diskutil", &["list", "-plist", "external"])?;
+ let l = plist::from_bytes::<plist::Dictionary>(listing.as_bytes()).map_err(|e| Error::new("imager.listFailed", e.to_string()))?;
+ let boot = boot_disks();
+ let images = if test_dir().is_some() { image_files() } else { Default::default() };
+ let mut out = vec![];
+ let whole = l.get("WholeDisks").and_then(|v| v.as_array()).cloned().unwrap_or_default();
+ for w in whole.iter().filter_map(|v| v.as_string()) {
+ let Ok(d) = info(w) else { continue };
+ let virt = s(&d, "VirtualOrPhysical") == "Virtual";
+ let image = s(&d, "BusProtocol") == "Disk Image";
+ // APFS containers and other synthesized disks are not drives; a disk image only in a test run
+ if virt && !(image && images.get(w).is_some_and(|f| in_test_dir(f))) { continue; }
+ if b(&d, "Internal") && !image { continue; }
+ let id = s(&d, "DeviceIdentifier");
+ let mut labels = vec![];
+ let mut mounted = vec![];
+ if let Some(all) = l.get("AllDisksAndPartitions").and_then(|v| v.as_array()) {
+ for e in all.iter().filter_map(|v| v.as_dictionary()) {
+ if s(e, "DeviceIdentifier") != id { continue; }
+ for p in e.get("Partitions").and_then(|v| v.as_array()).cloned().unwrap_or_default().iter().filter_map(|v| v.as_dictionary().cloned()) {
+ let vn = s(&p, "VolumeName");
+ if !vn.is_empty() { labels.push(vn.clone()); }
+ let mp = s(&p, "MountPoint");
+ if !mp.is_empty() { mounted.push(if vn.is_empty() { mp } else { vn }); }
+ }
+ }
+ }
+ let removable = b(&d, "RemovableMedia") || b(&d, "Removable") || b(&d, "Ejectable") || s(&d, "BusProtocol") == "USB" || s(&d, "BusProtocol") == "Secure Digital";
+ out.push(Drive {
+ path: format!("/dev/r{id}"), model: s(&d, "MediaName"), serial: s(&d, "DiskUUID"), size: n(&d, "Size"),
+ transport: match s(&d, "BusProtocol").as_str() { "USB" => "usb".into(), "Secure Digital" => "sd".into(), "Disk Image" => "image".into(), o => o.to_lowercase() },
+ removable, system: boot.contains(&id) || b(&d, "OSInternalMedia"), read_only: !b(&d, "WritableMedia"),
+ labels, mounted, test_device: image, id,
+ });
+ }
+ Ok(out)
+ }
+
+ pub fn unmount(d: &Drive) -> Result<()> {
+ run("/usr/sbin/diskutil", &["unmountDisk", &format!("/dev/{}", d.id)]).map(|_| ()).map_err(|e| Error::new("disk.busy", e.detail))
+ }
+
+ /// Opens the raw device: directly if the user may, otherwise through the system's authorized
+ /// open helper (an administrator approves it in the system's own dialog).
+ pub fn open(d: &Drive) -> Result<File> {
+ use std::fs::OpenOptions;
+ match OpenOptions::new().read(true).write(true).open(&d.path) {
+ Ok(f) => return Ok(f),
+ Err(e) if e.kind() != std::io::ErrorKind::PermissionDenied => return Err(Error::new("disk.openFailed", e.to_string())),
+ Err(_) => {}
+ }
+ authopen(&d.path)
+ }
+
+ fn authopen(path: &str) -> Result<File> {
+ // authopen -stdoutpipe sends the opened descriptor over its stdout, which must be a socket
+ let mut sv = [0i32; 2];
+ if unsafe { libc::socketpair(libc::AF_UNIX, libc::SOCK_STREAM, 0, sv.as_mut_ptr()) } != 0 {
+ return Err(Error::new("disk.openFailed", "socketpair"));
+ }
+ let child = unsafe { std::process::Stdio::from_raw_fd(sv[1]) };
+ let st = std::process::Command::new("/usr/libexec/authopen")
+ .args(["-stdoutpipe", "-o", &(libc::O_RDWR).to_string(), path]).stdout(child).spawn();
+ let mut proc = st.map_err(|e| Error::new("disk.openFailed", e.to_string()))?;
+ let mut buf = [0u8; 64];
+ let mut cmsg = [0u8; 64];
+ let mut iov = libc::iovec { iov_base: buf.as_mut_ptr() as *mut _, iov_len: buf.len() };
+ let mut msg: libc::msghdr = unsafe { std::mem::zeroed() };
+ msg.msg_iov = &mut iov;
+ msg.msg_iovlen = 1;
+ msg.msg_control = cmsg.as_mut_ptr() as *mut _;
+ msg.msg_controllen = cmsg.len() as _;
+ let r = unsafe { libc::recvmsg(sv[0], &mut msg, 0) };
+ let _ = proc.wait();
+ unsafe { libc::close(sv[0]) };
+ if r <= 0 { return Err(Error::new("imager.notAuthorized", "")); }
+ let c = unsafe { libc::CMSG_FIRSTHDR(&msg) };
+ if c.is_null() || unsafe { (*c).cmsg_type } != libc::SCM_RIGHTS { return Err(Error::new("imager.notAuthorized", "no descriptor")); }
+ let fd = unsafe { *(libc::CMSG_DATA(c) as *const i32) };
+ Ok(unsafe { File::from_raw_fd(fd) })
+ }
+
+ pub fn eject(d: &Drive) -> Result<()> {
+ run("/usr/sbin/diskutil", &["eject", &format!("/dev/{}", d.id)]).map(|_| ())
+ }
+
+ /// Mounts the drive's first partition (the boot partition) and returns where it is.
+ pub fn mount_boot(d: &Drive) -> Result<std::path::PathBuf> {
+ let part = format!("/dev/{}s1", d.id);
+ for _ in 0..30 {
+ let _ = run("/usr/sbin/diskutil", &["mount", &part]);
+ if let Ok(i) = info(&part) {
+ let mp = s(&i, "MountPoint");
+ if !mp.is_empty() { return Ok(mp.into()); }
+ }
+ std::thread::sleep(std::time::Duration::from_millis(500));
+ }
+ Err(Error::new("imager.bootNotFound", part))
+ }
+ pub fn unmount_boot(d: &Drive) { let _ = run("/usr/sbin/diskutil", &["unmount", &format!("/dev/{}s1", d.id)]); }
+}
+
+// ---------------------------------------------------------------------------------------------
+#[cfg(target_os = "linux")]
+mod linux {
+ use super::*;
+ use std::collections::HashMap;
+ use std::fs::File;
+
+ const SYSTEM: &[&str] = &["/", "/boot", "/boot/efi", "/efi", "/usr", "/var", "/home", "[SWAP]", "/run/live/medium", "/cdrom"];
+
+ pub fn list() -> Result<Vec<Drive>> {
+ let out = run("lsblk", &["-J", "-b", "-o", "NAME,PATH,SIZE,RM,HOTPLUG,TRAN,TYPE,MODEL,VENDOR,SERIAL,RO,MOUNTPOINTS,LABEL"])?;
+ let v: serde_json::Value = serde_json::from_str(&out).map_err(|e| Error::new("imager.listFailed", e.to_string()))?;
+ let mut res = vec![];
+ for d in v["blockdevices"].as_array().cloned().unwrap_or_default() {
+ let ty = d["type"].as_str().unwrap_or("");
+ let name = d["name"].as_str().unwrap_or("").to_string();
+ let test = ty == "loop" && std::fs::read_to_string(format!("/sys/block/{name}/loop/backing_file")).is_ok_and(|f| in_test_dir(f.trim()));
+ if ty != "disk" && !test { continue; }
+ if name.starts_with("zram") || name.starts_with("sr") { continue; }
+ let mut mounted = vec![];
+ let mut labels = vec![];
+ let mut system = false;
+ let mut walk = vec![d.clone()];
+ while let Some(n) = walk.pop() {
+ for m in n["mountpoints"].as_array().cloned().unwrap_or_default().iter().filter_map(|m| m.as_str().map(String::from)) {
+ if SYSTEM.contains(&m.as_str()) { system = true; }
+ mounted.push(m);
+ }
+ if let Some(l) = n["label"].as_str() { labels.push(l.to_string()); }
+ for c in n["children"].as_array().cloned().unwrap_or_default() { walk.push(c); }
+ }
+ let tran = d["tran"].as_str().unwrap_or("").to_string();
+ let b = |k: &str| d[k].as_bool().unwrap_or(false) || d[k].as_str() == Some("1");
+ let removable = b("rm") || b("hotplug") || tran == "usb" || tran == "mmc" || name.starts_with("mmcblk") || test;
+ res.push(Drive {
+ id: name.clone(), path: d["path"].as_str().map(String::from).unwrap_or(format!("/dev/{name}")),
+ model: format!("{} {}", d["vendor"].as_str().unwrap_or("").trim(), d["model"].as_str().unwrap_or("").trim()).trim().to_string(),
+ serial: d["serial"].as_str().unwrap_or("").trim().to_string(), size: d["size"].as_u64().unwrap_or(0),
+ transport: if tran == "mmc" || name.starts_with("mmcblk") { "sd".into() } else { tran },
+ removable, system, read_only: b("ro"), labels, mounted, test_device: test,
+ });
+ }
+ Ok(res)
+ }
+
+ // ---- udisks2 over D-Bus (the system bus; polkit asks for approval when needed) ----
+ fn udisks_path(dev: &str) -> String {
+ let name = dev.trim_start_matches("/dev/");
+ format!("/org/freedesktop/UDisks2/block_devices/{}", name.replace('-', "_2d"))
+ }
+ fn conn() -> Result<zbus::blocking::Connection> { zbus::blocking::Connection::system().map_err(|e| Error::new("imager.noUdisks", e.to_string())) }
+ fn opts() -> HashMap<&'static str, zbus::zvariant::Value<'static>> {
+ let mut m = HashMap::new();
+ m.insert("auth.no_user_interaction", zbus::zvariant::Value::Bool(false));
+ m
+ }
+
+ pub fn unmount(d: &Drive) -> Result<()> {
+ let c = conn()?;
+ let parts = run("lsblk", &["-ln", "-o", "PATH,MOUNTPOINTS", &d.path])?;
+ for line in parts.lines() {
+ let mut it = line.split_whitespace();
+ let (Some(p), Some(_m)) = (it.next(), it.next()) else { continue };
+ let proxy = zbus::blocking::Proxy::new(&c, "org.freedesktop.UDisks2", udisks_path(p).as_str(), "org.freedesktop.UDisks2.Filesystem").map_err(|e| Error::new("disk.busy", e.to_string()))?;
+ proxy.call_method("Unmount", &(opts(),)).map_err(|e| Error::new("disk.busy", e.to_string()))?;
+ }
+ Ok(())
+ }
+
+ pub fn open(d: &Drive) -> Result<File> {
+ use std::os::fd::{FromRawFd, IntoRawFd};
+ if let Ok(f) = std::fs::OpenOptions::new().read(true).write(true).open(&d.path) { return Ok(f); } // root, or a test loop device
+ let c = conn()?;
+ let proxy = zbus::blocking::Proxy::new(&c, "org.freedesktop.UDisks2", udisks_path(&d.path).as_str(), "org.freedesktop.UDisks2.Block").map_err(|e| Error::new("disk.openFailed", e.to_string()))?;
+ let mut o = opts();
+ o.insert("flags", zbus::zvariant::Value::I32(libc::O_EXCL));
+ let reply = proxy.call_method("OpenDevice", &("rw", o)).map_err(|e| Error::new("imager.notAuthorized", e.to_string()))?;
+ let fd: zbus::zvariant::OwnedFd = reply.body().deserialize().map_err(|e| Error::new("disk.openFailed", e.to_string()))?;
+ let raw = std::os::fd::OwnedFd::from(fd).into_raw_fd();
+ Ok(unsafe { File::from_raw_fd(raw) })
+ }
+
+ pub fn eject(d: &Drive) -> Result<()> {
+ let c = conn()?;
+ // the drive object behind the block device, then PowerOff (like "Safely remove")
+ let block = zbus::blocking::Proxy::new(&c, "org.freedesktop.UDisks2", udisks_path(&d.path).as_str(), "org.freedesktop.UDisks2.Block").map_err(|e| Error::new("imager.ejectFailed", e.to_string()))?;
+ let drive: zbus::zvariant::OwnedObjectPath = block.get_property("Drive").map_err(|e| Error::new("imager.ejectFailed", e.to_string()))?;
+ let dp = zbus::blocking::Proxy::new(&c, "org.freedesktop.UDisks2", drive.as_str(), "org.freedesktop.UDisks2.Drive").map_err(|e| Error::new("imager.ejectFailed", e.to_string()))?;
+ let _ = dp.call_method("Eject", &(opts(),));
+ dp.call_method("PowerOff", &(opts(),)).map(|_| ()).map_err(|e| Error::new("imager.ejectFailed", e.to_string()))
+ }
+
+ fn part1(d: &Drive) -> String { if d.path.chars().last().is_some_and(|c| c.is_ascii_digit()) { format!("{}p1", d.path) } else { format!("{}1", d.path) } }
+
+ pub fn mount_boot(d: &Drive) -> Result<std::path::PathBuf> {
+ let p = part1(d);
+ let c = conn()?;
+ for _ in 0..30 {
+ if std::path::Path::new(&p).exists() {
+ let fs = zbus::blocking::Proxy::new(&c, "org.freedesktop.UDisks2", udisks_path(&p).as_str(), "org.freedesktop.UDisks2.Filesystem").map_err(|e| Error::new("imager.bootNotFound", e.to_string()))?;
+ if let Ok(r) = fs.call_method("Mount", &(opts(),)) {
+ let mp: String = r.body().deserialize().map_err(|e| Error::new("imager.bootNotFound", e.to_string()))?;
+ return Ok(mp.into());
+ }
+ }
+ std::thread::sleep(std::time::Duration::from_millis(500));
+ }
+ Err(Error::new("imager.bootNotFound", p))
+ }
+ pub fn unmount_boot(d: &Drive) {
+ if let Ok(c) = conn() {
+ if let Ok(fs) = zbus::blocking::Proxy::new(&c, "org.freedesktop.UDisks2", udisks_path(&part1(d)).as_str(), "org.freedesktop.UDisks2.Filesystem") {
+ let _ = fs.call_method("Unmount", &(opts(),));
+ }
+ }
+ }
+}
+
+// ---------------------------------------------------------------------------------------------
+#[cfg(windows)]
+mod win {
+ use super::*;
+ use std::fs::File;
+ use std::os::windows::io::FromRawHandle;
+ use windows_sys::Win32::Foundation::*;
+ use windows_sys::Win32::Storage::FileSystem::*;
+ use windows_sys::Win32::System::Ioctl::*;
+ use windows_sys::Win32::System::IO::DeviceIoControl;
+
+ fn ps(script: &str) -> Result<String> {
+ run("powershell.exe", &["-NoProfile", "-NonInteractive", "-Command", script])
+ }
+
+ pub fn list() -> Result<Vec<Drive>> {
+ let out = ps("Get-Disk | Select-Object Number,FriendlyName,SerialNumber,Size,BusType,IsBoot,IsSystem,IsReadOnly | ConvertTo-Json -Compress")?;
+ let v: serde_json::Value = serde_json::from_str(out.trim()).map_err(|e| Error::new("imager.listFailed", e.to_string()))?;
+ let arr = if v.is_array() { v.as_array().cloned().unwrap_or_default() } else { vec![v] };
+ let mut res = vec![];
+ for d in arr {
+ let num = d["Number"].as_u64().unwrap_or(u64::MAX);
+ if num == u64::MAX { continue; }
+ let bus = d["BusType"].as_str().map(String::from).unwrap_or_else(|| d["BusType"].as_u64().map(|n| n.to_string()).unwrap_or_default());
+ // BusType: 7 = USB, 12 = SD, 13 = MMC (MSFT_Disk); names when PowerShell prints them
+ let removable = matches!(bus.as_str(), "USB" | "SD" | "MMC" | "7" | "12" | "13");
+ res.push(Drive {
+ id: num.to_string(), path: format!(r"\\.\PhysicalDrive{num}"),
+ model: d["FriendlyName"].as_str().unwrap_or("").trim().to_string(), serial: d["SerialNumber"].as_str().unwrap_or("").trim().to_string(),
+ size: d["Size"].as_u64().unwrap_or(0), transport: if matches!(bus.as_str(), "SD" | "MMC" | "12" | "13") { "sd".into() } else { "usb".into() },
+ removable, system: d["IsBoot"].as_bool().unwrap_or(false) || d["IsSystem"].as_bool().unwrap_or(false),
+ read_only: d["IsReadOnly"].as_bool().unwrap_or(false), labels: vec![], mounted: vec![], test_device: false,
+ });
+ }
+ Ok(res)
+ }
+
+ /// Each volume on the disk is locked and dismounted; the handles stay open (and locked) while
+ /// the disk is written, in this process.
+ static LOCKS: std::sync::Mutex<Vec<isize>> = std::sync::Mutex::new(Vec::new());
+
+ pub fn unmount(d: &Drive) -> Result<()> {
+ let letters = ps(&format!("(Get-Partition -DiskNumber {} | Where-Object DriveLetter | ForEach-Object {{ $_.DriveLetter }}) -join ','", d.id))?;
+ for l in letters.trim().split(',').filter(|s| s.len() == 1) {
+ let path: Vec<u16> = format!(r"\\.\{l}:").encode_utf16().chain([0]).collect();
+ let h = unsafe { CreateFileW(path.as_ptr(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, std::ptr::null(), OPEN_EXISTING, 0, std::ptr::null_mut()) };
+ if h == INVALID_HANDLE_VALUE { return Err(Error::new("disk.busy", format!("{l}:"))); }
+ let mut n = 0u32;
+ let ok = unsafe { DeviceIoControl(h, FSCTL_LOCK_VOLUME, std::ptr::null(), 0, std::ptr::null_mut(), 0, &mut n, std::ptr::null_mut()) } != 0
+ && unsafe { DeviceIoControl(h, FSCTL_DISMOUNT_VOLUME, std::ptr::null(), 0, std::ptr::null_mut(), 0, &mut n, std::ptr::null_mut()) } != 0;
+ if !ok { unsafe { CloseHandle(h) }; return Err(Error::new("disk.busy", format!("{l}:"))); }
+ LOCKS.lock().unwrap().push(h as isize);
+ }
+ Ok(())
+ }
+
+ pub fn open(d: &Drive) -> Result<File> {
+ let path: Vec<u16> = d.path.encode_utf16().chain([0]).collect();
+ let h = unsafe { CreateFileW(path.as_ptr(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, std::ptr::null(), OPEN_EXISTING, FILE_FLAG_WRITE_THROUGH, std::ptr::null_mut()) };
+ if h == INVALID_HANDLE_VALUE { return Err(Error::new("imager.notAuthorized", d.path.clone())); }
+ Ok(unsafe { File::from_raw_handle(h as _) })
+ }
+
+ pub fn release_locks() {
+ for h in LOCKS.lock().unwrap().drain(..) { unsafe { CloseHandle(h as _) }; }
+ }
+
+ pub fn eject(d: &Drive) -> Result<()> {
+ release_locks();
+ ps(&format!("$s = New-Object -ComObject Shell.Application; Get-Partition -DiskNumber {} | Where-Object DriveLetter | ForEach-Object {{ $s.Namespace(17).ParseName(\"$($_.DriveLetter):\").InvokeVerb('Eject') }}", d.id)).map(|_| ())
+ }
+
+ pub fn mount_boot(d: &Drive) -> Result<std::path::PathBuf> {
+ release_locks();
+ let _ = ps(&format!("Update-Disk -Number {}", d.id));
+ for _ in 0..30 {
+ let l = ps(&format!("$p = Get-Partition -DiskNumber {} -PartitionNumber 1 -ErrorAction SilentlyContinue; if ($p -and -not $p.DriveLetter) {{ $p | Add-PartitionAccessPath -AssignDriveLetter | Out-Null; $p = Get-Partition -DiskNumber {} -PartitionNumber 1 }}; $p.DriveLetter", d.id, d.id)).unwrap_or_default();
+ let l = l.trim();
+ if l.len() == 1 { return Ok(format!(r"{l}:\").into()); }
+ std::thread::sleep(std::time::Duration::from_millis(500));
+ }
+ Err(Error::new("imager.bootNotFound", d.id.clone()))
+ }
+ pub fn unmount_boot(_d: &Drive) {}
+}
diff --git a/desktop/imager/core/src/lib.rs b/desktop/imager/core/src/lib.rs
new file mode 100644
index 0000000..7f10a47
--- /dev/null
+++ b/desktop/imager/core/src/lib.rs
@@ -0,0 +1,68 @@
+//! LordOS Imager core: what the desktop app (`macos`, `windows`, `linux`) does below its UI. The rules are
+//! the native imager's (server/src/imager/, docs/IMAGER.md), written again in Rust and checked
+//! against the same test vectors:
+//!
+//! - [`sums`]: `SHA256SUMS.sig` is base64 of the Ed25519 signature over the exact bytes of
+//! `SHA256SUMS`, made with the LordOS release key ([`RELEASE_KEY`], fingerprint `c7155b8e…`);
+//! - [`xzinfo`]: the uncompressed size of an `.img.xz`, from its index, before anything is erased;
+//! - [`write`]: image → device, hashing what goes out, reading it back to compare, wiping the
+//! ends of the device when it fails or is cancelled;
+//! - [`drives`]: only removable, non-system drives, per platform;
+//! - [`secrets`]: the password's SHA-512 crypt hash and the Wi-Fi network's derived WPA2 key.
+pub mod drives;
+pub mod secrets;
+pub mod sums;
+pub mod write;
+pub mod xzinfo;
+
+/// The LordOS release key (tools/release/lordos-release.pub.pem), raw 32 bytes. Its SHA-256
+/// fingerprint over the DER form is c7155b8e6bbbb180f907381994d06af76d333016cd6f3facf67cadd053ea108e
+/// (checked in tests).
+pub const RELEASE_KEY: [u8; 32] = [
+ 0xf1, 0xca, 0xb0, 0x0f, 0x31, 0xfe, 0x65, 0x53, 0x1d, 0x06, 0xa3, 0x63, 0x0b, 0x7d, 0x78, 0xd5,
+ 0xd9, 0xa8, 0xde, 0x07, 0x07, 0xf0, 0xf5, 0xad, 0xf3, 0xc2, 0x3e, 0x44, 0x4f, 0x5d, 0x39, 0xa0,
+];
+
+/// Errors are stable codes (the UI translates them with the same keys as the native app:
+/// errors.imager.* and errors.disk.*), plus a detail for logs.
+#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize)]
+pub struct Error {
+ pub code: &'static str,
+ pub detail: String,
+}
+
+impl Error {
+ pub fn new(code: &'static str, detail: impl Into<String>) -> Self {
+ Error { code, detail: detail.into() }
+ }
+}
+
+impl std::fmt::Display for Error {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ if self.detail.is_empty() { write!(f, "{}", self.code) } else { write!(f, "{}: {}", self.code, self.detail) }
+ }
+}
+
+impl std::error::Error for Error {}
+
+pub type Result<T> = std::result::Result<T, Error>;
+
+/// A file name the imager accepts: [A-Za-z0-9._+~-], 1..128, not starting with '.' or '-'.
+pub fn valid_name(n: &str) -> bool {
+ !n.is_empty() && n.len() <= 128 && !n.starts_with('.') && !n.starts_with('-') && !n.contains("..")
+ && n.bytes().all(|c| c.is_ascii_alphanumeric() || b"._+~-".contains(&c))
+}
+
+/// 1 raw (.img, .iso), 2 xz (.img.xz), 0 anything else.
+pub fn image_kind(n: &str) -> u8 {
+ if n.len() > 7 && n.ends_with(".img.xz") { 2 } else if (n.len() > 4 && n.ends_with(".img")) || (n.len() > 4 && n.ends_with(".iso")) { 1 } else { 0 }
+}
+
+/// v<1-4 digits>.<…>.<…>[-<[a-z0-9.]+>], up to 32 characters.
+pub fn valid_tag(t: &str) -> bool {
+ if t.len() < 6 || t.len() > 32 || !t.starts_with('v') { return false; }
+ let (ver, pre) = match t[1..].split_once('-') { Some((v, p)) => (v, Some(p)), None => (&t[1..], None) };
+ let parts: Vec<&str> = ver.split('.').collect();
+ if parts.len() != 3 || parts.iter().any(|p| p.is_empty() || p.len() > 4 || !p.bytes().all(|c| c.is_ascii_digit())) { return false; }
+ match pre { None => true, Some(p) => !p.is_empty() && p.bytes().all(|c| c.is_ascii_lowercase() || c.is_ascii_digit() || c == b'.') }
+}
diff --git a/desktop/imager/core/src/secrets.rs b/desktop/imager/core/src/secrets.rs
new file mode 100644
index 0000000..3294933
--- /dev/null
+++ b/desktop/imager/core/src/secrets.rs
@@ -0,0 +1,28 @@
+//! The two secrets of the first-run file, derived on this computer so only the results reach the
+//! card: the password's SHA-512 crypt hash ($6$, accepted by lordos-firstrun and by every Linux
+//! PAM) and the WPA2 key PBKDF2-HMAC-SHA1(password, ssid, 4096, 32) (IEEE 802.11i).
+use crate::{Error, Result};
+
+/// rounds: 200 000 keeps a login on the Raspberry Pi 5 well under a second while making offline
+/// guessing 40 times slower than glibc's default of 5 000.
+pub const ROUNDS: usize = 200_000;
+
+pub fn hash_password(password: &str) -> Result<String> {
+ if password.is_empty() || password.len() > 1024 || password.contains('\0') {
+ return Err(Error::new("imager.hashFailed", "length"));
+ }
+ let params = sha_crypt::Sha512Params::new(ROUNDS).map_err(|_| Error::new("imager.hashFailed", "params"))?;
+ sha_crypt::sha512_simple(password, &params).map_err(|_| Error::new("imager.hashFailed", ""))
+}
+
+pub fn check_password(password: &str, hash: &str) -> bool { sha_crypt::sha512_check(password, hash).is_ok() }
+
+pub fn wifi_psk(ssid: &str, password: &str) -> Result<String> {
+ if ssid.is_empty() || ssid.len() > 32 { return Err(Error::new("imager.pskFailed", "ssid")); }
+ if password.len() < 8 || password.len() > 63 || !password.bytes().all(|c| (0x20..=0x7e).contains(&c)) {
+ return Err(Error::new("imager.pskFailed", "password"));
+ }
+ let mut out = [0u8; 32];
+ pbkdf2::pbkdf2_hmac::<sha1::Sha1>(password.as_bytes(), ssid.as_bytes(), 4096, &mut out);
+ Ok(crate::sums::hex(&out))
+}
diff --git a/desktop/imager/core/src/sums.rs b/desktop/imager/core/src/sums.rs
new file mode 100644
index 0000000..e4da610
--- /dev/null
+++ b/desktop/imager/core/src/sums.rs
@@ -0,0 +1,43 @@
+//! The release signature and SHA256SUMS (docs/SIGNING.md, "Release files").
+use crate::{Error, Result};
+use base64::Engine;
+use ed25519_dalek::{Signature, VerifyingKey};
+use std::collections::BTreeMap;
+
+pub const SUMS_MAX: usize = 65536;
+pub const SIG_MAX: usize = 512;
+
+/// Checks `sig` (base64, optional newline) over the exact bytes of `sums` with `key`.
+pub fn verify(sums: &[u8], sig: &[u8], key: &[u8; 32]) -> Result<()> {
+ if sums.is_empty() || sums.len() > SUMS_MAX || sig.len() > SIG_MAX {
+ return Err(Error::new("imager.badSignature", "size"));
+ }
+ let text = std::str::from_utf8(sig).map_err(|_| Error::new("imager.badSignature", "not text"))?;
+ let b = text.trim_end_matches(['\n', '\r']);
+ if b.len() != 88 { return Err(Error::new("imager.badSignature", "length")); }
+ let raw = base64::engine::general_purpose::STANDARD.decode(b).map_err(|_| Error::new("imager.badSignature", "base64"))?;
+ let raw: [u8; 64] = raw.try_into().map_err(|_| Error::new("imager.badSignature", "length"))?;
+ let vk = VerifyingKey::from_bytes(key).map_err(|_| Error::new("imager.badSignature", "key"))?;
+ vk.verify_strict(sums, &Signature::from_bytes(&raw)).map_err(|_| Error::new("imager.badSignature", ""))
+}
+
+/// Every "<64 hex> <name>" (or " *<name>") line. Malformed text or a name listed twice is an error.
+pub fn parse(sums: &[u8]) -> Result<BTreeMap<String, [u8; 32]>> {
+ let text = std::str::from_utf8(sums).map_err(|_| Error::new("imager.notListed", "not text"))?;
+ let mut out = BTreeMap::new();
+ for line in text.split('\n') {
+ let line = line.strip_suffix('\r').unwrap_or(line);
+ if line.is_empty() { continue; }
+ let b = line.as_bytes();
+ if b.len() < 67 || b[64] != b' ' || (b[65] != b' ' && b[65] != b'*') { return Err(Error::new("imager.notListed", "malformed")); }
+ let mut h = [0u8; 32];
+ for (i, byte) in h.iter_mut().enumerate() {
+ *byte = u8::from_str_radix(&line[2 * i..2 * i + 2], 16).map_err(|_| Error::new("imager.notListed", "hex"))?;
+ }
+ let name = &line[66..];
+ if out.insert(name.to_string(), h).is_some() { return Err(Error::new("imager.notListed", "repeated")); }
+ }
+ Ok(out)
+}
+
+pub fn hex(b: &[u8]) -> String { b.iter().map(|x| format!("{x:02x}")).collect() }
diff --git a/desktop/imager/core/src/write.rs b/desktop/imager/core/src/write.rs
new file mode 100644
index 0000000..1705faf
--- /dev/null
+++ b/desktop/imager/core/src/write.rs
@@ -0,0 +1,194 @@
+//! Image → device, verified. The same steps as the native imager-write action
+//! (server/src/imager/imager_admin.c), in the same order:
+//!
+//! 1. official images: the whole file's SHA-256 must be the signed one before anything is written;
+//! 2. the file is read once more while writing (.img.xz decompressed on the fly) and hashed again:
+//! if it changed in between, the device is wiped and the write fails;
+//! 3. the device is read back and its SHA-256 compared with what was written;
+//! 4. on any failure or a cancel after the first write, the first and last MiB are zeroed, so a
+//! half-written card never looks bootable.
+//!
+//! Writes and reads are done in 4 MiB pieces, each padded to the sector size at the end, so raw
+//! devices that only take whole sectors (`macos` /dev/rdiskN, `windows` PhysicalDriveN) work.
+use crate::{sums::hex, Error, Result};
+use sha2::{Digest, Sha256};
+use std::fs::File;
+use std::io::{Read, Seek, SeekFrom, Write};
+use std::path::Path;
+use std::sync::atomic::{AtomicBool, Ordering};
+
+pub const CHUNK: usize = 4 << 20;
+pub const SECTOR: usize = 512;
+const MIB: u64 = 1 << 20;
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize)]
+#[serde(rename_all = "lowercase")]
+pub enum Phase { Check, Write, Verify }
+
+#[derive(Debug, Clone, serde::Serialize)]
+pub struct Progress { pub phase: Phase, pub done: u64, pub total: u64 }
+
+#[derive(Debug, Clone, serde::Serialize)]
+pub struct Outcome { pub sha256: String, pub size: u64, pub ms: u64, pub mbps: f64 }
+
+#[derive(Debug, Clone)]
+pub struct Image {
+ pub path: std::path::PathBuf,
+ pub xz: bool,
+ pub file_size: u64,
+ pub raw_size: u64,
+}
+
+/// What the image will be once written (the .xz index gives the uncompressed size).
+pub fn inspect(path: &Path) -> Result<Image> {
+ let name = path.file_name().and_then(|n| n.to_str()).unwrap_or("");
+ let kind = crate::image_kind(name);
+ if kind == 0 || !crate::valid_name(name) { return Err(Error::new("imager.badImageName", name)); }
+ let mut f = File::open(path).map_err(|e| Error::new("disk.imageOpenFailed", e.to_string()))?;
+ let meta = f.metadata().map_err(|e| Error::new("disk.imageOpenFailed", e.to_string()))?;
+ if !meta.is_file() || meta.len() == 0 { return Err(Error::new("disk.imageOpenFailed", "not a regular file")); }
+ let raw = if kind == 2 { crate::xzinfo::uncompressed_size(&mut f, meta.len()).ok_or_else(|| Error::new("imager.xzDamaged", ""))? } else { meta.len() };
+ Ok(Image { path: path.to_path_buf(), xz: kind == 2, file_size: meta.len(), raw_size: raw })
+}
+
+pub fn sha256_file(path: &Path, cancel: &AtomicBool, mut cb: impl FnMut(Progress)) -> Result<[u8; 32]> {
+ let mut f = File::open(path).map_err(|e| Error::new("disk.imageOpenFailed", e.to_string()))?;
+ let total = f.metadata().map(|m| m.len()).unwrap_or(0);
+ let mut h = Sha256::new();
+ let mut buf = vec![0u8; CHUNK];
+ let mut done = 0u64;
+ loop {
+ if cancel.load(Ordering::Relaxed) { return Err(Error::new("disk.cancelled", "")); }
+ let n = f.read(&mut buf).map_err(|e| Error::new("disk.imageReadFailed", e.to_string()))?;
+ if n == 0 { break; }
+ h.update(&buf[..n]);
+ done += n as u64;
+ cb(Progress { phase: Phase::Check, done, total });
+ }
+ Ok(h.finalize().into())
+}
+
+/// Hashes everything read through it (the compressed bytes, for the second check).
+struct Hashing<R> { inner: R, h: Sha256, n: u64 }
+impl<R: Read> Read for Hashing<R> {
+ fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
+ let k = self.inner.read(buf)?;
+ self.h.update(&buf[..k]);
+ self.n += k as u64;
+ Ok(k)
+ }
+}
+
+fn fill(r: &mut dyn Read, buf: &mut [u8]) -> std::io::Result<usize> {
+ let mut o = 0;
+ while o < buf.len() {
+ match r.read(&mut buf[o..]) {
+ Ok(0) => break,
+ Ok(k) => o += k,
+ Err(e) if e.kind() == std::io::ErrorKind::Interrupted => {}
+ Err(e) => return Err(e),
+ }
+ }
+ Ok(o)
+}
+
+fn put<D: Write + Seek>(dev: &mut D, off: u64, data: &[u8]) -> std::io::Result<()> {
+ dev.seek(SeekFrom::Start(off))?;
+ dev.write_all(data)
+}
+
+/// Zeroes the first and last MiB of the device (partition tables, GPT backup, boot sectors).
+pub fn wipe_ends<D: Write + Seek>(dev: &mut D, dev_size: u64) -> std::io::Result<()> {
+ let z = vec![0u8; MIB as usize];
+ put(dev, 0, &z[..MIB.min(dev_size) as usize])?;
+ if dev_size > 2 * MIB { put(dev, dev_size - MIB, &z)?; }
+ dev.flush()
+}
+
+pub trait Device: Read + Write + Seek {
+ fn sync(&mut self) -> std::io::Result<()>;
+}
+impl Device for File {
+ /// Raw disk devices are unbuffered: some refuse a full sync (`macos` /dev/rdiskN answers
+ /// ENOTTY to F_FULLFSYNC), which is not an error there.
+ fn sync(&mut self) -> std::io::Result<()> {
+ match self.sync_all() {
+ Err(e) if matches!(e.raw_os_error(), Some(25) | Some(45) | Some(102) | Some(22)) => Ok(()), // ENOTTY, ENOTSUP, EOPNOTSUPP, EINVAL
+ r => r,
+ }
+ }
+}
+
+/// Writes `img` to `dev` (`dev_size` bytes) and reads it back. `listed`: the signed SHA-256 of the
+/// image file (official images), checked again over the bytes actually read while writing.
+pub fn write_image<D: Device>(img: &Image, dev: &mut D, dev_size: u64, listed: Option<[u8; 32]>, cancel: &AtomicBool,
+ mut cb: impl FnMut(Progress)) -> Result<Outcome> {
+ if img.raw_size > dev_size {
+ return Err(Error::new("disk.imageTooLarge", format!("{} > {}", img.raw_size, dev_size)));
+ }
+ let t0 = std::time::Instant::now();
+ let r = (|| -> Result<[u8; 32]> {
+ let f = File::open(&img.path).map_err(|e| Error::new("disk.imageOpenFailed", e.to_string()))?;
+ let mut hashing = Hashing { inner: f, h: Sha256::new(), n: 0 };
+ let mut raw = Sha256::new();
+ let mut buf = vec![0u8; CHUNK];
+ let mut off = 0u64;
+ {
+ let mut src: Box<dyn Read + '_> = if img.xz { Box::new(xz2::read::XzDecoder::new_multi_decoder(&mut hashing)) } else { Box::new(&mut hashing) };
+ loop {
+ if cancel.load(Ordering::Relaxed) { return Err(Error::new("imager.cancelledWiped", "")); }
+ let n = fill(&mut src, &mut buf).map_err(|e| Error::new(if img.xz { "imager.xzDamaged" } else { "disk.imageReadFailed" }, e.to_string()))?;
+ if n == 0 { break; }
+ if off + n as u64 > img.raw_size { return Err(Error::new(if img.xz { "imager.xzDamaged" } else { "imager.imageChanged" }, "longer than its size")); }
+ raw.update(&buf[..n]);
+ let padded = n.div_ceil(SECTOR) * SECTOR;
+ buf[n..padded].fill(0);
+ put(dev, off, &buf[..padded]).map_err(|e| Error::new("disk.writeFailed", e.to_string()))?;
+ off += n as u64;
+ cb(Progress { phase: Phase::Write, done: off, total: img.raw_size });
+ }
+ }
+ if off != img.raw_size { return Err(Error::new(if img.xz { "imager.xzDamaged" } else { "imager.imageChanged" }, "shorter than its size")); }
+ if hashing.n != img.file_size { return Err(Error::new("imager.imageChanged", "file size changed")); }
+ if let Some(want) = listed {
+ let got: [u8; 32] = hashing.h.finalize().into();
+ if got != want { return Err(Error::new("imager.imageChanged", "the file changed after it was checked")); }
+ }
+ dev.flush().map_err(|e| Error::new("disk.writeFailed", e.to_string()))?;
+ dev.sync().map_err(|e| Error::new("disk.writeFailed", e.to_string()))?;
+ Ok(raw.finalize().into())
+ })();
+ let written = match r {
+ Ok(h) => h,
+ Err(e) => { let _ = wipe_ends(dev, dev_size); let _ = dev.sync(); return Err(e); }
+ };
+ let ms = t0.elapsed().as_millis() as u64;
+ // read back
+ let v = (|| -> Result<[u8; 32]> {
+ let mut h = Sha256::new();
+ let mut buf = vec![0u8; CHUNK];
+ let mut off = 0u64;
+ while off < img.raw_size {
+ if cancel.load(Ordering::Relaxed) { return Err(Error::new("imager.cancelledWiped", "")); }
+ let want = (img.raw_size - off).min(CHUNK as u64) as usize;
+ let rd = want.div_ceil(SECTOR) * SECTOR;
+ dev.seek(SeekFrom::Start(off)).map_err(|e| Error::new("disk.verifyReadFailed", e.to_string()))?;
+ dev.read_exact(&mut buf[..rd]).map_err(|e| Error::new("disk.verifyReadFailed", e.to_string()))?;
+ h.update(&buf[..want]);
+ off += want as u64;
+ cb(Progress { phase: Phase::Verify, done: off, total: img.raw_size });
+ }
+ Ok(h.finalize().into())
+ })();
+ match v {
+ Ok(back) if back == written => {
+ let secs = (ms as f64 / 1000.0).max(0.001);
+ Ok(Outcome { sha256: hex(&written), size: img.raw_size, ms, mbps: img.raw_size as f64 / secs / 1e6 })
+ }
+ other => {
+ let _ = wipe_ends(dev, dev_size);
+ let _ = dev.sync();
+ Err(match other { Err(e) => e, _ => Error::new("disk.verifyMismatch", "") })
+ }
+ }
+}
diff --git a/desktop/imager/core/src/xzinfo.rs b/desktop/imager/core/src/xzinfo.rs
new file mode 100644
index 0000000..0bf2e43
--- /dev/null
+++ b/desktop/imager/core/src/xzinfo.rs
@@ -0,0 +1,71 @@
+//! The uncompressed size of an .xz file from its stream footers and indexes (CRC-checked), like
+//! server/src/imager/imgverify.c's img_xz_size: one or more streams, stream padding allowed.
+use std::io::{Read, Seek, SeekFrom};
+
+pub fn crc32(data: &[u8]) -> u32 {
+ let mut crc = !0u32;
+ for &b in data {
+ crc ^= b as u32;
+ for _ in 0..8 { crc = if crc & 1 != 0 { 0xedb8_8320 ^ (crc >> 1) } else { crc >> 1 }; }
+ }
+ !crc
+}
+
+fn le32(b: &[u8]) -> u32 { u32::from_le_bytes([b[0], b[1], b[2], b[3]]) }
+
+fn varint(b: &[u8], pos: &mut usize) -> Option<u64> {
+ let mut v = 0u64;
+ for i in 0..9 {
+ let c = *b.get(*pos)?;
+ *pos += 1;
+ v |= ((c & 0x7f) as u64) << (7 * i);
+ if c & 0x80 == 0 { return if i > 0 && c == 0 { None } else { Some(v) }; }
+ }
+ None
+}
+
+fn read_at<R: Read + Seek>(r: &mut R, off: u64, n: usize) -> Option<Vec<u8>> {
+ let mut b = vec![0u8; n];
+ r.seek(SeekFrom::Start(off)).ok()?;
+ r.read_exact(&mut b).ok()?;
+ Some(b)
+}
+
+/// None when the file isn't xz or is damaged.
+pub fn uncompressed_size<R: Read + Seek>(r: &mut R, fsize: u64) -> Option<u64> {
+ if fsize < 32 || fsize % 4 != 0 { return None; }
+ let (mut pos, mut total, mut streams) = (fsize, 0u64, 0);
+ while pos > 0 {
+ if pos < 12 { return None; }
+ let f = read_at(r, pos - 12, 12)?;
+ if f[8..12] == [0, 0, 0, 0] { pos -= 4; continue; } // stream padding
+ if &f[10..12] != b"YZ" || crc32(&f[4..10]) != le32(&f[0..4]) { return None; }
+ let isize = (le32(&f[4..8]) as u64 + 1) * 4;
+ if isize > 1 << 24 || isize + 24 > pos { return None; }
+ let ix = read_at(r, pos - 12 - isize, isize as usize)?;
+ let end = ix.len() - 4;
+ if ix[0] != 0 || crc32(&ix[..end]) != le32(&ix[end..]) { return None; }
+ let mut p = 1usize;
+ let n = varint(&ix[..end], &mut p)?;
+ if n > 1 << 24 { return None; }
+ let (mut blocks, mut usum) = (0u64, 0u64);
+ for _ in 0..n {
+ let un = varint(&ix[..end], &mut p)?;
+ let us = varint(&ix[..end], &mut p)?;
+ if un == 0 { return None; }
+ blocks = blocks.checked_add((un + 3) & !3)?;
+ usum = usum.checked_add(us)?;
+ }
+ while p % 4 != 0 { if ix[p] != 0 { return None; } p += 1; }
+ if p != end { return None; }
+ let ssize = 12 + blocks + isize + 12;
+ if ssize > pos { return None; }
+ let h = read_at(r, pos - ssize, 12)?;
+ if &h[0..6] != b"\xfd7zXZ\0" || h[6] != f[8] || h[7] != f[9] || crc32(&h[6..8]) != le32(&h[8..12]) { return None; }
+ total = total.checked_add(usum)?;
+ pos -= ssize;
+ streams += 1;
+ if streams > 1024 { return None; }
+ }
+ if streams == 0 { None } else { Some(total) }
+}
diff --git a/desktop/imager/core/tests/core.rs b/desktop/imager/core/tests/core.rs
new file mode 100644
index 0000000..bb25d66
--- /dev/null
+++ b/desktop/imager/core/tests/core.rs
@@ -0,0 +1,168 @@
+//! The desktop imager's core against the same fixtures and vectors as the native one
+//! (server/tests/imager_test.c, firstrun_test.c): release signature good / tampered / missing /
+//! another release's, the key fingerprint, the .xz index, the secrets, and write + verify + cancel
+//! on a file standing in for a device.
+use lordos_imager_core::{sums, write, xzinfo, secrets, RELEASE_KEY, image_kind, valid_name, valid_tag};
+use sha2::{Digest, Sha256};
+use std::fs;
+use std::io::{Read, Write};
+use std::path::PathBuf;
+use std::sync::atomic::{AtomicBool, Ordering};
+
+fn fixture(name: &str) -> PathBuf { PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../../server/tests/imager").join(name) }
+
+#[test]
+fn release_key_matches_the_published_fingerprint() {
+ let pem = fs::read_to_string(PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../../tools/release/lordos-release.pub.pem")).unwrap();
+ let b64: String = pem.lines().filter(|l| !l.starts_with("-----")).collect();
+ use base64::Engine;
+ let der = base64::engine::general_purpose::STANDARD.decode(b64).unwrap();
+ assert_eq!(&der[der.len() - 32..], &RELEASE_KEY);
+ assert_eq!(sums::hex(&Sha256::digest(&der)), "c7155b8e6bbbb180f907381994d06af76d333016cd6f3facf67cadd053ea108e");
+}
+
+#[test]
+fn signature_good_bad_missing() {
+ let s = fs::read(fixture("release-SHA256SUMS")).unwrap();
+ let sig = fs::read(fixture("release-SHA256SUMS.sig")).unwrap();
+ assert!(sums::verify(&s, &sig, &RELEASE_KEY).is_ok());
+ assert!(sums::verify(&s, sig.strip_suffix(b"\n").unwrap(), &RELEASE_KEY).is_ok());
+ let mut t = s.clone();
+ t[10] ^= 1;
+ assert_eq!(sums::verify(&t, &sig, &RELEASE_KEY).unwrap_err().code, "imager.badSignature");
+ assert!(sums::verify(&s[..s.len() - 1], &sig, &RELEASE_KEY).is_err());
+ assert!(sums::verify(&s, b"", &RELEASE_KEY).is_err());
+ assert!(sums::verify(&s, b"M2obKQ", &RELEASE_KEY).is_err());
+ // a real signature of another release (0.8.0) over this list
+ assert!(sums::verify(&s, b"NzFKWqpHNft14vKPCOK6q0DaQNef9jic0/7TUa7wkocU0g2AnRb7Gg2MBWljOsKwUK/0ceCAlkuBpRmjtSqPAw==\n", &RELEASE_KEY).is_err());
+ let mut other = RELEASE_KEY;
+ other[0] ^= 0x40;
+ assert!(sums::verify(&s, &sig, &other).is_err());
+ let list = sums::parse(&s).unwrap();
+ assert_eq!(sums::hex(&list["lordos-0.8.1-rpi5-arm64.img.xz"]), "a7714f4f3d437a9e48088cb89579a93638b36e8a93944add23e18a126f04ea45");
+ assert!(sums::parse(b"zz").is_err());
+ let dup = b"a7714f4f3d437a9e48088cb89579a93638b36e8a93944add23e18a126f04ea45 x.img\na7714f4f3d437a9e48088cb89579a93638b36e8a93944add23e18a126f04ea45 x.img\n";
+ assert!(sums::parse(dup).is_err());
+}
+
+#[test]
+fn names_and_tags() {
+ assert!(valid_name("lordos-0.8.4-rpi5-arm64.img.xz") && !valid_name("../x.img") && !valid_name(".x") && !valid_name("a b.img"));
+ assert_eq!(image_kind("a.img.xz"), 2);
+ assert_eq!(image_kind("a.iso"), 1);
+ assert_eq!(image_kind("a.zip"), 0);
+ assert!(valid_tag("v0.8.4-beta") && valid_tag("v1.0.0") && !valid_tag("v0.8") && !valid_tag("v0.8.4-") && !valid_tag("v0.8.4/../x"));
+}
+
+#[test]
+fn xz_index_sizes() {
+ for (f, n) in [("one.xz", 23000), ("blocks.xz", 23000), ("two.xz", 24000), ("padded.xz", 23000)] {
+ let mut file = fs::File::open(fixture(f)).unwrap();
+ let len = file.metadata().unwrap().len();
+ assert_eq!(xzinfo::uncompressed_size(&mut file, len), Some(n), "{f}");
+ }
+ let mut zeros = std::io::Cursor::new(vec![0u8; 64]);
+ assert_eq!(xzinfo::uncompressed_size(&mut zeros, 64), None);
+ assert_eq!(xzinfo::crc32(b"123456789"), 0xcbf4_3926);
+ // every flipped byte in the last 64 never gives a different valid size
+ let data = fs::read(fixture("one.xz")).unwrap();
+ for k in data.len() - 64..data.len() {
+ let mut d = data.clone();
+ d[k] ^= 0x55;
+ let len = d.len() as u64;
+ let r = xzinfo::uncompressed_size(&mut std::io::Cursor::new(d), len);
+ assert!(r.is_none() || r == Some(23000));
+ }
+}
+
+#[test]
+fn secrets_vectors() {
+ // IEEE 802.11i, H.4.1
+ assert_eq!(secrets::wifi_psk("IEEE", "password").unwrap(), "f42c6fc52df0ebef9ebb4b90b38a5f902e83fe1b135a70e23aed762e9710a12e");
+ assert!(secrets::wifi_psk("x", "short").is_err());
+ assert!(secrets::wifi_psk(&"x".repeat(33), "password").is_err());
+ // glibc's SHA-512 crypt vectors
+ assert!(secrets::check_password("Hello world!", "$6$saltstring$svn8UoSVapNtMuq1ukKS4tPQd8iKwSMHWjl/O817G3uBnIFNjnQJuesI68u4OTLiBFdcbYEdFCoEOfaS35inz1"));
+ assert!(secrets::check_password("Hello world!", "$6$rounds=10000$saltstringsaltst$OW1/O6BYHV6BcXZu8QVeXbDWra3Oeqh0sbHbbMCVNSnCM/UrjmM0Dp8vOuZeHBy/YTBmSK6H9qs/y3RnOaw5v."));
+ let h = secrets::hash_password("Correct-Horse-9-battery").unwrap();
+ assert!(h.starts_with("$6$rounds=200000$"), "{h}");
+ assert!(secrets::check_password("Correct-Horse-9-battery", &h) && !secrets::check_password("wrong", &h));
+}
+
+fn raw_image(dir: &std::path::Path, n: usize) -> (PathBuf, Vec<u8>) {
+ let mut data = vec![0u8; n];
+ let mut x = 0x1234_5678u32;
+ for b in data.iter_mut().take(n / 2) { x ^= x << 13; x ^= x >> 17; x ^= x << 5; *b = x as u8; }
+ let p = dir.join("test.img");
+ fs::write(&p, &data).unwrap();
+ (p, data)
+}
+
+fn device(dir: &std::path::Path, size: u64) -> fs::File {
+ let f = fs::OpenOptions::new().read(true).write(true).create(true).truncate(true).open(dir.join("device.bin")).unwrap();
+ f.set_len(size).unwrap();
+ f
+}
+
+#[test]
+fn write_and_verify_raw_and_xz() {
+ let dir = tempfile::tempdir().unwrap();
+ let (img, data) = raw_image(dir.path(), 9 * 1024 * 1024 + 300); // not a multiple of the sector size
+ let cancel = AtomicBool::new(false);
+ let i = write::inspect(&img).unwrap();
+ let mut dev = device(dir.path(), 32 << 20);
+ let listed: [u8; 32] = Sha256::digest(&data).into();
+ let mut phases = vec![];
+ let out = write::write_image(&i, &mut dev, 32 << 20, Some(listed), &cancel, |p| phases.push(p.phase)).unwrap();
+ assert_eq!(out.sha256, sums::hex(&listed));
+ assert!(phases.contains(&write::Phase::Write) && phases.contains(&write::Phase::Verify));
+ let mut back = vec![0u8; data.len()];
+ let mut f = fs::File::open(dir.path().join("device.bin")).unwrap();
+ f.read_exact(&mut back).unwrap();
+ assert_eq!(back, data);
+ // the same through xz (two streams), with the file's own hash as the listed one
+ let xzp = dir.path().join("test.img.xz");
+ {
+ let mut enc = xz2::write::XzEncoder::new(fs::File::create(&xzp).unwrap(), 6);
+ enc.write_all(&data[..4 << 20]).unwrap();
+ enc.finish().unwrap();
+ let mut enc2 = xz2::write::XzEncoder::new(fs::OpenOptions::new().append(true).open(&xzp).unwrap(), 6);
+ enc2.write_all(&data[4 << 20..]).unwrap();
+ enc2.finish().unwrap();
+ }
+ let xi = write::inspect(&xzp).unwrap();
+ assert!(xi.xz && xi.raw_size == data.len() as u64);
+ let fh: [u8; 32] = Sha256::digest(fs::read(&xzp).unwrap()).into();
+ let mut dev2 = device(dir.path(), 32 << 20);
+ let out2 = write::write_image(&xi, &mut dev2, 32 << 20, Some(fh), &cancel, |_| {}).unwrap();
+ assert_eq!(out2.sha256, sums::hex(&listed));
+}
+
+#[test]
+fn refusals_and_cancel_wipe() {
+ let dir = tempfile::tempdir().unwrap();
+ let (img, data) = raw_image(dir.path(), 12 << 20);
+ let i = write::inspect(&img).unwrap();
+ let cancel = AtomicBool::new(false);
+ // too large for the device
+ let mut small = device(dir.path(), 8 << 20);
+ assert_eq!(write::write_image(&i, &mut small, 8 << 20, None, &cancel, |_| {}).unwrap_err().code, "disk.imageTooLarge");
+ // the file is not the one that was checked: the device is wiped
+ let mut dev = device(dir.path(), 32 << 20);
+ let wrong = [7u8; 32];
+ assert_eq!(write::write_image(&i, &mut dev, 32 << 20, Some(wrong), &cancel, |_| {}).unwrap_err().code, "imager.imageChanged");
+ let mut head = vec![0u8; 1 << 20];
+ fs::File::open(dir.path().join("device.bin")).unwrap().read_exact(&mut head).unwrap();
+ assert!(head.iter().all(|&b| b == 0), "the start of the device is wiped");
+ // cancel in the middle of writing: wiped too
+ let mut dev = device(dir.path(), 32 << 20);
+ let c = AtomicBool::new(false);
+ let r = write::write_image(&i, &mut dev, 32 << 20, None, &c, |p| { if p.phase == write::Phase::Write && p.done >= 4 << 20 { c.store(true, Ordering::Relaxed); } });
+ assert_eq!(r.unwrap_err().code, "imager.cancelledWiped");
+ fs::File::open(dir.path().join("device.bin")).unwrap().read_exact(&mut head).unwrap();
+ assert!(head.iter().all(|&b| b == 0));
+ // not an image name
+ fs::write(dir.path().join("notes.txt"), b"x").unwrap();
+ assert_eq!(write::inspect(&dir.path().join("notes.txt")).unwrap_err().code, "imager.badImageName");
+ let _ = data;
+}
diff --git a/desktop/imager/package-lock.json b/desktop/imager/package-lock.json
new file mode 100644
index 0000000..6acaf73
--- /dev/null
+++ b/desktop/imager/package-lock.json
@@ -0,0 +1,751 @@
+{
+ "name": "lordos-imager-desktop",
+ "version": "0.8.4",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "lordos-imager-desktop",
+ "version": "0.8.4",
+ "dependencies": {
+ "@tauri-apps/api": "2.12.3",
+ "@tauri-apps/plugin-dialog": "2.8.3",
+ "react": "19.3.1",
+ "react-dom": "19.3.1"
+ },
+ "devDependencies": {
+ "@tauri-apps/cli": "2.12.3",
+ "esbuild": "0.24.2"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.2.tgz",
+ "integrity": "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.2.tgz",
+ "integrity": "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.2.tgz",
+ "integrity": "sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.2.tgz",
+ "integrity": "sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.2.tgz",
+ "integrity": "sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.2.tgz",
+ "integrity": "sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.2.tgz",
+ "integrity": "sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.2.tgz",
+ "integrity": "sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.2.tgz",
+ "integrity": "sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.2.tgz",
+ "integrity": "sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.2.tgz",
+ "integrity": "sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.2.tgz",
+ "integrity": "sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.2.tgz",
+ "integrity": "sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.2.tgz",
+ "integrity": "sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.2.tgz",
+ "integrity": "sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.2.tgz",
+ "integrity": "sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.2.tgz",
+ "integrity": "sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.24.2.tgz",
+ "integrity": "sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.2.tgz",
+ "integrity": "sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.2.tgz",
+ "integrity": "sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.2.tgz",
+ "integrity": "sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.2.tgz",
+ "integrity": "sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.2.tgz",
+ "integrity": "sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.2.tgz",
+ "integrity": "sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.2.tgz",
+ "integrity": "sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@tauri-apps/api": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.12.3.tgz",
+ "integrity": "sha512-9s0PKw0p4r3kFq92jhpivYSp+cSht15o0gXpZxuQd0+dV9KCexEVkNaLELVoLdJWyoH4KlfQo5h3W2LIM8siJg==",
+ "license": "Apache-2.0 OR MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/tauri"
+ }
+ },
+ "node_modules/@tauri-apps/cli": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.12.3.tgz",
+ "integrity": "sha512-f7/LsY74SVb1ChmOPw1ajOpxii0GSzDAgmWHRci8JUYuuai04rXsSbFobpmB0sP2DdlvMD/B5ZotEn8GOGMRUg==",
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "bin": {
+ "tauri": "tauri.js"
+ },
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/tauri"
+ },
+ "optionalDependencies": {
+ "@tauri-apps/cli-darwin-arm64": "2.12.3",
+ "@tauri-apps/cli-darwin-x64": "2.12.3",
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.12.3",
+ "@tauri-apps/cli-linux-arm64-gnu": "2.12.3",
+ "@tauri-apps/cli-linux-arm64-musl": "2.12.3",
+ "@tauri-apps/cli-linux-riscv64-gnu": "2.12.3",
+ "@tauri-apps/cli-linux-x64-gnu": "2.12.3",
+ "@tauri-apps/cli-linux-x64-musl": "2.12.3",
+ "@tauri-apps/cli-win32-arm64-msvc": "2.12.3",
+ "@tauri-apps/cli-win32-ia32-msvc": "2.12.3",
+ "@tauri-apps/cli-win32-x64-msvc": "2.12.3"
+ }
+ },
+ "node_modules/@tauri-apps/cli-darwin-arm64": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.12.3.tgz",
+ "integrity": "sha512-xmVNoJOOKzKLj7GLHXmXLimRby9M42aBIJa0sB80N7o24eKV5JiVmToKTRLVH9yhL05GZ/B6rSSOmbzNFJwBAA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-darwin-x64": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.12.3.tgz",
+ "integrity": "sha512-URd+0usfmUQQyb5kNPiKt2OT8gp7oGU7QR+qOppB6e35mpVBFFVNhWc9oWb3p0u71fDJ09DpF4T6m9xYxoIB8g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.12.3.tgz",
+ "integrity": "sha512-0kwUVx2LbmOoTRlwF1oDww7th4/NSluv4ZBQ6KRZsFKg4g0TlTcIiJ0VehqkQYUeC9xIT1Mk6XtF52mI155VSQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.12.3.tgz",
+ "integrity": "sha512-gKSGDx6fx+HBLQmG6guChFdisbrCSdx9Yli+j5teOa64gm1CeM+C6NLru5Pj3ZkkEep05BmCFjxvX+cjqAycZQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.12.3.tgz",
+ "integrity": "sha512-Yr59qMy/gcvAfBuFdCGlAmGiLsYWMFDbsP4bAI6iNBzcJTGrYWZGeiQhGDo29MQwfF/NUBqyM2qljXu5tZ6wjQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.12.3.tgz",
+ "integrity": "sha512-jKr0/REBMnLKC0OwPQZkyge0mKDaNZ0b/AbfGwVyCgFfwS730EVLfVDo3nt7MUu6jJaytRq08+xSj5qfy+U1+Q==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.12.3.tgz",
+ "integrity": "sha512-gTkEqJAGCMROGanxHnzaJzQ+/rXl39HWVg0/hDODS1wDWBGqoceqGC6Qm1+mQbyT11xnsB8mKu/gyVID/YpFIw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-musl": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.12.3.tgz",
+ "integrity": "sha512-T2dTxL1svRym71fZtaW4pZYXbthbfFsEJr1NeOUg/p7laWXZbUt/8DMSZf8recu9f7+1F/Lv00HtzsEu6vDO9w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.12.3.tgz",
+ "integrity": "sha512-eoiQwpEZWbpsVHcM9BAzqqe4TCHszvr3rsM7pUQ4ofLK0lF1i1d/jX0Qo5DYMqcrUtwQuDdDuOCbcT0Izf1VwQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.12.3.tgz",
+ "integrity": "sha512-kE+KUg6Dbbkgvcw0m99wJVIToFQzJqpMBAXah74WqxaLzssNwSTUccrHp6+QVzMhjQP330tvekFmnQF+0NbE6Q==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {
+ "version": "2.12.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.12.3.tgz",
+ "integrity": "sha512-L7wndWAgX2mLW7alswpL3d1R0P9FN2WYBgHaQkAYEBxHHGkY4vFX9CjcRQ1LAxDAMIJxrY7/aDziFJeChS84NQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/plugin-dialog": {
+ "version": "2.8.3",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.8.3.tgz",
+ "integrity": "sha512-Hd/yBfk2R5v2MFrz/0VArSXeh8xKLLXGunqSiTtcHKn1zNZwaKujuA0VSwUvNfwC4hDoF1PveS+gBDNe3nHspw==",
+ "license": "MIT OR Apache-2.0",
+ "dependencies": {
+ "@tauri-apps/api": "^2.12.0"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.24.2",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.2.tgz",
+ "integrity": "sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.24.2",
+ "@esbuild/android-arm": "0.24.2",
+ "@esbuild/android-arm64": "0.24.2",
+ "@esbuild/android-x64": "0.24.2",
+ "@esbuild/darwin-arm64": "0.24.2",
+ "@esbuild/darwin-x64": "0.24.2",
+ "@esbuild/freebsd-arm64": "0.24.2",
+ "@esbuild/freebsd-x64": "0.24.2",
+ "@esbuild/linux-arm": "0.24.2",
+ "@esbuild/linux-arm64": "0.24.2",
+ "@esbuild/linux-ia32": "0.24.2",
+ "@esbuild/linux-loong64": "0.24.2",
+ "@esbuild/linux-mips64el": "0.24.2",
+ "@esbuild/linux-ppc64": "0.24.2",
+ "@esbuild/linux-riscv64": "0.24.2",
+ "@esbuild/linux-s390x": "0.24.2",
+ "@esbuild/linux-x64": "0.24.2",
+ "@esbuild/netbsd-arm64": "0.24.2",
+ "@esbuild/netbsd-x64": "0.24.2",
+ "@esbuild/openbsd-arm64": "0.24.2",
+ "@esbuild/openbsd-x64": "0.24.2",
+ "@esbuild/sunos-x64": "0.24.2",
+ "@esbuild/win32-arm64": "0.24.2",
+ "@esbuild/win32-ia32": "0.24.2",
+ "@esbuild/win32-x64": "0.24.2"
+ }
+ },
+ "node_modules/react": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
+ "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.28.0"
+ },
+ "peerDependencies": {
+ "react": "^19.3.1"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.28.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
+ "license": "MIT"
+ }
+ }
+}
diff --git a/desktop/imager/package.json b/desktop/imager/package.json
new file mode 100644
index 0000000..e79f4a2
--- /dev/null
+++ b/desktop/imager/package.json
@@ -0,0 +1,21 @@
+{
+ "name": "lordos-imager-desktop",
+ "private": true,
+ "version": "0.8.4",
+ "description": "LordOS Imager for the desktop (Tauri). The UI is apps/imager, shared with LordOS.",
+ "scripts": {
+ "web": "node build-web.mjs",
+ "tauri": "tauri",
+ "build": "node build-web.mjs && tauri build"
+ },
+ "dependencies": {
+ "react": "19.3.1",
+ "react-dom": "19.3.1",
+ "@tauri-apps/api": "2.12.3",
+ "@tauri-apps/plugin-dialog": "2.8.3"
+ },
+ "devDependencies": {
+ "@tauri-apps/cli": "2.12.3",
+ "esbuild": "0.24.2"
+ }
+}
diff --git a/desktop/imager/src-tauri/Cargo.toml b/desktop/imager/src-tauri/Cargo.toml
new file mode 100644
index 0000000..b0d755e
--- /dev/null
+++ b/desktop/imager/src-tauri/Cargo.toml
@@ -0,0 +1,20 @@
+[package]
+name = "lordos-imager"
+description = "LordOS Imager: writes LordOS to SD cards and USB sticks and prepares the Raspberry Pi's first boot"
+version.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[build-dependencies]
+tauri-build = { version = "2", features = [] }
+
+[dependencies]
+lordos-imager-core = { path = "../core" }
+tauri = { version = "2", features = [] }
+tauri-plugin-dialog = "2"
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
+reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"] }
+dirs = "5"
+sys-locale = "0.3"
+iana-time-zone = "0.1"
diff --git a/desktop/imager/src-tauri/build.rs b/desktop/imager/src-tauri/build.rs
new file mode 100644
index 0000000..709efcc
--- /dev/null
+++ b/desktop/imager/src-tauri/build.rs
@@ -0,0 +1,11 @@
+fn main() {
+ // `windows`: writing a whole disk needs an administrator, so the app asks for it when it starts
+ // (src-tauri/windows-app.manifest). Mac and Linux ask only when the drive is opened.
+ #[allow(unused_mut)]
+ let mut attrs = tauri_build::Attributes::new();
+ #[cfg(windows)]
+ {
+ attrs = attrs.windows_attributes(tauri_build::WindowsAttributes::new().app_manifest(include_str!("windows-app.manifest")));
+ }
+ tauri_build::try_build(attrs).expect("tauri-build");
+}
diff --git a/desktop/imager/src-tauri/capabilities/default.json b/desktop/imager/src-tauri/capabilities/default.json
new file mode 100644
index 0000000..195f946
--- /dev/null
+++ b/desktop/imager/src-tauri/capabilities/default.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "../gen/schemas/desktop-schema.json",
+ "identifier": "default",
+ "description": "The imager's window: its own commands and the file dialog, nothing else",
+ "windows": ["main"],
+ "permissions": ["core:default", "dialog:allow-open"]
+}
diff --git a/desktop/imager/src-tauri/icons/128x128.png b/desktop/imager/src-tauri/icons/128x128.png
new file mode 100644
index 0000000..3703553
Binary files /dev/null and b/desktop/imager/src-tauri/icons/128x128.png differ
diff --git a/desktop/imager/src-tauri/icons/[email protected] b/desktop/imager/src-tauri/icons/[email protected]
new file mode 100644
index 0000000..c94cff1
Binary files /dev/null and b/desktop/imager/src-tauri/icons/[email protected] differ
diff --git a/desktop/imager/src-tauri/icons/32x32.png b/desktop/imager/src-tauri/icons/32x32.png
new file mode 100644
index 0000000..915fca7
Binary files /dev/null and b/desktop/imager/src-tauri/icons/32x32.png differ
diff --git a/desktop/imager/src-tauri/icons/icon.icns b/desktop/imager/src-tauri/icons/icon.icns
new file mode 100644
index 0000000..dbed41a
Binary files /dev/null and b/desktop/imager/src-tauri/icons/icon.icns differ
diff --git a/desktop/imager/src-tauri/icons/icon.ico b/desktop/imager/src-tauri/icons/icon.ico
new file mode 100644
index 0000000..57ea822
Binary files /dev/null and b/desktop/imager/src-tauri/icons/icon.ico differ
diff --git a/desktop/imager/src-tauri/icons/icon.png b/desktop/imager/src-tauri/icons/icon.png
new file mode 100644
index 0000000..658d5f2
Binary files /dev/null and b/desktop/imager/src-tauri/icons/icon.png differ
diff --git a/desktop/imager/src-tauri/icons/imager.svg b/desktop/imager/src-tauri/icons/imager.svg
new file mode 100644
index 0000000..4e73c7d
--- /dev/null
+++ b/desktop/imager/src-tauri/icons/imager.svg
@@ -0,0 +1,11 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024">
+ <!-- LordOS Imager: the crown's violet, an SD card with a download arrow (our own drawing) -->
+ <defs>
+ <linearGradient id="bg" x1="0.2" y1="0" x2="0.8" y2="1"><stop offset="0" stop-color="#B46CFF"/><stop offset="1" stop-color="#4F46E5"/></linearGradient>
+ <linearGradient id="card" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#FFFFFF"/><stop offset="1" stop-color="#EEEAFF"/></linearGradient>
+ </defs>
+ <rect x="64" y="64" width="896" height="896" rx="200" fill="url(#bg)"/>
+ <path d="M332 252 H588 L708 372 V760 Q708 792 676 792 H332 Q300 792 300 760 V284 Q300 252 332 252 Z" fill="url(#card)"/>
+ <g fill="#FFC300"><rect x="350" y="292" width="34" height="86" rx="17"/><rect x="420" y="292" width="34" height="86" rx="17"/><rect x="490" y="292" width="34" height="86" rx="17"/><rect x="560" y="292" width="34" height="86" rx="17"/></g>
+ <g fill="#5B3FE0"><rect x="478" y="440" width="68" height="200" rx="34"/><path d="M402 576 L512 690 L622 576" fill="none" stroke="#5B3FE0" stroke-width="68" stroke-linecap="round" stroke-linejoin="round"/></g>
+</svg>
diff --git a/desktop/imager/src-tauri/icons/source-1024.png b/desktop/imager/src-tauri/icons/source-1024.png
new file mode 100644
index 0000000..9f538e7
Binary files /dev/null and b/desktop/imager/src-tauri/icons/source-1024.png differ
diff --git a/desktop/imager/src-tauri/src/main.rs b/desktop/imager/src-tauri/src/main.rs
new file mode 100644
index 0000000..2d3244c
--- /dev/null
+++ b/desktop/imager/src-tauri/src/main.rs
@@ -0,0 +1,331 @@
+//! LordOS Imager for the desktop (`macos`, `windows`, `linux`): the Tauri shell. The window shows the same React UI as
+//! the native app (apps/imager, built by desktop/imager/build-web.mjs); its platform module calls
+//! the commands below. Nothing here runs a shell; downloads go only to the LordOS releases on GitHub,
+//! and writing goes through lordos-imager-core. docs/IMAGER.md, "The desktop app".
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+use lordos_imager_core::{drives, secrets, sums, write, Error, RELEASE_KEY};
+use serde::Serialize;
+use serde_json::{json, Value};
+use std::fs;
+use std::io::{Read, Write};
+use std::path::{Path, PathBuf};
+use std::sync::atomic::{AtomicBool, Ordering};
+use std::sync::{Arc, Mutex};
+use tauri::{AppHandle, Emitter, Manager, State};
+
+const REPO: &str = "lordbasex/LordOS";
+const UA: &str = concat!("LordOS-Imager/", env!("CARGO_PKG_VERSION"));
+
+struct App {
+ cancel: Arc<AtomicBool>,
+ cache: Mutex<PathBuf>,
+ config: PathBuf,
+}
+
+type Res<T> = Result<T, Value>;
+fn err(e: Error) -> Value { json!({ "code": e.code, "detail": e.detail }) }
+fn code(c: &'static str, d: impl Into<String>) -> Value { err(Error::new(c, d)) }
+
+fn config_dir() -> PathBuf { dirs::config_dir().unwrap_or_else(std::env::temp_dir).join("LordOS Imager") }
+fn default_cache() -> PathBuf { dirs::cache_dir().unwrap_or_else(std::env::temp_dir).join("LordOS Imager") }
+
+fn read_json(p: &Path) -> Value { fs::read(p).ok().and_then(|b| serde_json::from_slice(&b).ok()).unwrap_or(Value::Null) }
+fn write_json(p: &Path, v: &Value) -> std::io::Result<()> {
+ if let Some(d) = p.parent() { fs::create_dir_all(d)?; }
+ let tmp = p.with_extension("json.new");
+ fs::write(&tmp, serde_json::to_vec_pretty(v)?)?;
+ fs::rename(tmp, p)
+}
+
+// ---- context ----
+
+#[derive(Serialize)]
+struct Platform { os: &'static str, arch: &'static str, version: &'static str, lang: String, timezone: String, country: String, cache: String,
+ #[serde(rename = "testState")] test_state: Value }
+
+/// Tests and documentation screenshots only: LORDOS_IMAGER_TEST_STATE=<file.json> starts the window
+/// at a given step with given choices (and may start the write, but only to a test device: one the
+/// LORDOS_IMAGER_TEST_DEVICES folder rule lists). Never set by the app itself.
+fn test_state() -> Value {
+ let Ok(p) = std::env::var("LORDOS_IMAGER_TEST_STATE") else { return Value::Null };
+ match fs::metadata(&p) { Ok(m) if m.is_file() && m.len() < 65536 => read_json(Path::new(&p)), _ => Value::Null }
+}
+
+#[tauri::command]
+fn platform(st: State<App>) -> Platform {
+ let loc = sys_locale::get_locale().unwrap_or_default();
+ let lang = loc.split(['-', '_']).next().unwrap_or("en").to_lowercase();
+ let country = loc.split(['-', '_']).nth(1).unwrap_or("").to_uppercase();
+ Platform {
+ os: std::env::consts::OS, arch: std::env::consts::ARCH, version: env!("CARGO_PKG_VERSION"),
+ lang: if ["en", "es", "pt"].contains(&lang.as_str()) { lang } else { "en".into() },
+ timezone: iana_time_zone::get_timezone().unwrap_or_default(),
+ country: if country.len() == 2 && country.bytes().all(|c| c.is_ascii_uppercase()) { country } else { String::new() },
+ cache: st.cache.lock().unwrap().display().to_string(),
+ test_state: test_state(),
+ }
+}
+
+// ---- drives ----
+
+#[tauri::command]
+async fn list_drives() -> Res<Vec<drives::Drive>> {
+ tauri::async_runtime::spawn_blocking(|| drives::list().map_err(err)).await.map_err(|e| code("imager.listFailed", e.to_string()))?
+}
+
+// ---- releases and downloads (only GitHub's LordOS releases; the signature decides what is trusted) ----
+
+fn client() -> Res<reqwest::blocking::Client> {
+ reqwest::blocking::Client::builder().user_agent(UA).https_only(true).connect_timeout(std::time::Duration::from_secs(20))
+ .build().map_err(|e| code("imager.fetchNetwork", e.to_string()))
+}
+
+#[tauri::command]
+async fn fetch_releases(st: State<'_, App>) -> Res<String> {
+ let cache = st.cache.lock().unwrap().clone();
+ tauri::async_runtime::spawn_blocking(move || {
+ let url = format!("https://api.github.com/repos/{REPO}/releases?per_page=10");
+ let r = client()?.get(url).header("Accept", "application/vnd.github+json").send().map_err(|e| code("imager.fetchNetwork", e.to_string()))?;
+ if !r.status().is_success() { return Err(code("imager.fetchFailed", r.status().as_str().to_string())); }
+ let text = r.text().map_err(|e| code("imager.fetchNetwork", e.to_string()))?;
+ if text.len() > 4 << 20 { return Err(code("imager.fetchTooLarge", "")); }
+ let _ = fs::create_dir_all(&cache);
+ let _ = fs::write(cache.join("releases.json"), &text);
+ Ok(text)
+ }).await.map_err(|e| code("imager.fetchFailed", e.to_string()))?
+}
+
+#[tauri::command]
+fn cached_releases(st: State<App>) -> Option<String> { fs::read_to_string(st.cache.lock().unwrap().join("releases.json")).ok() }
+
+fn asset_path(st: &App, tag: &str, name: &str) -> Res<PathBuf> {
+ if !lordos_imager_core::valid_tag(tag) || !lordos_imager_core::valid_name(name) { return Err(code("admin.invalidArgument", "")); }
+ Ok(st.cache.lock().unwrap().join(tag).join(name))
+}
+
+#[tauri::command]
+fn cache_state(st: State<App>, tag: String, name: String, size: u64) -> Res<Value> {
+ let p = asset_path(&st, &tag, &name)?;
+ let cached = fs::metadata(&p).map(|m| m.len() == size).unwrap_or(false);
+ let partial = fs::metadata(part_of(&p)).map(|m| m.len()).unwrap_or(0);
+ Ok(json!({ "cached": cached, "partial": partial, "path": p.display().to_string() }))
+}
+
+fn part_of(p: &Path) -> PathBuf { let mut s = p.as_os_str().to_owned(); s.push(".part"); PathBuf::from(s) }
+
+#[tauri::command]
+async fn download(app: AppHandle, st: State<'_, App>, tag: String, name: String, size: u64) -> Res<String> {
+ let dest = asset_path(&st, &tag, &name)?;
+ let cancel = st.cancel.clone();
+ cancel.store(false, Ordering::Relaxed);
+ if size == 0 || size > 64 << 30 { return Err(code("admin.invalidArgument", "size")); }
+ tauri::async_runtime::spawn_blocking(move || {
+ if fs::metadata(&dest).map(|m| m.len() == size).unwrap_or(false) { return Ok(dest.display().to_string()); }
+ fs::create_dir_all(dest.parent().unwrap()).map_err(|e| code("imager.cacheFailed", e.to_string()))?;
+ let part = part_of(&dest);
+ let have = fs::metadata(&part).map(|m| m.len()).unwrap_or(0);
+ let have = if have > size { let _ = fs::remove_file(&part); 0 } else { have };
+ let url = format!("https://github.com/{REPO}/releases/download/{tag}/{name}");
+ let mut req = client()?.get(url);
+ if have > 0 { req = req.header("Range", format!("bytes={have}-")); }
+ let mut r = req.send().map_err(|e| code("imager.fetchNetwork", e.to_string()))?;
+ let resumed = r.status().as_u16() == 206;
+ if r.status().as_u16() == 404 { return Err(code("imager.fetchNotFound", "")); }
+ if !r.status().is_success() { return Err(code("imager.fetchFailed", r.status().as_str().to_string())); }
+ let mut f = fs::OpenOptions::new().create(true).append(resumed).write(true).truncate(!resumed).open(&part).map_err(|e| code("imager.cacheFailed", e.to_string()))?;
+ let mut done = if resumed { have } else { 0 };
+ let mut buf = vec![0u8; 256 << 10];
+ let mut last = std::time::Instant::now();
+ loop {
+ if cancel.load(Ordering::Relaxed) { return Err(code("imager.fetchCancelled", "")); }
+ let n = r.read(&mut buf).map_err(|e| code("imager.fetchNetwork", e.to_string()))?;
+ if n == 0 { break; }
+ done += n as u64;
+ if done > size { let _ = fs::remove_file(&part); return Err(code("imager.fetchTooLarge", "")); }
+ f.write_all(&buf[..n]).map_err(|e| code("imager.cacheFailed", e.to_string()))?;
+ if last.elapsed().as_millis() > 300 {
+ last = std::time::Instant::now();
+ let _ = app.emit("imager-progress", json!({ "phase": "download", "done": done, "total": size }));
+ }
+ }
+ f.sync_all().ok();
+ if done != size { return Err(code("imager.fetchFailed", format!("{done} of {size} bytes"))); }
+ fs::rename(&part, &dest).map_err(|e| code("imager.cacheFailed", e.to_string()))?;
+ Ok(dest.display().to_string())
+ }).await.map_err(|e| code("imager.fetchFailed", e.to_string()))?
+}
+
+#[tauri::command]
+fn cancel(st: State<App>) { st.cancel.store(true, Ordering::Relaxed); }
+
+/// Only the small text files of the cache (SHA256SUMS, its signature) are read back by the UI.
+#[tauri::command]
+fn read_cache_text(st: State<App>, path: String) -> Res<String> {
+ let cache = st.cache.lock().unwrap().canonicalize().map_err(|e| code("fs.readFailed", e.to_string()))?;
+ let p = PathBuf::from(&path).canonicalize().map_err(|e| code("fs.readFailed", e.to_string()))?;
+ if !p.starts_with(&cache) || fs::metadata(&p).map(|m| m.len() > 4 << 20).unwrap_or(true) { return Err(code("fs.readFailed", "")); }
+ fs::read_to_string(p).map_err(|e| code("fs.readFailed", e.to_string()))
+}
+
+#[tauri::command]
+fn check_sums(sums_text: String, sig: String) -> Value {
+ if sums::verify(sums_text.as_bytes(), sig.as_bytes(), &RELEASE_KEY).is_err() { return json!({ "ok": false }); }
+ match sums::parse(sums_text.as_bytes()) {
+ Ok(m) => json!({ "ok": true, "files": m.iter().map(|(k, v)| (k.clone(), Value::String(sums::hex(v)))).collect::<serde_json::Map<_, _>>() }),
+ Err(_) => json!({ "ok": false }),
+ }
+}
+
+// ---- the user's own files ----
+
+#[tauri::command]
+fn image_info(path: String) -> Res<Value> {
+ let i = write::inspect(Path::new(&path)).map_err(err)?;
+ Ok(json!({ "kind": if i.xz { "xz" } else { "raw" }, "size": i.file_size, "raw": i.raw_size, "path": path,
+ "name": Path::new(&path).file_name().and_then(|n| n.to_str()).unwrap_or("") }))
+}
+
+#[tauri::command]
+fn read_key_file(path: String) -> Res<String> {
+ let m = fs::metadata(&path).map_err(|e| code("fs.readFailed", e.to_string()))?;
+ if !m.is_file() || m.len() > 64 << 10 { return Err(code("fs.readFailed", "")); }
+ fs::read_to_string(path).map_err(|e| code("fs.readFailed", e.to_string()))
+}
+
+// ---- secrets: derived here; only the results go to the card ----
+
+#[tauri::command]
+async fn hash_password(password: String) -> Res<String> {
+ tauri::async_runtime::spawn_blocking(move || secrets::hash_password(&password).map_err(err)).await.map_err(|e| code("imager.hashFailed", e.to_string()))?
+}
+
+#[tauri::command]
+fn wifi_psk(ssid: String, password: String) -> Res<String> { secrets::wifi_psk(&ssid, &password).map_err(err) }
+
+// ---- writing ----
+
+fn find_drive(want: &drives::Drive) -> Res<drives::Drive> {
+ let now = drives::list().map_err(err)?;
+ let d = now.into_iter().find(|d| drives::same_identity(want, d)).ok_or_else(|| code("imager.diskChanged", want.id.clone()))?;
+ if !drives::writable(&d) { return Err(code(if d.read_only { "imager.readOnly" } else { "imager.notRemovable" }, d.id.clone())); }
+ if d.test_device != want.test_device { return Err(code("imager.diskChanged", d.id.clone())); }
+ Ok(d)
+}
+
+#[tauri::command]
+async fn write_image(app: AppHandle, st: State<'_, App>, drive: drives::Drive, path: String, official: bool, sums_path: Option<String>, sig_path: Option<String>) -> Res<write::Outcome> {
+ let cancel = st.cancel.clone();
+ cancel.store(false, Ordering::Relaxed);
+ tauri::async_runtime::spawn_blocking(move || {
+ // 1. the drive: removable, not the system disk, and still the one the user picked
+ let d = find_drive(&drive)?;
+ let img = write::inspect(Path::new(&path)).map_err(err)?;
+ if img.raw_size > d.size { return Err(code("disk.imageTooLarge", format!("{} > {}", img.raw_size, d.size))); }
+ // 2. official: signature and listed hash before anything is erased
+ let listed = if official {
+ let s = fs::read(sums_path.as_deref().unwrap_or("")).map_err(|_| code("imager.noSignature", ""))?;
+ let g = fs::read(sig_path.as_deref().unwrap_or("")).map_err(|_| code("imager.noSignature", ""))?;
+ sums::verify(&s, &g, &RELEASE_KEY).map_err(err)?;
+ let name = img.path.file_name().and_then(|n| n.to_str()).unwrap_or("").to_string();
+ let h = *sums::parse(&s).map_err(err)?.get(&name).ok_or_else(|| code("imager.notListed", name.clone()))?;
+ let got = write::sha256_file(&img.path, &cancel, |p| { let _ = app.emit("imager-progress", &p); }).map_err(err)?;
+ if got != h { return Err(code("imager.hashMismatch", "")); }
+ Some(h)
+ } else { None };
+ // 3. right before opening: the same drive again, nothing of it mounted, opened for writing
+ let d = find_drive(&d)?;
+ drives::unmount(&d).map_err(err)?;
+ let mut dev = drives::open(&d).map_err(err)?;
+ eprintln!("lordos-imager: writing {} ({} bytes) to {} ({})", img.path.display(), img.raw_size, d.path, d.model);
+ let r = write::write_image(&img, &mut dev, d.size, listed, &cancel, |p| { let _ = app.emit("imager-progress", &p); });
+ match &r { Ok(o) => eprintln!("lordos-imager: written and verified, sha256 {}", o.sha256), Err(e) => eprintln!("lordos-imager: write failed: {e}") }
+ drop(dev);
+ #[cfg(windows)]
+ if r.is_err() { drives::release_locks(); }
+ r.map_err(err)
+ }).await.map_err(|e| code("disk.writeFailed", e.to_string()))?
+}
+
+/// The first-run file onto the card's boot partition (mounted for the user, then unmounted).
+#[tauri::command]
+async fn write_firstrun(drive: drives::Drive, text: String, name: String) -> Res<()> {
+ if name != "lordos-firstrun.txt" || text.len() > 65536 { return Err(code("admin.invalidArgument", "")); }
+ tauri::async_runtime::spawn_blocking(move || {
+ let dir = drives::mount_boot(&drive).map_err(err)?;
+ let r = fs::write(dir.join(&name), text.as_bytes()).and_then(|_| fs::File::open(dir.join(&name))?.sync_all());
+ drives::unmount_boot(&drive);
+ r.map_err(|e| code("fs.writeFailed", e.to_string()))
+ }).await.map_err(|e| code("fs.writeFailed", e.to_string()))?
+}
+
+#[tauri::command]
+async fn eject(drive: drives::Drive) -> Res<()> {
+ tauri::async_runtime::spawn_blocking(move || drives::eject(&drive).map_err(err)).await.map_err(|e| code("imager.ejectFailed", e.to_string()))?
+}
+
+// ---- options, profiles (never secrets), cache ----
+
+#[tauri::command]
+fn load_options(st: State<App>) -> Value { read_json(&st.config.join("options.json")) }
+#[tauri::command]
+fn save_options(st: State<App>, options: Value) -> Res<()> {
+ let mut cur = read_json(&st.config.join("options.json"));
+ if !cur.is_object() { cur = json!({}); }
+ if let (Some(c), Some(o)) = (cur.as_object_mut(), options.as_object()) { for (k, v) in o { c.insert(k.clone(), v.clone()); } }
+ if let Some(dir) = cur.get("cacheDir").and_then(|v| v.as_str()) { *st.cache.lock().unwrap() = PathBuf::from(dir); }
+ write_json(&st.config.join("options.json"), &cur).map_err(|e| code("fs.writeFailed", e.to_string()))
+}
+#[tauri::command]
+fn load_profiles(st: State<App>) -> Value { let v = read_json(&st.config.join("profiles.json")); if v.is_array() { v } else { json!([]) } }
+#[tauri::command]
+fn save_profiles(st: State<App>, profiles: Value) -> Res<()> {
+ // profiles are written by the shared UI (core/firstrun.js toProfile) and hold no secrets; refuse anything that looks like one
+ let text = profiles.to_string();
+ if !profiles.is_array() || text.len() > 1 << 20 || text.contains("password_hash") || text.contains("\"psk\"") { return Err(code("admin.invalidArgument", "")); }
+ write_json(&st.config.join("profiles.json"), &profiles).map_err(|e| code("fs.writeFailed", e.to_string()))
+}
+
+fn dir_size(p: &Path) -> u64 {
+ fs::read_dir(p).map(|rd| rd.flatten().map(|e| {
+ let m = e.metadata().ok();
+ match m { Some(m) if m.is_dir() => dir_size(&e.path()), Some(m) => m.len(), None => 0 }
+ }).sum()).unwrap_or(0)
+}
+#[tauri::command]
+fn cache_size(st: State<App>) -> u64 { dir_size(&st.cache.lock().unwrap()) }
+#[tauri::command]
+fn clear_cache(st: State<App>) -> Res<()> {
+ let c = st.cache.lock().unwrap().clone();
+ // only what the imager puts there: releases.json and the release folders (v1.2.3-…)
+ for e in fs::read_dir(&c).map_err(|e| code("imager.cacheFailed", e.to_string()))?.flatten() {
+ let n = e.file_name().to_string_lossy().to_string();
+ let p = e.path();
+ if n == "releases.json" || n.ends_with(".part") { let _ = fs::remove_file(&p); }
+ else if lordos_imager_core::valid_tag(&n) && p.is_dir() {
+ for f in fs::read_dir(&p).into_iter().flatten().flatten() { if f.path().is_file() { let _ = fs::remove_file(f.path()); } }
+ let _ = fs::remove_dir(&p);
+ }
+ }
+ Ok(())
+}
+
+fn main() {
+ let config = config_dir();
+ let opts = read_json(&config.join("options.json"));
+ let cache = opts.get("cacheDir").and_then(|v| v.as_str()).map(PathBuf::from).unwrap_or_else(default_cache);
+ tauri::Builder::default()
+ .plugin(tauri_plugin_dialog::init())
+ .manage(App { cancel: Arc::new(AtomicBool::new(false)), cache: Mutex::new(cache), config })
+ .invoke_handler(tauri::generate_handler![
+ platform, list_drives, fetch_releases, cached_releases, cache_state, download, cancel, read_cache_text, check_sums,
+ image_info, read_key_file, hash_password, wifi_psk, write_image, write_firstrun, eject,
+ load_options, save_options, load_profiles, save_profiles, cache_size, clear_cache
+ ])
+ .setup(|app| {
+ if let Some(w) = app.get_webview_window("main") { let _ = w.set_title("LordOS Imager"); }
+ Ok(())
+ })
+ .run(tauri::generate_context!())
+ .expect("LordOS Imager");
+}
diff --git a/desktop/imager/src-tauri/tauri.conf.json b/desktop/imager/src-tauri/tauri.conf.json
new file mode 100644
index 0000000..ce59523
--- /dev/null
+++ b/desktop/imager/src-tauri/tauri.conf.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://schema.tauri.app/config/2",
+ "productName": "LordOS Imager",
+ "version": "0.8.4",
+ "identifier": "org.lordos.imager",
+ "build": {
+ "frontendDist": "../dist"
+ },
+ "app": {
+ "windows": [
+ {
+ "title": "LordOS Imager",
+ "width": 980,
+ "height": 680,
+ "minWidth": 840,
+ "minHeight": 580,
+ "resizable": true,
+ "backgroundThrottling": "disabled"
+ }
+ ],
+ "security": {
+ "csp": "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src ipc: http://ipc.localhost"
+ }
+ },
+ "bundle": {
+ "active": true,
+ "targets": ["app", "dmg", "deb", "appimage", "nsis"],
+ "category": "Utility",
+ "shortDescription": "Write LordOS to SD cards and USB sticks",
+ "longDescription": "Writes LordOS to SD cards and USB sticks, checks the release signature and reads the drive back, and prepares the Raspberry Pi's first boot.",
+ "copyright": "Copyright © 2026 iPERFEX",
+ "license": "MIT",
+ "icon": ["icons/32x32.png", "icons/128x128.png", "icons/[email protected]", "icons/icon.icns", "icons/icon.ico"],
+ "macOS": { "minimumSystemVersion": "11.0" },
+ "linux": { "deb": { "depends": ["udisks2"] } }
+ }
+}
diff --git a/desktop/imager/src-tauri/windows-app.manifest b/desktop/imager/src-tauri/windows-app.manifest
new file mode 100644
index 0000000..60ad2f2
--- /dev/null
+++ b/desktop/imager/src-tauri/windows-app.manifest
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <!-- LordOS Imager: writing a whole USB drive or SD card needs administrator rights -->
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+ <dependency>
+ <dependentAssembly>
+ <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
+ </dependentAssembly>
+ </dependency>
+ <application xmlns="urn:schemas-microsoft-com:asm.v3">
+ <windowsSettings>
+ <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
+ <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
+ </windowsSettings>
+ </application>
+</assembly>
diff --git a/desktop/imager/web/catalogs.js b/desktop/imager/web/catalogs.js
new file mode 100644
index 0000000..763349c
--- /dev/null
+++ b/desktop/imager/web/catalogs.js
@@ -0,0 +1,29 @@
+// catalogs.js — the imager's texts in the desktop app: the same catalogs LordOS ships
+// (assets/locales/<lang>/), so both apps say the same thing in the same three languages.
+import enImager from '../../../assets/locales/en/imager.json';
+import esImager from '../../../assets/locales/es/imager.json';
+import ptImager from '../../../assets/locales/pt/imager.json';
+import enErrors from '../../../assets/locales/en/errors.json';
+import esErrors from '../../../assets/locales/es/errors.json';
+import ptErrors from '../../../assets/locales/pt/errors.json';
+import enStatus from '../../../assets/locales/en/status.json';
+import esStatus from '../../../assets/locales/es/status.json';
+import ptStatus from '../../../assets/locales/pt/status.json';
+import enMascot from '../../../assets/locales/en/mascot.json';
+import esMascot from '../../../assets/locales/es/mascot.json';
+import ptMascot from '../../../assets/locales/pt/mascot.json';
+import enCountries from '../../../assets/locales/en/countries.json';
+import esCountries from '../../../assets/locales/es/countries.json';
+import ptCountries from '../../../assets/locales/pt/countries.json';
+import enShell from '../../../assets/locales/en/shell.json';
+import esShell from '../../../assets/locales/es/shell.json';
+import ptShell from '../../../assets/locales/pt/shell.json';
+
+// shell.json: only the wallpaper names are used here
+const walls = (s) => Object.fromEntries(Object.entries(s).filter(([k]) => k.startsWith('wallpaper.')));
+
+export const catalogs = {
+ en: { imager: enImager, errors: enErrors, status: enStatus, mascot: enMascot, countries: enCountries, shell: walls(enShell) },
+ es: { imager: esImager, errors: esErrors, status: esStatus, mascot: esMascot, countries: esCountries, shell: walls(esShell) },
+ pt: { imager: ptImager, errors: ptErrors, status: ptStatus, mascot: ptMascot, countries: ptCountries, shell: walls(ptShell) },
+};
diff --git a/desktop/imager/web/index.html b/desktop/imager/web/index.html
new file mode 100644
index 0000000..a90e49c
--- /dev/null
+++ b/desktop/imager/web/index.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>LordOS Imager</title>
+ <link rel="stylesheet" href="./style.css">
+</head>
+<body>
+ <div id="root"></div>
+ <script type="module" src="./app.js"></script>
+</body>
+</html>
diff --git a/desktop/imager/web/main.jsx b/desktop/imager/web/main.jsx
new file mode 100644
index 0000000..d322415
--- /dev/null
+++ b/desktop/imager/web/main.jsx
@@ -0,0 +1,34 @@
+// main.jsx — the desktop app's window: the shared imager UI (apps/imager/index.jsx) in a browser view.
+import { createRoot } from 'react-dom/client';
+import { createElement as h } from 'react';
+import Imager from '../../../apps/imager/index.jsx';
+import { init, warm, platform, info } from './platform.js';
+import { app, run, loadReleases } from '../../../apps/imager/state.js';
+import { useTheme } from './sdk.jsx';
+
+function Root() {
+ const t = useTheme();
+ document.body.style.background = t.windowBg;
+ document.body.style.color = t.text;
+ document.documentElement.style.colorScheme = t.mode;
+ return h('div', { style: { display: 'flex', flex: 1, minWidth: 0 } }, h(Imager));
+}
+
+await init();
+await warm();
+createRoot(document.getElementById('root')).render(h(Root));
+
+// tests and screenshots (LORDOS_IMAGER_TEST_STATE, see src-tauri/src/main.rs): a starting state, and
+// optionally the write itself, only ever to a listed test device
+const ts = info().testState;
+if (ts && typeof ts === 'object') {
+ await loadReleases();
+ const s = app.get();
+ const patch = { ...(ts.patch || {}) };
+ if (ts.cfg) patch.cfg = { ...s.cfg, ...ts.cfg, user: { ...s.cfg.user, ...(ts.cfg.user || {}) }, wifi: { ...s.cfg.wifi, ...(ts.cfg.wifi || {}) } };
+ if (ts.secrets) patch.secrets = { ...s.secrets, ...ts.secrets };
+ if (ts.drive) patch.drive = platform.drives().find((d) => d.id === ts.drive && d.raw.test_device) || null;
+ if (ts.release === 'latest' && s.releases.list[0]) patch.image = { official: true, release: s.releases.list[0], name: s.releases.list[0].image.name, size: s.releases.list[0].image.size, raw: null, tag: s.releases.list[0].tag };
+ app.set({ ...app.get(), ...patch });
+ if (ts.run && app.get().drive) run();
+}
diff --git a/desktop/imager/web/platform.js b/desktop/imager/web/platform.js
new file mode 100644
index 0000000..265e416
--- /dev/null
+++ b/desktop/imager/web/platform.js
@@ -0,0 +1,182 @@
+// platform.js — the LordOS Imager on the desktop (Tauri: `macos`, `windows`, `linux`). The same functions as
+// apps/imager/platform.js (LordOS), backed by the app's Rust commands (src-tauri/src/main.rs) and
+// lordos-imager-core. build-web.mjs puts this file in place of the native one.
+import { createElement as h } from 'react';
+import { invoke } from '@tauri-apps/api/core';
+import { listen } from '@tauri-apps/api/event';
+import { open as openDialog } from '@tauri-apps/plugin-dialog';
+import { t, setLanguage, appearance, createStore } from './sdk.jsx';
+import zonesData from '../../../apps/imager/data/zones.json';
+import { parseReleases } from '../../../apps/imager/core/releases.js';
+import layoutsData from '../../../apps/imager/data/layouts.json';
+
+let info_ = { os: '', lang: 'en', timezone: '', country: '', cache: '' };
+let options = {};
+let drivesNow = [];
+const driveSubs = new Set();
+let progressFn = null;
+listen('imager-progress', (e) => progressFn?.(e.payload));
+
+// Rust errors are { code, detail }: the message is the translated code, as on LordOS
+let currentDrive = '';
+function fail(e) {
+ const code = e?.code || 'imager.fetchFailed';
+ const detail = e?.detail || '';
+ let msg = t(`errors.${code}`, { name: currentDrive || detail, code: detail, size: '', capacity: '' });
+ if (msg === `errors.${code}`) msg = code;
+ else if (detail && !msg.includes(detail)) msg = `${msg} (${detail})`;
+ return Object.assign(new Error(msg), { code, detail });
+}
+const call = async (cmd, args) => { try { return await invoke(cmd, args); } catch (e) { throw fail(e); } };
+
+async function refreshDrives() {
+ try { drivesNow = await invoke('list_drives'); } catch { drivesNow = []; }
+ for (const f of driveSubs) f();
+}
+
+export const info = () => info_;
+export async function init() {
+ info_ = await invoke('platform');
+ options = (await invoke('load_options')) || {};
+ setLanguage(options.lang || info_.lang);
+ appearance.set(options.theme || 'auto');
+ await refreshDrives();
+ setInterval(refreshDrives, 2000); // drives appear and leave: a cheap listing every 2 s
+}
+
+const toDrive = (d) => ({ ...d, name: d.path.replace(/^\/dev\/r?/, '').replace(/^\\\\\.\\/, ''), rawModel: d.model, readOnly: d.read_only, raw: d });
+const sizeCache = new Map();
+// which release images are already downloaded (the UI asks synchronously while drawing)
+async function cacheStates(text) {
+ for (const dev of ['rpi5', 'pc']) {
+ for (const r of parseReleases(text, dev)) {
+ try { sizeCache.set(`${r.tag}/${r.image.name}`, await invoke('cache_state', { tag: r.tag, name: r.image.name, size: r.image.size })); } catch { /* not cached */ }
+ }
+ }
+}
+
+export const platform = {
+ kind: 'desktop',
+ domFocus: true,
+ // screen-reader labels and keyboard activation for the browser view
+ a11y({ label, role, selected, disabled, onActivate, invalid, value } = {}) {
+ const o = {};
+ if (role) o.role = role;
+ if (label) o['aria-label'] = label;
+ if (selected !== undefined && (role === 'radio' || role === 'tab' || role === 'option' || role === 'switch')) o[role === 'switch' || role === 'radio' ? 'aria-checked' : 'aria-selected'] = !!selected;
+ if (disabled) o['aria-disabled'] = true;
+ if (invalid) o['aria-invalid'] = true;
+ if (role === 'progressbar') { o['aria-valuenow'] = value; o['aria-valuemin'] = 0; o['aria-valuemax'] = 100; }
+ if (onActivate) {
+ o.tabIndex = 0;
+ o.onKeyDown = (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onActivate(); } };
+ }
+ return o;
+ },
+ available: () => true,
+
+ drives: () => drivesNow.filter((d) => d.removable && !d.system).map(toDrive),
+ watchDrives(fn) { driveSubs.add(fn); return () => driveSubs.delete(fn); },
+ hiddenDriveCount: () => drivesNow.filter((d) => !d.removable || d.system).length,
+
+ cacheDir: () => info_.cache,
+ cachePath: (tag, name) => `${info_.cache}${info_.os === 'windows' ? '\\' : '/'}${tag}${info_.os === 'windows' ? '\\' : '/'}${name}`,
+ async releases() {
+ const text = await call('fetch_releases');
+ await cacheStates(text);
+ return text;
+ },
+ async cachedReleases() {
+ const text = await invoke('cached_releases');
+ if (text) await cacheStates(text);
+ return text;
+ },
+ isCached(tag, asset) { return sizeCache.get(`${tag}/${asset.name}`)?.cached || false; },
+ partialSize(tag, asset) { return sizeCache.get(`${tag}/${asset.name}`)?.partial || 0; },
+ async refreshCache(tag, asset) { sizeCache.set(`${tag}/${asset.name}`, await invoke('cache_state', { tag, name: asset.name, size: asset.size })); },
+ async download(tag, asset, onProgress) {
+ progressFn = (p) => { if (p.phase === 'download') onProgress?.(p); };
+ try { return await call('download', { tag, name: asset.name, size: asset.size }); } finally { progressFn = null; this.refreshCache(tag, asset).catch(() => {}); }
+ },
+ cancelDownload: () => invoke('cancel'),
+ readText: (path) => call('read_cache_text', { path }),
+ checkSums: (sums, sig) => invoke('check_sums', { sumsText: sums, sig }),
+
+ async pickImage() {
+ const path = await openDialog({ title: t('imager.image.pickTitle'), multiple: false, directory: false, filters: [{ name: 'LordOS', extensions: ['img', 'xz', 'iso'] }] });
+ if (!path) return null;
+ return call('image_info', { path: String(path) });
+ },
+ imageInfo: null,
+ async pickKeyFile() {
+ const path = await openDialog({ title: t('imager.remote.pickKey'), multiple: false, filters: [{ name: 'OpenSSH', extensions: ['pub'] }] });
+ return path ? call('read_key_file', { path: String(path) }) : null;
+ },
+ Layer: null,
+
+ hashPassword: (password) => call('hash_password', { password }),
+ wifiPsk: (ssid, password) => call('wifi_psk', { ssid, password }),
+
+ async write({ drive, image }, onProgress) {
+ currentDrive = drive.model;
+ progressFn = (p) => { if (p.phase !== 'download') onProgress?.(p); };
+ try {
+ const r = await call('write_image', { drive: drive.raw, path: image.path, official: !!image.official, sumsPath: image.sums || null, sigPath: image.sig || null });
+ return { sha256: r.sha256, mbps: r.mbps, ms: r.ms };
+ } finally { progressFn = null; }
+ },
+ cancelWrite: () => invoke('cancel'),
+ writeFirstRun: (drive, text, name) => call('write_firstrun', { drive: drive.raw, text, name }),
+ eject: (drive) => call('eject', { drive: drive.raw }),
+
+ defaults: () => ({ lang: info_.lang, timezone: zonesData.zones.includes(info_.timezone) ? info_.timezone : '', keyboard: '', variant: '', country: info_.country }),
+ zones: () => zonesData.zones,
+ layouts: () => layoutsData.layouts,
+ scanWifi: null,
+
+ loadOptions: () => options,
+ saveOptions(o) { options = { ...options, ...o }; invoke('save_options', { options: o }).catch(() => {}); },
+ loadProfiles: () => profilesCache,
+ saveProfiles(list) { profilesCache = list; invoke('save_profiles', { profiles: list }).catch(() => {}); },
+ cacheSize: () => cacheSizeNow,
+ async clearCache() { await call('clear_cache'); cacheSizeNow = await invoke('cache_size'); },
+ async chooseCacheDir() {
+ const dir = await openDialog({ directory: true, multiple: false });
+ if (!dir) return;
+ this.saveOptions({ cacheDir: String(dir) });
+ info_.cache = String(dir);
+ cacheSizeNow = await invoke('cache_size');
+ },
+ setLanguage: (lang) => setLanguage(lang || info_.lang),
+ setTheme: (th) => appearance.set(th || 'auto'),
+ followsSystem: false,
+ appUpdates: true,
+
+ done({ sound: withSound }) { if (withSound) chime(); },
+};
+
+let profilesCache = [];
+let cacheSizeNow = 0;
+
+export async function warm() {
+ profilesCache = (await invoke('load_profiles')) || [];
+ cacheSizeNow = await invoke('cache_size');
+}
+
+// a short two-note chime (no sound files, no system sounds)
+function chime() {
+ try {
+ const ctx = new (window.AudioContext || window.webkitAudioContext)();
+ [[880, 0], [1318.5, 0.14]].forEach(([f, at]) => {
+ const o = ctx.createOscillator(), g = ctx.createGain();
+ o.type = 'sine'; o.frequency.value = f;
+ g.gain.setValueAtTime(0.0001, ctx.currentTime + at);
+ g.gain.exponentialRampToValueAtTime(0.25, ctx.currentTime + at + 0.02);
+ g.gain.exponentialRampToValueAtTime(0.0001, ctx.currentTime + at + 0.5);
+ o.connect(g).connect(ctx.destination);
+ o.start(ctx.currentTime + at); o.stop(ctx.currentTime + at + 0.55);
+ });
+ } catch { /* no audio */ }
+}
+
+export { h };
diff --git a/desktop/imager/web/sdk.jsx b/desktop/imager/web/sdk.jsx
new file mode 100644
index 0000000..a3f3f67
--- /dev/null
+++ b/desktop/imager/web/sdk.jsx
@@ -0,0 +1,214 @@
+// sdk.jsx — the few parts of @lordos/sdk the imager's UI uses, for a browser view (the Tauri app's
+// window). The shared UI (apps/imager) is built against this module instead of LordOS's engine:
+// View, Text, Image, ScrollView, TextInput, Button, Toggle, Segmented, SearchField, Lumo,
+// LordOSLogo, useTheme, useLocale, t, tOptional, formatDate, formatNumber, createStore, useStore,
+// useKeyboard, typeScale, spacing. Styles are LordOS's (React Native-like objects, arrays of them)
+// turned into CSS; colors and sizes are Lord Default's (themes/default/tokens.js). docs/IMAGER.md.
+import { createElement as h, useEffect, useMemo, useState, useSyncExternalStore, useRef } from 'react';
+import { catalogs } from './catalogs.js';
+
+// ---- stores ----
+
+export function createStore(initial) {
+ let v = initial;
+ const subs = new Set();
+ return {
+ get: () => v,
+ set: (next) => { v = typeof next === 'function' ? next(v) : next; for (const f of subs) f(); },
+ subscribe: (f) => { subs.add(f); return () => subs.delete(f); },
+ };
+}
+export const useStore = (s) => useSyncExternalStore(s.subscribe, s.get);
+
+// ---- theme: Lord Default, light and dark (themes/default/tokens.js) ----
+
+const ACCENTS = { azul: '#0a84ff', violeta: '#bf5af2', rosa: '#ff375f', naranja: '#ff9f0a', verde: '#30d158', grafito: '#8e8e93' };
+function makeTheme(mode) {
+ const dark = mode === 'dark';
+ return {
+ mode, accent: ACCENTS.azul, accents: ACCENTS,
+ text: dark ? '#f5f5f7' : '#1d1d1f', textDim: dark ? 'rgba(235,235,245,0.55)' : 'rgba(60,60,67,0.6)',
+ windowBg: dark ? '#1f1f23' : '#ffffff', sidebarBg: dark ? '#26262b' : '#f3f3f6',
+ separator: dark ? 'rgba(255,255,255,0.08)' : 'rgba(0,0,0,0.08)', hover: dark ? 'rgba(255,255,255,0.07)' : 'rgba(0,0,0,0.05)',
+ control: dark ? '#3a3a40' : '#e3e3e8', inputBg: dark ? '#2a2a2f' : '#ffffff',
+ controlRadius: 7, controlRadiusSmall: 6, groupRadius: 10, menuRadius: 8,
+ };
+}
+const media = typeof window !== 'undefined' && window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
+export const appearance = createStore('auto'); // 'auto' | 'light' | 'dark' (App options)
+const systemDark = createStore(!!media?.matches);
+media?.addEventListener?.('change', (e) => systemDark.set(e.matches));
+export function useTheme() {
+ const a = useStore(appearance);
+ const sys = useStore(systemDark);
+ const mode = a === 'auto' ? (sys ? 'dark' : 'light') : a;
+ return useMemo(() => makeTheme(mode), [mode]);
+}
+
+// ---- language ----
+
+export const locale = createStore({ lang: 'en' });
+function lookup(lang, key) {
+ const dot = key.indexOf('.');
+ const ns = key.slice(0, dot), rest = key.slice(dot + 1);
+ const c = catalogs[lang]?.[ns];
+ return c ? c[rest] : undefined;
+}
+const plural = (lang, n) => (lang === 'pt' ? (n === 0 || n === 1 ? 'one' : 'other') : n === 1 ? 'one' : 'other');
+export function t(key, vars = {}) {
+ const lang = locale.get().lang;
+ let v = lookup(lang, key);
+ if (v === undefined) v = lookup('en', key);
+ if (v === undefined) return key;
+ if (typeof v === 'object') v = v[plural(lang, Number(vars.count ?? vars.n ?? 0))] ?? v.other ?? '';
+ return String(v).replace(/\{(\w+)\}/g, (m, k) => (k in vars ? String(vars[k]) : m));
+}
+export function tOptional(key, vars) { const r = t(key, vars); return r === key ? '' : r; }
+export function useLocale() { const l = useStore(locale); return { t, lang: l.lang }; }
+export const setLanguage = (lang) => { locale.set({ lang: ['en', 'es', 'pt'].includes(lang) ? lang : 'en' }); document.documentElement.lang = locale.get().lang; };
+export const direction = () => 'ltr';
+const intlLang = () => ({ en: 'en-US', es: 'es-AR', pt: 'pt-BR' }[locale.get().lang] || 'en-US');
+export function formatNumber(n, digits = null) {
+ return new Intl.NumberFormat(intlLang(), digits == null ? {} : { minimumFractionDigits: digits, maximumFractionDigits: digits }).format(n);
+}
+export function formatDate(d, style = 'short') {
+ return new Intl.DateTimeFormat(intlLang(), style === 'long' ? { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' } : { dateStyle: 'medium' }).format(d);
+}
+
+export const typeScale = { caption: 11, body: 13, callout: 12, headline: 15, title: 17, largeTitle: 22 };
+export const spacing = { xxs: 2, xs: 4, s: 8, m: 12, l: 16, xl: 20, xxl: 24, xxxl: 32 };
+
+// ---- styles: LordOS / React Native objects → CSS ----
+
+const UNITLESS = new Set(['flex', 'flexGrow', 'flexShrink', 'opacity', 'fontWeight', 'zIndex', 'order']);
+const LOGICAL = {
+ paddingHorizontal: ['paddingLeft', 'paddingRight'], paddingVertical: ['paddingTop', 'paddingBottom'],
+ marginHorizontal: ['marginLeft', 'marginRight'], marginVertical: ['marginTop', 'marginBottom'],
+ marginInlineStart: ['marginInlineStart'], marginInlineEnd: ['marginInlineEnd'],
+ borderStartWidth: ['borderInlineStartWidth'], borderEndWidth: ['borderInlineEndWidth'],
+ borderStartColor: ['borderInlineStartColor'], borderEndColor: ['borderInlineEndColor'],
+ borderBottomStartRadius: ['borderEndStartRadius'], borderTopStartRadius: ['borderStartStartRadius'],
+ insetInlineStart: ['insetInlineStart'], insetInlineEnd: ['insetInlineEnd'],
+};
+function flatten(style, out = {}) {
+ if (!style) return out;
+ if (Array.isArray(style)) { for (const s of style) flatten(s, out); return out; }
+ Object.assign(out, style);
+ return out;
+}
+function css(style, base) {
+ const s = flatten(style, { ...base });
+ const o = {};
+ for (const [k, v] of Object.entries(s)) {
+ if (v === undefined || v === null) continue;
+ let val = v;
+ if (k === 'flex' && typeof v === 'number') { o.flexGrow = v; o.flexShrink = v ? 1 : 0; o.flexBasis = v ? 0 : 'auto'; continue; }
+ if (k === 'lineHeight' && typeof v === 'number') { o.lineHeight = v < 4 ? String(v) : `${v}px`; continue; }
+ if (k === 'transform' && Array.isArray(v)) { val = v.map((x) => Object.entries(x).map(([f, a]) => `${f}(${typeof a === 'number' && f !== 'scale' ? `${a}px` : a})`).join(' ')).join(' '); }
+ if (k === 'border' || k === 'background' || k === 'boxShadow') { o[k] = val; continue; }
+ if (typeof val === 'number' && !UNITLESS.has(k)) val = `${val}px`;
+ if (LOGICAL[k]) { for (const p of LOGICAL[k]) o[p] = val; if (k.startsWith('border') && k.endsWith('Width')) o[LOGICAL[k][0].replace('Width', 'Style')] = 'solid'; continue; }
+ if (/^border(Top|Bottom|Left|Right)Width$/.test(k)) o[k.replace('Width', 'Style')] = 'solid';
+ o[k] = val;
+ }
+ return o;
+}
+const VIEW = { display: 'flex', flexDirection: 'column', position: 'relative', boxSizing: 'border-box', minWidth: 0, flexShrink: 0 };
+const PASS = /^(aria-|data-)|^(role|tabIndex|onKeyDown|title|id)$/;
+function passProps(props) {
+ const o = {};
+ for (const [k, v] of Object.entries(props)) if (PASS.test(k)) o[k] = v;
+ return o;
+}
+function events(props) {
+ const o = {};
+ if (props.onClick) o.onClick = (e) => { e.stopPropagation(); props.onClick(e); };
+ for (const k of ['onMouseEnter', 'onMouseLeave', 'onMouseDown', 'onWheel']) if (props[k]) o[k] = props[k];
+ return o;
+}
+
+export function View(props) {
+ const st = css(props.style, VIEW);
+ if (props.onClick && !st.cursor) st.cursor = 'pointer';
+ return h('div', { style: st, ...events(props), ...passProps(props) }, props.children);
+}
+export function Text(props) {
+ const st = css(props.style, { display: 'block', boxSizing: 'border-box', whiteSpace: 'pre-wrap', overflowWrap: 'anywhere', minWidth: 0, flexShrink: 1 });
+ if (props.numberOfLines) Object.assign(st, { display: '-webkit-box', WebkitLineClamp: props.numberOfLines, WebkitBoxOrient: 'vertical', overflow: 'hidden' });
+ return h('div', { style: st, ...events(props), ...passProps(props) }, props.children);
+}
+// asset:mascot/x.png → ./assets/mascot/x.png (copied next to the page by build-web.mjs)
+const src = (s) => String(s || '').replace(/^asset:/, './assets/');
+export function Image(props) {
+ return h('img', { src: src(props.src), alt: props.alt || '', draggable: false, style: css(props.style, { display: 'block', objectFit: 'contain', flexShrink: 0 }), ...passProps(props) });
+}
+export function ScrollView(props) {
+ return h('div', { className: 'lx-scroll', style: css(props.style, { ...VIEW, overflowY: 'auto', overflowX: 'hidden', flexShrink: 1, minHeight: 0 }), ...passProps(props) },
+ h('div', { style: css(props.contentStyle, { display: 'flex', flexDirection: 'column', boxSizing: 'border-box', minHeight: 'min-content' }) }, props.children));
+}
+
+export function TextInput({ value, onChange, placeholder, onSubmit, onCancel, autoFocus, style, secure, ...rest }) {
+ const th = useTheme();
+ const ref = useRef(null);
+ useEffect(() => { if (autoFocus) ref.current?.focus(); }, [autoFocus]);
+ return h('input', {
+ ref, value: value ?? '', placeholder, type: secure ? 'password' : 'text', spellCheck: false, autoComplete: secure ? 'new-password' : 'off',
+ onChange: (e) => onChange?.(e.target.value),
+ onKeyDown: (e) => { if (e.key === 'Enter') onSubmit?.(); else if (e.key === 'Escape') onCancel?.(); },
+ className: 'lx-input',
+ style: css(style, { height: 28, width: '100%', boxSizing: 'border-box', padding: '0 10px', borderRadius: th.controlRadius, fontSize: 13, color: th.text,
+ backgroundColor: th.inputBg, border: `1px solid ${th.mode === 'dark' ? 'rgba(255,255,255,0.12)' : 'rgba(0,0,0,0.14)'}`, outline: 'none', fontFamily: 'inherit' }),
+ ...passProps(rest),
+ });
+}
+
+export function Button({ label, onClick, primary, style, small, plain, disabled, destructive, icon }) {
+ const th = useTheme();
+ const fg = primary ? '#fff' : destructive ? '#ff453a' : th.text;
+ const bg = primary ? th.accent : plain ? 'transparent' : th.control;
+ return h('button', {
+ type: 'button', disabled, onClick: (e) => { e.stopPropagation(); onClick?.(e); }, className: plain ? 'lx-button lx-plain' : 'lx-button',
+ style: css(style, { height: small ? 22 : 28, padding: `0 ${small ? 10 : 14}px`, borderRadius: small ? th.controlRadiusSmall : th.controlRadius, border: 'none',
+ display: 'inline-flex', gap: 6, alignItems: 'center', justifyContent: 'center', backgroundColor: bg, color: fg, fontSize: small ? 12 : 13, fontWeight: 500,
+ fontFamily: 'inherit', whiteSpace: 'nowrap', cursor: disabled ? 'default' : 'pointer', opacity: disabled ? 0.4 : 1, flexShrink: 0 }),
+ }, icon ? h('span', null, icon) : null, label);
+}
+export function Toggle({ on, onChange, small }) {
+ const th = useTheme();
+ const w = small ? 36 : 42, hh = small ? 20 : 24, k = hh - 4;
+ return h('div', { role: 'switch', 'aria-checked': !!on, tabIndex: 0, onClick: () => onChange(!on), style: { width: w, height: hh, borderRadius: hh / 2, position: 'relative', backgroundColor: on ? th.accent : th.control, cursor: 'pointer' } },
+ h('div', { style: { position: 'absolute', top: 2, left: on ? w - k - 2 : 2, width: k, height: k, borderRadius: k / 2, backgroundColor: '#fff', boxShadow: '0 1px 3px rgba(0,0,0,0.35)' } }));
+}
+export function Segmented({ options, value, onChange }) {
+ const th = useTheme();
+ return h('div', { role: 'radiogroup', style: { display: 'flex', backgroundColor: th.control, borderRadius: th.controlRadius + 1, padding: 2 } },
+ options.map(([v, label]) => h('div', { key: v, role: 'radio', 'aria-checked': value === v, tabIndex: 0, onClick: () => onChange(v),
+ style: { padding: '0 14px', height: 24, borderRadius: th.controlRadius - 1, display: 'flex', alignItems: 'center', backgroundColor: value === v ? th.accent : 'transparent', color: value === v ? '#fff' : th.text, fontSize: 12, fontWeight: 600, cursor: 'pointer' } }, label)));
+}
+export function SearchField(props) { return h(TextInput, props); }
+
+// ---- brand ----
+
+const POSES = new Set(['wave', 'shield', 'celebrate', 'confused', 'sleep', 'run']);
+export function Lumo({ pose = 'confused', size = 96, alt, style }) {
+ const p = POSES.has(pose) ? pose : 'confused';
+ return h(Image, { src: `asset:mascot/lumo-${p}-256.png`, alt: alt || t(`mascot.${p}`), style: [{ width: size, height: size }, style] });
+}
+export function LordOSLogo({ size = 64 }) {
+ return h(Image, { src: 'asset:icons/lordos-icon-128.png', alt: 'LordOS', style: { width: size, height: size, borderRadius: size * 0.22, boxShadow: '0 2px 6px rgba(0,0,0,0.3)' } });
+}
+
+// ---- keyboard ----
+
+export function useKeyboard(fn) {
+ const ref = useRef(fn);
+ ref.current = fn;
+ useEffect(() => {
+ const on = (e) => ref.current({ key: e.key, shift: e.shiftKey, ctrl: e.ctrlKey, alt: e.altKey, meta: e.metaKey, preventDefault: () => e.preventDefault() });
+ window.addEventListener('keydown', on);
+ return () => window.removeEventListener('keydown', on);
+ }, []);
+}
+
+// unused by the imager on this platform, present so the shared files import cleanly
+export const admin = null, disks = null, fs = null, settings = null, keyboard = null, sound = null, notify = () => 0, FilePicker = () => null;
diff --git a/desktop/imager/web/style.css b/desktop/imager/web/style.css
new file mode 100644
index 0000000..85f4bed
--- /dev/null
+++ b/desktop/imager/web/style.css
@@ -0,0 +1,18 @@
+/* The desktop window: LordOS's type (Inter, JetBrains Mono for code) and quiet, overlay-style
+ scroll bars; keyboard focus always visible (accessibility). */
+@font-face { font-family: Inter; font-weight: 400; src: url(./assets/fonts/Inter-Regular.ttf); }
+@font-face { font-family: Inter; font-weight: 500; src: url(./assets/fonts/Inter-Medium.ttf); }
+@font-face { font-family: Inter; font-weight: 600; src: url(./assets/fonts/Inter-SemiBold.ttf); }
+@font-face { font-family: Inter; font-weight: 700; src: url(./assets/fonts/Inter-Bold.ttf); }
+@font-face { font-family: monospace; src: url(./assets/fonts/JetBrainsMono-Regular.ttf); }
+html, body, #root { margin: 0; height: 100%; overflow: hidden; }
+body { font-family: Inter, system-ui, sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; cursor: default; }
+#root { display: flex; }
+input { user-select: text; -webkit-user-select: text; }
+.lx-input:focus { border-color: var(--accent, #0a84ff) !important; box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.25); }
+[tabindex]:focus-visible, button:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; border-radius: 6px; }
+.lx-button:hover:not(:disabled) { filter: brightness(1.08); }
+.lx-plain:hover:not(:disabled) { background: rgba(127, 127, 127, 0.15) !important; }
+.lx-scroll { scrollbar-width: thin; scrollbar-color: rgba(127, 127, 127, 0.45) transparent; }
+.lx-scroll::-webkit-scrollbar { width: 10px; }
+.lx-scroll::-webkit-scrollbar-thumb { background: rgba(127, 127, 127, 0.4); border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
diff --git a/server/src/imager/imager_admin.c b/server/src/imager/imager_admin.c
index a3412e3..a80b5c7 100644
--- a/server/src/imager/imager_admin.c
+++ b/server/src/imager/imager_admin.c
@@ -384,6 +384,8 @@ void imager_act_write(const AdminReq *r, const char *arg, size_t len) {
if (disk_admin_whole(r, f[0], &t)) { free(buf); return; }
free(buf);
if (!t.removable) { admin_err("imager.notRemovable", "name", t.disk, NULL); return; }
+ /* LordOS images use an MBR table (2 TiB at most); a larger "removable" drive is also not a card */
+ if (t.size > (2ull << 40)) { admin_err("imager.driveTooLarge", "name", t.disk, NULL); return; }
char ro[8] = "0", rop[96];
pathf(rop, sizeof rop, "/sys/class/block/%s/ro", t.disk);
FILE *rf = fopen(rop, "re");