commit 8d28e21fe7e015d425b66e7e5b0f5117dd28c79f
parent 23fa6e5f98916ba3ec4dc88bf76e65dd2f654a17
Author: Divan Visagie <me@divanv.com>
Date: Sat, 21 Nov 2026 00:20:13 +0100
greeter: Sector F Linux's login screen and first-run setup, a Patina egui app, on a mock backend
A Patina app of our own in this repository (not patina-desktop), run by greetd inside a kiosk compositor (ADR-0012, ADR-0013). Two modes in one program: the login (the clock and date, round avatars, a pill for the password, a spinner while it is checked, a shake when it is wrong, Restart and Shut down) and, when no account can log in, the first-run setup (full name, a user name that follows it, password and confirmation; it makes the account and logs it in).
It follows the desktop's lock screen on purpose: the same look, the same skin (Everforest Dark), no window frame, title bar or menu, and a password that is never put in an egui TextEdit (its undo history would keep copies) but read from the key events, shown as dots and zeroed. Restart and Shut down are Patina's own buttons, with tooltips; Create account is a pill as big as the fields, the user's choice over Patina's 24 px button and over compact fields, recorded in ADR-0013.
The system is behind a Backend trait with a Mock that runs the screens and the tests without greetd; the real backend (greetd's socket, AccountsService, logind) is next, and without PATINA_GREETER_MOCK the greeter says so and exits. 20 unit tests (the name and password rules, the field editing, key order, logging in, a wrong password, a broken service, the first run through to being logged in); clippy -D warnings is clean.
Seen in the test VM under cage with real key presses (the login, the setup, typing, Tab and Enter, the busy state, the clean exit). greeter/vm-try.sh builds it in the Fedora builder and shows, types into and restores the VM. Not seen: the tooltips, the shake, a mouse.
Diffstat:
13 files changed, 6476 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -2,6 +2,9 @@
# logs (linux/vm/README.md).
/linux/out/
+# The greeter's build output.
+/greeter/target/
+
# What linux/desktop/build.sh makes: the source it builds, cargo's target, the staging.
/linux/build/
@@ -24,3 +27,4 @@ id_rsa
# What freebsd/stage.sh copies in for the VM to build.
/freebsd/src/
+/greeter/target-fedora/
diff --git a/docs/adr/0013-the-greeter-is-a-patina-app-of-our-own.md b/docs/adr/0013-the-greeter-is-a-patina-app-of-our-own.md
@@ -0,0 +1,64 @@
+# 0013. The greeter is a Patina egui app of our own, in this repository
+
+Date: 2026-11-21
+
+## Status
+
+Proposed. Where it lives, that it has no window frame, and that it follows the desktop's lock
+screen are the user's directions; the rest below was my choice and waits for their say.
+
+## Context
+
+[ADR-0012](0012-a-login-manager-of-our-own-greetd-and-a-patina-greeter.md) settled that the login
+screen is a Patina greeter on greetd, with the first-run setup built in. What was left was what that
+program is made of.
+
+The desktop's pieces (bar, launcher, lock screen) are egui on layer-shell surfaces through
+patina-shell's host. A greeter run by greetd under `cage` cannot do that: `cage` shows one ordinary
+window full screen and has no layer-shell or session-lock. The user pointed at the lock screen
+(`patina-desktop/lock/src/ui.rs`) as the best reference, and said the greeter should not have
+Patina's frame or window buttons: it is a login, not a window.
+
+## Decision
+
+- **It lives in `greeter/` of this repository**, not in patina-desktop: it is OS code. It is its own
+ cargo project; it depends on Patina through the published `patina-ui` crate and changes nothing
+ in patina-desktop.
+- **A normal Patina app on eframe and `patina-ui`, a full-screen window with no frame, title bar or
+ menu**: Patina's frame and its title-bar rules are for windows with menus. It is drawn from the
+ skin and egui's stock widgets, as the lock screen is, and wears the desktop's skin, Everforest
+ Dark, so the login and the desktop match.
+- **It looks and behaves like the lock screen**: the large clock and date, a round avatar, a pill for
+ the password with dots, a caret, a spinner while the password is checked and a shake when it is
+ refused. The first-run setup uses the same pill for its fields.
+- **Buttons: Patina's own, except one.** Restart and Shut down are text buttons in Patina's size
+ (`patina::dialog::buttons`: 24 px high, ADR-0032), with tooltips. "Create account" is deliberately
+ not: it is a pill as wide and as high as the fields above it (46 px), filled in the accent. Beside
+ fields that size a 24 px button looked lost; the user compared it with compact 32 px fields and a
+ standard button, and chose the big button. Patina's size rule is for rows of buttons in dialogs,
+ panels and popups, and the greeter's form is sized to its own controls, as the login's arrow is.
+
+- **A password is never in an egui `TextEdit`**, whose undo history would keep copies. A `Field` of
+ our own reads the key events, shows dots for a secret, and zeroes it when cleared or sent, with
+ the length capped, as patina-lock does. Editing is at the end of the text only.
+- **The system is behind one `Backend` trait**: who can log in, whether it is the first run, logging
+ in, making the first account, power. Work runs on worker threads and answers over a channel, since
+ PAM and D-Bus can take seconds. A `Mock` backend runs the screens and the tests without greetd; the
+ real one (greetd's socket, AccountsService, logind) is the next step.
+- **The logic is kept out of the drawing**: what a name or a password has to be, the suggested user
+ name, the form's first problem, are plain functions with tests; the screens are tested by feeding
+ them events and watching the state, not by looking at pixels.
+
+## Consequences
+
+- The greeter is security-critical code of our own, as patina-lock is: a bug that ends it leaves the
+ screen with nothing to type into. greetd restarts a greeter that fails, until it gives up, so a text
+ console login has to stay available.
+- The pill field, the avatar and the arrow button are written again here, beside the lock screen's.
+ Patina's own rule is that a component a second app wants moves into Patina and is not copied
+ (its ADR-0001), so they are candidates to move into `patina-ui` once the greeter is done.
+- Avatars are an initial on the accent for now; pictures need AccountsService, which knows where
+ each user's is, so they come with the real backend.
+- Editing at the end only is a limit a person will notice in a long name; it can be lifted when a
+ text field with a caret that moves is worth its undo history.
+- It runs on a mock until the real backend is written, and says so and exits if started without one.
diff --git a/greeter/Cargo.lock b/greeter/Cargo.lock
@@ -0,0 +1,4636 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "ab_glyph"
+version = "0.2.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2"
+dependencies = [
+ "ab_glyph_rasterizer",
+ "owned_ttf_parser",
+]
+
+[[package]]
+name = "ab_glyph_rasterizer"
+version = "0.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
+
+[[package]]
+name = "accesskit"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3b7f7f85a7e5f68090000ed7622545829afd484d210358702ae4cb97dd0c320"
+dependencies = [
+ "uuid",
+]
+
+[[package]]
+name = "accesskit_atspi_common"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e8c61bee90b42a772d39d06a740207dc71a4e780004ace1db8d99fb1baaa954"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer 0.36.0",
+ "atspi-common",
+ "phf",
+ "serde",
+ "zvariant",
+]
+
+[[package]]
+name = "accesskit_consumer"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53cf47daed85312e763fbf85ceca136e0d7abc68e0a7e12abe11f48172bc3b10"
+dependencies = [
+ "accesskit",
+ "hashbrown 0.16.1",
+]
+
+[[package]]
+name = "accesskit_consumer"
+version = "0.36.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25e0d7e25d06f4dc21d1774d67146e9e80d6789216cbd4d1e88185b0095dba60"
+dependencies = [
+ "accesskit",
+ "hashbrown 0.16.1",
+]
+
+[[package]]
+name = "accesskit_consumer"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d10a236f96f87d70732e44520046785431ef01d5bcd6b041317bfadd2f88245"
+dependencies = [
+ "accesskit",
+ "hashbrown 0.16.1",
+]
+
+[[package]]
+name = "accesskit_macos"
+version = "0.26.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce02dc63b43f0c9296af9ac946312a2dc8814427d7a64d2d600971dac55b6076"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer 0.38.0",
+ "hashbrown 0.16.1",
+ "objc2 0.5.3",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "accesskit_unix"
+version = "0.21.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b016ca8db0ea0ea2ceff29a9d6240391492d960716aa471967c00e8cc8cb197c"
+dependencies = [
+ "accesskit",
+ "accesskit_atspi_common",
+ "async-channel",
+ "async-executor",
+ "async-task",
+ "atspi",
+ "futures-lite",
+ "futures-util",
+ "serde",
+ "zbus",
+]
+
+[[package]]
+name = "accesskit_windows"
+version = "0.32.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eff7009f1a532e917d66970a1e80c965140c6cfbbabbdde3d64e5431e6c78e21"
+dependencies = [
+ "accesskit",
+ "accesskit_consumer 0.35.0",
+ "hashbrown 0.16.1",
+ "static_assertions",
+ "windows",
+ "windows-core",
+]
+
+[[package]]
+name = "accesskit_winit"
+version = "0.32.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fe9a94394896352cc4660ca2288bd4ef883d83238853c038b44070c8f134313"
+dependencies = [
+ "accesskit",
+ "accesskit_macos",
+ "accesskit_unix",
+ "accesskit_windows",
+ "raw-window-handle",
+ "winit",
+]
+
+[[package]]
+name = "adler2"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+
+[[package]]
+name = "ahash"
+version = "0.8.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
+dependencies = [
+ "cfg-if",
+ "getrandom 0.3.4",
+ "once_cell",
+ "version_check",
+ "zerocopy",
+]
+
+[[package]]
+name = "allocator-api2"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+
+[[package]]
+name = "android-activity"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd"
+dependencies = [
+ "android-properties",
+ "bitflags 2.13.2",
+ "cc",
+ "jni",
+ "libc",
+ "log",
+ "ndk",
+ "ndk-context",
+ "ndk-sys",
+ "num_enum",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "android-properties"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
+
+[[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 = "arboard"
+version = "3.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917"
+dependencies = [
+ "clipboard-win",
+ "image",
+ "log",
+ "objc2 0.6.5",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+ "parking_lot",
+ "percent-encoding",
+ "windows-sys 0.61.2",
+ "x11rb",
+]
+
+[[package]]
+name = "arrayref"
+version = "0.3.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
+
+[[package]]
+name = "arrayvec"
+version = "0.7.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
+
+[[package]]
+name = "as-raw-xcb-connection"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
+
+[[package]]
+name = "ash"
+version = "0.38.0+1.3.281"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
+dependencies = [
+ "libloading",
+]
+
+[[package]]
+name = "async-broadcast"
+version = "0.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-channel"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"
+dependencies = [
+ "concurrent-queue",
+ "event-listener-strategy",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-executor"
+version = "1.14.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37"
+dependencies = [
+ "async-task",
+ "concurrent-queue",
+ "fastrand",
+ "futures-lite",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "async-io"
+version = "2.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"
+dependencies = [
+ "autocfg",
+ "cfg-if",
+ "concurrent-queue",
+ "futures-io",
+ "futures-lite",
+ "parking",
+ "polling",
+ "rustix 1.1.6",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-lock"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0876700b0d007ad25d5508865a4259c3af9af6d296bf663a0d586d0bc3369f6f"
+dependencies = [
+ "event-listener",
+ "event-listener-strategy",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-process"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
+dependencies = [
+ "async-channel",
+ "async-io",
+ "async-lock",
+ "async-signal",
+ "async-task",
+ "blocking",
+ "cfg-if",
+ "event-listener",
+ "futures-lite",
+ "rustix 1.1.6",
+]
+
+[[package]]
+name = "async-recursion"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "async-signal"
+version = "0.2.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"
+dependencies = [
+ "async-io",
+ "async-lock",
+ "atomic-waker",
+ "cfg-if",
+ "futures-core",
+ "futures-io",
+ "rustix 1.1.6",
+ "signal-hook-registry",
+ "slab",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "async-task"
+version = "4.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
+
+[[package]]
+name = "async-trait"
+version = "0.1.92"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "atomic-waker"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
+
+[[package]]
+name = "atspi"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c77886257be21c9cd89a4ae7e64860c6f0eefca799bb79127913052bd0eefb3d"
+dependencies = [
+ "atspi-common",
+ "atspi-proxies",
+]
+
+[[package]]
+name = "atspi-common"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20c5617155740c98003016429ad13fe43ce7a77b007479350a9f8bf95a29f63d"
+dependencies = [
+ "enumflags2",
+ "serde",
+ "static_assertions",
+ "zbus",
+ "zbus-lockstep",
+ "zbus-lockstep-macros",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "atspi-proxies"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc"
+dependencies = [
+ "atspi-common",
+ "serde",
+ "zbus",
+]
+
+[[package]]
+name = "autocfg"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
+
+[[package]]
+name = "base64"
+version = "0.22.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+
+[[package]]
+name = "bit-set"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd"
+dependencies = [
+ "bit-vec",
+]
+
+[[package]]
+name = "bit-vec"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
+
+[[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"
+
+[[package]]
+name = "block2"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"
+dependencies = [
+ "objc2 0.5.3",
+]
+
+[[package]]
+name = "block2"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
+dependencies = [
+ "objc2 0.6.5",
+]
+
+[[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 = "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"
+dependencies = [
+ "bytemuck_derive",
+]
+
+[[package]]
+name = "bytemuck_derive"
+version = "1.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "byteorder-lite"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
+
+[[package]]
+name = "bytes"
+version = "1.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
+
+[[package]]
+name = "calloop"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec"
+dependencies = [
+ "bitflags 2.13.2",
+ "log",
+ "polling",
+ "rustix 0.38.44",
+ "slab",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "calloop"
+version = "0.14.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e"
+dependencies = [
+ "bitflags 2.13.2",
+ "polling",
+ "rustix 1.1.6",
+ "tracing",
+]
+
+[[package]]
+name = "calloop-wayland-source"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
+dependencies = [
+ "calloop 0.13.0",
+ "rustix 0.38.44",
+ "wayland-backend",
+ "wayland-client",
+]
+
+[[package]]
+name = "calloop-wayland-source"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa"
+dependencies = [
+ "calloop 0.14.5",
+ "rustix 1.1.6",
+ "wayland-backend",
+ "wayland-client",
+]
+
+[[package]]
+name = "cc"
+version = "1.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155"
+dependencies = [
+ "find-msvc-tools",
+ "jobserver",
+ "libc",
+ "shlex",
+]
+
+[[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 = "cgl"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff"
+dependencies = [
+ "libc",
+]
+
+[[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",
+ "windows-link",
+]
+
+[[package]]
+name = "clipboard-win"
+version = "5.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a"
+dependencies = [
+ "error-code",
+]
+
+[[package]]
+name = "codespan-reporting"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681"
+dependencies = [
+ "serde",
+ "termcolor",
+ "unicode-width",
+]
+
+[[package]]
+name = "color"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ec7c5eb7a16992b1904d76c517d170ab353b0e0b3d5a0c81a8a0cd1037893cf"
+dependencies = [
+ "bytemuck",
+]
+
+[[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 = "core-foundation"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
+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.23.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation",
+ "core-graphics-types",
+ "foreign-types",
+ "libc",
+]
+
+[[package]]
+name = "core-graphics-types"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation",
+ "libc",
+]
+
+[[package]]
+name = "crc32fast"
+version = "1.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "crossbeam-channel"
+version = "0.5.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
+
+[[package]]
+name = "crunchy"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
+
+[[package]]
+name = "cursor-icon"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f"
+
+[[package]]
+name = "data-url"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "be1e0bca6c3637f992fc1cc7cbc52a78c1ef6db076dbf1059c4323d6a2048376"
+
+[[package]]
+name = "dirs"
+version = "7.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"
+dependencies = [
+ "dirs-sys",
+]
+
+[[package]]
+name = "dirs-sys"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"
+dependencies = [
+ "libc",
+ "option-ext",
+ "redox_users",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "dispatch"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
+
+[[package]]
+name = "dispatch2"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
+dependencies = [
+ "bitflags 2.13.2",
+ "objc2 0.6.5",
+]
+
+[[package]]
+name = "displaydoc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "dlib"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"
+dependencies = [
+ "libloading",
+]
+
+[[package]]
+name = "document-features"
+version = "0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"
+dependencies = [
+ "litrs",
+]
+
+[[package]]
+name = "downcast-rs"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
+
+[[package]]
+name = "dpi"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
+
+[[package]]
+name = "ecolor"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6758be723a3f298bbfda4db75748bc2ba0abafe096b6383c7c32da264764fbc3"
+dependencies = [
+ "bytemuck",
+ "emath",
+]
+
+[[package]]
+name = "eframe"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8dc8234e2f681b2afd2b2e8c332fa614de2fddbdcb28d0acf5c420449682ea90"
+dependencies = [
+ "ahash",
+ "bytemuck",
+ "document-features",
+ "egui",
+ "egui-wgpu",
+ "egui-winit",
+ "egui_glow",
+ "glutin",
+ "glutin-winit",
+ "image",
+ "js-sys",
+ "log",
+ "objc2 0.6.5",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "parking_lot",
+ "percent-encoding",
+ "pollster",
+ "profiling",
+ "raw-window-handle",
+ "static_assertions",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "web-time",
+ "wgpu",
+ "windows-sys 0.61.2",
+ "winit",
+]
+
+[[package]]
+name = "egui"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2796c98d50b79631281d516343a6f6e93c0666462ca36e2c93b39f25d7793325"
+dependencies = [
+ "accesskit",
+ "ahash",
+ "bitflags 2.13.2",
+ "emath",
+ "epaint",
+ "itertools",
+ "log",
+ "nohash-hasher",
+ "profiling",
+ "smallvec",
+ "unicode-segmentation",
+]
+
+[[package]]
+name = "egui-wgpu"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2e6cfac0725563555fa4f91e9f799b9d7c6c5dd831fca6abc8234afc64b7a34"
+dependencies = [
+ "ahash",
+ "bytemuck",
+ "document-features",
+ "egui",
+ "epaint",
+ "log",
+ "profiling",
+ "thiserror 2.0.21",
+ "type-map",
+ "web-time",
+ "wgpu",
+ "winit",
+]
+
+[[package]]
+name = "egui-winit"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ea6bf3608db949588b95b8b341ee358d0c3f95cf4dc3f53d8d76717edee87db"
+dependencies = [
+ "accesskit_winit",
+ "arboard",
+ "bytemuck",
+ "egui",
+ "log",
+ "objc2 0.6.5",
+ "objc2-foundation 0.3.2",
+ "objc2-ui-kit 0.3.2",
+ "profiling",
+ "raw-window-handle",
+ "smithay-clipboard",
+ "web-time",
+ "webbrowser",
+ "winit",
+]
+
+[[package]]
+name = "egui_extras"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2bd33be7338367bf21f54d62e069d58a5fb3ae033fa8bc6df7a77b9ef4cf957"
+dependencies = [
+ "ahash",
+ "egui",
+ "enum-map",
+ "itertools",
+ "log",
+ "profiling",
+ "resvg",
+]
+
+[[package]]
+name = "egui_glow"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52274b9bfb8d8e252cd0f00c9f6214f360d75a0962baa77a2d62ddb002fe99d4"
+dependencies = [
+ "bytemuck",
+ "egui",
+ "glow",
+ "log",
+ "memoffset",
+ "profiling",
+ "winit",
+]
+
+[[package]]
+name = "either"
+version = "1.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
+
+[[package]]
+name = "emath"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd4ec073c9898516584d8c6cfdcee95b530b3d941cd5031ef4050aa36812308b"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "endi"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
+
+[[package]]
+name = "enum-map"
+version = "2.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6866f3bfdf8207509a033af1a75a7b08abda06bbaaeae6669323fd5a097df2e9"
+dependencies = [
+ "enum-map-derive",
+]
+
+[[package]]
+name = "enum-map-derive"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[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 = "epaint"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e60a8888b51da911df23918fd7301359b1d43a406a0ff3b8863af093dd7fc6c"
+dependencies = [
+ "ahash",
+ "bytemuck",
+ "ecolor",
+ "emath",
+ "epaint_default_fonts",
+ "font-types",
+ "harfrust",
+ "log",
+ "nohash-hasher",
+ "parking_lot",
+ "profiling",
+ "self_cell",
+ "skrifa",
+ "smallvec",
+ "unicode-general-category",
+ "unicode-segmentation",
+ "vello_cpu",
+]
+
+[[package]]
+name = "epaint_default_fonts"
+version = "0.35.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "13ee4e1f553a3584c301f3a56ff1a775f1384781396cea301c8d952e9b93f560"
+
+[[package]]
+name = "equivalent"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
+
+[[package]]
+name = "errno"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "error-code"
+version = "3.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7"
+
+[[package]]
+name = "euclid"
+version = "0.22.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06"
+dependencies = [
+ "num-traits",
+]
+
+[[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 = "fax"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a"
+
+[[package]]
+name = "fdeflate"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
+dependencies = [
+ "simd-adler32",
+]
+
+[[package]]
+name = "fearless_simd"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b97b65636e5b9ef369943878ac74335ba1c55c1cb6adbf1e2c293c624248d693"
+
+[[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.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4"
+dependencies = [
+ "crc32fast",
+ "miniz_oxide 0.9.1",
+ "zlib-rs",
+]
+
+[[package]]
+name = "float-cmp"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
+
+[[package]]
+name = "foldhash"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+
+[[package]]
+name = "foldhash"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
+
+[[package]]
+name = "font-types"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5b38ad915f6dadd993ced50848a8291a543bd41ca62bc10740d5e64e2ab4cfd7"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "foreign-types"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
+dependencies = [
+ "foreign-types-macros",
+ "foreign-types-shared",
+]
+
+[[package]]
+name = "foreign-types-macros"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "foreign-types-shared"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+dependencies = [
+ "percent-encoding",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+
+[[package]]
+name = "futures-io"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
+
+[[package]]
+name = "futures-lite"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "futures-macro"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "futures-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-macro",
+ "futures-task",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "gethostname"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8"
+dependencies = [
+ "rustix 1.1.6",
+ "windows-link",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 5.3.0",
+ "wasip2",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "r-efi 6.0.0",
+]
+
+[[package]]
+name = "gl_generator"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d"
+dependencies = [
+ "khronos_api",
+ "log",
+ "xml-rs",
+]
+
+[[package]]
+name = "glifo"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d99fc21d493812643aae86d53b7bbd02f376434a90317e8a790bc209fdd6605e"
+dependencies = [
+ "bytemuck",
+ "foldhash 0.2.0",
+ "hashbrown 0.17.1",
+ "log",
+ "peniko",
+ "skrifa",
+ "smallvec",
+ "vello_common",
+]
+
+[[package]]
+name = "glow"
+version = "0.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5"
+dependencies = [
+ "js-sys",
+ "slotmap",
+ "wasm-bindgen",
+ "web-sys",
+]
+
+[[package]]
+name = "glutin"
+version = "0.32.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12124de845cacfebedff80e877bb37b5b75c34c5a4c89e47e1cdd67fb6041325"
+dependencies = [
+ "bitflags 2.13.2",
+ "cfg_aliases",
+ "cgl",
+ "dispatch2",
+ "glutin_egl_sys",
+ "glutin_glx_sys",
+ "glutin_wgl_sys",
+ "libloading",
+ "objc2 0.6.5",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "once_cell",
+ "raw-window-handle",
+ "wayland-sys",
+ "windows-sys 0.52.0",
+ "x11-dl",
+]
+
+[[package]]
+name = "glutin-winit"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85edca7075f8fc728f28cb8fbb111a96c3b89e930574369e3e9c27eb75d3788f"
+dependencies = [
+ "cfg_aliases",
+ "glutin",
+ "raw-window-handle",
+ "winit",
+]
+
+[[package]]
+name = "glutin_egl_sys"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c4680ba6195f424febdc3ba46e7a42a0e58743f2edb115297b86d7f8ecc02d2"
+dependencies = [
+ "gl_generator",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "glutin_glx_sys"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185"
+dependencies = [
+ "gl_generator",
+ "x11-dl",
+]
+
+[[package]]
+name = "glutin_wgl_sys"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e"
+dependencies = [
+ "gl_generator",
+]
+
+[[package]]
+name = "gpu-allocator"
+version = "0.28.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795"
+dependencies = [
+ "ash",
+ "hashbrown 0.16.1",
+ "log",
+ "presser",
+ "thiserror 2.0.21",
+ "windows",
+]
+
+[[package]]
+name = "gpu-descriptor"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
+dependencies = [
+ "bitflags 2.13.2",
+ "gpu-descriptor-types",
+ "hashbrown 0.15.5",
+]
+
+[[package]]
+name = "gpu-descriptor-types"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
+dependencies = [
+ "bitflags 2.13.2",
+]
+
+[[package]]
+name = "guillotiere"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b17e70c989c36bad147b27a58d148c0741c51448aa5653436547323e524d0ab"
+dependencies = [
+ "euclid",
+]
+
+[[package]]
+name = "half"
+version = "2.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
+dependencies = [
+ "cfg-if",
+ "crunchy",
+ "num-traits",
+ "zerocopy",
+]
+
+[[package]]
+name = "harfrust"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0431e8e389aa0f1e72bb9d1c2db8957a1a7a3580e8ed97db819c14837aac9b3e"
+dependencies = [
+ "bitflags 2.13.2",
+ "bytemuck",
+ "read-fonts",
+ "smallvec",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.15.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
+dependencies = [
+ "foldhash 0.1.5",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.16.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
+dependencies = [
+ "allocator-api2",
+ "equivalent",
+ "foldhash 0.2.0",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+dependencies = [
+ "foldhash 0.2.0",
+]
+
+[[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 = "hexf-parse"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
+
+[[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 = "icu_collections"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd"
+dependencies = [
+ "displaydoc",
+ "potential_utf",
+ "utf8_iter",
+ "yoke",
+ "zerofrom",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_locale_core"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
+dependencies = [
+ "displaydoc",
+ "litemap",
+ "tinystr",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599"
+dependencies = [
+ "icu_collections",
+ "icu_normalizer_data",
+ "icu_properties",
+ "icu_provider",
+ "smallvec",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer_data"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
+
+[[package]]
+name = "icu_properties"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f"
+dependencies = [
+ "displaydoc",
+ "icu_collections",
+ "icu_locale_core",
+ "icu_properties_data",
+ "icu_provider",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_properties_data"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf"
+
+[[package]]
+name = "icu_provider"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
+dependencies = [
+ "displaydoc",
+ "icu_locale_core",
+ "writeable",
+ "yoke",
+ "zerofrom",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "idna"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
+dependencies = [
+ "idna_adapter",
+ "smallvec",
+ "utf8_iter",
+]
+
+[[package]]
+name = "idna_adapter"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
+dependencies = [
+ "icu_normalizer",
+ "icu_properties",
+]
+
+[[package]]
+name = "image"
+version = "0.25.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"
+dependencies = [
+ "bytemuck",
+ "byteorder-lite",
+ "moxcms",
+ "num-traits",
+ "png 0.18.1",
+ "tiff",
+]
+
+[[package]]
+name = "imagesize"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "edcd27d72f2f071c64249075f42e205ff93c9a4c5f6c6da53e79ed9f9832c285"
+
+[[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",
+]
+
+[[package]]
+name = "itertools"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "jni"
+version = "0.22.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498"
+dependencies = [
+ "cfg-if",
+ "combine",
+ "jni-macros",
+ "jni-sys 0.4.1",
+ "log",
+ "simd_cesu8",
+ "thiserror 2.0.21",
+ "walkdir",
+ "windows-link",
+]
+
+[[package]]
+name = "jni-macros"
+version = "0.22.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "rustc_version",
+ "simd_cesu8",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
+dependencies = [
+ "jni-sys 0.4.1",
+]
+
+[[package]]
+name = "jni-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
+dependencies = [
+ "jni-sys-macros",
+]
+
+[[package]]
+name = "jni-sys-macros"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
+dependencies = [
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jobserver"
+version = "0.1.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
+dependencies = [
+ "getrandom 0.4.3",
+ "libc",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a"
+dependencies = [
+ "cfg-if",
+ "futures-util",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "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 = "khronos-egl"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
+dependencies = [
+ "libc",
+ "libloading",
+ "pkg-config",
+]
+
+[[package]]
+name = "khronos_api"
+version = "3.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
+
+[[package]]
+name = "kurbo"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c62026ae44756f8a599ba21140f350303d4f08dcdcc71b5ad9c9bb8128c13c62"
+dependencies = [
+ "arrayvec",
+ "euclid",
+ "smallvec",
+]
+
+[[package]]
+name = "kurbo"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4b60dfc32f652b926df6192e55525b16d186c69d47876c3ead4da5cc9f8450e2"
+dependencies = [
+ "arrayvec",
+ "euclid",
+ "polycool",
+ "smallvec",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.191"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
+
+[[package]]
+name = "libloading"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
+dependencies = [
+ "cfg-if",
+ "windows-link",
+]
+
+[[package]]
+name = "libm"
+version = "0.2.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
+
+[[package]]
+name = "libredox"
+version = "0.1.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d"
+dependencies = [
+ "bitflags 2.13.2",
+ "libc",
+ "plain",
+ "redox_syscall 0.9.5",
+]
+
+[[package]]
+name = "linebender_resource_handle"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.4.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
+
+[[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 = "litrs"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70"
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
+
+[[package]]
+name = "memchr"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+
+[[package]]
+name = "memmap2"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b0ca1155a9ecc25aa12e8313a119f32edf0255fea2f44839c4ac0a12b2ac157"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "memoffset"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+dependencies = [
+ "autocfg",
+]
+
+[[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 = "moxcms"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"
+dependencies = [
+ "num-traits",
+ "pxfm",
+]
+
+[[package]]
+name = "muda"
+version = "0.21.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4340e89c178916e62879c5c36b7f699019369be413e496178a6983ce91b8bc03"
+dependencies = [
+ "crossbeam-channel",
+ "dpi",
+ "keyboard-types",
+ "objc2 0.6.5",
+ "objc2-app-kit 0.3.2",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "png 0.18.1",
+ "thiserror 2.0.21",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "naga"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2bf919621e7975acb27d881bae2fb993e0d45c8e0446e85e6272971e00dc8df"
+dependencies = [
+ "arrayvec",
+ "bit-set",
+ "bitflags 2.13.2",
+ "cfg-if",
+ "cfg_aliases",
+ "codespan-reporting",
+ "half",
+ "hashbrown 0.16.1",
+ "hexf-parse",
+ "indexmap",
+ "libm",
+ "log",
+ "num-traits",
+ "once_cell",
+ "rustc-hash 1.1.0",
+ "spirv",
+ "thiserror 2.0.21",
+ "unicode-ident",
+]
+
+[[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 = "nohash-hasher"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+ "libm",
+]
+
+[[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",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "objc-sys"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
+
+[[package]]
+name = "objc2"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b"
+dependencies = [
+ "objc-sys",
+ "objc2-encode",
+]
+
+[[package]]
+name = "objc2"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8"
+dependencies = [
+ "objc2-encode",
+]
+
+[[package]]
+name = "objc2-app-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "libc",
+ "objc2 0.5.3",
+ "objc2-core-data",
+ "objc2-core-image",
+ "objc2-foundation 0.2.2",
+ "objc2-quartz-core 0.2.2",
+]
+
+[[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",
+ "objc2 0.6.5",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-cloud-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-core-location",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-contacts"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-data"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[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 0.6.5",
+]
+
+[[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 0.6.5",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
+[[package]]
+name = "objc2-core-image"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+ "objc2-metal 0.2.2",
+]
+
+[[package]]
+name = "objc2-core-location"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-contacts",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-encode"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
+
+[[package]]
+name = "objc2-foundation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "dispatch",
+ "libc",
+ "objc2 0.5.3",
+]
+
+[[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 0.6.2",
+ "objc2 0.6.5",
+ "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 0.6.5",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-link-presentation"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-metal"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-metal"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.6.2",
+ "objc2 0.6.5",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-quartz-core"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+ "objc2-metal 0.2.2",
+]
+
+[[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 0.6.5",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+]
+
+[[package]]
+name = "objc2-symbols"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
+dependencies = [
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-ui-kit"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-cloud-kit",
+ "objc2-core-data",
+ "objc2-core-image",
+ "objc2-core-location",
+ "objc2-foundation 0.2.2",
+ "objc2-link-presentation",
+ "objc2-quartz-core 0.2.2",
+ "objc2-symbols",
+ "objc2-uniform-type-identifiers",
+ "objc2-user-notifications",
+]
+
+[[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",
+ "objc2 0.6.5",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+]
+
+[[package]]
+name = "objc2-uniform-type-identifiers"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
+dependencies = [
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-foundation 0.2.2",
+]
+
+[[package]]
+name = "objc2-user-notifications"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
+dependencies = [
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "objc2 0.5.3",
+ "objc2-core-location",
+ "objc2-foundation 0.2.2",
+]
+
+[[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 = "orbclient"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747"
+dependencies = [
+ "libc",
+ "libredox",
+]
+
+[[package]]
+name = "ordered-float"
+version = "5.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f59006ce1e204c30956638535b74d317bca99477b9356dfaec54c37f6f600ab"
+dependencies = [
+ "num-traits",
+]
+
+[[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 = "owned_ttf_parser"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b"
+dependencies = [
+ "ttf-parser",
+]
+
+[[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 0.5.18",
+ "smallvec",
+ "windows-link",
+]
+
+[[package]]
+name = "patina-greeter"
+version = "0.1.0"
+dependencies = [
+ "chrono",
+ "eframe",
+ "egui",
+ "egui_extras",
+ "image",
+ "patina-ui",
+]
+
+[[package]]
+name = "patina-ui"
+version = "0.1.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d82e1a0555e4ebc71fc7af92fdf70d244f4b65c266d40b7f2b87e694fa94113f"
+dependencies = [
+ "dirs",
+ "egui",
+ "libc",
+ "muda",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "raw-window-handle",
+ "serde",
+ "serde_ignored",
+ "toml",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols-plasma",
+ "zbus",
+]
+
+[[package]]
+name = "peniko"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "839c8299360d2e998bdb106dc0a6cd71dcc5f4df51df1b620361bf50e283cca6"
+dependencies = [
+ "bytemuck",
+ "color",
+ "kurbo 0.13.1",
+ "linebender_resource_handle",
+ "smallvec",
+]
+
+[[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_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 = "pico-args"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315"
+
+[[package]]
+name = "pin-project"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924"
+dependencies = [
+ "pin-project-internal",
+]
+
+[[package]]
+name = "pin-project-internal"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "piper"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"
+dependencies = [
+ "atomic-waker",
+ "fastrand",
+ "futures-io",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+
+[[package]]
+name = "plain"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
+
+[[package]]
+name = "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 1.1.6",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "pollster"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
+
+[[package]]
+name = "polycool"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6"
+dependencies = [
+ "arrayvec",
+]
+
+[[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 = "presser"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
+
+[[package]]
+name = "proc-macro-crate"
+version = "3.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
+dependencies = [
+ "toml_edit",
+]
+
+[[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 = "profiling"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5"
+
+[[package]]
+name = "pxfm"
+version = "0.1.30"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
+
+[[package]]
+name = "quick-error"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
+
+[[package]]
+name = "quick-xml"
+version = "0.41.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "r-efi"
+version = "5.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+
+[[package]]
+name = "r-efi"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+
+[[package]]
+name = "range-alloc"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08"
+
+[[package]]
+name = "raw-window-handle"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+
+[[package]]
+name = "raw-window-metal"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40d213455a5f1dc59214213c7330e074ddf8114c9a42411eb890c767357ce135"
+dependencies = [
+ "objc2 0.6.5",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+]
+
+[[package]]
+name = "read-fonts"
+version = "0.39.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4ed38b89c2c77ff968c524145ad65fb010f38af5c7a224b53b81d47ac2daa81"
+dependencies = [
+ "bytemuck",
+ "font-types",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
+dependencies = [
+ "bitflags 1.3.2",
+]
+
+[[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_syscall"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "580c875845b41ecb1564ad1ae4703044cef774145e3d7a94dc2b3fa7c97868fd"
+dependencies = [
+ "bitflags 2.13.2",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0"
+dependencies = [
+ "libredox",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "renderdoc-sys"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
+
+[[package]]
+name = "resvg"
+version = "0.45.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8928798c0a55e03c9ca6c4c6846f76377427d2c1e1f7e6de3c06ae57942df43"
+dependencies = [
+ "log",
+ "pico-args",
+ "rgb",
+ "svgtypes",
+ "tiny-skia",
+ "usvg",
+]
+
+[[package]]
+name = "rgb"
+version = "0.8.53"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "roxmltree"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97"
+
+[[package]]
+name = "rustc-hash"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
+
+[[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 = "0.38.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
+dependencies = [
+ "bitflags 2.13.2",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.4.15",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
+dependencies = [
+ "bitflags 2.13.2",
+ "errno",
+ "libc",
+ "linux-raw-sys 0.12.1",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+
+[[package]]
+name = "same-file"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "scoped-tls"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "sctk-adwaita"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec"
+dependencies = [
+ "ab_glyph",
+ "log",
+ "memmap2",
+ "smithay-client-toolkit 0.19.2",
+ "tiny-skia",
+]
+
+[[package]]
+name = "self_cell"
+version = "1.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813"
+
+[[package]]
+name = "semver"
+version = "1.0.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+
+[[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_core"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "serde_ignored"
+version = "0.1.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "115dffd5f3853e06e746965a20dcbae6ee747ae30b543d91b0e089668bb07798"
+dependencies = [
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "serde_repr"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "shlex"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "simd-adler32"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
+
+[[package]]
+name = "simd_cesu8"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520"
+dependencies = [
+ "rustc_version",
+ "simdutf8",
+]
+
+[[package]]
+name = "simdutf8"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
+
+[[package]]
+name = "simplecss"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7a9c6883ca9c3c7c90e888de77b7a5c849c779d25d74a1269b0218b14e8b136c"
+dependencies = [
+ "log",
+]
+
+[[package]]
+name = "siphasher"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256"
+
+[[package]]
+name = "skrifa"
+version = "0.42.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c34617370ae968efb7161bb2beb517d9084659aae19e24b89e3db25b46e4564"
+dependencies = [
+ "bytemuck",
+ "read-fonts",
+]
+
+[[package]]
+name = "slab"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+
+[[package]]
+name = "slotmap"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038"
+dependencies = [
+ "version_check",
+]
+
+[[package]]
+name = "smallvec"
+version = "1.16.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46"
+
+[[package]]
+name = "smithay-client-toolkit"
+version = "0.19.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
+dependencies = [
+ "bitflags 2.13.2",
+ "calloop 0.13.0",
+ "calloop-wayland-source 0.3.0",
+ "cursor-icon",
+ "libc",
+ "log",
+ "memmap2",
+ "rustix 0.38.44",
+ "thiserror 1.0.69",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-csd-frame",
+ "wayland-cursor",
+ "wayland-protocols",
+ "wayland-protocols-wlr",
+ "wayland-scanner",
+ "xkeysym",
+]
+
+[[package]]
+name = "smithay-client-toolkit"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0"
+dependencies = [
+ "bitflags 2.13.2",
+ "calloop 0.14.5",
+ "calloop-wayland-source 0.4.1",
+ "cursor-icon",
+ "libc",
+ "log",
+ "memmap2",
+ "rustix 1.1.6",
+ "thiserror 2.0.21",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-csd-frame",
+ "wayland-cursor",
+ "wayland-protocols",
+ "wayland-protocols-experimental",
+ "wayland-protocols-misc",
+ "wayland-protocols-wlr",
+ "wayland-scanner",
+ "xkeysym",
+]
+
+[[package]]
+name = "smithay-clipboard"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"
+dependencies = [
+ "libc",
+ "smithay-client-toolkit 0.20.0",
+ "wayland-backend",
+]
+
+[[package]]
+name = "smol_str"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "spirv"
+version = "0.4.0+sdk-1.4.341.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9571ea910ebd84c86af4b3ed27f9dbdc6ad06f17c5f96146b2b671e2976744f"
+dependencies = [
+ "bitflags 2.13.2",
+]
+
+[[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 = "strict-num"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
+dependencies = [
+ "float-cmp",
+]
+
+[[package]]
+name = "svgtypes"
+version = "0.15.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68c7541fff44b35860c1a7a47a7cadf3e4a304c457b58f9870d9706ece028afc"
+dependencies = [
+ "kurbo 0.11.3",
+ "siphasher",
+]
+
+[[package]]
+name = "syn"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "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 1.1.6",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "termcolor"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "thiserror"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+dependencies = [
+ "thiserror-impl 1.0.69",
+]
+
+[[package]]
+name = "thiserror"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
+dependencies = [
+ "thiserror-impl 2.0.21",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "tiff"
+version = "0.11.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52"
+dependencies = [
+ "fax",
+ "flate2",
+ "half",
+ "quick-error",
+ "weezl",
+ "zune-jpeg",
+]
+
+[[package]]
+name = "tiny-skia"
+version = "0.11.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab"
+dependencies = [
+ "arrayref",
+ "arrayvec",
+ "bytemuck",
+ "cfg-if",
+ "log",
+ "png 0.17.16",
+ "tiny-skia-path",
+]
+
+[[package]]
+name = "tiny-skia-path"
+version = "0.11.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93"
+dependencies = [
+ "arrayref",
+ "bytemuck",
+ "strict-num",
+]
+
+[[package]]
+name = "tinystr"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
+dependencies = [
+ "displaydoc",
+ "zerovec",
+]
+
+[[package]]
+name = "tokio"
+version = "1.54.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
+dependencies = [
+ "pin-project-lite",
+]
+
+[[package]]
+name = "toml"
+version = "1.2.0+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5ffcdf8f50436dbbfd675c1fe1b8e0854f42b7defea8584bdebe1aee900e561"
+dependencies = [
+ "indexmap",
+ "serde_core",
+ "serde_spanned",
+ "toml_datetime",
+ "toml_parser",
+ "toml_writer",
+ "winnow",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.3+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.25.19+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218"
+dependencies = [
+ "indexmap",
+ "toml_datetime",
+ "toml_parser",
+ "winnow",
+]
+
+[[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",
+]
+
+[[package]]
+name = "toml_writer"
+version = "1.2.0+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a"
+
+[[package]]
+name = "tracing"
+version = "0.1.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
+dependencies = [
+ "log",
+ "pin-project-lite",
+ "tracing-attributes",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-attributes"
+version = "0.1.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "tracing-core"
+version = "0.1.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
+dependencies = [
+ "once_cell",
+]
+
+[[package]]
+name = "ttf-parser"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
+
+[[package]]
+name = "type-map"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90"
+dependencies = [
+ "rustc-hash 2.1.3",
+]
+
+[[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-general-category"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f"
+
+[[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 = "unicode-width"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557"
+
+[[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",
+]
+
+[[package]]
+name = "usvg"
+version = "0.45.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80be9b06fbae3b8b303400ab20778c80bbaf338f563afe567cf3c9eea17b47ef"
+dependencies = [
+ "base64",
+ "data-url",
+ "flate2",
+ "imagesize",
+ "kurbo 0.11.3",
+ "log",
+ "pico-args",
+ "roxmltree",
+ "simplecss",
+ "siphasher",
+ "strict-num",
+ "svgtypes",
+ "tiny-skia-path",
+ "xmlwriter",
+]
+
+[[package]]
+name = "utf8_iter"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0"
+dependencies = [
+ "utf_types",
+]
+
+[[package]]
+name = "utf_types"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
+
+[[package]]
+name = "uuid"
+version = "1.29.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a06f08a856b009bc7bbaf7d3e79808595d032dd19074c0c2ef26e49e03e6bdc"
+dependencies = [
+ "js-sys",
+ "serde_core",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "vello_common"
+version = "0.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "19d672facaa2d697285a786cd9d44d614cd2ce54cdc022504bf339f8fff3b750"
+dependencies = [
+ "bytemuck",
+ "fearless_simd",
+ "guillotiere",
+ "hashbrown 0.17.1",
+ "log",
+ "peniko",
+ "smallvec",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "vello_cpu"
+version = "0.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "588691169aed86b5c8fb487266afee01323234e6fd0a3f2aaec0eaa8e4007f23"
+dependencies = [
+ "bytemuck",
+ "glifo",
+ "hashbrown 0.17.1",
+ "vello_common",
+]
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[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 = "wasip2"
+version = "1.0.4+wasi-0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
+dependencies = [
+ "wit-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c"
+dependencies = [
+ "cfg-if",
+ "rustversion",
+ "wasm-bindgen-macro",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-futures"
+version = "0.4.80"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501"
+dependencies = [
+ "js-sys",
+ "tokio",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen-macro"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9"
+dependencies = [
+ "quote",
+ "wasm-bindgen-macro-support",
+]
+
+[[package]]
+name = "wasm-bindgen-macro-support"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a"
+dependencies = [
+ "bumpalo",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-shared"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "wayland-backend"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078"
+dependencies = [
+ "cc",
+ "downcast-rs",
+ "rustix 1.1.6",
+ "scoped-tls",
+ "smallvec",
+ "wayland-sys",
+]
+
+[[package]]
+name = "wayland-client"
+version = "0.31.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073"
+dependencies = [
+ "bitflags 2.13.2",
+ "rustix 1.1.6",
+ "wayland-backend",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-csd-frame"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e"
+dependencies = [
+ "bitflags 2.13.2",
+ "cursor-icon",
+ "wayland-backend",
+]
+
+[[package]]
+name = "wayland-cursor"
+version = "0.31.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d"
+dependencies = [
+ "rustix 1.1.6",
+ "wayland-client",
+ "xcursor",
+]
+
+[[package]]
+name = "wayland-protocols"
+version = "0.32.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6"
+dependencies = [
+ "bitflags 2.13.2",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-experimental"
+version = "20250721.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1"
+dependencies = [
+ "bitflags 2.13.2",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-misc"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8"
+dependencies = [
+ "bitflags 2.13.2",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-plasma"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91"
+dependencies = [
+ "bitflags 2.13.2",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-protocols-wlr"
+version = "0.3.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234"
+dependencies = [
+ "bitflags 2.13.2",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-scanner",
+]
+
+[[package]]
+name = "wayland-scanner"
+version = "0.31.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0"
+dependencies = [
+ "proc-macro2",
+ "quick-xml",
+ "quote",
+]
+
+[[package]]
+name = "wayland-sys"
+version = "0.31.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
+dependencies = [
+ "dlib",
+ "log",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "web-sys"
+version = "0.3.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "webbrowser"
+version = "1.2.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe8d20d0214027baf11b8b0cc307c1da7657d8f4db9aa956f7de27a6fb1acbd5"
+dependencies = [
+ "jni",
+ "log",
+ "ndk-context",
+ "objc2 0.6.5",
+ "objc2-app-kit 0.3.2",
+ "objc2-foundation 0.3.2",
+ "url",
+ "web-sys",
+]
+
+[[package]]
+name = "weezl"
+version = "0.1.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
+
+[[package]]
+name = "wgpu"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76e8840e1ba2881d4cbb18d2147627a56af426ff064c0401eb0c8410c6325d07"
+dependencies = [
+ "arrayvec",
+ "bitflags 2.13.2",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "log",
+ "naga",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "smallvec",
+ "static_assertions",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "wgpu-core",
+ "wgpu-hal",
+ "wgpu-types",
+]
+
+[[package]]
+name = "wgpu-core"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f519832254e56965a9940c4af57dcb75f702b6f6fa4a0b172f685395843a4d7"
+dependencies = [
+ "arrayvec",
+ "bit-set",
+ "bit-vec",
+ "bitflags 2.13.2",
+ "bytemuck",
+ "cfg_aliases",
+ "document-features",
+ "hashbrown 0.16.1",
+ "indexmap",
+ "log",
+ "naga",
+ "once_cell",
+ "parking_lot",
+ "portable-atomic",
+ "profiling",
+ "raw-window-handle",
+ "rustc-hash 1.1.0",
+ "smallvec",
+ "thiserror 2.0.21",
+ "wgpu-core-deps-apple",
+ "wgpu-core-deps-emscripten",
+ "wgpu-core-deps-wasm",
+ "wgpu-core-deps-windows-linux-android",
+ "wgpu-hal",
+ "wgpu-naga-bridge",
+ "wgpu-types",
+]
+
+[[package]]
+name = "wgpu-core-deps-apple"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f5e39e26c4c0e07589e67d18546cf79ff45383659fc72fca4dd293358a0347f3"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-emscripten"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "01e09be551dc939498bdd5f6b2c66e55ab275dad25825267a08605a80fc9f0af"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-wasm"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af1fb1798be2a912497d4c224f72d39bb0cb34af50e8bcc29865bc339c943059"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-windows-linux-android"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e592c1bbef6ad047647ae6e666ebd8cee7a32bb4544d9700ec96cbf73230257"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-hal"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97ace1c17727311c22a46e4e3faf56ea6de81af99dcc839bdfb54857b94d448d"
+dependencies = [
+ "android_system_properties",
+ "arrayvec",
+ "ash",
+ "bit-set",
+ "bitflags 2.13.2",
+ "block2 0.6.2",
+ "bytemuck",
+ "cfg-if",
+ "cfg_aliases",
+ "glow",
+ "glutin_wgl_sys",
+ "gpu-allocator",
+ "gpu-descriptor",
+ "hashbrown 0.16.1",
+ "js-sys",
+ "khronos-egl",
+ "libc",
+ "libloading",
+ "log",
+ "naga",
+ "ndk-sys",
+ "objc2 0.6.5",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-metal 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "once_cell",
+ "ordered-float",
+ "parking_lot",
+ "portable-atomic",
+ "portable-atomic-util",
+ "profiling",
+ "range-alloc",
+ "raw-window-handle",
+ "raw-window-metal",
+ "renderdoc-sys",
+ "smallvec",
+ "thiserror 2.0.21",
+ "wasm-bindgen",
+ "wayland-sys",
+ "web-sys",
+ "wgpu-naga-bridge",
+ "wgpu-types",
+ "windows",
+ "windows-core",
+ "windows-result",
+]
+
+[[package]]
+name = "wgpu-naga-bridge"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95226013f547544b223281cd16a4fb549aa9dcb562adbda0faae4c73ffbbc161"
+dependencies = [
+ "naga",
+ "wgpu-types",
+]
+
+[[package]]
+name = "wgpu-types"
+version = "29.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "84bf84cd9ca8ca45e2b223a3868f1adf9bfc0c66aeac212e76ee7e40fdadf8f5"
+dependencies = [
+ "bitflags 2.13.2",
+ "bytemuck",
+ "js-sys",
+ "log",
+ "raw-window-handle",
+ "web-sys",
+]
+
+[[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 = "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.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
+dependencies = [
+ "windows-targets",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm",
+ "windows_aarch64_msvc",
+ "windows_i686_gnu",
+ "windows_i686_gnullvm",
+ "windows_i686_msvc",
+ "windows_x86_64_gnu",
+ "windows_x86_64_gnullvm",
+ "windows_x86_64_msvc",
+]
+
+[[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_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "winit"
+version = "0.30.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d"
+dependencies = [
+ "ahash",
+ "android-activity",
+ "atomic-waker",
+ "bitflags 2.13.2",
+ "block2 0.5.1",
+ "bytemuck",
+ "calloop 0.13.0",
+ "cfg_aliases",
+ "concurrent-queue",
+ "core-foundation",
+ "core-graphics",
+ "cursor-icon",
+ "dpi",
+ "js-sys",
+ "libc",
+ "memmap2",
+ "ndk",
+ "objc2 0.5.3",
+ "objc2-app-kit 0.2.2",
+ "objc2-foundation 0.2.2",
+ "objc2-ui-kit 0.2.2",
+ "orbclient",
+ "percent-encoding",
+ "pin-project",
+ "raw-window-handle",
+ "redox_syscall 0.4.1",
+ "rustix 0.38.44",
+ "sctk-adwaita",
+ "smithay-client-toolkit 0.19.2",
+ "smol_str",
+ "tracing",
+ "unicode-segmentation",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "wayland-backend",
+ "wayland-client",
+ "wayland-protocols",
+ "wayland-protocols-plasma",
+ "web-sys",
+ "web-time",
+ "windows-sys 0.52.0",
+ "x11-dl",
+ "x11rb",
+ "xkbcommon-dl",
+]
+
+[[package]]
+name = "winnow"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef"
+dependencies = [
+ "memchr",
+]
+
+[[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 = "x11-dl"
+version = "2.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
+dependencies = [
+ "libc",
+ "once_cell",
+ "pkg-config",
+]
+
+[[package]]
+name = "x11rb"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
+dependencies = [
+ "as-raw-xcb-connection",
+ "gethostname",
+ "libc",
+ "libloading",
+ "once_cell",
+ "rustix 1.1.6",
+ "x11rb-protocol",
+]
+
+[[package]]
+name = "x11rb-protocol"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
+
+[[package]]
+name = "xcursor"
+version = "0.3.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23"
+
+[[package]]
+name = "xkbcommon-dl"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5"
+dependencies = [
+ "bitflags 2.13.2",
+ "dlib",
+ "log",
+ "once_cell",
+ "xkeysym",
+]
+
+[[package]]
+name = "xkeysym"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"
+
+[[package]]
+name = "xml-rs"
+version = "0.8.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"
+
+[[package]]
+name = "xmlwriter"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9"
+
+[[package]]
+name = "yoke"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
+dependencies = [
+ "stable_deref_trait",
+ "yoke-derive",
+ "zerofrom",
+]
+
+[[package]]
+name = "yoke-derive"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "synstructure",
+]
+
+[[package]]
+name = "zbus"
+version = "5.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907"
+dependencies = [
+ "async-broadcast",
+ "async-executor",
+ "async-io",
+ "async-lock",
+ "async-process",
+ "async-recursion",
+ "async-task",
+ "async-trait",
+ "blocking",
+ "enumflags2",
+ "event-listener",
+ "futures-core",
+ "futures-lite",
+ "hex",
+ "libc",
+ "ordered-stream",
+ "rustix 1.1.6",
+ "serde",
+ "serde_repr",
+ "tracing",
+ "uds_windows",
+ "uuid",
+ "windows-sys 0.61.2",
+ "winnow",
+ "zbus_macros",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus-lockstep"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6998de05217a084b7578728a9443d04ea4cd80f2a0839b8d78770b76ccd45863"
+dependencies = [
+ "zbus_xml",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus-lockstep-macros"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "10da05367f3a7b7553c8cdf8fa91aee6b64afebe32b51c95177957efc47ca3a0"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "zbus-lockstep",
+ "zbus_xml",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus_macros"
+version = "5.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40"
+dependencies = [
+ "proc-macro-crate",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "zbus_names",
+ "zvariant",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zbus_names"
+version = "4.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd"
+dependencies = [
+ "serde",
+ "winnow",
+ "zvariant",
+]
+
+[[package]]
+name = "zbus_xml"
+version = "5.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d1586c021a01ca0a9216dcd874e546382e156a5cbab5fab6cb5f10087e22682a"
+dependencies = [
+ "serde",
+ "winnow",
+ "zbus_names",
+ "zvariant",
+]
+
+[[package]]
+name = "zcheapstr"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "939f186d9ecebe044315a5cb6d6f78568bbc21152adc954d5a0c2f58bdbc9920"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "zerocopy"
+version = "0.8.63"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8"
+dependencies = [
+ "zerocopy-derive",
+]
+
+[[package]]
+name = "zerocopy-derive"
+version = "0.8.63"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "zerofrom"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
+dependencies = [
+ "zerofrom-derive",
+]
+
+[[package]]
+name = "zerofrom-derive"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "synstructure",
+]
+
+[[package]]
+name = "zerotrie"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
+dependencies = [
+ "displaydoc",
+ "yoke",
+ "zerofrom",
+]
+
+[[package]]
+name = "zerovec"
+version = "0.11.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
+dependencies = [
+ "yoke",
+ "zerofrom",
+ "zerovec-derive",
+]
+
+[[package]]
+name = "zerovec-derive"
+version = "0.11.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
+[[package]]
+name = "zlib-rs"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
+
+[[package]]
+name = "zune-core"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b"
+
+[[package]]
+name = "zune-jpeg"
+version = "0.5.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"
+dependencies = [
+ "zune-core",
+]
+
+[[package]]
+name = "zvariant"
+version = "5.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7"
+dependencies = [
+ "endi",
+ "enumflags2",
+ "serde",
+ "winnow",
+ "zcheapstr",
+ "zvariant_derive",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_derive"
+version = "5.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d"
+dependencies = [
+ "proc-macro-crate",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+ "zvariant_utils",
+]
+
+[[package]]
+name = "zvariant_utils"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde",
+ "syn 3.0.10",
+ "winnow",
+]
diff --git a/greeter/Cargo.toml b/greeter/Cargo.toml
@@ -0,0 +1,16 @@
+[package]
+name = "patina-greeter"
+version = "0.1.0"
+edition = "2024"
+license = "BSD-3-Clause"
+description = "Sector F Linux's login screen, with the first-run setup in it: a Patina egui app that talks to greetd"
+
+[dependencies]
+eframe = "0.35"
+egui = "0.35"
+# The logo, an SVG.
+egui_extras = { version = "0.35", default-features = false, features = ["svg"] }
+patina-ui = "0.1"
+chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
+# Screenshots (`make screenshot`).
+image = { version = "0.25", default-features = false, features = ["png"] }
diff --git a/greeter/Makefile b/greeter/Makefile
@@ -0,0 +1,41 @@
+APP_NAME := patina-greeter
+VERSION := $(shell awk -F\" '/^version = / { print $$2; exit }' Cargo.toml)
+
+# Shots of the screens, from the mock backend (no greetd needed). They open a window, so they
+# need a desktop; in the VM, the greeter runs under cage instead (see ../README.md).
+SHOTS := docs
+
+.DEFAULT_GOAL := help
+
+.PHONY: help run run-setup build test check screenshot clean
+
+help: ## Show this help
+ @echo "Usage: make <target>"
+ @echo
+ @awk 'BEGIN { FS = ":.*## " } /^[a-z-]+:.*## / { printf " \033[1m%-14s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
+
+run: ## Run the login on the mock, in a window (the password is "sectorf")
+ PATINA_GREETER_MOCK=login PATINA_GREETER_SIZE=1280x800 cargo run
+
+run-setup: ## Run the first-run setup on the mock, in a window
+ PATINA_GREETER_MOCK=setup PATINA_GREETER_SIZE=1280x800 cargo run
+
+build: ## Build a release binary
+ cargo build --release
+
+test: ## Run the tests
+ cargo test
+
+check: test ## Run the tests and clippy, as before a commit
+ cargo clippy --all-targets -- -D warnings
+
+screenshot: ## Regenerate docs/screenshot-*.png from the mock (needs a desktop)
+ @mkdir -p $(SHOTS)
+ PATINA_GREETER_MOCK=login PATINA_GREETER_SIZE=1280x800 PATINA_GREETER_SCREENSHOT=$(SHOTS)/screenshot-login.png cargo run
+ PATINA_GREETER_MOCK=login PATINA_GREETER_SIZE=1280x800 PATINA_GREETER_DEMO=typing PATINA_GREETER_SCREENSHOT=$(SHOTS)/screenshot-login-typing.png cargo run
+ PATINA_GREETER_MOCK=login PATINA_GREETER_SIZE=1280x800 PATINA_GREETER_DEMO=wrong PATINA_GREETER_SCREENSHOT=$(SHOTS)/screenshot-login-wrong.png cargo run
+ PATINA_GREETER_MOCK=setup PATINA_GREETER_SIZE=1280x800 PATINA_GREETER_SCREENSHOT=$(SHOTS)/screenshot-setup.png cargo run
+ PATINA_GREETER_MOCK=setup PATINA_GREETER_SIZE=1280x800 PATINA_GREETER_DEMO=filled PATINA_GREETER_SCREENSHOT=$(SHOTS)/screenshot-setup-filled.png cargo run
+
+clean: ## Remove build output
+ cargo clean
diff --git a/greeter/README.md b/greeter/README.md
@@ -0,0 +1,65 @@
+# patina-greeter
+
+Sector F Linux's login screen, with the first-run setup in it. A Patina egui app that greetd runs
+inside a kiosk compositor (`cage -s -- patina-greeter`), in this repository and not in
+patina-desktop, because it is what logs in, not part of the desktop session. Why, and how it fits
+together: [ADR-0012](../docs/adr/0012-a-login-manager-of-our-own-greetd-and-a-patina-greeter.md) and
+[ADR-0013](../docs/adr/0013-the-greeter-is-a-patina-app-of-our-own.md).
+
+Two modes, one program:
+
+- **Login**, when an account exists: the time and date, the people who can log in (a row of round
+ avatars when there is more than one), a password pill, a spinner while it is checked, a shake
+ when it is wrong, and Restart and Shut down.
+- **First-run setup**, when none does: Welcome to Sector F Linux, then full name, user name (which
+ follows the full name until you type your own), password and confirmation. It makes the account
+ and logs it straight in.
+
+It looks like the Patina desktop's lock screen on purpose (`patina-desktop/lock/src/ui.rs`): the
+same clock, avatar and pill, and the same way of handling a password, which is never put in an egui
+`TextEdit` (its undo history would keep copies) but read from the key events, shown as dots, and
+zeroed when cleared or sent. There is no window frame, title bar or menu: Patina's frame is for
+windows with menus, and this is a full-screen login. The skin is the desktop's, Everforest Dark.
+
+## Status
+
+The screens, their logic and the tests are done, on a **mock backend**. The real one is next:
+greetd's socket (`greetd_ipc`) for the login, AccountsService over D-Bus (`zbus`) for the first
+account, which the polkit rule in `../linux/prototype/` allows only while nobody can log in, and
+logind for Restart and Shut down. Until then, without `PATINA_GREETER_MOCK` it says so and exits.
+
+## Try it
+
+```sh
+make run # the login, in a window; the password is "sectorf"
+make run-setup # the first-run setup
+```
+
+On the mock, accounts are alice and bob. Environment variables (also in `--help`):
+`PATINA_GREETER_MOCK=login|setup`, `PATINA_GREETER_SIZE=1280x800` (a window, not full screen),
+`PATINA_GREETER_DEMO=` to fill a screen in, `PATINA_GREETER_SCREENSHOT=file.png`, `PATINA_SKIN`.
+
+| Key | Does |
+|---|---|
+| Enter | logs in; in the setup, next field, and on the last one makes the account |
+| Tab, Shift+Tab | next and previous field (setup) |
+| Left, Right | another user (login) |
+| Backspace, Ctrl+Backspace, Ctrl+U, Esc | delete a character, or clear the field |
+
+Editing is at the end of the text only, which is all a name or a password needs.
+
+## Build
+
+```sh
+make # the targets
+make check # the tests and clippy -D warnings
+make build # a release binary
+```
+
+Needs the same libraries as the desktop (Wayland, xkbcommon). For the image it is built in the
+Fedora builder, so it links what the image has.
+
+## Licence
+
+BSD-3-Clause, as the Patina desktop's pieces are (set in `Cargo.toml`; this repository has no
+`LICENSE` file yet).
diff --git a/greeter/src/app.rs b/greeter/src/app.rs
@@ -0,0 +1,917 @@
+//! The greeter's screens, drawn the way patina-lock draws its own: the skin's background, the
+//! time, a round avatar, and a pill for the password. There is no window frame, title bar or
+//! menu: it is a full-screen login (Patina's frame is for windows with menus).
+//!
+//! Two modes (ADR-0012). With accounts, the login. With none, the first-run setup, which makes
+//! the first account and then logs it straight in. Whatever the backend does runs on a worker
+//! thread, since PAM and D-Bus can take seconds, and answers over a channel.
+
+use std::path::PathBuf;
+use std::sync::Arc;
+use std::sync::mpsc::{Receiver, Sender, channel};
+use std::time::{Duration, Instant};
+
+use egui::{Align2, Color32, FontId, RichText, Sense, Stroke, Ui, pos2, vec2};
+use patina::skin::{self, Skin};
+
+use crate::backend::{Backend, LoginError, Power, User};
+use crate::field::{self, Field, Tone};
+use crate::model::{self, SetupForm};
+
+/// The skin the greeter wears: the desktop's own, so the login screen and the desktop match.
+const HOME_SKIN: &str = "Everforest Dark";
+/// How long the pill shakes after a wrong password.
+const SHAKE: f32 = 0.45;
+/// The logo GDM showed: the flask and the words Sector F Labs (linux/branding/make-logo.py).
+const LOGO: &[u8] = include_bytes!("../../linux/system/usr/share/pixmaps/seflos-logo.svg");
+
+#[derive(Clone, Copy, PartialEq, Debug)]
+pub enum Screen {
+ Login,
+ Setup,
+}
+
+#[derive(Clone, PartialEq, Debug)]
+pub enum Status {
+ Typing,
+ Checking,
+ Wrong,
+ Problem(String),
+}
+
+/// The setup's fields, in the order they are filled in.
+#[derive(Clone, Copy, PartialEq, Debug)]
+enum Slot {
+ FullName,
+ Username,
+ Password,
+ Confirm,
+}
+
+const SLOTS: [Slot; 4] = [
+ Slot::FullName,
+ Slot::Username,
+ Slot::Password,
+ Slot::Confirm,
+];
+
+/// What a worker thread reports back.
+enum Done {
+ Login(Result<(), LoginError>),
+ Created(Result<(), String>),
+}
+
+struct Screenshot {
+ path: PathBuf,
+ started: Instant,
+ asked: bool,
+}
+
+pub struct App {
+ ctx: egui::Context,
+ backend: Arc<dyn Backend>,
+ screen: Screen,
+ users: Vec<User>,
+ selected: usize,
+ login: Field,
+ status: Status,
+ wrong_at: Option<Instant>,
+ fields: [Field; 4],
+ /// Once the person has typed their own user name, it stops following the full name.
+ username_edited: bool,
+ focus: Slot,
+ tx: Sender<Done>,
+ rx: Receiver<Done>,
+ /// The new account's user name, between making it and logging it in.
+ new_user: Option<String>,
+ screenshot: Option<Screenshot>,
+ finished: bool,
+}
+
+impl App {
+ pub fn new(cc: &eframe::CreationContext<'_>, backend: Arc<dyn Backend>) -> Self {
+ egui_extras::install_image_loaders(&cc.egui_ctx);
+ Self::with_context(cc.egui_ctx.clone(), pick_skin(), backend)
+ }
+
+ pub fn with_context(ctx: egui::Context, skin: Skin, backend: Arc<dyn Backend>) -> Self {
+ let (tx, rx) = channel();
+ skin.apply(&ctx);
+ let mut app = Self {
+ ctx,
+ backend,
+ screen: Screen::Login,
+ users: Vec::new(),
+ selected: 0,
+ login: Field::new("Password", true),
+ status: Status::Typing,
+ wrong_at: None,
+ fields: [
+ Field::new("Full name", false),
+ Field::new("User name", false),
+ Field::new("Password", true),
+ Field::new("Confirm password", true),
+ ],
+ username_edited: false,
+ focus: Slot::FullName,
+ tx,
+ rx,
+ new_user: None,
+ screenshot: None,
+ finished: false,
+ };
+ app.refresh();
+ app
+ }
+
+ /// Asks the backend who can log in, and so which screen to show.
+ pub fn refresh(&mut self) {
+ self.users = self.backend.users();
+ self.selected = self.selected.min(self.users.len().saturating_sub(1));
+ self.screen = if self.backend.first_run() {
+ Screen::Setup
+ } else {
+ Screen::Login
+ };
+ }
+
+ /// Saves the screen to `path` a moment after it first shows, and quits (`make screenshot`).
+ pub fn screenshot_to(&mut self, path: PathBuf) {
+ self.screenshot = Some(Screenshot {
+ path,
+ started: Instant::now(),
+ asked: false,
+ });
+ }
+
+ /// Fills the screen with something to look at, for screenshots.
+ pub fn demo(&mut self, what: &str) {
+ match (self.screen, what) {
+ (Screen::Login, "typing") => self.login.text = "sectorf".into(),
+ (Screen::Login, "problem") => {
+ self.status = Status::Problem("Can't reach the login service".into())
+ }
+ (Screen::Login, "wrong") => {
+ self.login.text.clear();
+ self.status = Status::Wrong;
+ }
+ (Screen::Setup, "filled") => {
+ self.fields[0].text = "Alice Example".into();
+ self.fields[1].text = "alice".into();
+ self.fields[2].text = "correct horse".into();
+ self.fields[3].text = "correct horse".into();
+ self.username_edited = true;
+ self.focus = Slot::Confirm;
+ }
+ (Screen::Setup, "problem") => {
+ self.fields[0].text = "Alice Example".into();
+ self.fields[1].text = "alice".into();
+ self.fields[2].text = "correct horse".into();
+ self.fields[3].text = "correct hors".into();
+ self.username_edited = true;
+ self.focus = Slot::Confirm;
+ }
+ _ => {}
+ }
+ }
+
+ /// Runs `work` on a thread of its own and delivers what it returns to the next frame.
+ fn spawn(&self, work: impl FnOnce(&dyn Backend) -> Done + Send + 'static) {
+ let backend = Arc::clone(&self.backend);
+ let tx = self.tx.clone();
+ let ctx = self.ctx.clone();
+ std::thread::spawn(move || {
+ let done = work(backend.as_ref());
+ let _ = tx.send(done);
+ ctx.request_repaint();
+ });
+ }
+
+ fn log_in(&mut self, user: String, mut password: String) {
+ self.status = Status::Checking;
+ self.spawn(move |backend| {
+ let result = backend.login(&user, &password);
+ model::wipe(&mut password);
+ Done::Login(result)
+ });
+ }
+
+ fn submit_login(&mut self) {
+ if self.login.text.is_empty() || self.status == Status::Checking {
+ return;
+ }
+ let Some(user) = self.users.get(self.selected).map(|u| u.name.clone()) else {
+ return;
+ };
+ let password = std::mem::replace(
+ &mut self.login.text,
+ String::with_capacity(model::MAX_PASSWORD),
+ );
+ self.log_in(user, password);
+ }
+
+ fn form(&self) -> SetupForm {
+ SetupForm {
+ full_name: self.fields[0].text.trim().to_string(),
+ username: self.fields[1].text.clone(),
+ password: self.fields[2].text.clone(),
+ confirm: self.fields[3].text.clone(),
+ }
+ }
+
+ fn submit_setup(&mut self) {
+ if self.status == Status::Checking {
+ return;
+ }
+ let mut form = self.form();
+ if form.problem().is_some() {
+ form.wipe();
+ return;
+ }
+ self.status = Status::Checking;
+ self.new_user = Some(form.username.clone());
+ self.spawn(move |backend| {
+ let result = backend.create_first_user(&form.full_name, &form.username, &form.password);
+ form.wipe();
+ Done::Created(result)
+ });
+ }
+
+ /// What the workers have said since the last frame.
+ fn poll(&mut self) {
+ while let Ok(done) = self.rx.try_recv() {
+ match done {
+ Done::Login(Ok(())) => {
+ self.finished = true;
+ self.ctx.send_viewport_cmd(egui::ViewportCommand::Close);
+ }
+ Done::Login(Err(LoginError::Wrong)) => {
+ self.status = Status::Wrong;
+ self.wrong_at = Some(Instant::now());
+ }
+ Done::Login(Err(LoginError::Problem(e))) => self.status = Status::Problem(e),
+ Done::Created(Ok(())) => {
+ // The account exists: log it in with the password just given.
+ let user = self.new_user.take().unwrap_or_default();
+ let password = std::mem::take(&mut self.fields[2].text);
+ model::wipe(&mut self.fields[3].text);
+ self.refresh();
+ self.selected = self.users.iter().position(|u| u.name == user).unwrap_or(0);
+ self.log_in(user, password);
+ }
+ Done::Created(Err(e)) => {
+ self.new_user = None;
+ self.status = Status::Problem(e);
+ }
+ }
+ }
+ }
+
+ fn power(&mut self, action: Power) {
+ if let Err(e) = self.backend.power(action) {
+ self.status = Status::Problem(e);
+ }
+ }
+
+ // ---- keys ----
+
+ /// The events of a frame, in the order they came: a letter typed after Tab goes to the next
+ /// field, and what is typed after Enter, while it is being checked, is dropped.
+ fn handle_keys(&mut self, events: &[egui::Event]) {
+ for event in events {
+ if self.status == Status::Checking {
+ return;
+ }
+ match self.screen {
+ Screen::Login => self.login_event(event),
+ Screen::Setup => self.setup_event(event),
+ }
+ }
+ }
+
+ fn login_event(&mut self, event: &egui::Event) {
+ if self.login.type_into(std::slice::from_ref(event)) {
+ self.status = Status::Typing;
+ }
+ if let egui::Event::Key {
+ key, pressed: true, ..
+ } = event
+ {
+ match key {
+ egui::Key::Enter => self.submit_login(),
+ egui::Key::ArrowLeft => self.select(-1),
+ egui::Key::ArrowRight => self.select(1),
+ _ => {}
+ }
+ }
+ }
+
+ fn setup_event(&mut self, event: &egui::Event) {
+ if let egui::Event::Key {
+ key,
+ pressed: true,
+ modifiers,
+ ..
+ } = event
+ {
+ match key {
+ egui::Key::Tab => return self.move_focus(if modifiers.shift { -1 } else { 1 }),
+ egui::Key::Enter => {
+ if self.focus == Slot::Confirm {
+ self.submit_setup();
+ } else {
+ self.move_focus(1);
+ }
+ return;
+ }
+ _ => {}
+ }
+ }
+ let slot = self.focus as usize;
+ if self.fields[slot].type_into(std::slice::from_ref(event)) {
+ self.status = Status::Typing;
+ match self.focus {
+ Slot::FullName if !self.username_edited => {
+ self.fields[1].text = model::suggest_username(&self.fields[0].text);
+ }
+ Slot::Username => self.username_edited = !self.fields[1].text.is_empty(),
+ _ => {}
+ }
+ }
+ }
+
+ fn select(&mut self, step: i32) {
+ let n = self.users.len() as i32;
+ if n > 1 {
+ self.selected = (self.selected as i32 + step).rem_euclid(n) as usize;
+ self.login.clear();
+ self.status = Status::Typing;
+ }
+ }
+
+ fn move_focus(&mut self, step: i32) {
+ let at = SLOTS.iter().position(|s| *s == self.focus).unwrap_or(0) as i32;
+ self.focus = SLOTS[(at + step).rem_euclid(SLOTS.len() as i32) as usize];
+ }
+
+ // ---- drawing ----
+
+ pub fn draw(&mut self, ui: &mut Ui) {
+ self.poll();
+ let events = ui.input(|i| i.events.clone());
+ self.take_screenshot(&events);
+ self.handle_keys(&events);
+
+ let visuals = ui.visuals().clone();
+ egui::Panel::bottom("footer")
+ .frame(egui::Frame::NONE.fill(visuals.panel_fill))
+ .show(ui, |ui| {
+ ui.vertical_centered(|ui| {
+ ui.add_space(18.0);
+ ui.add(
+ egui::Image::from_bytes("bytes://sector-f-labs.svg", LOGO)
+ .fit_to_exact_size(vec2(205.0, 42.0))
+ .tint(visuals.weak_text_color()),
+ );
+ ui.add_space(22.0);
+ });
+ });
+ egui::CentralPanel::default()
+ .frame(egui::Frame::NONE.fill(visuals.panel_fill))
+ .show(ui, |ui| {
+ let rect = ui.max_rect();
+ match self.screen {
+ Screen::Login => self.draw_login(ui, rect),
+ Screen::Setup => self.draw_setup(ui),
+ }
+ });
+ self.draw_power(ui.ctx());
+ self.schedule(ui.ctx());
+ }
+
+ fn draw_login(&mut self, ui: &mut Ui, rect: egui::Rect) {
+ let now = chrono::Local::now();
+ ui.vertical_centered(|ui| {
+ ui.add_space(rect.height() * 0.12);
+ ui.label(
+ RichText::new(now.format("%H:%M").to_string())
+ .size(96.0)
+ .strong(),
+ );
+ ui.label(RichText::new(now.format("%A %-d %B").to_string()).size(22.0));
+ ui.add_space(rect.height() * 0.10);
+
+ // Everyone who can log in, the one chosen larger; one alone is just shown.
+ if self.users.len() > 1 {
+ let side = 64.0;
+ let gap = 18.0;
+ let width = self.users.len() as f32 * side + (self.users.len() - 1) as f32 * gap;
+ let mut chosen = None;
+ ui.allocate_ui_with_layout(
+ vec2(width + 24.0, side + 32.0),
+ egui::Layout::left_to_right(egui::Align::Center),
+ |ui| {
+ ui.spacing_mut().item_spacing.x = gap;
+ for (i, user) in self.users.iter().enumerate() {
+ if avatar(ui, &user.full_name, side, i == self.selected).clicked() {
+ chosen = Some(i);
+ }
+ }
+ },
+ );
+ if let Some(i) = chosen {
+ self.selected = i;
+ self.login.clear();
+ self.status = Status::Typing;
+ }
+ } else if let Some(user) = self.users.first() {
+ avatar(ui, &user.full_name, 84.0, true);
+ }
+ ui.add_space(10.0);
+ if let Some(user) = self.users.get(self.selected) {
+ ui.label(RichText::new(&user.full_name).size(20.0));
+ }
+ ui.add_space(14.0);
+ self.password_pill(ui);
+ ui.add_space(10.0);
+ self.status_line(ui, "");
+ });
+ }
+
+ /// The password pill with the arrow that sends it, and the shake on a wrong one.
+ fn password_pill(&mut self, ui: &mut Ui) {
+ let checking = self.status == Status::Checking;
+ let shake = self
+ .wrong_at
+ .map(|t| t.elapsed().as_secs_f32())
+ .filter(|s| *s < SHAKE)
+ .map_or(0.0, |s| (s * 45.0).sin() * 10.0 * (1.0 - s / SHAKE));
+ let tone = if self.status == Status::Wrong {
+ Tone::Wrong
+ } else if checking {
+ Tone::Busy
+ } else {
+ Tone::Normal
+ };
+ let pill = egui::Rect::from_min_size(
+ pos2(
+ ui.max_rect().center().x - field::SIZE.x / 2.0 + shake,
+ ui.cursor().min.y,
+ ),
+ field::SIZE,
+ );
+ ui.scope_builder(egui::UiBuilder::new().max_rect(pill), |ui| {
+ self.login.show(ui, field::SIZE, true, tone, field::SIZE.y);
+ });
+ // The arrow over the right end of the pill.
+ let button = egui::Rect::from_center_size(
+ pos2(pill.right() - field::SIZE.y / 2.0, pill.center().y),
+ vec2(field::SIZE.y - 12.0, field::SIZE.y - 12.0),
+ );
+ let ready = !self.login.text.is_empty() && !checking;
+ if arrow(ui, button, ready, checking).clicked() && ready {
+ self.submit_login();
+ }
+ ui.advance_cursor_after_rect(pill);
+ }
+
+ fn draw_setup(&mut self, ui: &mut Ui) {
+ let rect = ui.max_rect();
+ let checking = self.status == Status::Checking;
+ ui.vertical_centered(|ui| {
+ ui.add_space(rect.height() * 0.14);
+ ui.label(
+ RichText::new("Welcome to Sector F Linux")
+ .size(36.0)
+ .strong(),
+ );
+ ui.add_space(4.0);
+ ui.label(
+ RichText::new("Let's set up this computer.")
+ .size(18.0)
+ .color(ui.visuals().weak_text_color()),
+ );
+ ui.add_space(28.0);
+ for (i, slot) in SLOTS.iter().enumerate() {
+ let tone = if checking { Tone::Busy } else { Tone::Normal };
+ if self.fields[i]
+ .show(ui, field::SIZE, self.focus == *slot && !checking, tone, 0.0)
+ .clicked()
+ && !checking
+ {
+ self.focus = *slot;
+ }
+ ui.add_space(10.0);
+ }
+ ui.add_space(4.0);
+ let problem = self.form().problem();
+ let ready = problem.is_none() && !checking;
+ let create = wide_button(ui, "Create account", ready, checking);
+ if create.clicked() && ready {
+ self.submit_setup();
+ }
+ ui.add_space(10.0);
+ self.status_line(ui, problem.unwrap_or(""));
+ });
+ }
+
+ /// The line under the form: what is happening, what went wrong, or what to do next.
+ fn status_line(&self, ui: &mut Ui, hint: &str) {
+ let v = ui.visuals();
+ let (text, colour) = match &self.status {
+ Status::Typing => (hint.to_string(), v.weak_text_color()),
+ Status::Checking => ("Just a moment…".to_string(), v.weak_text_color()),
+ Status::Wrong => ("Wrong password".to_string(), v.error_fg_color),
+ Status::Problem(e) => (e.clone(), v.error_fg_color),
+ };
+ ui.label(RichText::new(text).color(colour));
+ }
+
+ /// Restart and Shut down, at the bottom right.
+ fn draw_power(&mut self, ctx: &egui::Context) {
+ let mut action = None;
+ egui::Area::new(egui::Id::new("power"))
+ .anchor(Align2::RIGHT_BOTTOM, vec2(-24.0, -22.0))
+ .show(ctx, |ui| {
+ ui.horizontal(|ui| {
+ patina::dialog::buttons(ui);
+ if ui
+ .button("Restart")
+ .on_hover_text("Restart this computer")
+ .clicked()
+ {
+ action = Some(Power::Reboot);
+ }
+ if ui
+ .button("Shut down")
+ .on_hover_text("Shut this computer down")
+ .clicked()
+ {
+ action = Some(Power::PowerOff);
+ }
+ });
+ });
+ if let Some(action) = action {
+ self.power(action);
+ }
+ }
+
+ /// The minute changes on its own; the caret, the spinner and the shake need frames of their own.
+ fn schedule(&self, ctx: &egui::Context) {
+ let shaking = self
+ .wrong_at
+ .is_some_and(|t| t.elapsed().as_secs_f32() < SHAKE);
+ let quick = self.status == Status::Checking || shaking || self.screenshot.is_some();
+ ctx.request_repaint_after(Duration::from_millis(if quick { 16 } else { 500 }));
+ }
+
+ fn take_screenshot(&mut self, events: &[egui::Event]) {
+ let Some(shot) = &mut self.screenshot else {
+ return;
+ };
+ for event in events {
+ if let egui::Event::Screenshot { image, .. } = event {
+ let (w, h) = (image.width() as u32, image.height() as u32);
+ match image::save_buffer(&shot.path, image.as_raw(), w, h, image::ColorType::Rgba8)
+ {
+ Ok(()) => eprintln!("patina-greeter: wrote {}", shot.path.display()),
+ Err(e) => eprintln!("patina-greeter: can't save {}: {e}", shot.path.display()),
+ }
+ self.ctx.send_viewport_cmd(egui::ViewportCommand::Close);
+ return;
+ }
+ }
+ if !shot.asked && shot.started.elapsed() > Duration::from_millis(1200) {
+ shot.asked = true;
+ self.ctx
+ .send_viewport_cmd(egui::ViewportCommand::Screenshot(Default::default()));
+ }
+ }
+}
+
+/// `PATINA_SKIN` names one for a try (as patina-hud's does); otherwise the desktop's own.
+fn pick_skin() -> Skin {
+ let (skins, errors) = skin::load_all(skin::BUILT_IN, &[]);
+ for e in errors {
+ eprintln!("patina-greeter: skin: {e}");
+ }
+ let wanted = std::env::var("PATINA_SKIN").unwrap_or_else(|_| HOME_SKIN.into());
+ let find = |name: &str| skins.iter().find(|s| s.name == name).cloned();
+ find(&wanted)
+ .or_else(|| find(HOME_SKIN))
+ .unwrap_or_else(Skin::default_skin)
+}
+
+/// A user in a round: the first letter of their name on the skin's accent, a ring when chosen.
+/// (Pictures come with the real backend: AccountsService knows where each one is.)
+fn avatar(ui: &mut Ui, name: &str, side: f32, chosen: bool) -> egui::Response {
+ let (rect, response) = ui.allocate_exact_size(vec2(side, side), Sense::click());
+ let v = ui.visuals();
+ let painter = ui.painter();
+ let fill = if chosen {
+ v.selection.bg_fill
+ } else {
+ v.selection.bg_fill.gamma_multiply(0.45)
+ };
+ painter.circle_filled(rect.center(), side / 2.0, fill);
+ if chosen {
+ painter.circle_stroke(
+ rect.center(),
+ side / 2.0 + 4.0,
+ Stroke::new(2.0, v.selection.bg_fill),
+ );
+ }
+ let initial = name
+ .chars()
+ .next()
+ .map_or(String::new(), |c| c.to_uppercase().to_string());
+ painter.text(
+ rect.center(),
+ Align2::CENTER_CENTER,
+ initial,
+ FontId::proportional(side * 0.45),
+ v.selection.stroke.color,
+ );
+ response
+}
+
+/// The setup's button, as big as the fields above it: a pill in the accent, as the login's arrow
+/// sits in its pill. It breaks Patina's button size on purpose (the user's choice, ADR-0013):
+/// those are 24 px high, for rows in dialogs, and beside 46 px fields they look lost. Restart
+/// and Shut down are Patina's own.
+fn wide_button(ui: &mut Ui, text: &str, ready: bool, busy: bool) -> egui::Response {
+ let visuals = ui.visuals().clone();
+ let (rect, response) = ui.allocate_exact_size(field::SIZE, Sense::click());
+ if ready && response.hovered() {
+ ui.ctx().set_cursor_icon(egui::CursorIcon::PointingHand);
+ }
+ let (fill, ink) = if ready {
+ let fill = if response.hovered() {
+ visuals.selection.bg_fill.gamma_multiply(0.85)
+ } else {
+ visuals.selection.bg_fill
+ };
+ (fill, visuals.selection.stroke.color)
+ } else {
+ (
+ visuals.widgets.inactive.weak_bg_fill,
+ visuals.weak_text_color(),
+ )
+ };
+ let painter = ui.painter();
+ let radius = egui::CornerRadius::same((field::SIZE.y / 2.0) as u8);
+ painter.rect_filled(rect, radius, fill);
+ let label = if busy { "Setting up…" } else { text };
+ painter.text(
+ rect.center(),
+ Align2::CENTER_CENTER,
+ label,
+ FontId::proportional(17.0),
+ ink,
+ );
+ response
+}
+
+/// The arrow button that sends the password, a spinner while it is checked.
+fn arrow(ui: &mut Ui, button: egui::Rect, ready: bool, checking: bool) -> egui::Response {
+ let visuals = ui.visuals().clone();
+ let time = ui.input(|i| i.time);
+ let response = ui.interact(button, ui.id().with("send"), Sense::click());
+ if ready && response.hovered() {
+ ui.ctx().set_cursor_icon(egui::CursorIcon::PointingHand);
+ }
+ let (fill, ink): (Color32, Color32) = if ready {
+ let fill = if response.hovered() {
+ visuals.selection.bg_fill.gamma_multiply(0.85)
+ } else {
+ visuals.selection.bg_fill
+ };
+ (fill, visuals.selection.stroke.color)
+ } else {
+ (
+ visuals.widgets.inactive.weak_bg_fill,
+ visuals.weak_text_color(),
+ )
+ };
+ let painter = ui.painter();
+ painter.circle_filled(button.center(), button.width() / 2.0, fill);
+ let c = button.center();
+ if checking {
+ let angle = time as f32 * 6.0;
+ for k in 0..3 {
+ let a = angle - k as f32 * 0.5;
+ painter.circle_filled(
+ c + vec2(a.cos(), a.sin()) * 8.0,
+ 2.6 - k as f32 * 0.7,
+ ink.gamma_multiply(1.0 - k as f32 * 0.3),
+ );
+ }
+ } else {
+ let line = Stroke::new(2.0, ink);
+ painter.line_segment([c - vec2(6.0, 0.0), c + vec2(6.0, 0.0)], line);
+ painter.line_segment([c + vec2(6.0, 0.0), c + vec2(1.0, -5.0)], line);
+ painter.line_segment([c + vec2(6.0, 0.0), c + vec2(1.0, 5.0)], line);
+ }
+ response
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::backend::{MOCK_BROKEN, MOCK_PASSWORD, Mock};
+
+ fn app(mock: Mock) -> App {
+ App::with_context(
+ egui::Context::default(),
+ Skin::default_skin(),
+ Arc::new(mock),
+ )
+ }
+
+ fn quick(users: &[(&str, &str)]) -> App {
+ app(Mock::new(users, Duration::ZERO))
+ }
+
+ fn typed(text: &str) -> egui::Event {
+ egui::Event::Text(text.into())
+ }
+
+ fn key(key: egui::Key, shift: bool) -> egui::Event {
+ egui::Event::Key {
+ key,
+ physical_key: None,
+ pressed: true,
+ repeat: false,
+ modifiers: egui::Modifiers {
+ shift,
+ ..Default::default()
+ },
+ }
+ }
+
+ /// Waits for the worker thread, polling as a frame would.
+ fn settle(app: &mut App) {
+ for _ in 0..400 {
+ app.poll();
+ if app.status != Status::Checking || app.finished {
+ return;
+ }
+ std::thread::sleep(Duration::from_millis(5));
+ }
+ panic!("the worker never answered");
+ }
+
+ #[test]
+ fn it_starts_on_the_screen_the_machine_needs() {
+ assert_eq!(quick(&[("alice", "Alice Example")]).screen, Screen::Login);
+ assert_eq!(quick(&[]).screen, Screen::Setup);
+ }
+
+ #[test]
+ fn the_right_password_logs_in_and_finishes() {
+ let mut a = quick(&[("alice", "Alice Example")]);
+ a.handle_keys(&[typed(MOCK_PASSWORD), key(egui::Key::Enter, false)]);
+ assert_eq!(a.status, Status::Checking);
+ assert!(
+ a.login.text.is_empty(),
+ "the password left the box when it was sent"
+ );
+ settle(&mut a);
+ assert!(a.finished);
+ }
+
+ #[test]
+ fn a_wrong_password_says_so_and_can_be_tried_again() {
+ let mut a = quick(&[("alice", "Alice Example")]);
+ a.handle_keys(&[typed("nope"), key(egui::Key::Enter, false)]);
+ settle(&mut a);
+ assert_eq!(a.status, Status::Wrong);
+ assert!(!a.finished);
+ a.handle_keys(&[typed("s")]);
+ assert_eq!(a.status, Status::Typing, "typing again clears the message");
+ }
+
+ #[test]
+ fn a_broken_login_service_is_shown_as_it_is() {
+ let mut a = quick(&[("alice", "Alice Example")]);
+ a.handle_keys(&[typed(MOCK_BROKEN), key(egui::Key::Enter, false)]);
+ settle(&mut a);
+ assert_eq!(
+ a.status,
+ Status::Problem("Can't reach the login service".into())
+ );
+ }
+
+ #[test]
+ fn arrows_move_between_users_and_clear_the_box() {
+ let mut a = quick(&[("alice", "Alice"), ("bob", "Bob")]);
+ a.handle_keys(&[typed("abc")]);
+ a.handle_keys(&[key(egui::Key::ArrowRight, false)]);
+ assert_eq!(a.selected, 1);
+ assert!(a.login.text.is_empty());
+ a.handle_keys(&[key(egui::Key::ArrowRight, false)]);
+ assert_eq!(a.selected, 0, "it wraps");
+ }
+
+ #[test]
+ fn the_setup_suggests_a_user_name_until_one_is_typed() {
+ let mut a = quick(&[]);
+ a.handle_keys(&[typed("Alice Example")]);
+ assert_eq!(a.fields[1].text, "alice");
+ a.handle_keys(&[key(egui::Key::Tab, false), typed("x")]);
+ assert_eq!(
+ a.fields[1].text, "alicex",
+ "typing in it keeps what was suggested"
+ );
+ a.handle_keys(&[key(egui::Key::Tab, true), typed("!")]);
+ assert_eq!(
+ a.fields[1].text, "alicex",
+ "and it no longer follows the full name"
+ );
+ }
+
+ #[test]
+ fn tab_and_enter_walk_the_fields_and_wrap() {
+ let mut a = quick(&[]);
+ assert_eq!(a.focus, Slot::FullName);
+ a.handle_keys(&[key(egui::Key::Tab, false)]);
+ assert_eq!(a.focus, Slot::Username);
+ a.handle_keys(&[key(egui::Key::Enter, false)]);
+ assert_eq!(a.focus, Slot::Password);
+ a.handle_keys(&[
+ key(egui::Key::Tab, true),
+ key(egui::Key::Tab, true),
+ key(egui::Key::Tab, true),
+ ]);
+ assert_eq!(a.focus, Slot::Confirm, "Shift+Tab goes back and wraps");
+ }
+
+ #[test]
+ fn the_setup_will_not_submit_a_form_with_a_problem() {
+ let mut a = quick(&[]);
+ a.handle_keys(&[
+ typed("Alice Example"),
+ key(egui::Key::Tab, false),
+ key(egui::Key::Tab, false),
+ ]);
+ a.handle_keys(&[
+ typed("secret"),
+ key(egui::Key::Tab, false),
+ typed("secre"),
+ key(egui::Key::Enter, false),
+ ]);
+ assert_eq!(
+ a.status,
+ Status::Typing,
+ "the passwords differ, so nothing was sent"
+ );
+ assert_eq!(a.screen, Screen::Setup);
+ assert_eq!(a.form().problem(), Some("The passwords don't match"));
+ }
+
+ #[test]
+ fn the_first_run_makes_the_account_and_logs_it_in() {
+ let mut a = quick(&[]);
+ a.handle_keys(&[typed("Alice Example")]);
+ a.handle_keys(&[
+ key(egui::Key::Tab, false),
+ key(egui::Key::Tab, false),
+ typed(MOCK_PASSWORD),
+ ]);
+ a.handle_keys(&[
+ key(egui::Key::Tab, false),
+ typed(MOCK_PASSWORD),
+ key(egui::Key::Enter, false),
+ ]);
+ assert_eq!(a.status, Status::Checking);
+ settle(&mut a); // the account is made, and the login for it started
+ assert_eq!(
+ a.screen,
+ Screen::Login,
+ "from now on this machine has someone to log in"
+ );
+ assert_eq!(a.users[a.selected].name, "alice");
+ settle(&mut a);
+ assert!(
+ a.finished,
+ "and it was logged in with the password just chosen"
+ );
+ assert!(
+ a.fields[2].text.is_empty() && a.fields[3].text.is_empty(),
+ "the passwords are gone"
+ );
+ }
+
+ #[test]
+ fn both_screens_draw_without_trouble() {
+ for users in [&[("alice", "Alice Example"), ("bob", "Bob")][..], &[][..]] {
+ let mut a = quick(users);
+ let ctx = a.ctx.clone();
+ egui_extras::install_image_loaders(&ctx);
+ for what in ["", "typing", "wrong", "problem", "filled"] {
+ a.demo(what);
+ let _ = ctx.run_ui(egui::RawInput::default(), |ui| a.draw(ui));
+ }
+ }
+ }
+}
diff --git a/greeter/src/backend.rs b/greeter/src/backend.rs
@@ -0,0 +1,164 @@
+//! What the greeter needs from the system, behind one trait so the screens can be developed and
+//! tested without greetd: who can log in, whether this is the first run, logging in, making the
+//! first account, and power. `Mock` stands in for all of it; the real one (greetd's socket,
+//! AccountsService, logind) comes next, per ADR-0012.
+
+use std::sync::Mutex;
+use std::time::Duration;
+
+#[derive(Debug, Clone, PartialEq)]
+pub struct User {
+ pub name: String,
+ pub full_name: String,
+}
+
+#[derive(Debug, Clone, Copy, PartialEq)]
+pub enum Power {
+ Reboot,
+ PowerOff,
+}
+
+#[derive(Debug, Clone, PartialEq)]
+pub enum LoginError {
+ /// The password was refused: the person can try again.
+ Wrong,
+ /// Something else failed: shown as it is.
+ Problem(String),
+}
+
+/// Called from worker threads, since PAM and D-Bus can take seconds (a wrong password costs a
+/// delay by design), so a backend is shared and answers `&self`.
+pub trait Backend: Send + Sync {
+ /// Who can log in, in the order to show them.
+ fn users(&self) -> Vec<User>;
+ /// No human account can log in yet: show the setup, not the login.
+ fn first_run(&self) -> bool;
+ /// Checks the password and, if it is right, starts the session.
+ fn login(&self, user: &str, password: &str) -> Result<(), LoginError>;
+ /// Makes the first account (ADR-0012: through AccountsService, which polkit allows only now).
+ fn create_first_user(
+ &self,
+ full_name: &str,
+ username: &str,
+ password: &str,
+ ) -> Result<(), String>;
+ fn power(&self, action: Power) -> Result<(), String>;
+}
+
+/// A backend with accounts in memory, for the screens and the tests. The password that works is
+/// `sectorf`; logging in takes a moment, so the busy state shows.
+pub struct Mock {
+ users: Mutex<Vec<User>>,
+ delay: Duration,
+}
+
+pub const MOCK_PASSWORD: &str = "sectorf";
+/// A password that makes the mock fail the way a login service that is down does.
+pub const MOCK_BROKEN: &str = "broken";
+
+impl Mock {
+ pub fn new(users: &[(&str, &str)], delay: Duration) -> Self {
+ Self {
+ users: Mutex::new(
+ users
+ .iter()
+ .map(|(n, f)| User {
+ name: (*n).into(),
+ full_name: (*f).into(),
+ })
+ .collect(),
+ ),
+ delay,
+ }
+ }
+
+ /// A machine with accounts already.
+ pub fn with_users() -> Self {
+ Self::new(
+ &[("alice", "Alice Example"), ("bob", "Bob Prototype")],
+ Duration::from_millis(700),
+ )
+ }
+
+ /// A machine fresh from the install: nobody can log in.
+ pub fn first_run() -> Self {
+ Self::new(&[], Duration::from_millis(700))
+ }
+}
+
+impl Backend for Mock {
+ fn users(&self) -> Vec<User> {
+ self.users.lock().unwrap().clone()
+ }
+
+ fn first_run(&self) -> bool {
+ self.users.lock().unwrap().is_empty()
+ }
+
+ fn login(&self, user: &str, password: &str) -> Result<(), LoginError> {
+ std::thread::sleep(self.delay);
+ if password == MOCK_BROKEN {
+ return Err(LoginError::Problem("Can't reach the login service".into()));
+ }
+ let known = self.users.lock().unwrap().iter().any(|u| u.name == user);
+ if known && password == MOCK_PASSWORD {
+ Ok(())
+ } else {
+ Err(LoginError::Wrong)
+ }
+ }
+
+ fn create_first_user(
+ &self,
+ full_name: &str,
+ username: &str,
+ _password: &str,
+ ) -> Result<(), String> {
+ std::thread::sleep(self.delay);
+ let mut users = self.users.lock().unwrap();
+ if !users.is_empty() {
+ return Err("This computer is already set up".into());
+ }
+ users.push(User {
+ name: username.into(),
+ full_name: full_name.into(),
+ });
+ Ok(())
+ }
+
+ fn power(&self, _action: Power) -> Result<(), String> {
+ Ok(())
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ fn quick(users: &[(&str, &str)]) -> Mock {
+ Mock::new(users, Duration::ZERO)
+ }
+
+ #[test]
+ fn a_fresh_machine_is_first_run_until_an_account_exists() {
+ let m = quick(&[]);
+ assert!(m.first_run());
+ m.create_first_user("Alice Example", "alice", "pw").unwrap();
+ assert!(!m.first_run());
+ assert_eq!(m.users()[0].name, "alice");
+ assert!(m.create_first_user("Mallory", "mallory", "pw").is_err());
+ assert_eq!(m.users().len(), 1, "no second first account");
+ }
+
+ #[test]
+ fn logging_in_checks_the_password_and_the_user() {
+ let m = quick(&[("alice", "Alice Example")]);
+ assert_eq!(m.login("alice", MOCK_PASSWORD), Ok(()));
+ assert_eq!(m.login("alice", "nope"), Err(LoginError::Wrong));
+ assert_eq!(m.login("nobody", MOCK_PASSWORD), Err(LoginError::Wrong));
+ assert!(matches!(
+ m.login("alice", MOCK_BROKEN),
+ Err(LoginError::Problem(_))
+ ));
+ }
+}
diff --git a/greeter/src/field.rs b/greeter/src/field.rs
@@ -0,0 +1,224 @@
+//! The pill a text goes in, drawn the way patina-lock draws its password box: a ring while it has
+//! the keys, a caret that blinks, dots for a secret. It is not an egui `TextEdit`, whose undo
+//! history would keep copies of a password: keys are read from egui's events and the text lives
+//! here, wiped when cleared.
+//!
+//! Editing is at the end only (type, Backspace, Ctrl+Backspace, Ctrl+U or Escape to clear), which
+//! is all a name or a password needs here.
+
+use egui::{Align2, CornerRadius, FontId, Response, Sense, Stroke, StrokeKind, Ui, pos2, vec2};
+
+use crate::model::{MAX_PASSWORD, wipe};
+
+pub const SIZE: egui::Vec2 = vec2(340.0, 46.0);
+const MAX_TEXT: usize = 128;
+
+pub struct Field {
+ pub text: String,
+ pub secret: bool,
+ pub hint: &'static str,
+}
+
+/// How the ring is drawn.
+#[derive(Clone, Copy, PartialEq)]
+pub enum Tone {
+ Normal,
+ Wrong,
+ /// Dimmed, while something is being checked.
+ Busy,
+}
+
+impl Field {
+ pub fn new(hint: &'static str, secret: bool) -> Self {
+ let room = if secret { MAX_PASSWORD } else { MAX_TEXT };
+ Self {
+ text: String::with_capacity(room),
+ secret,
+ hint,
+ }
+ }
+
+ fn limit(&self) -> usize {
+ if self.secret { MAX_PASSWORD } else { MAX_TEXT }
+ }
+
+ pub fn clear(&mut self) {
+ if self.secret {
+ wipe(&mut self.text);
+ } else {
+ self.text.clear();
+ }
+ }
+
+ /// Applies the keys typed this frame; true when the text changed.
+ pub fn type_into(&mut self, events: &[egui::Event]) -> bool {
+ let before = self.text.len();
+ let mut changed = false;
+ for event in events {
+ match event {
+ egui::Event::Text(text) => {
+ let text: String = text.chars().filter(|c| !c.is_control()).collect();
+ if self.text.len() + text.len() <= self.limit() && !text.is_empty() {
+ self.text.push_str(&text);
+ changed = true;
+ }
+ }
+ egui::Event::Key {
+ key,
+ pressed: true,
+ modifiers,
+ ..
+ } => match key {
+ egui::Key::Backspace if modifiers.ctrl => {
+ self.clear();
+ changed = true;
+ }
+ egui::Key::Backspace => {
+ changed |= self.text.pop().is_some();
+ }
+ egui::Key::Escape => {
+ changed |= !self.text.is_empty();
+ self.clear();
+ }
+ egui::Key::U if modifiers.ctrl => {
+ changed |= !self.text.is_empty();
+ self.clear();
+ }
+ _ => {}
+ },
+ _ => {}
+ }
+ }
+ changed || self.text.len() != before
+ }
+
+ /// Draws the pill and answers clicks on it. `trailing` is the width kept clear on the right,
+ /// for a button the caller draws over it (the login's arrow).
+ pub fn show(
+ &self,
+ ui: &mut Ui,
+ size: egui::Vec2,
+ focused: bool,
+ tone: Tone,
+ trailing: f32,
+ ) -> Response {
+ let visuals = ui.visuals().clone();
+ let time = ui.input(|i| i.time);
+ let (rect, response) = ui.allocate_exact_size(size, Sense::click());
+ let radius = CornerRadius::same((size.y / 2.0) as u8);
+ let painter = ui.painter().clone();
+ painter.rect_filled(rect, radius, visuals.extreme_bg_color);
+ let ring = match (tone, focused) {
+ (Tone::Wrong, _) => Stroke::new(2.0, visuals.error_fg_color),
+ (_, true) => Stroke::new(2.0, visuals.selection.bg_fill),
+ (_, false) => Stroke::new(1.0, visuals.widgets.noninteractive.bg_stroke.color),
+ };
+ painter.rect_stroke(rect, radius, ring, StrokeKind::Inside);
+
+ let busy = tone == Tone::Busy;
+ let left = rect.left() + 22.0;
+ let room = rect.right() - trailing - 14.0 - left;
+ let centre = rect.center().y;
+ let ink = visuals
+ .text_color()
+ .gamma_multiply(if busy { 0.45 } else { 1.0 });
+ let count = self.text.chars().count();
+ let mut caret_x = left - 2.0;
+
+ if self.secret {
+ // Dots from the left, the newest last.
+ let step = 15.0;
+ let fit = ((room / step) as usize).max(1);
+ let shown = count.min(fit);
+ for i in 0..shown {
+ painter.circle_filled(pos2(left + 4.0 + i as f32 * step, centre), 4.5, ink);
+ }
+ caret_x = left - 2.0 + shown.min(fit) as f32 * step;
+ } else if count > 0 {
+ // The text, the end of it in view when it is longer than the room.
+ let galley = painter.layout_no_wrap(self.text.clone(), FontId::proportional(16.0), ink);
+ let offset = (room - galley.size().x).min(0.0);
+ let clipped = painter.with_clip_rect(egui::Rect::from_min_max(
+ pos2(left - 4.0, rect.top()),
+ pos2(left + room + 4.0, rect.bottom()),
+ ));
+ clipped.galley(
+ pos2(left + offset, centre - galley.size().y / 2.0),
+ galley.clone(),
+ ink,
+ );
+ caret_x = left + offset + galley.size().x + 1.0;
+ }
+ if count == 0 {
+ painter.text(
+ pos2(left + 2.0, centre),
+ Align2::LEFT_CENTER,
+ self.hint,
+ FontId::proportional(16.0),
+ visuals.weak_text_color(),
+ );
+ }
+ if focused && !busy && (time * 2.0) as i64 % 2 == 0 {
+ painter.line_segment(
+ [
+ pos2(caret_x, centre - size.y * 0.22),
+ pos2(caret_x, centre + size.y * 0.22),
+ ],
+ Stroke::new(1.5, visuals.text_color()),
+ );
+ }
+ response
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ fn typed(text: &str) -> egui::Event {
+ egui::Event::Text(text.into())
+ }
+
+ fn key(key: egui::Key, ctrl: bool) -> egui::Event {
+ egui::Event::Key {
+ key,
+ physical_key: None,
+ pressed: true,
+ repeat: false,
+ modifiers: egui::Modifiers {
+ ctrl,
+ ..Default::default()
+ },
+ }
+ }
+
+ #[test]
+ fn typing_appends_and_backspace_removes_from_the_end() {
+ let mut f = Field::new("Name", false);
+ assert!(f.type_into(&[typed("Al"), typed("ice")]));
+ assert_eq!(f.text, "Alice");
+ assert!(f.type_into(&[key(egui::Key::Backspace, false)]));
+ assert_eq!(f.text, "Alic");
+ assert!(!Field::new("x", false).type_into(&[key(egui::Key::Backspace, false)]));
+ }
+
+ #[test]
+ fn escape_and_ctrl_u_clear_and_a_secret_keeps_its_room() {
+ let mut f = Field::new("Password", true);
+ f.type_into(&[typed("hunter2")]);
+ assert!(f.type_into(&[key(egui::Key::Escape, false)]));
+ assert!(f.text.is_empty());
+ assert!(f.text.capacity() >= MAX_PASSWORD);
+ f.type_into(&[typed("again"), key(egui::Key::U, true)]);
+ assert!(f.text.is_empty());
+ }
+
+ #[test]
+ fn control_characters_are_dropped_and_the_length_is_capped() {
+ let mut f = Field::new("Name", false);
+ f.type_into(&[typed("a\tb\nc")]);
+ assert_eq!(f.text, "abc");
+ f.type_into(&[typed(&"x".repeat(500))]);
+ assert!(f.text.len() <= MAX_TEXT);
+ }
+}
diff --git a/greeter/src/main.rs b/greeter/src/main.rs
@@ -0,0 +1,94 @@
+//! patina-greeter: Sector F Linux's login screen, with the first-run setup in it (ADR-0012). greetd
+//! runs it as the greeter user inside a kiosk compositor (`cage`); it shows the login, or, on a
+//! machine with no account, the setup that makes the first one.
+
+mod app;
+mod backend;
+mod field;
+mod model;
+
+use std::sync::Arc;
+
+use backend::{Backend, Mock};
+
+const USAGE: &str = "usage: patina-greeter
+
+The login screen. Run by greetd inside a kiosk compositor: `cage -s -- patina-greeter`.
+
+For trying the screens without greetd, on a mock whose password is `sectorf`:
+ PATINA_GREETER_MOCK=login a machine with accounts (alice and bob)
+ PATINA_GREETER_MOCK=setup a machine fresh from the install, with none
+ PATINA_GREETER_SIZE=1280x800 a window of that size, not full screen
+ PATINA_GREETER_DEMO=... fills a screen in: login: typing, wrong, problem; setup: filled, problem
+ PATINA_GREETER_SCREENSHOT=file.png saves the screen to a file and quits
+ PATINA_SKIN=name another skin";
+
+fn main() -> eframe::Result {
+ match std::env::args().nth(1).as_deref() {
+ None => {}
+ Some("-h" | "--help") => {
+ println!("{USAGE}");
+ return Ok(());
+ }
+ Some("-V" | "--version") => {
+ println!("patina-greeter {}", env!("CARGO_PKG_VERSION"));
+ return Ok(());
+ }
+ Some(_) => {
+ eprintln!("{USAGE}");
+ std::process::exit(2);
+ }
+ }
+
+ let backend: Arc<dyn Backend> = match std::env::var("PATINA_GREETER_MOCK").as_deref() {
+ Ok("setup") => Arc::new(Mock::first_run()),
+ Ok(_) => Arc::new(Mock::with_users()),
+ Err(_) => {
+ eprintln!(
+ "patina-greeter: the greetd backend isn't written yet; \
+ PATINA_GREETER_MOCK=login or setup runs the screens on a mock"
+ );
+ std::process::exit(2);
+ }
+ };
+
+ let mut viewport = egui::ViewportBuilder::default()
+ .with_title("Sector F Linux")
+ .with_app_id("com.sectorflabs.Greeter")
+ .with_decorations(false);
+ viewport = match window_size() {
+ Some(size) => viewport.with_inner_size(size),
+ None => viewport.with_fullscreen(true),
+ };
+ let options = eframe::NativeOptions {
+ viewport,
+ ..Default::default()
+ };
+ eframe::run_native(
+ "patina-greeter",
+ options,
+ Box::new(move |cc| {
+ let mut app = app::App::new(cc, backend);
+ if let Ok(what) = std::env::var("PATINA_GREETER_DEMO") {
+ app.demo(&what);
+ }
+ if let Ok(path) = std::env::var("PATINA_GREETER_SCREENSHOT") {
+ app.screenshot_to(path.into());
+ }
+ Ok(Box::new(app))
+ }),
+ )
+}
+
+/// `PATINA_GREETER_SIZE=1280x800`, for a window on a desktop while developing.
+fn window_size() -> Option<[f32; 2]> {
+ let text = std::env::var("PATINA_GREETER_SIZE").ok()?;
+ let (w, h) = text.split_once('x')?;
+ Some([w.parse().ok()?, h.parse().ok()?])
+}
+
+impl eframe::App for app::App {
+ fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
+ self.draw(ui);
+ }
+}
diff --git a/greeter/src/model.rs b/greeter/src/model.rs
@@ -0,0 +1,170 @@
+//! What the greeter decides without drawing anything: whether a name or a password is acceptable,
+//! the user name to suggest from a full name, and wiping a secret. Tested on its own.
+
+/// Longer than any password; what is typed past it is dropped (as patina-lock does).
+pub const MAX_PASSWORD: usize = 1024;
+
+/// What AccountsService accepts as a user name, checked first so the person typing is told why.
+pub fn check_username(name: &str) -> Result<(), &'static str> {
+ let mut chars = name.chars();
+ match chars.next() {
+ None => return Err("Choose a user name"),
+ Some(c) if !c.is_ascii_lowercase() => {
+ return Err("The user name has to start with a lower case letter");
+ }
+ Some(_) => {}
+ }
+ if name.len() > 31 {
+ return Err("The user name is too long");
+ }
+ if !chars.all(|c| c.is_ascii_lowercase() || c.is_ascii_digit() || c == '-' || c == '_') {
+ return Err("The user name can use lower case letters, digits, - and _");
+ }
+ Ok(())
+}
+
+pub fn check_full_name(name: &str) -> Result<(), &'static str> {
+ let name = name.trim();
+ if name.is_empty() {
+ return Err("Enter your name");
+ }
+ if name.chars().count() > 64 {
+ return Err("The name is too long");
+ }
+ if name.chars().any(|c| c == ':' || c.is_control()) {
+ return Err("The name can't have a colon in it");
+ }
+ Ok(())
+}
+
+/// A user name to start from: the first word of the full name, lower case, letters and digits
+/// only, starting with a letter. Empty when nothing usable is left, and then the person types one.
+pub fn suggest_username(full_name: &str) -> String {
+ let first = full_name.split_whitespace().next().unwrap_or("");
+ let mut name: String = first
+ .chars()
+ .filter(char::is_ascii_alphanumeric)
+ .map(|c| c.to_ascii_lowercase())
+ .collect();
+ while name.chars().next().is_some_and(|c| c.is_ascii_digit()) {
+ name.remove(0);
+ }
+ name.truncate(31);
+ name
+}
+
+/// Clears a secret, zeroing its bytes first, and keeps its room so typing again does not move it.
+pub fn wipe(secret: &mut String) {
+ let mut bytes = std::mem::take(secret).into_bytes();
+ bytes.fill(0);
+ std::hint::black_box(&bytes);
+ secret.reserve(MAX_PASSWORD);
+}
+
+/// The first-run form, in the order it is filled in.
+#[derive(Default)]
+pub struct SetupForm {
+ pub full_name: String,
+ pub username: String,
+ pub password: String,
+ pub confirm: String,
+}
+
+impl SetupForm {
+ /// The first thing wrong with it, or `None` when the account can be made.
+ pub fn problem(&self) -> Option<&'static str> {
+ if let Err(e) = check_full_name(&self.full_name) {
+ return Some(e);
+ }
+ if let Err(e) = check_username(&self.username) {
+ return Some(e);
+ }
+ if self.password.is_empty() {
+ return Some("Choose a password");
+ }
+ if self.password != self.confirm {
+ return Some("The passwords don't match");
+ }
+ None
+ }
+
+ pub fn wipe(&mut self) {
+ wipe(&mut self.password);
+ wipe(&mut self.confirm);
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn user_names_follow_what_accountsservice_takes() {
+ for ok in ["alice", "a", "bob_2", "mary-jane", "x1"] {
+ assert_eq!(check_username(ok), Ok(()), "{ok}");
+ }
+ for bad in [
+ "",
+ "Alice",
+ "1abc",
+ "-x",
+ "a b",
+ "a:b",
+ "ålice",
+ "root.",
+ &"a".repeat(32),
+ ] {
+ assert!(check_username(bad).is_err(), "{bad:?}");
+ }
+ assert_eq!(check_username(&"a".repeat(31)), Ok(()));
+ }
+
+ #[test]
+ fn full_names_are_checked() {
+ assert_eq!(check_full_name("Alice Example"), Ok(()));
+ assert_eq!(check_full_name("Åsa Öberg"), Ok(()));
+ assert!(check_full_name(" ").is_err());
+ assert!(check_full_name("A:B").is_err());
+ assert!(check_full_name("tab\there").is_err());
+ assert!(check_full_name(&"x".repeat(65)).is_err());
+ }
+
+ #[test]
+ fn a_user_name_is_suggested_from_the_first_word() {
+ assert_eq!(suggest_username("Alice Example"), "alice");
+ assert_eq!(suggest_username(" mary-jane smith"), "maryjane");
+ assert_eq!(suggest_username("007 Bond"), "");
+ assert_eq!(suggest_username("42nd Street"), "nd");
+ assert_eq!(suggest_username(""), "");
+ assert_eq!(suggest_username(&"x".repeat(50)).len(), 31);
+ for name in ["Alice Example", "bob", "Dr. Who"] {
+ let s = suggest_username(name);
+ assert!(
+ s.is_empty() || check_username(&s).is_ok(),
+ "{name} -> {s:?}"
+ );
+ }
+ }
+
+ #[test]
+ fn wiping_empties_and_keeps_room() {
+ let mut password = String::from("hunter2");
+ wipe(&mut password);
+ assert!(password.is_empty());
+ assert!(password.capacity() >= MAX_PASSWORD);
+ }
+
+ #[test]
+ fn the_form_names_the_first_problem() {
+ let mut form = SetupForm::default();
+ assert_eq!(form.problem(), Some("Enter your name"));
+ form.full_name = "Alice Example".into();
+ assert_eq!(form.problem(), Some("Choose a user name"));
+ form.username = "alice".into();
+ assert_eq!(form.problem(), Some("Choose a password"));
+ form.password = "secret".into();
+ assert_eq!(form.problem(), Some("The passwords don't match"));
+ form.confirm = "secret".into();
+ assert_eq!(form.problem(), None);
+ }
+}
diff --git a/greeter/vm-keys.py b/greeter/vm-keys.py
@@ -0,0 +1,22 @@
+"""Types into the test VM through QEMU's monitor, as a keyboard would: vm-keys.py 'Alice\tpw\n'.
+
+Escapes: \t Tab, \n Enter, \b Backspace. Capitals use Shift; a space, - _ and . are handled; other
+symbols are not.
+"""
+import os
+import socket, sys, time
+MON = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "linux", "out", "monitor.sock")
+s = socket.socket(socket.AF_UNIX); s.connect(MON); s.settimeout(1)
+try: s.recv(4096)
+except Exception: pass
+def cmd(c):
+ s.sendall((c + "\n").encode()); time.sleep(0.07)
+ try: s.recv(4096)
+ except Exception: pass
+SPECIAL = {" ": "spc", "-": "minus", "_": "shift-minus", ".": "dot", "\t": "tab", "\n": "ret", "\b": "backspace"}
+def key(ch):
+ if ch in SPECIAL: return SPECIAL[ch]
+ if ch.isupper(): return "shift-" + ch.lower()
+ return ch
+for ch in sys.argv[1].encode().decode("unicode_escape"):
+ cmd("sendkey " + key(ch))
diff --git a/greeter/vm-try.sh b/greeter/vm-try.sh
@@ -0,0 +1,59 @@
+#!/usr/bin/env bash
+# Tries the greeter in the test VM (linux/vm), under cage as greetd runs it, on the mock backend:
+# the real compositor, the image's own Mesa and a real keyboard, which a desktop-less shell
+# does not have. The VM must be up (`make run` in the repository root).
+#
+# greeter/vm-try.sh build build it in the Fedora builder (links what the image has)
+# greeter/vm-try.sh install put the binary in the VM (a writable /usr until it reboots)
+# greeter/vm-try.sh show login run it there: login or setup, with a demo state if given
+# greeter/vm-try.sh show setup filled (GREETER_ENV='PATINA_SKIN=...' adds environment)
+# greeter/vm-try.sh type 'Alice\tpw\n' type into it (\t Tab, \n Enter)
+# greeter/vm-try.sh shot [file.png] the VM's screen (default linux/out/screen.png)
+# greeter/vm-try.sh restore greetd back on gtkgreet, which survives a reboot
+set -euo pipefail
+here=$(cd "$(dirname "$0")" && pwd)
+repo=$(cd "$here/.." && pwd)
+vm="$repo/linux/vm/vm.sh"
+
+greetd() { # greetd's session command, restarted
+ $vm ssh "cat > /etc/greetd/config.toml <<CFG
+[terminal]
+vt = 1
+
+[default_session]
+command = \"$1\"
+user = \"greetd\"
+CFG
+systemctl stop greetd 2>/dev/null; systemctl reset-failed greetd; systemctl start greetd; sleep 10"
+}
+
+case "${1:-}" in
+ build)
+ docker run --rm --user "$(id -u):$(id -g)" -e CARGO_HOME=/cargo -e HOME=/tmp \
+ -v patina-os-cargo:/cargo -v "$repo:/repo" -w /repo/greeter patina-os-desktop-builder \
+ cargo build --release --target-dir /repo/greeter/target-fedora
+ ;;
+ install)
+ $vm ssh 'touch /usr/.w 2>/dev/null && rm -f /usr/.w || bootc usroverlay >/dev/null 2>&1; systemctl stop greetd 2>/dev/null; sleep 1
+ cat > /usr/libexec/patina-greeter && chmod 755 /usr/libexec/patina-greeter && restorecon /usr/libexec/patina-greeter' \
+ < "$here/target-fedora/release/patina-greeter"
+ ;;
+ show)
+ greetd "env PATINA_GREETER_MOCK=${2:?login or setup} PATINA_GREETER_DEMO=${3:-} ${GREETER_ENV:-} cage -s -- /usr/libexec/patina-greeter"
+ ;;
+ type)
+ python3 "$here/vm-keys.py" "${2:?what to type}"
+ ;;
+ shot)
+ # QEMU writes the file itself, relative to its own directory: so the path is made absolute.
+ out=${2:-$repo/linux/out/screen.png}
+ $vm screenshot "$(cd "$(dirname "$out")" && pwd)/$(basename "$out")"
+ ;;
+ restore)
+ greetd "cage -s -- gtkgreet -c 'patina-session --session'"
+ ;;
+ *)
+ sed -n '2,13p' "$0" | sed 's/^# \{0,1\}//'
+ exit 2
+ ;;
+esac