commit 4105554f68bad0c86bc1564849a45fad68e90e70 Author: Ansho Rei Date: Wed Nov 4 00:58:18 2026 +0100 feat: add a controller-driven Subsonic player for SteamOS Browses a Subsonic library and plays it through mpv, driven by a gamepad or keyboard. The UI scales from the window's physical height rather than the compositor's scale factor, so it keeps its proportions on a Steam Deck and on a 4K TV, where other players open small or scale badly. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..44cd83b --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,6782 @@ +# 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.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "023da0e5097f46df7092d5280b02efb9bbf8d93298daeced42652463e357d636" +dependencies = [ + "accesskit", + "accesskit_consumer", + "atspi-common", + "phf", + "serde", + "zvariant", +] + +[[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_ios" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "750c4e9f6ce888dfe8a10c0f1b5ceb646a7854fd46579d74919219d1bb314083" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.16.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-ui-kit 0.2.2", +] + +[[package]] +name = "accesskit_macos" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce02dc63b43f0c9296af9ac946312a2dc8814427d7a64d2d600971dac55b6076" +dependencies = [ + "accesskit", + "accesskit_consumer", + "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.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03e156ed3802e35eefe894ef2671bc6c889303d8a7e110b5e1b48f504b91362f" +dependencies = [ + "accesskit", + "accesskit_atspi_common", + "async-channel", + "async-executor", + "async-task", + "atspi", + "futures-lite", + "futures-util", + "serde", + "zbus", +] + +[[package]] +name = "accesskit_windows" +version = "0.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "106c2b961215864d1c2e703ee63269c25c4e80a577ffb2c1017b9c17dcdf83a1" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.16.1", + "static_assertions", + "windows", + "windows-core", +] + +[[package]] +name = "accesskit_winit" +version = "0.33.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5b41e63a69f36d9f1f41e70464c7e5f72eee485ef26aab19f0b4f86e6c0a84c" +dependencies = [ + "accesskit", + "accesskit_ios", + "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 = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[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 = "annotate-snippets" +version = "0.12.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a5b0a5ab8561c603f16c3b78c24a386b1f70e7fc1b1b1e8c15738828e4a176" +dependencies = [ + "anstyle", + "memchr", + "unicode-width", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "arboard" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917" +dependencies = [ + "clipboard-win", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "windows-sys 0.61.2", + "wl-clipboard-rs", + "x11rb", +] + +[[package]] +name = "arc-swap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "380962b3d93b99642e50b9febf72c071e97e8b32d86eae9cf4ef582bb960ae6e" +dependencies = [ + "rustversion", +] + +[[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.9", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 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.9", +] + +[[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 = "aws-lc-rs" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "048006790404103c488e6c5616b3e7e702a71292aadda08e8f7698a9e0d2eb53" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.47.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bfbe32ac36b3c428696ce315464181bc4029d689fd58e3f2a4e58c252242f52" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", + "pkg-config", +] + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "bincode" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740" +dependencies = [ + "serde", + "unty", +] + +[[package]] +name = "bindgen" +version = "0.72.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895" +dependencies = [ + "bitflags 2.13.2", + "cexpr", + "clang-sys", + "itertools 0.13.0", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash 2.1.3", + "shlex 1.3.0", + "syn 2.0.119", +] + +[[package]] +name = "bit-set" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d" +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" +dependencies = [ + "serde_core", +] + +[[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 = "borsh" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a" +dependencies = [ + "bytes", + "cfg_aliases", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "by_address" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06" + +[[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.9", +] + +[[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 = "cc" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "375989decec1a0fa424442bed520fa12ede43a48475ce8c7417d2c69b32b5f6b" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex 2.0.1", +] + +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom 7.1.3", +] + +[[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 = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures", + "rand_core", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "clang-sys" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a" +dependencies = [ + "glob", + "libc", + "libloading", +] + +[[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 = "clru" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "197fd99cb113a8d5d9b6376f3aa817f32c1078f2343b714fff7d2ca44fdf67d5" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + +[[package]] +name = "codespan-reporting" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "const-field-offset" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d535c69e75b4e3c69e17205b5b37a91936c54086cecd339b70071500786acb9c" +dependencies = [ + "const-field-offset-macro", + "field-offset", +] + +[[package]] +name = "const-field-offset-macro" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d5848843a221ac268cfdd6bfd14e68d5d3dfa79d52c880aafab93f9517fb74" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "convert_case" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "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" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "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 0.9.4", + "libc", +] + +[[package]] +name = "countme" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7704b5fdd17b18ae31c4c1da5a2e0305a2bf17b5249300a9ee9ed7b72114c636" + +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f97d3416d5337d15c4b0d78c8c91df922ca143f57ec20e2d1c188333047ef04" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "critical-section" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" + +[[package]] +name = "crossbeam-channel" +version = "0.5.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98b0cc327b5bc766e7fda9c9260cc0fa81b43a8e240440422dff70788e3f9ef1" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-queue" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03e8bd762f7479489c70ed6c768ddca99d7296857de437a68dcb2a94365b3fae" +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 = "ctor" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83cf0d42651b16c6dfe68685716d18480d18a9c39c62d76e8cf3eb6ed5d8bcbf" +dependencies = [ + "dtor", +] + +[[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 = "defmt" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a0795ac740cb54d7b3775c9c17345f6aaecf884c01733b39d6017738e0e3e1" +dependencies = [ + "bitflags 1.3.2", + "defmt-macros", +] + +[[package]] +name = "defmt-macros" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "840bb056bd99c495c9188198a258ab787c79f306d864db3e6e8451442d6d8366" +dependencies = [ + "defmt-parser", + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "defmt-parser" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71958f69fb2de856c5dd51ac9377e986ca1aa5919f931bf5395a807277f889a0" +dependencies = [ + "thiserror 2.0.21", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", + "unicode-xid", +] + +[[package]] +name = "directories" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16f5094c54661b38d03bd7e50df373292118db60b585c08a411c6d840017fe7d" +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.9", +] + +[[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 = "drm" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bc8c5c6c2941f70a55c15f8d9f00f9710ebda3ffda98075f996a0e6c92756f" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "drm-ffi", + "drm-fourcc", + "libc", + "rustix 0.38.44", +] + +[[package]] +name = "drm-ffi" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51a91c9b32ac4e8105dec255e849e0d66e27d7c34d184364fb93e469db08f690" +dependencies = [ + "drm-sys", + "rustix 1.1.6", +] + +[[package]] +name = "drm-fourcc" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0aafbcdb8afc29c1a7ee5fbe53b5d62f4565b35a042a662ca9fecd0b54dae6f4" + +[[package]] +name = "drm-sys" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8e1361066d91f5ffccff060a3c3be9c3ecde15be2959c1937595f7a82a9f8" +dependencies = [ + "libc", + "linux-raw-sys 0.9.4", +] + +[[package]] +name = "dtor" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edf234dd1594d6dd434a8fb8cada51ddbbc593e40e4a01556a0b31c62da2775b" + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "env_filter" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "900d271a03799a1ee8d1ca9b19893b48ca674a9284fefcfb85f05e74ed314217" +dependencies = [ + "log", + "regex", +] + +[[package]] +name = "env_logger" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de671bd27a75a797dc9ae289ba1e77276e75e2026408aab65185384e2d5cd3f6" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "jiff", + "log", +] + +[[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 = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "femtovg" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31eebf3ab1b76359ccd5f850c07a7c6b2722c64d9127c40e02358e83f3ff9b1a" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "fnv", + "glow", + "imgref", + "itertools 0.15.0", + "log", + "rgb", + "slotmap", + "swash", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "filetime" +version = "0.2.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759" +dependencies = [ + "cfg-if", + "libc", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" + +[[package]] +name = "fixed_decimal" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2214fb00f669ee96bee5bb29dfb1ddabe058b2bc426817efc79afa03c9bc55ae" +dependencies = [ + "displaydoc", + "smallvec", + "writeable", +] + +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "float-cmp" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "font-types" +version = "0.12.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835ae9d781464a79026cde387f9cbc650c9a4909d7cf7e658b127e3c35d2f35d" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "fontdb" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2660c5e9157bf76d2db1294e4a9feba604ef610819a3b591088d0d8392a3290f" +dependencies = [ + "log", + "slotmap", + "tinyvec", +] + +[[package]] +name = "fontique" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6688bc1294fe7117d788937b6c53480169b29c566954af490830d4c09da9516a" +dependencies = [ + "hashbrown 0.17.1", + "linebender_resource_handle", + "memmap2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-text", + "objc2-foundation 0.3.2", + "parlance", + "read-fonts", + "roxmltree", + "smallvec", + "windows", + "windows-core", + "yeslogic-fontconfig-sys", +] + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "futures" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gbm" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce852e998d3ca5e4a97014fb31c940dc5ef344ec7d364984525fd11e8a547e6a" +dependencies = [ + "bitflags 2.13.2", + "drm", + "drm-fourcc", + "gbm-sys", + "libc", +] + +[[package]] +name = "gbm-sys" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c13a5f2acc785d8fb6bf6b7ab6bfb0ef5dad4f4d97e8e70bb8e470722312f76f" +dependencies = [ + "libc", +] + +[[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.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 6.0.0", + "rand_core", + "wasm-bindgen", +] + +[[package]] +name = "gif" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee8cfcc411d9adbbaba82fb72661cc1bcca13e8bba98b364e62b2dba8f960159" +dependencies = [ + "color_quant", + "weezl", +] + +[[package]] +name = "gilrs" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "902fb00d3f6398e635be22e5c837b303c501835cca7ac11a47bba138f7aafdd8" +dependencies = [ + "fnv", + "gilrs-core", + "log", + "uuid", + "vec_map", +] + +[[package]] +name = "gilrs-core" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc7f0ce6237abcc0523f2a5502b1e3fe5802daaae47ac14e166fe49551301ea9" +dependencies = [ + "inotify", + "js-sys", + "libc", + "libudev-sys", + "log", + "nix", + "objc2-core-foundation", + "objc2-io-kit", + "uuid", + "vec_map", + "wasm-bindgen", + "web-sys", + "windows", +] + +[[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 = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "glow" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "263218b0ba2b0715c3370fb04674f5f8aa331594b521c94ff0a8e4a8472d1386" +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 = "grid" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b40ca9252762c466af32d0b1002e91e4e1bc5398f77455e55474deb466355ff5" + +[[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.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c03d949a14aa089bbb282f7dd76a498a7f684428e4257202efc119ec010376f9" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "read-fonts", + "smallvec", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +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 = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" + +[[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 = "htmlparser" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48ce8546b993eaf241d69ded33b1be6d205dd9857ec879d9d18bd05d3676e144" + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +dependencies = [ + "atomic-waker", + "bytes", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "httparse", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "i-slint-backend-linuxkms" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f519a8611a4982921e46e391015e5e40ceac5cc63813333ef91ada77df180d8" +dependencies = [ + "bytemuck", + "calloop 0.14.5", + "cfg_aliases", + "drm", + "gbm", + "glutin", + "i-slint-common", + "i-slint-core", + "i-slint-renderer-femtovg", + "i-slint-renderer-software", + "input", + "libseat", + "memmap2", + "nix", + "raw-window-handle", + "xkbcommon", +] + +[[package]] +name = "i-slint-backend-selector" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb974705d61ba56034f6129ff61f3e6282a2c0c07752f25e6cb417d81c0f0958" +dependencies = [ + "cfg-if", + "cfg_aliases", + "i-slint-backend-linuxkms", + "i-slint-backend-testing", + "i-slint-backend-winit", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "i-slint-renderer-femtovg", +] + +[[package]] +name = "i-slint-backend-testing" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01943d6c5ea5bc913d497bdaa423c309e7627afff47a6794bfd13be5c564209f" +dependencies = [ + "cfg_aliases", + "i-slint-common", + "i-slint-core", + "i-slint-renderer-software", + "vtable", +] + +[[package]] +name = "i-slint-backend-winit" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae4fcf1b19e9cb109984d2af87d2b9485388c619265bff71dd523133888bee2" +dependencies = [ + "accesskit", + "accesskit_winit", + "arboard", + "block2 0.6.2", + "bytemuck", + "cfg-if", + "cfg_aliases", + "futures", + "glutin", + "glutin-winit", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "i-slint-renderer-femtovg", + "i-slint-renderer-skia", + "i-slint-renderer-software", + "imgref", + "lyon_path", + "muda", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "objc2-ui-kit 0.3.2", + "pin-weak", + "raw-window-handle", + "rgb", + "scoped-tls-hkt", + "scopeguard", + "softbuffer", + "strum", + "vtable", + "wasm-bindgen", + "web-sys", + "webbrowser", + "windows", + "winit", + "zbus", +] + +[[package]] +name = "i-slint-common" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68a578f3e4b681b2b9cbd326d3be19716e2fac51d00a8a5b00c0ef4ae923b5e6" +dependencies = [ + "derive_more", + "fontique", + "htmlparser", + "icu_decimal", + "icu_locale_core", + "icu_provider", + "pulldown-cmark", + "resvg", + "skrifa", +] + +[[package]] +name = "i-slint-compiler" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f55d48ebef05e2bf09ba5a1fc67bcb11033b9e12a2a50ed3105c7d25e2b539d0" +dependencies = [ + "annotate-snippets", + "by_address", + "data-url", + "derive_more", + "i-slint-common", + "icu_normalizer", + "icu_properties", + "image", + "indexmap", + "itertools 0.15.0", + "lyon_extra", + "lyon_path", + "num_enum", + "proc-macro2", + "quote", + "rayon", + "resvg", + "rowan", + "rspolib", + "skrifa", + "smol_str 0.3.7", + "strum", + "swash", + "typed-index-collections", + "unicode-segmentation", + "url", +] + +[[package]] +name = "i-slint-core" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2ea15059d70bc31b1a8b1eb4c34f2c5df04cb7e53f36179b43c0261231d646" +dependencies = [ + "accesskit", + "async-channel", + "bitflags 2.13.2", + "cfg-if", + "chrono", + "clru", + "const-field-offset", + "derive_more", + "euclid", + "i-slint-common", + "i-slint-core-macros", + "icu_normalizer", + "image", + "js-sys", + "ksni", + "lyon_algorithms", + "lyon_extra", + "lyon_geom", + "lyon_path", + "num-traits", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "once_cell", + "parley", + "pin-project", + "pin-weak", + "portable-atomic", + "raw-window-handle", + "resvg", + "rgb", + "scopeguard", + "skrifa", + "slab", + "strum", + "swash", + "sys-locale", + "taffy", + "unicode-linebreak", + "unicode-script", + "unicode-segmentation", + "vtable", + "wasm-bindgen", + "web-sys", + "web-time", + "wgpu", + "windows", +] + +[[package]] +name = "i-slint-core-macros" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f5a8a076de52f53be80caa826599ed2107b54c9d4a421e66dc06cf893a984c" +dependencies = [ + "quote", + "serde_json", + "syn 3.0.9", +] + +[[package]] +name = "i-slint-renderer-femtovg" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb0de504d57cdadf80c2abf7bcb8b7135a3716aee1f41b6ebb90ea93e3649d7c" +dependencies = [ + "cfg-if", + "const-field-offset", + "femtovg", + "glow", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "imgref", + "lyon_path", + "pin-weak", + "rgb", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "i-slint-renderer-skia" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc9c1cf02385f1d26fc1f423544e52390a8e5c2d89420a8042aa94b4fe109d1f" +dependencies = [ + "bytemuck", + "cfg-if", + "cfg_aliases", + "clru", + "const-field-offset", + "glow", + "glutin", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "lyon_path", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", + "objc2-quartz-core 0.3.2", + "pin-weak", + "raw-window-handle", + "read-fonts", + "scoped-tls-hkt", + "skia-safe", + "softbuffer", + "spin_on", + "unicode-segmentation", + "vtable", + "wgpu", + "wgpu-hal", + "windows", + "windows-core", + "write-fonts", +] + +[[package]] +name = "i-slint-renderer-software" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f8c641e138a2cc96537cac4481f5c7c8bb8dcc66d09acaed269329c8738628a" +dependencies = [ + "bytemuck", + "clru", + "derive_more", + "euclid", + "i-slint-common", + "i-slint-core", + "lyon_path", + "num-traits", + "skrifa", + "swash", + "zeno", +] + +[[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_decimal" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1150ad5e272740670464934ee76facda43ef2e11f85c27b7ba76ccb33edf2d05" +dependencies = [ + "displaydoc", + "fixed_decimal", + "icu_decimal_data", + "icu_locale_core", + "icu_locale_fallback", + "icu_plurals", + "icu_provider", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_decimal_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5595ab78370d48abd24a062f3db115d5108dd0b65634352036cae532aebb0df8" + +[[package]] +name = "icu_locale_core" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" +dependencies = [ + "displaydoc", + "litemap", + "serde", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "406e9ae5b95d8aa37db6293405931b766a6172d1848daee22d70eb44aa78a43c" +dependencies = [ + "icu_locale_core", + "icu_locale_fallback_data", + "icu_provider", + "potential_utf", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c" + +[[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_plurals" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ef046647b445acf95ce0f8083fa292467d3df649959fa9a20f3f8abfd957c5d" +dependencies = [ + "fixed_decimal", + "icu_locale_fallback", + "icu_plurals_data", + "icu_provider", + "zerovec", +] + +[[package]] +name = "icu_plurals_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d43ff7df2c1a1d41588a6ddcba354d513d4a3e10eec22c06fe56d13c12a848ea" + +[[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", + "serde", + "stable_deref_trait", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61b195dc605f81aa181bec9b3bd14e26cc71b903e4644f6af578ca9772c7a710" +dependencies = [ + "icu_collections", + "icu_locale_fallback", + "icu_provider", + "icu_segmenter_data", + "potential_utf", + "smallvec", + "utf8_iter", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "913a7d294ad056474749152107309fdee3ec17d2482d1ab70fdc61a81c64b9a3" + +[[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", + "image-webp", + "moxcms", + "num-traits", + "png", + "zune-core", + "zune-jpeg", +] + +[[package]] +name = "image-webp" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" +dependencies = [ + "byteorder-lite", + "quick-error", +] + +[[package]] +name = "imagesize" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65b27460c2c92b037f3f94c538ed9a3342f3fdf923606781629ccb35f82d042a" + +[[package]] +name = "imgref" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e44b0a4eaa4c82f441d50a963f2d5f05a787240aeee097597033e72accfd22f" + +[[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 = "inotify" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cc00ea907cab49550b7da656f80ebb97be1b997d931fbcd28d39734e17ce592" +dependencies = [ + "bitflags 2.13.2", + "inotify-sys", + "libc", +] + +[[package]] +name = "inotify-sys" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c033f80b2c113cdf91ab7a33faa9cbc014726dcad99880c8609af2a370edf37d" +dependencies = [ + "libc", +] + +[[package]] +name = "input" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9793345a65d71317763a33066b5d8351f8760dde8d4930fe9e39b5f14a7959d" +dependencies = [ + "bitflags 2.13.2", + "input-sys", + "libc", + "log", + "udev", +] + +[[package]] +name = "input-sys" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36eee07d8e02bd95bf52b2e642cf13d33701b94c6e4b04fbf1d1fb07e9cb19e7" + +[[package]] +name = "io-lifetimes" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" +dependencies = [ + "hermit-abi 0.3.9", + "libc", + "windows-sys 0.48.0", +] + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jiff" +version = "0.2.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ac703058abac89e5c39b0b879dce2b6b14a4ba36600c7e7e3d0c60a6883ef3c" +dependencies = [ + "defmt", + "jiff-core", + "jiff-static", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", +] + +[[package]] +name = "jiff-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aee43309eb53bafb8c36d35d6e444769c8f8e6206a9fbf7546f5db9d7d4a0e93" +dependencies = [ + "defmt", + "log", +] + +[[package]] +name = "jiff-static" +version = "0.2.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dc32470c67eb7d0e9ccb74303fa925313dc04cecb1aa048beaa6f391e36a93d" +dependencies = [ + "jiff-core", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[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.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.13.2", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "khronos_api" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" + +[[package]] +name = "ksni" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bcc1cb43797140f74b711f1c4a49f48a7a7429f211c5fb78264e7bcd1e99caf" +dependencies = [ + "arc-swap", + "async-executor", + "async-io", + "async-lock", + "crossbeam-queue", + "futures-channel", + "futures-lite", + "futures-util", + "pastey", + "serde", + "task-local", + "zbus", +] + +[[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 = "lazy_static" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" + +[[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 = "libseat" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6656c69b6e0366ffb83faa232f3e4fda5fc91161722d140f2c95ce2e90b1ef31" +dependencies = [ + "errno", + "libseat-sys", + "log", +] + +[[package]] +name = "libseat-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a484fa48be5f62a8d3ffed767779d0ab808cfead91de98ef4362d469097dfb" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libudev-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324" +dependencies = [ + "libc", + "pkg-config", +] + +[[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.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" + +[[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 = "lru" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9f71e3591c7ec44d3e563e87bf14ddc2bada8519dca046e5b0e560cd004e2d" +dependencies = [ + "hashbrown 0.17.1", +] + +[[package]] +name = "lru-slab" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f" + +[[package]] +name = "lyon_algorithms" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a6b9d4e8b48acd531fbf1241ad9b270df6e60b6b92bdea1469f4f40899d805" +dependencies = [ + "lyon_path", + "num-traits", +] + +[[package]] +name = "lyon_extra" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7755f08423275157ad1680aaecc9ccb7e0cc633da3240fea2d1522935cc15c72" +dependencies = [ + "lyon_path", + "thiserror 2.0.21", +] + +[[package]] +name = "lyon_geom" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82dd26aa4dc0b5b70b9115de59824842bcb43cf4a28e1b1e6d0ad148c93f93e" +dependencies = [ + "arrayvec", + "euclid", + "num-traits", +] + +[[package]] +name = "lyon_path" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c463f9c428b7fc5ec885dcd39ce4aa61e29111d0e33483f6f98c74e89d8621e" +dependencies = [ + "lyon_geom", + "num-traits", +] + +[[package]] +name = "md5" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebb8d8732c6a6df3d8f032a82911cfc747e00efb95cc46e8d0acd5b5b88570c" + +[[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 = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "muda" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878" +dependencies = [ + "crossbeam-channel", + "dpi", + "keyboard-types", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "once_cell", + "png", + "thiserror 2.0.21", + "windows-sys 0.61.2", +] + +[[package]] +name = "naga" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a616d2fb8c89516ac2723a581f69d6c18576046bed761bd6b305e5618e6ae130" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "codespan-reporting", + "half", + "hashbrown 0.17.1", + "indexmap", + "libm", + "log", + "naga-types", + "num-traits", + "once_cell", + "rustc-hash 1.1.0", + "spirv", + "thiserror 2.0.21", + "unicode-ident", +] + +[[package]] +name = "naga-types" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "590afbf58a6f4f62873cd5cff4468061844bafa1cdf399cc954537c22d768d49" +dependencies = [ + "hashbrown 0.17.1", + "indexmap", + "rustc-hash 1.1.0", + "thiserror 2.0.21", +] + +[[package]] +name = "natord" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "308d96db8debc727c3fd9744aac51751243420e46edf401010908da7f8d5e57c" + +[[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 = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "libc", +] + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + +[[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", + "objc2-quartz-core 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-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.2", + "objc2-core-foundation", +] + +[[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-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15" +dependencies = [ + "bitflags 2.13.2", + "libc", + "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-core-graphics", + "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", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 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" +dependencies = [ + "critical-section", + "portable-atomic", +] + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "openssl-probe" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1" + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "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 = "os_pipe" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[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 = "parlance" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73072a9470554c8e794778acece2312661218aaabb635600957d952cf01c716e" + +[[package]] +name = "parley" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22d2ff88bd3f7d68d1d9b09c7e6209f9a8e8c05088295140a2bcf2e9b17038c5" +dependencies = [ + "accesskit", + "fontique", + "harfrust", + "hashbrown 0.17.1", + "icu_normalizer", + "icu_properties", + "icu_segmenter", + "linebender_resource_handle", + "parlance", + "parley_data", + "skrifa", +] + +[[package]] +name = "parley_data" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1567535334d6ba2d3cde19221ba9a7bd0fabb3cbd99046ddfb10ae061cfcc889" +dependencies = [ + "icu_properties", +] + +[[package]] +name = "pastey" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "petgraph" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455" +dependencies = [ + "fixedbitset", + "hashbrown 0.15.5", + "indexmap", +] + +[[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 = "pin-utils" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13bee6c73da26345c729282832b60b0363cf3dd9f4bfd81d8551b7a1c889a113" + +[[package]] +name = "pin-weak" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b330c9d1b92dfe68442ca20b009c717d5f0b1e3cf4965e62f704c3c6e95a1305" + +[[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.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 0.5.3", + "pin-project-lite", + "rustix 1.1.6", + "windows-sys 0.61.2", +] + +[[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" +dependencies = [ + "critical-section", +] + +[[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 = [ + "serde_core", + "writeable", + "zerovec", +] + +[[package]] +name = "presser" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.119", +] + +[[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 = "pulldown-cmark" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b" +dependencies = [ + "bitflags 2.13.2", + "memchr", + "unicase", +] + +[[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 = "quinn" +version = "0.11.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash 2.1.3", + "rustls", + "socket2", + "thiserror 2.0.21", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" +dependencies = [ + "aws-lc-rs", + "bytes", + "getrandom 0.4.3", + "lru-slab", + "rand", + "rand_pcg", + "ring", + "rustc-hash 2.1.3", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.21", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.61.2", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rand_pcg" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" +dependencies = [ + "rand_core", +] + +[[package]] +name = "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 = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "read-fonts" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709" +dependencies = [ + "bytemuck", + "font-types", + "once_cell", +] + +[[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 = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "remus" +version = "0.1.0" +dependencies = [ + "anyhow", + "directories", + "env_logger", + "fontique", + "gilrs", + "image", + "libc", + "log", + "lru", + "md5", + "reqwest", + "serde", + "serde_json", + "slint", + "slint-build", + "tokio", + "toml", +] + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "reqwest" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" +dependencies = [ + "base64", + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "resvg" +version = "0.48.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67e3803f97b999e80cbf7c6ecdd07a8102204d92e1633cf48783720c521196bd" +dependencies = [ + "bytemuck", + "gif", + "image-webp", + "log", + "pico-args", + "rgb", + "svgtypes", + "tiny-skia 0.12.0", + "usvg", + "zune-jpeg", +] + +[[package]] +name = "rgb" +version = "0.8.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rowan" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14b574c58582fa59fa43a2feb6608b8744184659f08a2e0117e4b8224d95ed61" +dependencies = [ + "countme", + "hashbrown 0.14.5", + "memoffset", + "rustc-hash 1.1.0", + "text-size", +] + +[[package]] +name = "roxmltree" +version = "0.21.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9da7f59328b09405b181fee1018925fad50f157afb43c0c0f5c522c256dd5907" +dependencies = [ + "memchr", +] + +[[package]] +name = "rspolib" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fda9a7796aff63a7b1b39ccc93fffaaf65e20042984b4843041a49ca4677535" +dependencies = [ + "lazy_static", + "natord", + "snafu", + "unicode-linebreak", + "unicode-width", +] + +[[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 = "rustls" +version = "0.23.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" +dependencies = [ + "aws-lc-rs", + "once_cell", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" + +[[package]] +name = "rustls-webpki" +version = "0.103.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" +dependencies = [ + "aws-lc-rs", + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scoped-tls-hkt" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9603871ffe5df3ac39cb624790c296dbd47a400d202f56bf3e414045099524d" + +[[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", + "tiny-skia 0.11.4", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "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.9", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_spanned" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c" +dependencies = [ + "serde_core", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[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 = "skia-bindings" +version = "0.153.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb325787c91b3f6c34a7c6f2b8a2297b20292d733ca53a08c233e5028aec49af" +dependencies = [ + "bindgen", + "cc", + "flate2", + "heck", + "pkg-config", + "regex", + "serde_json", + "tar", + "toml", +] + +[[package]] +name = "skia-safe" +version = "0.153.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61cb643dac43067f3eb76c866635a74377ac0abca0ff2590674e1e295514c3d" +dependencies = [ + "bitflags 2.13.2", + "skia-bindings", + "windows", +] + +[[package]] +name = "skrifa" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68" +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 = "slint" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15e477d5ff6fec20909100ff8f7062432ebfbda7a62a0f37d0252aa126f38c83" +dependencies = [ + "const-field-offset", + "i-slint-backend-linuxkms", + "i-slint-backend-selector", + "i-slint-common", + "i-slint-core", + "i-slint-core-macros", + "i-slint-renderer-femtovg", + "i-slint-renderer-software", + "num-traits", + "once_cell", + "pin-weak", + "slint-macros", + "unicode-segmentation", + "vtable", +] + +[[package]] +name = "slint-build" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ea28d4e1ad47d829b91e227f17037fac07a8001668a93fee47ac04f88718ebc" +dependencies = [ + "derive_more", + "fontique", + "i-slint-compiler", + "spin_on", + "toml_edit", +] + +[[package]] +name = "slint-macros" +version = "1.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35e74b13d20884dc480ce37d0fabbf02cb4bc0df2a595434feac96ca7c2a0f15" +dependencies = [ + "i-slint-compiler", + "proc-macro2", + "quote", + "spin_on", +] + +[[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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" + +[[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", + "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 = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + +[[package]] +name = "smol_str" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeb7109d23f319619d4cc0de5464613c8b7b1a09db2774a58101459cf6be2f10" +dependencies = [ + "borsh", + "serde_core", +] + +[[package]] +name = "snafu" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2" +dependencies = [ + "snafu-derive", +] + +[[package]] +name = "snafu-derive" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "as-raw-xcb-connection", + "bytemuck", + "fastrand", + "js-sys", + "memmap2", + "ndk", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "raw-window-handle", + "redox_syscall 0.5.18", + "rustix 1.1.6", + "tiny-xlib", + "tracing", + "wasm-bindgen", + "wayland-backend", + "wayland-client", + "wayland-sys", + "web-sys", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "spin_on" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "076e103ed41b9864aa838287efe5f4e3a7a0362dd00671ae62a212e5e4612da2" +dependencies = [ + "pin-utils", +] + +[[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 = "strum" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "svgtypes" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "695b5790b3131dafa99b3bbfd25a216edb3d216dad9ca208d4657bfb8f2abc3d" +dependencies = [ + "kurbo", + "siphasher", +] + +[[package]] +name = "swash" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c2499c2d826531388872b2268718aed907a39bd785ab0dcfe57fab26283f92e" +dependencies = [ + "skrifa", + "yazi", + "zeno", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "sys-locale" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4" +dependencies = [ + "js-sys", + "libc", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "taffy" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aea22054047c16c3f34d3ac473a2170be1424b1115b2a3adcf28cfb067c88859" +dependencies = [ + "arrayvec", + "grid", + "serde", + "slotmap", +] + +[[package]] +name = "tar" +version = "0.4.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "task-local" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2972044a9e5e448a506a7ff6f0d03b566d8ef4cd6918a58fc59835a0f8666626" +dependencies = [ + "pin-project-lite", +] + +[[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 = "text-size" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f18aa187839b2bdb1ad2fa35ead8c4c2976b64e4363c386d45ac0f7ee85c9233" + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "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", + "tiny-skia-path 0.11.4", +] + +[[package]] +name = "tiny-skia" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47ffee5eaaf5527f630fb0e356b90ebdec84d5d18d937c5e440350f88c5a91ea" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if", + "log", + "png", + "tiny-skia-path 0.12.0", +] + +[[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 = "tiny-skia-path" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edca365c3faccca67d06593c5980fa6c57687de727a03131735bb85f01fdeeb9" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + +[[package]] +name = "tiny-xlib" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a90a0ca3ee6a69f2ad28fd11621a4c3f03b371f366be500b64df260c4ffbafb4" +dependencies = [ + "as-raw-xcb-connection", + "ctor", + "libloading", + "pkg-config", + "tracing", +] + +[[package]] +name = "tinystr" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" +dependencies = [ + "displaydoc", + "serde_core", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "toml" +version = "1.1.8+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d" +dependencies = [ + "indexmap", + "serde_core", + "serde_spanned", + "toml_datetime", + "toml_parser", + "toml_writer", + "winnow", +] + +[[package]] +name = "toml_datetime" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.17+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "toml_writer", + "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.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "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 = "tree_magic_mini" +version = "3.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8765b90061cba6c22b5831f675da109ae5561588290f9fa2317adab2714d5a6" +dependencies = [ + "memchr", + "nom 8.0.0", + "petgraph", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "ttf-parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" + +[[package]] +name = "typed-index-collections" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "898160f1dfd383b4e92e17f0512a7d62f3c51c44937b23b6ffc3a1614a8eaccd" +dependencies = [ + "bincode", + "serde", +] + +[[package]] +name = "udev" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af4e37e9ea4401fc841ff54b9ddfc9be1079b1e89434c1a6a865dd68980f7e9f" +dependencies = [ + "io-lifetimes", + "libc", + "libudev-sys", + "pkg-config", +] + +[[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 = "unicase" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f" + +[[package]] +name = "unicode-bidi" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-linebreak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" + +[[package]] +name = "unicode-script" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa04c955db05429d464c74d495c1ee677e1866e783a4c3747f9c0cef7756cabf" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-vo" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1d386ff53b415b7fe27b50bb44679e2cc4660272694b7b6f3326d8480823a94" + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "unty" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d49784317cd0d1ee7ec5c716dd598ec5b4483ea832a2dced265471cc0f690ae" + +[[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.48.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "977d0a4abdef933f424a99fe09f95576e089b90aebc6f016a3bc813762493e91" +dependencies = [ + "base64", + "data-url", + "flate2", + "fontdb", + "harfrust", + "imagesize", + "kurbo", + "log", + "pico-args", + "roxmltree", + "simplecss", + "siphasher", + "skrifa", + "strict-num", + "svgtypes", + "tiny-skia-path 0.12.0", + "unicode-bidi", + "unicode-script", + "unicode-vo", + "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 = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[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.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a0e2d11620c50695fe12bbbfde96b3477fe606e7284c22d505c12ce51214514" +dependencies = [ + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "vec_map" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vtable" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "515a4b5b1399cc46fb0dc4081436cb40a3852a2d3e94fd1fa50bb68a334896eb" +dependencies = [ + "const-field-offset", + "portable-atomic", + "stable_deref_trait", + "vtable-macro", +] + +[[package]] +name = "vtable-macro" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8191d73ececf73fc94e65809bf0e667525a0bcff9aeeb8d042a4173a508332a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" +dependencies = [ + "cfg-if", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.130" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.9", + "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-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 = "webpki-root-certs" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "wgpu" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527ccdf43dd5b2e8676eed9984ce00e2bbb0a1b85b70c1969dcb6cd2eb55ab9e" +dependencies = [ + "arrayvec", + "bitflags 2.13.2", + "bytemuck", + "cfg-if", + "cfg_aliases", + "document-features", + "hashbrown 0.17.1", + "log", + "portable-atomic", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c018fce9b6270aa203c2fdd56f3cce996713534bd757e4ea58c8560b121f14" +dependencies = [ + "arrayvec", + "bit-set", + "bit-vec", + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "document-features", + "hashbrown 0.17.1", + "indexmap", + "log", + "naga", + "naga-types", + "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-windows-linux-android", + "wgpu-hal", + "wgpu-naga-bridge", + "wgpu-types", +] + +[[package]] +name = "wgpu-core-deps-apple" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "061f3d319a40d39d00b1ecc2c33b89fe21d4e6fe01859df3500a3a8ecccd6b68" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-windows-linux-android" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7586165fd5f6d881cb9ce4bb71f40d6caab2c0f1837e3fc1d9788a197fb6004f" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-hal" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58" +dependencies = [ + "android_system_properties", + "arrayvec", + "ash", + "bit-set", + "bitflags 2.13.2", + "block2 0.6.2", + "bytemuck", + "cfg-if", + "cfg_aliases", + "gpu-allocator", + "hashbrown 0.17.1", + "libc", + "libloading", + "log", + "naga", + "naga-types", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "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", + "static_assertions", + "thiserror 2.0.21", + "wgpu-naga-bridge", + "wgpu-types", + "windows", + "windows-core", +] + +[[package]] +name = "wgpu-naga-bridge" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f62e73117bb7a62bfd9c5a5841438a823f6566c6442a808ee269d2d055c081" +dependencies = [ + "naga", + "wgpu-types", +] + +[[package]] +name = "wgpu-types" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99dad6f1fbdbbdb4c278a6508b059d44688f5cebddf78d005a46a31340269286" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "log", + "naga-types", + "raw-window-handle", + "static_assertions", +] + +[[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.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "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 0.9.4", + "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", + "smol_str 0.2.2", + "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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wl-clipboard-rs" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "959c7ac3b8afde864f7a7448ac16f29b2b83350b7eccbf77fb781c3999aa6848" +dependencies = [ + "libc", + "log", + "os_pipe", + "rustix 1.1.6", + "thiserror 2.0.21", + "tree_magic_mini", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-wlr", +] + +[[package]] +name = "write-fonts" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cae90d1d9f6d1d36ef116b0b1e651a6d7c12ba925439d4d06ff9adc94662a3d8" +dependencies = [ + "font-types", + "indexmap", + "kurbo", + "log", + "read-fonts", +] + +[[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 = "xattr" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08" +dependencies = [ + "libc", + "rustix 1.1.6", +] + +[[package]] +name = "xcursor" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" + +[[package]] +name = "xkbcommon" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a974f48060a14e95705c01f24ad9c3345022f4d97441b8a36beb7ed5c4a02d" +dependencies = [ + "libc", + "memmap2", + "xkeysym", +] + +[[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 = "yazi" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac366ea532fa8ee6a992cec9dea525b1dc284e69702f36c2ab5fbebadc81ec86" + +[[package]] +name = "yeslogic-fontconfig-sys" +version = "6.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d8b8abf912b9a29ff112e1671c97c33636903d13a69712037190e6805af4f76" +dependencies = [ + "dlib", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "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.9", + "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 = "zeno" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" + +[[package]] +name = "zerocopy" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "zerovec" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" +dependencies = [ + "serde", + "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.9", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[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.9", + "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.9", + "winnow", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..7224fac --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "remus" +version = "0.1.0" +edition = "2024" + +[dependencies] +anyhow = "1.0.104" +directories = "6.0.0" +env_logger = "0.11.11" +fontique = { version = "0.11", default-features = false, features = ["fontconfig-dlopen"] } +gilrs = "0.11.2" +image = { version = "0.25.10", default-features = false, features = ["jpeg", "png", "webp"] } +libc = "0.2.191" +log = "0.4.35" +lru = "0.19.0" +md5 = "0.8.1" +reqwest = { version = "0.13.5", default-features = false, features = ["json", "rustls"] } +serde = { version = "1.0.229", features = ["derive"] } +serde_json = "1.0.154" +slint = "1.18.1" +tokio = { version = "1.54.1", features = ["rt-multi-thread", "sync", "macros", "time"] } +toml = "1.1.8" + +[build-dependencies] +slint-build = "1.18.1" diff --git a/README.md b/README.md new file mode 100644 index 0000000..eade3f1 --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# remus + +A controller-first music player for a Subsonic library, built for SteamOS on a Steam Deck or a TV. + +It opens fullscreen. Its UI is sized from the window's physical height, not from the scale factor the compositor reports, so it keeps the same proportions at 1280×800 and at 4K. Cover art is requested at the size it is drawn. + +## Requirements + +- `mpv` on the PATH. remus runs it as a child process and controls it over its JSON IPC socket. +- A Subsonic or OpenSubsonic server (Navidrome, Gonic, Airsonic...). + +## Run + +``` +cargo run --release # fullscreen +cargo run --release -- --windowed +``` + +On first start remus asks for the server address, username and password. It stores the address, the username and an auth token (md5 of password + salt) in `~/.config/remus/config.toml`, mode 0600. The token is enough to log in to that server, so treat the file as a credential. Delete it to log in again. + +Covers are cached in `~/.cache/remus/covers`. + +## Controls + +| Gamepad | Keyboard | Action | +|---|---|---| +| D-pad / left stick | Arrows | Move | +| A | Enter | Open, play | +| B | Esc, Backspace | Back | +| X | Space | Play / pause | +| Y | Q | Add album, playlist or track to the queue | +| LB / RB | P / N | Previous / next track | +| LT / RT | Shift+Tab / Tab | Previous / next section | +| Right stick | , / . | Seek 10 s | +| Menu | F | Now playing | +| View | / | Search | +| | F11 | Toggle fullscreen | +| | Ctrl+Q | Quit | + +With Steam running, remus listens only to Steam's virtual controller, so a pad Steam also exposes does not send every press twice. On a Deck, Steam + X opens the on-screen keyboard for the login and search fields. + +## Development + +``` +cargo test +REMUS_TEST_URL=https://demo.navidrome.org REMUS_TEST_USER=demo REMUS_TEST_PASS=demo \ + cargo test -- --ignored # every API call against a real server +``` + +`REMUS_DEV_SCRIPT` replays actions and saves screenshots, which is how layouts are checked at different sizes without a controller: + +``` +REMUS_DEV_SCRIPT="size:full,wait:3000,shot:home.png,right,activate,wait:2000,shot:album.png,quit" cargo run +``` + +Steps: `size:WxH`, `size:full`, `wait:MS`, `shot:PATH`, and action names (`up`, `down`, `left`, `right`, `activate`, `back`, `queue`, `next`, `play-pause`, `section-next`, `now-playing`, `search`, `quit`). Point `XDG_CONFIG_HOME` and `XDG_CACHE_HOME` at a scratch directory to keep test runs away from your own config. diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..29ee3db --- /dev/null +++ b/build.rs @@ -0,0 +1,3 @@ +fn main() { + slint_build::compile("ui/app.slint").expect("compiling ui/app.slint"); +} diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..7530651 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +max_width = 120 diff --git a/src/app.rs b/src/app.rs new file mode 100644 index 0000000..0985fd6 --- /dev/null +++ b/src/app.rs @@ -0,0 +1,1785 @@ +//! Application state. Lives on the UI thread; background work reports back +//! through `slint::invoke_from_event_loop` + `with_app`. + +use std::cell::RefCell; +use std::collections::HashSet; +use std::future::Future; +use std::num::NonZeroUsize; +use std::path::PathBuf; +use std::rc::Rc; +use std::sync::Arc; +use std::time::Duration; + +use anyhow::Result; +use lru::LruCache; +use slint::{Color, ComponentHandle, Image, ModelRc, Rgb8Pixel, SharedPixelBuffer, SharedString, Timer, VecModel}; +use tokio::runtime::Handle; +use tokio::sync::Semaphore; + +use crate::config::{self, Config}; +use crate::player::{Player, PlayerEvent}; +use crate::subsonic::{Album, Artist, Client, Playlist, SearchResult, Song}; +use crate::{Action, AppWindow, Area, Header, Hint, Item, Screen, Theme}; + +thread_local! { + static APP: RefCell> = const { RefCell::new(None) }; +} + +/// Runs `f` against the app. If the app is already borrowed (a callback fired +/// while we were updating the UI), retries on the next event loop turn. +pub fn with_app(f: impl FnOnce(&mut App) + 'static) { + APP.with(|cell| match cell.try_borrow_mut() { + Ok(mut guard) => { + if let Some(app) = guard.as_mut() { + f(app); + } + } + Err(_) => Timer::single_shot(Duration::ZERO, move || with_app(f)), + }); +} + +pub fn install(ui: &AppWindow, rt: Handle) { + let app = App::new(ui.clone_strong(), rt); + APP.with(|cell| *cell.borrow_mut() = Some(app)); + + ui.on_action(|a| with_app(move |app| app.action(a))); + ui.on_item_clicked(|i| with_app(move |app| app.item_clicked(i.max(0) as usize))); + ui.on_wheel(|d| with_app(move |app| app.wheel(d))); + ui.on_sidebar_clicked(|i| with_app(move |app| app.sidebar_clicked(i.max(0) as usize))); + ui.on_queue_clicked(|i| with_app(move |app| app.queue_clicked(i.max(0) as usize))); + ui.on_queue_wheel(|d| with_app(move |app| app.move_queue_sel(-d as isize * 3))); + ui.on_search_accepted(|q| with_app(move |app| app.run_search(q.to_string()))); + ui.on_login_submit(|| with_app(|app| app.login_submit())); + ui.on_login_field_clicked(|i| with_app(move |app| app.set_login_focus(i))); + ui.on_layout_changed(|| with_app(|app| app.sync_items(true))); + + with_app(|app| app.start()); +} + +/// Drops the app, which stops mpv. +pub fn shutdown() { + let app = APP.with(|cell| cell.borrow_mut().take()); + drop(app); +} + +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +enum Section { + Recent, + Random, + Albums, + Artists, + Playlists, + Search, +} + +const SECTIONS: [Section; 6] = [ + Section::Recent, + Section::Random, + Section::Albums, + Section::Artists, + Section::Playlists, + Section::Search, +]; + +impl Section { + fn label(self) -> &'static str { + match self { + Section::Recent => "Recently added", + Section::Random => "Random", + Section::Albums => "Albums", + Section::Artists => "Artists", + Section::Playlists => "Playlists", + Section::Search => "Search", + } + } +} + +#[derive(Clone, Debug)] +enum Target { + Album(String), + Artist(String), + Playlist(String), + /// Index into the page's `songs`. + Song(usize), +} + +#[derive(Clone, Debug)] +struct Entry { + title: String, + subtitle: String, + detail: String, + number: String, + cover: Option, + round: bool, + show_art: bool, + target: Target, +} + +#[derive(Clone, Debug, Default)] +struct HeaderInfo { + kind: &'static str, + title: String, + subtitle: String, + info: String, + cover: Option, + round: bool, +} + +#[derive(Clone, Debug)] +enum Source { + Section(Section), + Album(String), + Artist(String), + Playlist(String), + Search(String), +} + +/// What a load returns, applied to the page that asked for it. +#[derive(Default)] +struct PageData { + entries: Vec, + songs: Vec, + header: Option, +} + +struct Page { + id: u64, + title: String, + list: bool, + header: Option, + entries: Vec, + songs: Vec, + sel: usize, + loading: bool, + error: Option, + source: Source, +} + +type CoverKey = (String, u32); + +struct Covers { + images: LruCache, + pending: HashSet, + failed: HashSet, + limit: Arc, + dir: Option, +} + +pub struct App { + ui: AppWindow, + rt: Handle, + client: Option, + player: Option, + screen: Screen, + area: Area, + section: usize, + stacks: Vec>, + next_id: u64, + items: Rc>, + items_range: (usize, usize), + queue_items: Rc>, + queue_range: (usize, usize), + covers: Covers, + queue: Vec, + current: Option, + queue_sel: usize, + position: f64, + duration: f64, + paused: bool, + scrobbled: bool, + login_focus: i32, + toast_timer: Timer, +} + +impl App { + fn new(ui: AppWindow, rt: Handle) -> App { + let items = Rc::new(VecModel::default()); + let queue_items = Rc::new(VecModel::default()); + ui.set_items(ModelRc::from(items.clone())); + ui.set_queue_items(ModelRc::from(queue_items.clone())); + let dir = config::cache_dir().map(|d| d.join("covers")); + if let Some(d) = &dir + && let Err(e) = std::fs::create_dir_all(d) + { + log::warn!("cover cache disabled, cannot create {}: {e}", d.display()); + } + App { + ui, + rt, + client: None, + player: None, + screen: Screen::Login, + area: Area::Content, + section: 0, + stacks: SECTIONS.iter().map(|_| Vec::new()).collect(), + next_id: 1, + items, + items_range: (0, 0), + queue_items, + queue_range: (0, 0), + covers: Covers { + images: LruCache::new(NonZeroUsize::new(400).unwrap()), + pending: HashSet::new(), + failed: HashSet::new(), + limit: Arc::new(Semaphore::new(6)), + dir, + }, + queue: Vec::new(), + current: None, + queue_sel: 0, + position: 0.0, + duration: 0.0, + paused: false, + scrobbled: false, + login_focus: 0, + toast_timer: Timer::default(), + } + } + + fn start(&mut self) { + let labels: Vec = SECTIONS.iter().map(|s| s.label().into()).collect(); + self.ui.set_sections(ModelRc::new(VecModel::from(labels))); + + match Player::spawn(|ev| { + let _ = slint::invoke_from_event_loop(move || with_app(move |app| app.player_event(ev))); + }) { + Ok(p) => self.player = Some(p), + Err(e) => { + log::error!("{e:#}"); + self.toast(format!("Playback unavailable: {e:#}")); + } + } + + match config::load() { + Ok(Some(cfg)) => { + log::info!("using saved login for {} on {}", cfg.username, cfg.url); + self.ui.set_login_server(cfg.url.clone().into()); + self.ui.set_login_username(cfg.username.clone().into()); + self.enter_browse(Client::new(&cfg.url, &cfg.username, &cfg.salt, &cfg.token)); + } + Ok(None) => { + log::info!("no saved login, showing the login screen"); + self.show_login(); + } + Err(e) => { + log::error!("could not read the saved login: {e:#}"); + self.ui.set_login_error(format!("{e:#}").into()); + self.show_login(); + } + } + self.render_player(); + } + + fn spawn(&self, fut: F, done: D) + where + T: Send + 'static, + F: Future> + Send + 'static, + D: FnOnce(&mut App, Result) + Send + 'static, + { + self.rt.spawn(async move { + let r = fut.await; + let _ = slint::invoke_from_event_loop(move || with_app(move |app| done(app, r))); + }); + } + + // ---------------------------------------------------------------- login + + fn show_login(&mut self) { + self.screen = Screen::Login; + self.ui.set_screen(Screen::Login); + self.set_login_focus(0); + } + + fn set_login_focus(&mut self, i: i32) { + self.login_focus = i.clamp(0, 3); + self.ui.set_login_focus(self.login_focus); + self.ui.invoke_focus_login(self.login_focus); + self.render_hints(); + } + + fn login_action(&mut self, a: Action) { + match a { + Action::Up | Action::SectionPrev => self.set_login_focus(self.login_focus - 1), + Action::Down | Action::SectionNext => self.set_login_focus(self.login_focus + 1), + Action::Activate if self.login_focus < 2 => self.set_login_focus(self.login_focus + 1), + Action::Activate => self.login_submit(), + _ => {} + } + } + + /// Fills in the login form and submits it, for scripted runs. + pub fn dev_login(&mut self, url: &str, user: &str, password: &str) { + self.ui.set_login_server(url.into()); + self.ui.set_login_username(user.into()); + self.ui.set_login_password(password.into()); + self.login_submit(); + } + + fn login_submit(&mut self) { + if self.ui.get_login_busy() { + return; + } + let url = self.ui.get_login_server().trim().to_string(); + let user = self.ui.get_login_username().trim().to_string(); + let password = self.ui.get_login_password().to_string(); + if url.is_empty() || user.is_empty() { + self.ui.set_login_error("Enter a server address and a username.".into()); + return; + } + self.ui.set_login_error("".into()); + self.ui.set_login_busy(true); + let client = Client::from_password(&url, &user, &password); + let probe = client.clone(); + self.spawn(async move { probe.ping().await }, move |app, r| { + app.ui.set_login_busy(false); + match r { + Ok(()) => { + app.ui.set_login_password("".into()); + let cfg = Config { + url: client.base().to_string(), + username: client.user().to_string(), + salt: client.salt().to_string(), + token: client.token().to_string(), + }; + if let Err(e) = config::save(&cfg) { + app.toast(format!("Could not save settings: {e:#}")); + } + app.enter_browse(client); + } + Err(e) => app.ui.set_login_error(format!("{e:#}").into()), + } + }); + } + + fn enter_browse(&mut self, client: Client) { + let host = client.base().split("://").nth(1).unwrap_or(client.base()).to_string(); + self.ui + .set_server_label(format!("{} on {}", client.user(), host).into()); + self.client = Some(client); + self.covers.images.clear(); + self.covers.pending.clear(); + self.covers.failed.clear(); + for stack in &mut self.stacks { + stack.clear(); + } + self.screen = Screen::Browse; + self.ui.set_screen(Screen::Browse); + self.section = usize::MAX; + self.select_section(0); + self.set_area(Area::Content); + } + + // ---------------------------------------------------------------- input + + pub fn action(&mut self, a: Action) { + match a { + Action::Quit => { + let _ = slint::quit_event_loop(); + return; + } + Action::ToggleFullscreen => { + let w = self.ui.window(); + w.set_fullscreen(!w.is_fullscreen()); + return; + } + _ => {} + } + match self.screen { + Screen::Login => self.login_action(a), + Screen::Browse => self.browse_action(a), + Screen::NowPlaying => self.now_playing_action(a), + } + } + + /// Playback and screen-switching actions that work the same everywhere + /// once logged in. Returns whether `a` was one of them. + fn global_action(&mut self, a: Action) -> bool { + match a { + Action::PlayPause => { + if self.current.is_none() { + self.toast("Nothing is playing".into()); + } else if let Some(p) = &self.player { + p.toggle_pause(); + } + } + Action::Next => { + if let Some(p) = &self.player { + p.next(); + } + } + Action::Prev => { + if let Some(p) = &self.player { + p.prev(); + } + } + Action::SeekForward => self.seek(10.0), + Action::SeekBack => self.seek(-10.0), + Action::NowPlaying => { + if self.screen == Screen::NowPlaying { + self.close_now_playing(); + } else { + self.open_now_playing(); + } + } + Action::Search => self.open_search(), + _ => return false, + } + true + } + + fn seek(&self, seconds: f64) { + if self.current.is_some() + && let Some(p) = &self.player + { + p.seek(seconds); + } + } + + fn browse_action(&mut self, a: Action) { + if self.global_action(a) { + return; + } + match self.area { + Area::Sidebar => match a { + Action::Up | Action::SectionPrev => self.select_section(self.section.saturating_sub(1)), + Action::Down | Action::SectionNext => self.select_section((self.section + 1).min(SECTIONS.len() - 1)), + Action::Activate if SECTIONS[self.section] == Section::Random => { + self.reload_root(); + self.enter_content(); + } + Action::Right | Action::Activate => self.enter_content(), + _ => {} + }, + Area::Content => match a { + Action::Up | Action::Down | Action::Left | Action::Right | Action::PageUp | Action::PageDown => { + self.move_sel(a) + } + Action::Activate => self.activate(), + Action::Back => self.back(), + Action::Queue => self.enqueue_selected(), + Action::SectionNext => self.select_section((self.section + 1).min(SECTIONS.len() - 1)), + Action::SectionPrev => self.select_section(self.section.saturating_sub(1)), + _ => {} + }, + Area::Search => match a { + Action::Down => { + if self.current_page().is_some_and(|p| !p.entries.is_empty()) { + self.set_area(Area::Content); + } + } + Action::Activate => { + let q = self.ui.get_search_text().to_string(); + self.run_search(q); + } + Action::Back | Action::Left => self.set_area(Area::Sidebar), + Action::SectionNext => self.select_section((self.section + 1).min(SECTIONS.len() - 1)), + Action::SectionPrev => self.select_section(self.section.saturating_sub(1)), + _ => {} + }, + } + } + + fn set_area(&mut self, area: Area) { + self.area = area; + self.ui.set_area(area); + if area == Area::Search { + self.ui.invoke_focus_search(); + } else { + self.ui.invoke_focus_main(); + } + self.render_hints(); + } + + /// Moves focus from the sidebar into the page, or into the search box when + /// the search page has nothing to select yet. + fn enter_content(&mut self) { + let is_search = matches!( + self.current_page().map(|p| &p.source), + Some(Source::Search(_)) | Some(Source::Section(Section::Search)) + ); + let empty = self.current_page().is_none_or(|p| p.entries.is_empty()); + if is_search && empty { + self.set_area(Area::Search); + } else { + self.set_area(Area::Content); + } + } + + fn item_clicked(&mut self, index: usize) { + if self.screen != Screen::Browse { + return; + } + if let Some(page) = self.current_page_mut() { + page.sel = index; + } + self.ui.set_selected(index as i32); + self.set_area(Area::Content); + self.activate(); + } + + fn wheel(&mut self, rows: i32) { + let a = if rows > 0 { Action::Down } else { Action::Up }; + if self.area != Area::Content { + self.set_area(Area::Content); + } + self.move_sel(a); + } + + fn sidebar_clicked(&mut self, index: usize) { + self.select_section(index); + self.enter_content(); + } + + // ---------------------------------------------------------------- pages + + fn current_page(&self) -> Option<&Page> { + self.stacks.get(self.section)?.last() + } + + fn current_page_mut(&mut self) -> Option<&mut Page> { + self.stacks.get_mut(self.section)?.last_mut() + } + + fn find_page_mut(&mut self, id: u64) -> Option<&mut Page> { + self.stacks.iter_mut().flat_map(|s| s.iter_mut()).find(|p| p.id == id) + } + + fn is_current(&self, id: u64) -> bool { + self.current_page().is_some_and(|p| p.id == id) + } + + fn new_page(&mut self, source: Source, title: String, list: bool, header: Option) -> Page { + let id = self.next_id; + self.next_id += 1; + Page { + id, + title, + list, + header, + entries: Vec::new(), + songs: Vec::new(), + sel: 0, + loading: true, + error: None, + source, + } + } + + fn select_section(&mut self, index: usize) { + if index == self.section { + return; + } + self.section = index; + self.ui.set_section(index as i32); + if self.stacks[index].is_empty() { + let section = SECTIONS[index]; + let list = matches!(section, Section::Artists | Section::Search); + let mut page = self.new_page(Source::Section(section), section.label().to_string(), list, None); + if section == Section::Search { + page.loading = false; + } + let id = page.id; + self.stacks[index].push(page); + self.load(id, Source::Section(section)); + } + if self.area == Area::Search { + self.area = Area::Content; + self.ui.set_area(Area::Content); + self.ui.invoke_focus_main(); + } + self.render_page(); + } + + fn reload_root(&mut self) { + let Some(stack) = self.stacks.get_mut(self.section) else { + return; + }; + stack.truncate(1); + let Some(page) = stack.first_mut() else { return }; + if matches!(page.source, Source::Section(Section::Search)) { + return; + } + page.entries.clear(); + page.songs.clear(); + page.sel = 0; + page.loading = true; + page.error = None; + let (id, source) = (page.id, page.source.clone()); + self.load(id, source); + self.render_page(); + } + + fn push_page(&mut self, source: Source, title: String, list: bool, header: HeaderInfo) { + let page = self.new_page(source.clone(), title, list, Some(header)); + let id = page.id; + self.stacks[self.section].push(page); + self.load(id, source); + self.render_page(); + } + + fn back(&mut self) { + let stack = &mut self.stacks[self.section]; + if stack.len() > 1 { + stack.pop(); + self.render_page(); + } else { + self.set_area(Area::Sidebar); + } + } + + fn columns(&self) -> usize { + match self.current_page() { + Some(p) if !p.list => self.ui.get_grid_columns().max(1) as usize, + _ => 1, + } + } + + fn move_sel(&mut self, a: Action) { + let cols = self.columns(); + let Some(page) = self.current_page() else { return }; + let is_search = matches!(page.source, Source::Search(_) | Source::Section(Section::Search)); + let n = page.entries.len(); + let s = page.sel; + let rows_per_page = if page.list { 8 } else { 3 }; + + enum Move { + To(usize), + Sidebar, + SearchBox, + Stay, + } + let mv = if n == 0 { + match a { + Action::Left => Move::Sidebar, + Action::Up if is_search => Move::SearchBox, + _ => Move::Stay, + } + } else { + match a { + Action::Left if s % cols == 0 => Move::Sidebar, + Action::Left => Move::To(s - 1), + Action::Right if (s + 1) % cols != 0 && s + 1 < n => Move::To(s + 1), + Action::Up if s >= cols => Move::To(s - cols), + Action::Up if is_search => Move::SearchBox, + Action::Down if s + cols < n => Move::To(s + cols), + Action::Down if s / cols < (n - 1) / cols => Move::To(n - 1), + Action::PageDown => Move::To((s + cols * rows_per_page).min(n - 1)), + Action::PageUp => Move::To(s.saturating_sub(cols * rows_per_page)), + _ => Move::Stay, + } + }; + match mv { + Move::To(new) => { + if let Some(page) = self.current_page_mut() { + page.sel = new; + } + self.ui.set_selected(new as i32); + self.sync_items(false); + self.render_hints(); + } + Move::Sidebar => self.set_area(Area::Sidebar), + Move::SearchBox => self.set_area(Area::Search), + Move::Stay => {} + } + } + + fn activate(&mut self) { + let Some(page) = self.current_page() else { return }; + if page.entries.is_empty() { + if page.error.is_some() { + let (id, source) = (page.id, page.source.clone()); + if let Some(p) = self.current_page_mut() { + p.error = None; + p.loading = true; + } + self.load(id, source); + self.render_page(); + } + return; + } + let Some(entry) = page.entries.get(page.sel).cloned() else { + return; + }; + let header = HeaderInfo { + kind: "", + title: entry.title.clone(), + subtitle: entry.subtitle.clone(), + info: String::new(), + cover: entry.cover.clone(), + round: entry.round, + }; + match entry.target { + Target::Album(id) => self.push_page( + Source::Album(id), + entry.title, + true, + HeaderInfo { + kind: "ALBUM", + ..header + }, + ), + Target::Artist(id) => self.push_page( + Source::Artist(id), + entry.title, + false, + HeaderInfo { + kind: "ARTIST", + subtitle: String::new(), + ..header + }, + ), + Target::Playlist(id) => self.push_page( + Source::Playlist(id), + entry.title, + true, + HeaderInfo { + kind: "PLAYLIST", + ..header + }, + ), + Target::Song(index) => { + let songs = page.songs.clone(); + self.play_songs(songs, index); + } + } + } + + fn open_search(&mut self) { + if self.screen != Screen::Browse { + self.close_now_playing(); + } + let index = SECTIONS.iter().position(|s| *s == Section::Search).unwrap_or(0); + self.select_section(index); + self.stacks[index].truncate(1); + self.render_page(); + self.set_area(Area::Search); + } + + fn run_search(&mut self, query: String) { + let query = query.trim().to_string(); + if query.is_empty() { + return; + } + let Some(page) = self.current_page_mut() else { return }; + if !matches!(page.source, Source::Search(_) | Source::Section(Section::Search)) { + return; + } + page.source = Source::Search(query.clone()); + page.title = format!("Results for \u{201c}{query}\u{201d}"); + page.entries.clear(); + page.songs.clear(); + page.sel = 0; + page.loading = true; + page.error = None; + let id = page.id; + self.load(id, Source::Search(query)); + self.set_area(Area::Content); + self.render_page(); + } + + // ---------------------------------------------------------------- loading + + fn load(&mut self, page_id: u64, source: Source) { + let Some(client) = self.client.clone() else { return }; + match source { + Source::Section(Section::Recent) => self.spawn( + async move { Ok(albums_data(client.album_list("newest", 180, 0).await?)) }, + move |app, r| app.page_loaded(page_id, r, true), + ), + Source::Section(Section::Random) => self.spawn( + async move { Ok(albums_data(client.album_list("random", 120, 0).await?)) }, + move |app, r| app.page_loaded(page_id, r, true), + ), + Source::Section(Section::Albums) => { + // The full library, a page at a time, shown as it arrives. + self.rt.spawn(async move { + const BATCH: u32 = 500; + let mut offset = 0; + loop { + let r = client.album_list("alphabeticalByName", BATCH, offset).await; + let done = r.as_ref().map_or(true, |a| (a.len() as u32) < BATCH); + offset += r.as_ref().map_or(0, |a| a.len() as u32); + let data = r.map(albums_data); + let _ = slint::invoke_from_event_loop(move || { + with_app(move |app| app.page_loaded(page_id, data, done)) + }); + if done { + break; + } + } + }); + } + Source::Section(Section::Artists) => self.spawn( + async move { Ok(artists_data(client.artists().await?)) }, + move |app, r| app.page_loaded(page_id, r, true), + ), + Source::Section(Section::Playlists) => self.spawn( + async move { Ok(playlists_data(client.playlists().await?)) }, + move |app, r| app.page_loaded(page_id, r, true), + ), + Source::Section(Section::Search) => {} + Source::Search(q) => self.spawn( + async move { Ok(search_data(client.search(&q).await?)) }, + move |app, r| app.page_loaded(page_id, r, true), + ), + Source::Album(id) => self.spawn( + async move { + let album = client.album(&id).await?; + let multi_disc = album.song.iter().any(|s| s.disc_number.unwrap_or(1) > 1); + let album_artist = album.artist.clone().unwrap_or_default(); + let entries = album + .song + .iter() + .enumerate() + .map(|(i, s)| { + let artist = s.artist.clone().unwrap_or_default(); + let number = match (s.track, multi_disc) { + (Some(t), true) => format!("{}.{t:02}", s.disc_number.unwrap_or(1)), + (Some(t), false) => t.to_string(), + (None, _) => (i + 1).to_string(), + }; + Entry { + title: s.title.clone(), + subtitle: if artist != album_artist { artist } else { String::new() }, + detail: s.duration.map(|d| fmt_time(d as f64)).unwrap_or_default(), + number, + cover: s.cover_art.clone(), + round: false, + show_art: false, + target: Target::Song(i), + } + }) + .collect(); + let total = album + .duration + .unwrap_or_else(|| album.song.iter().filter_map(|s| s.duration).sum()); + let info = join_dot([ + album.year.map(|y| y.to_string()), + Some(plural(album.song.len(), "track")), + (total > 0).then(|| fmt_total(total)), + ]); + Ok(PageData { + entries, + header: Some(HeaderInfo { + kind: "ALBUM", + title: album.name, + subtitle: album_artist, + info, + cover: album.cover_art, + round: false, + }), + songs: album.song, + }) + }, + move |app, r| app.page_loaded(page_id, r, true), + ), + Source::Artist(id) => self.spawn( + async move { + let artist = client.artist(&id).await?; + let mut albums = artist.album; + albums.sort_by_key(|a| std::cmp::Reverse(a.year.unwrap_or(0))); + let cover = albums.first().and_then(|a| a.cover_art.clone()); + let info = plural(albums.len(), "album"); + let mut data = albums_data(albums); + for e in &mut data.entries { + // On an artist page the year is more useful than the artist again. + e.subtitle = e.detail.clone(); + } + data.header = Some(HeaderInfo { + kind: "ARTIST", + title: artist.name, + subtitle: String::new(), + info, + cover, + round: true, + }); + Ok(data) + }, + move |app, r| app.page_loaded(page_id, r, true), + ), + Source::Playlist(id) => self.spawn( + async move { + let pl = client.playlist(&id).await?; + let total = pl + .duration + .unwrap_or_else(|| pl.entry.iter().filter_map(|s| s.duration).sum()); + let info = join_dot([ + Some(plural(pl.entry.len(), "track")), + (total > 0).then(|| fmt_total(total)), + ]); + let mut data = songs_data(pl.entry); + data.header = Some(HeaderInfo { + kind: "PLAYLIST", + title: pl.name, + subtitle: String::new(), + info, + cover: pl.cover_art, + round: false, + }); + Ok(data) + }, + move |app, r| app.page_loaded(page_id, r, true), + ), + } + } + + /// Appends a load result to the page. `done` is false while more batches follow. + fn page_loaded(&mut self, page_id: u64, result: Result, done: bool) { + let Some(page) = self.find_page_mut(page_id) else { + return; + }; + match result { + Ok(data) => { + let offset = page.songs.len(); + page.entries.extend(data.entries.into_iter().map(|mut e| { + if let Target::Song(i) = &mut e.target { + *i += offset; + } + e + })); + page.songs.extend(data.songs); + if data.header.is_some() { + page.header = data.header; + } + page.loading = !done; + } + Err(e) => { + log::warn!("load failed: {e:#}"); + page.error = Some(format!("{e:#}")); + page.loading = false; + } + } + if self.is_current(page_id) { + self.render_page(); + } + } + + // ---------------------------------------------------------------- render + + fn render_page(&mut self) { + let Some(page) = self.current_page() else { return }; + let status = if !page.entries.is_empty() { + String::new() + } else if page.loading { + "Loading…".to_string() + } else if let Some(e) = &page.error { + format!("Could not load this page.\n{e}\n\nPress A to try again.") + } else { + match page.source { + Source::Section(Section::Search) => "Search your library by artist, album or song title.".to_string(), + Source::Search(_) => "No results.".to_string(), + _ => "Nothing here.".to_string(), + } + }; + let title = page.title.clone(); + let loading = page.loading; + let list = page.list; + let count = page.entries.len(); + let sel = page.sel.min(count.saturating_sub(1)); + let is_search = matches!(page.source, Source::Search(_) | Source::Section(Section::Search)); + let header = page.header.clone(); + + self.ui.set_page_title(title.into()); + self.ui.set_page_loading(loading); + self.ui.set_list_mode(list); + self.ui.set_is_search(is_search); + self.ui.set_item_count(count as i32); + self.ui.set_selected(sel as i32); + self.ui.set_status(status.into()); + let header = match header { + Some(h) => { + let px = self.header_px(); + let cover = h.cover.as_deref().and_then(|id| self.cover(id, px)); + Header { + visible: true, + kind: h.kind.into(), + letter: initial(&h.title).into(), + tint: tint(&h.title), + has_cover: cover.is_some(), + cover: cover.unwrap_or_default(), + title: h.title.into(), + subtitle: h.subtitle.into(), + info: h.info.into(), + round: h.round, + } + } + None => Header::default(), + }; + self.ui.set_header(header); + self.sync_items(true); + self.render_hints(); + } + + /// Fills the item model with a window of entries around the selection. + /// Rebuilds only when the selection nears the window's edge, unless forced. + fn sync_items(&mut self, force: bool) { + let cols = self.columns(); + let (count, sel, list) = match self.current_page() { + Some(p) => (p.entries.len(), p.sel, p.list), + None => (0, 0, true), + }; + let (lo, hi) = window(count, sel, cols, list); + let margin = if list { 12 } else { 3 * cols }; + let (cur_lo, cur_hi) = self.items_range; + let covered = cur_lo <= sel.saturating_sub(margin) && (sel + margin).min(count) <= cur_hi; + if !force && covered { + return; + } + let px = if list { self.thumb_px() } else { self.grid_px() }; + let items: Vec = (lo..hi).filter_map(|i| self.make_item(i, px)).collect(); + self.items.set_vec(items); + self.items_range = (lo, hi); + } + + fn playing_id(&self) -> Option<&str> { + self.current.and_then(|i| self.queue.get(i)).map(|s| s.id.as_str()) + } + + fn make_item(&mut self, index: usize, px: u32) -> Option { + let page = self.current_page()?; + let entry = page.entries.get(index)?.clone(); + let playing = match entry.target { + Target::Song(i) => page.songs.get(i).map(|s| s.id.as_str()) == self.playing_id(), + _ => false, + }; + let cover = entry.cover.as_deref().and_then(|id| self.cover(id, px)); + Some(Item { + index: index as i32, + letter: initial(&entry.title).into(), + tint: tint(&entry.title), + title: entry.title.into(), + subtitle: entry.subtitle.into(), + detail: entry.detail.into(), + number: entry.number.into(), + has_cover: cover.is_some(), + cover: cover.unwrap_or_default(), + round: entry.round, + show_art: entry.show_art, + playing, + }) + } + + fn render_hints(&self) { + let h = |k: &str, l: &str| Hint { + key: k.into(), + label: l.into(), + }; + let mut hints = Vec::new(); + match self.screen { + Screen::Login => { + hints.push(h("A", if self.login_focus < 2 { "Next" } else { "Connect" })); + } + Screen::Browse => match self.area { + Area::Sidebar => { + hints.push(h("A", "Open")); + hints.push(h("X", "Play / Pause")); + hints.push(h("VIEW", "Search")); + hints.push(h("MENU", "Now playing")); + } + Area::Search => { + hints.push(h("A", "Search")); + hints.push(h("B", "Back")); + hints.push(h("STEAM + X", "Keyboard")); + } + _ => { + let target = self + .current_page() + .and_then(|p| p.entries.get(p.sel)) + .map(|e| &e.target); + match target { + Some(Target::Song(_)) => hints.push(h("A", "Play")), + Some(_) => hints.push(h("A", "Open")), + None if self.current_page().is_some_and(|p| p.error.is_some()) => { + hints.push(h("A", "Try again")) + } + None => {} + } + hints.push(h("B", "Back")); + if matches!(target, Some(Target::Song(_) | Target::Album(_) | Target::Playlist(_))) { + hints.push(h("Y", "Add to queue")); + } + hints.push(h("X", "Play / Pause")); + hints.push(h("LT RT", "Sections")); + hints.push(h("MENU", "Now playing")); + } + }, + Screen::NowPlaying => { + hints.push(h("A", "Play selected")); + hints.push(h("B", "Back")); + hints.push(h("X", "Play / Pause")); + hints.push(h("LB RB", "Skip")); + hints.push(h("◀ ▶", "Seek")); + } + } + self.ui.set_hints(ModelRc::new(VecModel::from(hints))); + } + + fn toast(&mut self, text: String) { + self.ui.set_toast(text.into()); + self.toast_timer + .start(slint::TimerMode::SingleShot, Duration::from_millis(2500), || { + with_app(|app| app.ui.set_toast("".into())) + }); + } + + // ---------------------------------------------------------------- covers + + fn scale(&self) -> f32 { + self.ui.global::().get_s() * self.ui.window().scale_factor() + } + + fn grid_px(&self) -> u32 { + bucket(self.ui.get_grid_art() * self.ui.window().scale_factor()) + } + + fn thumb_px(&self) -> u32 { + bucket(46.0 * self.scale()) + } + + fn header_px(&self) -> u32 { + bucket(176.0 * self.scale()) + } + + fn now_playing_px(&self) -> u32 { + bucket(self.ui.get_np_art_size().max(300.0) * self.ui.window().scale_factor()) + } + + /// Returns the cover if cached, otherwise starts loading it and returns None. + fn cover(&mut self, id: &str, px: u32) -> Option { + let key: CoverKey = (id.to_string(), px); + if let Some(img) = self.covers.images.get(&key) { + return Some(img.clone()); + } + if self.covers.pending.contains(&key) || self.covers.failed.contains(&key) { + return None; + } + let client = self.client.clone()?; + self.covers.pending.insert(key.clone()); + let limit = self.covers.limit.clone(); + let path = self + .covers + .dir + .as_ref() + .map(|d| d.join(format!("{}_{px}", sanitize(id)))); + let id = id.to_string(); + self.spawn( + async move { + let _permit = limit.acquire_owned().await?; + let cached = path.as_ref().and_then(|p| std::fs::read(p).ok()); + let bytes = match cached { + Some(b) => b, + None => { + let b = client.cover_art(&id, px).await?; + if let Some(p) = &path { + let _ = std::fs::write(p, &b); + } + b + } + }; + let buf = tokio::task::spawn_blocking(move || decode_cover(&bytes, px)).await??; + Ok(buf) + }, + move |app, r| app.cover_loaded(key, r), + ); + None + } + + fn cover_loaded(&mut self, key: CoverKey, result: Result>) { + self.covers.pending.remove(&key); + match result { + Ok(buf) => { + self.covers.images.put(key.clone(), Image::from_rgb8(buf)); + } + Err(e) => { + log::debug!("cover {} failed: {e:#}", key.0); + self.covers.failed.insert(key); + return; + } + } + let id = key.0.as_str(); + + // Refresh whatever shows this cover. + let (lo, hi) = self.items_range; + let rows: Vec = match self.current_page() { + Some(p) => (lo..hi.min(p.entries.len())) + .filter(|&i| p.entries[i].cover.as_deref() == Some(id)) + .collect(), + None => Vec::new(), + }; + if !rows.is_empty() { + let px = if self.current_page().is_some_and(|p| p.list) { + self.thumb_px() + } else { + self.grid_px() + }; + for i in rows { + if let Some(item) = self.make_item(i, px) { + slint::Model::set_row_data(&*self.items, i - lo, item); + } + } + } + if self + .current_page() + .and_then(|p| p.header.as_ref()) + .and_then(|h| h.cover.as_deref()) + == Some(id) + { + self.render_page_header(); + } + if self + .current + .and_then(|i| self.queue.get(i)) + .and_then(|s| s.cover_art.as_deref()) + == Some(id) + { + self.render_player(); + } + let (qlo, qhi) = self.queue_range; + let qrows: Vec = (qlo..qhi.min(self.queue.len())) + .filter(|&i| self.queue[i].cover_art.as_deref() == Some(id)) + .collect(); + let qpx = self.thumb_px(); + for i in qrows { + let item = self.make_queue_item(i, qpx); + slint::Model::set_row_data(&*self.queue_items, i - qlo, item); + } + } + + fn render_page_header(&mut self) { + let Some(h) = self.current_page().and_then(|p| p.header.clone()) else { + return; + }; + let px = self.header_px(); + let cover = h.cover.as_deref().and_then(|id| self.cover(id, px)); + let mut header = self.ui.get_header(); + header.has_cover = cover.is_some(); + header.cover = cover.unwrap_or_default(); + self.ui.set_header(header); + } + + // ---------------------------------------------------------------- playback + + fn play_songs(&mut self, songs: Vec, start: usize) { + let Some(client) = &self.client else { return }; + let Some(player) = &self.player else { + self.toast("Playback is unavailable: mpv is not running".into()); + return; + }; + let urls: Vec = songs.iter().map(|s| client.stream_url(&s.id)).collect(); + player.play_list(&urls, start); + self.queue = songs; + self.current = None; + self.queue_sel = start; + self.sync_queue(true); + } + + fn enqueue(&mut self, songs: Vec, what: String) { + let Some(client) = &self.client else { return }; + let Some(player) = &self.player else { + self.toast("Playback is unavailable: mpv is not running".into()); + return; + }; + if songs.is_empty() { + return; + } + for s in &songs { + player.append(&client.stream_url(&s.id)); + } + let n = songs.len(); + self.queue.extend(songs); + self.sync_queue(true); + self.toast(if n == 1 { + format!("Queued {what}") + } else { + format!("Queued {what} ({n} tracks)") + }); + } + + fn enqueue_selected(&mut self) { + let Some(page) = self.current_page() else { return }; + let Some(entry) = page.entries.get(page.sel) else { + return; + }; + let Some(client) = self.client.clone() else { return }; + let title = entry.title.clone(); + match entry.target.clone() { + Target::Song(i) => { + if let Some(song) = page.songs.get(i).cloned() { + self.enqueue(vec![song], title); + } + } + Target::Album(id) => self.spawn( + async move { Ok(client.album(&id).await?.song) }, + move |app, r| match r { + Ok(songs) => app.enqueue(songs, title), + Err(e) => app.toast(format!("Could not queue: {e:#}")), + }, + ), + Target::Playlist(id) => { + self.spawn( + async move { Ok(client.playlist(&id).await?.entry) }, + move |app, r| match r { + Ok(songs) => app.enqueue(songs, title), + Err(e) => app.toast(format!("Could not queue: {e:#}")), + }, + ) + } + Target::Artist(_) => self.toast("Open the artist to queue one of their albums".into()), + } + } + + fn player_event(&mut self, ev: PlayerEvent) { + match ev { + PlayerEvent::Position(p) => { + self.position = p; + self.render_progress(); + self.maybe_scrobble(); + } + PlayerEvent::Duration(d) => { + self.duration = d; + self.render_progress(); + } + PlayerEvent::Paused(p) => { + self.paused = p; + self.ui.set_np_paused(p); + } + PlayerEvent::Track(t) => { + let t = t.filter(|&i| i < self.queue.len()); + if t == self.current { + return; + } + self.current = t; + self.position = 0.0; + self.scrobbled = false; + if let (Some(song), Some(client)) = (t.and_then(|i| self.queue.get(i)), self.client.clone()) { + let id = song.id.clone(); + self.spawn(async move { client.scrobble(&id, false).await }, |_, r| { + if let Err(e) = r { + log::debug!("now-playing update failed: {e:#}"); + } + }); + } + if let Some(i) = t + && self.screen == Screen::NowPlaying + { + self.queue_sel = i; + } + self.render_player(); + self.sync_items(true); + self.sync_queue(true); + } + PlayerEvent::Exited => { + self.player = None; + self.toast("Playback stopped: mpv exited".into()); + } + } + } + + /// Submits a play once half the track (or four minutes) has been heard, + /// the usual scrobbling rule. + fn maybe_scrobble(&mut self) { + if self.scrobbled || self.duration < 30.0 { + return; + } + if self.position < (self.duration / 2.0).min(240.0) { + return; + } + self.scrobbled = true; + let (Some(song), Some(client)) = (self.current.and_then(|i| self.queue.get(i)), self.client.clone()) else { + return; + }; + let id = song.id.clone(); + self.spawn(async move { client.scrobble(&id, true).await }, |_, r| { + if let Err(e) = r { + log::warn!("scrobble failed: {e:#}"); + } + }); + } + + fn render_progress(&self) { + let progress = if self.duration > 0.0 { + (self.position / self.duration).clamp(0.0, 1.0) + } else { + 0.0 + }; + self.ui.set_np_progress(progress as f32); + self.ui.set_np_position(fmt_time(self.position).into()); + self.ui.set_np_duration(fmt_time(self.duration).into()); + } + + fn render_player(&mut self) { + let song = self.current.and_then(|i| self.queue.get(i)).cloned(); + self.ui.set_np_has_track(song.is_some()); + self.ui.set_np_paused(self.paused); + match song { + Some(s) => { + let px = self.now_playing_px(); + let cover = s.cover_art.as_deref().and_then(|id| self.cover(id, px)); + self.ui + .set_np_letter(initial(s.album.as_deref().unwrap_or(&s.title)).into()); + self.ui.set_np_tint(tint(s.album.as_deref().unwrap_or(&s.title))); + self.ui.set_np_has_cover(cover.is_some()); + self.ui.set_np_cover(cover.unwrap_or_default()); + self.ui.set_np_title(s.title.into()); + self.ui.set_np_artist(s.artist.unwrap_or_default().into()); + self.ui.set_np_album(s.album.unwrap_or_default().into()); + } + None => { + self.ui.set_np_has_cover(false); + self.ui.set_np_cover(Image::default()); + self.ui.set_np_letter("".into()); + self.ui.set_np_title("".into()); + self.ui.set_np_artist("".into()); + self.ui.set_np_album("".into()); + } + } + self.render_progress(); + } + + // ---------------------------------------------------------------- now playing + + fn open_now_playing(&mut self) { + self.screen = Screen::NowPlaying; + self.ui.set_screen(Screen::NowPlaying); + self.queue_sel = self.current.unwrap_or(0); + self.ui.invoke_focus_main(); + self.sync_queue(true); + // The art is larger here than in the bar, so ask again at this size. + self.render_player(); + self.render_hints(); + } + + fn close_now_playing(&mut self) { + self.screen = Screen::Browse; + self.ui.set_screen(Screen::Browse); + let area = self.area; + self.set_area(area); + } + + fn now_playing_action(&mut self, a: Action) { + if self.global_action(a) { + return; + } + match a { + Action::Back => self.close_now_playing(), + Action::Up => self.move_queue_sel(-1), + Action::Down => self.move_queue_sel(1), + Action::PageUp => self.move_queue_sel(-8), + Action::PageDown => self.move_queue_sel(8), + Action::Left => self.seek(-10.0), + Action::Right => self.seek(10.0), + Action::Activate => { + if self.queue_sel < self.queue.len() + && let Some(p) = &self.player + { + p.play_index(self.queue_sel); + } + } + _ => {} + } + } + + fn queue_clicked(&mut self, index: usize) { + self.queue_sel = index; + self.ui.set_queue_selected(index as i32); + if let Some(p) = &self.player { + p.play_index(index); + } + } + + fn move_queue_sel(&mut self, delta: isize) { + if self.queue.is_empty() { + return; + } + let max = self.queue.len() as isize - 1; + self.queue_sel = (self.queue_sel as isize + delta).clamp(0, max) as usize; + self.ui.set_queue_selected(self.queue_sel as i32); + self.sync_queue(false); + } + + fn sync_queue(&mut self, force: bool) { + let count = self.queue.len(); + let sel = self.queue_sel.min(count.saturating_sub(1)); + self.ui.set_queue_count(count as i32); + self.ui.set_queue_selected(sel as i32); + let (lo, hi) = window(count, sel, 1, true); + let (cur_lo, cur_hi) = self.queue_range; + let covered = cur_lo <= sel.saturating_sub(12) && (sel + 12).min(count) <= cur_hi; + if !force && covered { + return; + } + let px = self.thumb_px(); + let items: Vec = (lo..hi).map(|i| self.make_queue_item(i, px)).collect(); + self.queue_items.set_vec(items); + self.queue_range = (lo, hi); + } + + fn make_queue_item(&mut self, index: usize, px: u32) -> Item { + let s = self.queue[index].clone(); + let cover = s.cover_art.as_deref().and_then(|id| self.cover(id, px)); + let album = s.album.clone().unwrap_or_default(); + Item { + index: index as i32, + letter: initial(&album).into(), + tint: tint(&album), + title: s.title.into(), + subtitle: join_dot([s.artist, s.album]).into(), + detail: s.duration.map(|d| fmt_time(d as f64)).unwrap_or_default().into(), + number: (index + 1).to_string().into(), + has_cover: cover.is_some(), + cover: cover.unwrap_or_default(), + round: false, + show_art: true, + playing: Some(index) == self.current, + } + } +} + +// -------------------------------------------------------------------- data shaping + +fn albums_data(albums: Vec) -> PageData { + PageData { + entries: albums + .into_iter() + .map(|a| Entry { + subtitle: a.artist.unwrap_or_default(), + detail: a.year.map(|y| y.to_string()).unwrap_or_default(), + title: a.name, + number: String::new(), + cover: a.cover_art, + round: false, + show_art: true, + target: Target::Album(a.id), + }) + .collect(), + ..Default::default() + } +} + +fn artists_data(artists: Vec) -> PageData { + PageData { + entries: artists.into_iter().map(artist_entry).collect(), + ..Default::default() + } +} + +fn artist_entry(a: Artist) -> Entry { + Entry { + subtitle: a.album_count.map(|n| plural(n as usize, "album")).unwrap_or_default(), + title: a.name, + detail: String::new(), + number: String::new(), + cover: a.cover_art, + round: true, + show_art: true, + target: Target::Artist(a.id), + } +} + +fn playlists_data(playlists: Vec) -> PageData { + PageData { + entries: playlists + .into_iter() + .map(|p| Entry { + subtitle: join_dot([p.song_count.map(|n| plural(n as usize, "track")), p.owner]), + detail: String::new(), + title: p.name, + number: String::new(), + cover: p.cover_art, + round: false, + show_art: true, + target: Target::Playlist(p.id), + }) + .collect(), + ..Default::default() + } +} + +fn songs_data(songs: Vec) -> PageData { + PageData { + entries: songs.iter().enumerate().map(|(i, s)| song_entry(s, i)).collect(), + songs, + header: None, + } +} + +fn song_entry(s: &Song, index: usize) -> Entry { + Entry { + title: s.title.clone(), + subtitle: join_dot([s.artist.clone(), s.album.clone()]), + detail: s.duration.map(|d| fmt_time(d as f64)).unwrap_or_default(), + number: (index + 1).to_string(), + cover: s.cover_art.clone(), + round: false, + show_art: true, + target: Target::Song(index), + } +} + +fn search_data(r: SearchResult) -> PageData { + let mut entries: Vec = r.artist.into_iter().map(artist_entry).collect(); + entries.extend(r.album.into_iter().map(|a| Entry { + subtitle: join_dot([Some("Album".to_string()), a.artist]), + detail: a.year.map(|y| y.to_string()).unwrap_or_default(), + title: a.name, + number: String::new(), + cover: a.cover_art, + round: false, + show_art: true, + target: Target::Album(a.id), + })); + entries.extend(r.song.iter().enumerate().map(|(i, s)| song_entry(s, i))); + PageData { + entries, + songs: r.song, + header: None, + } +} + +// -------------------------------------------------------------------- helpers + +/// The range of entries to instantiate around `sel`. +fn window(count: usize, sel: usize, cols: usize, list: bool) -> (usize, usize) { + if list { + (sel.saturating_sub(40), (sel + 40).min(count)) + } else { + let row = sel / cols; + (row.saturating_sub(10) * cols, ((row + 11) * cols).min(count)) + } +} + +/// Rounds a pixel size up to a fixed set so the server and disk caches get reused. +fn bucket(px: f32) -> u32 { + const SIZES: [u32; 8] = [128, 192, 256, 384, 512, 768, 1024, 1536]; + SIZES.into_iter().find(|&s| px <= s as f32).unwrap_or(1536) +} + +fn decode_cover(bytes: &[u8], px: u32) -> Result> { + let img = image::load_from_memory(bytes)?; + let img = if img.width() > px || img.height() > px { + img.resize(px, px, image::imageops::FilterType::Triangle) + } else { + img + }; + let rgb = img.to_rgb8(); + Ok(SharedPixelBuffer::clone_from_slice( + rgb.as_raw(), + rgb.width(), + rgb.height(), + )) +} + +fn sanitize(id: &str) -> String { + id.chars() + .map(|c| { + if c.is_ascii_alphanumeric() || c == '-' || c == '_' { + c + } else { + '_' + } + }) + .collect() +} + +fn initial(s: &str) -> String { + s.chars() + .find(|c| c.is_alphanumeric()) + .map(|c| c.to_uppercase().collect()) + .unwrap_or_default() +} + +/// A stable, muted colour per title, used behind missing or loading art. +fn tint(seed: &str) -> Color { + let h = seed + .bytes() + .fold(7u32, |a, b| a.wrapping_mul(31).wrapping_add(b as u32)) + % 360; + let (s, v) = (0.42f32, 0.40f32); + let c = v * s; + let x = c * (1.0 - ((h as f32 / 60.0) % 2.0 - 1.0).abs()); + let (r, g, b) = match h / 60 { + 0 => (c, x, 0.0), + 1 => (x, c, 0.0), + 2 => (0.0, c, x), + 3 => (0.0, x, c), + 4 => (x, 0.0, c), + _ => (c, 0.0, x), + }; + let m = v - c; + let to = |f: f32| ((f + m) * 255.0) as u8; + Color::from_rgb_u8(to(r), to(g), to(b)) +} + +fn fmt_time(secs: f64) -> String { + let t = secs.max(0.0) as u64; + let (h, m, s) = (t / 3600, (t / 60) % 60, t % 60); + if h > 0 { + format!("{h}:{m:02}:{s:02}") + } else { + format!("{m}:{s:02}") + } +} + +fn fmt_total(secs: u32) -> String { + let m = (secs + 30) / 60; + if m >= 60 { + format!("{} h {} min", m / 60, m % 60) + } else { + format!("{m} min") + } +} + +fn plural(n: usize, word: &str) -> String { + if n == 1 { + format!("1 {word}") + } else { + format!("{n} {word}s") + } +} + +fn join_dot>>(parts: I) -> String { + parts + .into_iter() + .flatten() + .filter(|s| !s.is_empty()) + .collect::>() + .join(" · ") +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn grid_window_is_row_aligned() { + assert_eq!(window(1000, 0, 5, false), (0, 55)); + assert_eq!(window(1000, 503, 5, false), (450, 555)); + assert_eq!(window(30, 29, 5, false), (0, 30)); + } + + #[test] + fn list_window_is_clamped() { + assert_eq!(window(10, 5, 1, true), (0, 10)); + assert_eq!(window(500, 100, 1, true), (60, 140)); + } + + #[test] + fn buckets_round_up() { + assert_eq!(bucket(100.0), 128); + assert_eq!(bucket(257.0), 384); + assert_eq!(bucket(5000.0), 1536); + } + + #[test] + fn formatting() { + assert_eq!(fmt_time(61.9), "1:01"); + assert_eq!(fmt_time(3725.0), "1:02:05"); + assert_eq!(fmt_total(2900), "48 min"); + assert_eq!(fmt_total(4320), "1 h 12 min"); + assert_eq!( + join_dot([Some("a".into()), None, Some("".into()), Some("b".into())]), + "a · b" + ); + assert_eq!(initial(" (the) Band"), "T"); + } +} diff --git a/src/config.rs b/src/config.rs new file mode 100644 index 0000000..abf2bf2 --- /dev/null +++ b/src/config.rs @@ -0,0 +1,69 @@ +use std::fs; +use std::io::Write; +use std::os::unix::fs::OpenOptionsExt; +use std::path::PathBuf; + +use anyhow::{Context, Result}; +use directories::ProjectDirs; +use serde::{Deserialize, Serialize}; + +/// Server credentials. `token` is md5(password + salt): not the password, +/// but enough to log in to this server, so the file is written 0600. +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Config { + pub url: String, + pub username: String, + pub salt: String, + pub token: String, +} + +fn dirs() -> Option { + ProjectDirs::from("", "", "remus") +} + +fn config_path() -> Option { + dirs().map(|d| d.config_dir().join("config.toml")) +} + +pub fn cache_dir() -> Option { + dirs().map(|d| d.cache_dir().to_path_buf()) +} + +pub fn load() -> Result> { + let Some(path) = config_path() else { return Ok(None) }; + match fs::read_to_string(&path) { + Ok(text) => Ok(Some( + toml::from_str(&text).with_context(|| format!("parsing {}", path.display()))?, + )), + Err(e) if e.kind() == std::io::ErrorKind::NotFound => Ok(None), + Err(e) => Err(e).with_context(|| format!("reading {}", path.display())), + } +} + +pub fn save(cfg: &Config) -> Result<()> { + let path = config_path().context("no config directory")?; + if let Some(dir) = path.parent() { + fs::create_dir_all(dir)?; + } + let text = toml::to_string(cfg)?; + // Write aside, sync, then rename over the old file, so a power cut + // mid-save leaves either the old login or the new one, never a torn file. + let tmp = path.with_extension("toml.tmp"); + let mut f = fs::OpenOptions::new() + .write(true) + .create(true) + .truncate(true) + .mode(0o600) + .open(&tmp) + .with_context(|| format!("writing {}", tmp.display()))?; + f.write_all(text.as_bytes())?; + f.sync_all()?; + fs::rename(&tmp, &path).with_context(|| format!("replacing {}", path.display()))?; + if let Some(dir) = path.parent() + && let Ok(d) = fs::File::open(dir) + { + let _ = d.sync_all(); + } + log::info!("saved login to {}", path.display()); + Ok(()) +} diff --git a/src/devscript.rs b/src/devscript.rs new file mode 100644 index 0000000..5087bfe --- /dev/null +++ b/src/devscript.rs @@ -0,0 +1,92 @@ +//! Scripted UI driving for development: replays actions and saves screenshots, +//! so layout can be checked at several resolutions without a controller. +//! +//! REMUS_DEV_SCRIPT="size:1280x800,wait:2000,shot:home.png,right,activate,wait:1500,shot:album.png,quit" + +use std::time::Duration; + +use slint::{ComponentHandle, PhysicalSize, Timer}; + +use crate::{Action, AppWindow, app}; + +pub fn run(ui: &AppWindow, script: &str) { + let steps: Vec = script + .split(',') + .map(|s| s.trim().to_string()) + .filter(|s| !s.is_empty()) + .collect(); + step(ui.as_weak(), steps, 0); +} + +fn step(ui: slint::Weak, steps: Vec, i: usize) { + let Some(cmd) = steps.get(i).cloned() else { return }; + let Some(win) = ui.upgrade() else { return }; + let mut delay = Duration::from_millis(250); + match cmd.split_once(':') { + Some(("wait", ms)) => delay = Duration::from_millis(ms.parse().unwrap_or(1000)), + Some(("size", "full")) => { + win.window().set_fullscreen(true); + delay = Duration::from_millis(800); + } + Some(("size", wh)) => { + if let Some((w, h)) = wh.split_once('x') { + win.window() + .set_size(PhysicalSize::new(w.parse().unwrap_or(1280), h.parse().unwrap_or(800))); + } + delay = Duration::from_millis(500); + } + Some(("shot", path)) => { + let w = win.window(); + log::info!( + "window: {:?} physical, scale factor {}, fullscreen {}, theme scale {}", + w.size(), + w.scale_factor(), + w.is_fullscreen(), + win.global::().get_s() + ); + match w.take_snapshot() { + Ok(buf) => { + let img = image::RgbaImage::from_raw(buf.width(), buf.height(), buf.as_bytes().to_vec()); + match img.map(|img| img.save(path)) { + Some(Ok(())) => log::info!("saved {path} ({}x{})", buf.width(), buf.height()), + Some(Err(e)) => log::error!("saving {path}: {e}"), + None => log::error!("snapshot buffer has the wrong size"), + } + } + Err(e) => log::error!("snapshot failed: {e}"), + } + } + Some(("login", creds)) => { + let mut parts = creds.splitn(3, '|').map(str::to_string); + let (url, user, pass) = ( + parts.next().unwrap_or_default(), + parts.next().unwrap_or_default(), + parts.next().unwrap_or_default(), + ); + app::with_app(move |app| app.dev_login(&url, &user, &pass)); + } + _ => { + let action = match cmd.as_str() { + "up" => Action::Up, + "down" => Action::Down, + "left" => Action::Left, + "right" => Action::Right, + "activate" => Action::Activate, + "back" => Action::Back, + "queue" => Action::Queue, + "next" => Action::Next, + "play-pause" => Action::PlayPause, + "section-next" => Action::SectionNext, + "now-playing" => Action::NowPlaying, + "search" => Action::Search, + "quit" => Action::Quit, + other => { + log::warn!("unknown dev script step {other}"); + Action::None + } + }; + app::with_app(move |app| app.action(action)); + } + } + Timer::single_shot(delay, move || step(ui, steps, i + 1)); +} diff --git a/src/input.rs b/src/input.rs new file mode 100644 index 0000000..7b17330 --- /dev/null +++ b/src/input.rs @@ -0,0 +1,175 @@ +//! Gamepad input. Buttons map to the same `Action`s as the keyboard bindings in app.slint. + +use std::time::{Duration, Instant}; + +use gilrs::{Axis, Button, EventType, GamepadId, Gilrs}; + +use crate::Action; + +/// Steam's virtual controllers. When one is present the physical pad behind it +/// also shows up as an evdev device, so only Steam's is listened to. +const STEAM_VENDOR: u16 = 0x28de; + +const REPEAT_DELAY: Duration = Duration::from_millis(380); +const REPEAT_SLOW: Duration = Duration::from_millis(110); +const REPEAT_FAST: Duration = Duration::from_millis(45); +const FAST_AFTER: Duration = Duration::from_millis(1500); +const STICK_ON: f32 = 0.55; +const STICK_OFF: f32 = 0.35; + +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +enum Source { + DPad, + LeftStick, + RightStick, +} + +struct Held { + source: Source, + action: Action, + since: Instant, + next: Instant, +} + +pub fn spawn_gamepad(emit: impl Fn(Action) + Send + 'static) { + let spawned = std::thread::Builder::new().name("gamepad".into()).spawn(move || { + let mut gilrs = match Gilrs::new() { + Ok(g) => g, + Err(e) => { + log::warn!("gamepad support unavailable: {e}"); + return; + } + }; + for (_, pad) in gilrs.gamepads() { + log::info!("gamepad: {} (vendor {:04x?})", pad.name(), pad.vendor_id()); + } + let mut held: Option = None; + loop { + while let Some(ev) = gilrs.next_event_blocking(Some(Duration::from_millis(15))) { + if !accept_from(&gilrs, ev.id) { + continue; + } + match ev.event { + EventType::ButtonPressed(b, _) => { + if let Some(a) = dpad_action(b) { + held = Some(start_hold(Source::DPad, a)); + emit(a); + } else if let Some(a) = button_action(b) { + emit(a); + } + } + EventType::ButtonReleased(b, _) => { + if dpad_action(b).is_some() && held.as_ref().is_some_and(|h| h.source == Source::DPad) { + held = None; + } + } + EventType::AxisChanged(axis, value, _) => { + let source = match axis { + Axis::LeftStickX | Axis::LeftStickY => Source::LeftStick, + Axis::RightStickX => Source::RightStick, + _ => continue, + }; + let pad = gilrs.gamepad(ev.id); + let dir = stick_direction(source, &pad, value, held.as_ref()); + match (dir, held.as_ref()) { + (Some(a), Some(h)) if h.source == source && h.action == a => {} + (Some(a), _) => { + held = Some(start_hold(source, a)); + emit(a); + } + (None, Some(h)) if h.source == source => held = None, + _ => {} + } + } + EventType::Disconnected => held = None, + _ => {} + } + } + if let Some(h) = held.as_mut() { + let now = Instant::now(); + if now >= h.next { + emit(h.action); + let step = if now - h.since > FAST_AFTER { + REPEAT_FAST + } else { + REPEAT_SLOW + }; + h.next = now + step; + } + } + } + }); + if let Err(e) = spawned { + log::warn!("could not start gamepad thread: {e}"); + } +} + +fn accept_from(gilrs: &Gilrs, id: GamepadId) -> bool { + let steam_present = gilrs.gamepads().any(|(_, p)| p.vendor_id() == Some(STEAM_VENDOR)); + !steam_present || gilrs.gamepad(id).vendor_id() == Some(STEAM_VENDOR) +} + +fn start_hold(source: Source, action: Action) -> Held { + let now = Instant::now(); + Held { + source, + action, + since: now, + next: now + REPEAT_DELAY, + } +} + +fn dpad_action(b: Button) -> Option { + Some(match b { + Button::DPadUp => Action::Up, + Button::DPadDown => Action::Down, + Button::DPadLeft => Action::Left, + Button::DPadRight => Action::Right, + _ => return None, + }) +} + +fn button_action(b: Button) -> Option { + Some(match b { + Button::South => Action::Activate, + Button::East => Action::Back, + Button::West => Action::PlayPause, + Button::North => Action::Queue, + Button::LeftTrigger => Action::Prev, + Button::RightTrigger => Action::Next, + Button::LeftTrigger2 => Action::SectionPrev, + Button::RightTrigger2 => Action::SectionNext, + Button::Start => Action::NowPlaying, + Button::Select => Action::Search, + _ => return None, + }) +} + +/// Reads the stick's dominant direction, with hysteresis so a stick resting +/// near the threshold does not flicker between held and released. +fn stick_direction(source: Source, pad: &gilrs::Gamepad<'_>, _changed: f32, held: Option<&Held>) -> Option { + let holding = held.is_some_and(|h| h.source == source); + let threshold = if holding { STICK_OFF } else { STICK_ON }; + match source { + Source::LeftStick => { + let x = pad.value(Axis::LeftStickX); + let y = pad.value(Axis::LeftStickY); + if x.abs() < threshold && y.abs() < threshold { + None + } else if x.abs() > y.abs() { + Some(if x > 0.0 { Action::Right } else { Action::Left }) + } else { + Some(if y > 0.0 { Action::Up } else { Action::Down }) + } + } + Source::RightStick => { + let x = pad.value(Axis::RightStickX); + if x.abs() < threshold { + None + } else { + Some(if x > 0.0 { Action::SeekForward } else { Action::SeekBack }) + } + } + Source::DPad => None, + } +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..62ec1bd --- /dev/null +++ b/src/main.rs @@ -0,0 +1,64 @@ +slint::include_modules!(); + +mod app; +mod config; +mod devscript; +mod input; +mod player; +mod subsonic; + +use std::time::Duration; + +fn main() -> anyhow::Result<()> { + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("remus=info")).init(); + + let dev_script = std::env::var("REMUS_DEV_SCRIPT").ok(); + let windowed = std::env::args().any(|a| a == "--windowed") || std::env::var_os("REMUS_WINDOWED").is_some(); + + let rt = tokio::runtime::Builder::new_multi_thread() + .worker_threads(2) + .enable_all() + .build()?; + + let ui = AppWindow::new()?; + app::install(&ui, rt.handle().clone()); + input::spawn_gamepad(|action| { + let _ = slint::invoke_from_event_loop(move || app::with_app(move |app| app.action(action))); + }); + + // Kept alive until the event loop ends. + let fullscreen_retry = slint::Timer::default(); + if !windowed { + ui.window().set_fullscreen(true); + // Compositors ignore the request until the window is mapped, and a + // tiling one (COSMIC) can take the window back right after granting + // it. Keep asking until fullscreen has held for a second, giving up + // after five. Then stop, so a later F11 to leave fullscreen sticks. + let weak = ui.as_weak(); + let (mut ticks, mut held) = (0, 0); + fullscreen_retry.start(slint::TimerMode::Repeated, Duration::from_millis(100), move || { + let Some(ui) = weak.upgrade() else { return }; + if ticks >= 50 || held >= 10 { + return; + } + ticks += 1; + if ui.window().is_fullscreen() { + held += 1; + return; + } + held = 0; + log::debug!("not fullscreen yet ({:?}), asking again", ui.window().size()); + ui.window().set_fullscreen(false); + ui.window().set_fullscreen(true); + }); + } + + if let Some(script) = dev_script { + devscript::run(&ui, &script); + } + + ui.run()?; + app::shutdown(); + drop(rt); + Ok(()) +} diff --git a/src/player.rs b/src/player.rs new file mode 100644 index 0000000..02d883b --- /dev/null +++ b/src/player.rs @@ -0,0 +1,186 @@ +//! Playback through an mpv child process, controlled over its JSON IPC socket. + +use std::io::{BufRead, BufReader, Write}; +use std::os::unix::net::UnixStream; +use std::os::unix::process::CommandExt; +use std::path::PathBuf; +use std::process::{Child, Command, Stdio}; +use std::sync::Mutex; +use std::time::Duration; + +use anyhow::{Context, Result, bail}; +use serde_json::{Value, json}; + +#[derive(Debug, Clone, Copy)] +pub enum PlayerEvent { + Position(f64), + Duration(f64), + Paused(bool), + /// Index into the mpv playlist, None when nothing is loaded. + Track(Option), + Exited, +} + +const OBSERVED: [&str; 4] = ["time-pos", "duration", "pause", "playlist-pos"]; + +pub struct Player { + writer: Mutex, + child: Mutex, + socket: PathBuf, +} + +impl Player { + pub fn spawn(on_event: impl Fn(PlayerEvent) + Send + 'static) -> Result { + let dir = std::env::var_os("XDG_RUNTIME_DIR") + .map(PathBuf::from) + .unwrap_or_else(std::env::temp_dir); + let socket = dir.join(format!("remus-mpv-{}.sock", std::process::id())); + let _ = std::fs::remove_file(&socket); + + let mut cmd = Command::new("mpv"); + cmd.args([ + "--idle=yes", + "--config=no", + "--no-video", + "--no-terminal", + "--audio-display=no", + "--prefetch-playlist=yes", + "--cache=yes", + "--volume=100", + ]) + .arg(format!("--input-ipc-server={}", socket.display())) + .stdin(Stdio::null()) + .stdout(Stdio::null()) + .stderr(Stdio::null()); + // Take mpv down with us if we crash, so it never keeps playing orphaned. + unsafe { + cmd.pre_exec(|| { + libc::prctl(libc::PR_SET_PDEATHSIG, libc::SIGTERM); + Ok(()) + }); + } + let mut child = cmd.spawn().context("could not start mpv (is it installed?)")?; + + let stream = (0..50).find_map(|_| { + UnixStream::connect(&socket).ok().or_else(|| { + std::thread::sleep(Duration::from_millis(100)); + None + }) + }); + let Some(stream) = stream else { + let _ = child.kill(); + bail!("mpv did not open its IPC socket at {}", socket.display()); + }; + + let reader = BufReader::new(stream.try_clone()?); + std::thread::Builder::new().name("mpv-ipc".into()).spawn(move || { + for line in reader.lines() { + let Ok(line) = line else { break }; + if let Some(ev) = parse_event(&line) { + on_event(ev); + } + } + on_event(PlayerEvent::Exited); + })?; + + let player = Player { + writer: Mutex::new(stream), + child: Mutex::new(child), + socket, + }; + for (i, name) in OBSERVED.iter().enumerate() { + player.command(json!(["observe_property", i + 1, name])); + } + Ok(player) + } + + fn command(&self, args: Value) { + let mut line = json!({ "command": args }).to_string(); + line.push('\n'); + if let Ok(mut w) = self.writer.lock() + && let Err(e) = w.write_all(line.as_bytes()) + { + log::warn!("mpv ipc write failed: {e}"); + } + } + + /// Replaces the playlist with `urls` and starts at `start`. + pub fn play_list(&self, urls: &[String], start: usize) { + self.command(json!(["stop"])); + for url in urls { + self.command(json!(["loadfile", url, "append"])); + } + self.command(json!(["playlist-play-index", start])); + self.command(json!(["set_property", "pause", false])); + } + + pub fn append(&self, url: &str) { + self.command(json!(["loadfile", url, "append-play"])); + } + + pub fn play_index(&self, index: usize) { + self.command(json!(["playlist-play-index", index])); + self.command(json!(["set_property", "pause", false])); + } + + pub fn toggle_pause(&self) { + self.command(json!(["cycle", "pause"])); + } + + pub fn next(&self) { + self.command(json!(["playlist-next"])); + } + + pub fn prev(&self) { + self.command(json!(["playlist-prev"])); + } + + pub fn seek(&self, seconds: f64) { + self.command(json!(["seek", seconds, "relative"])); + } +} + +impl Drop for Player { + fn drop(&mut self) { + self.command(json!(["quit"])); + if let Ok(mut child) = self.child.lock() { + std::thread::sleep(Duration::from_millis(50)); + let _ = child.kill(); + let _ = child.wait(); + } + let _ = std::fs::remove_file(&self.socket); + } +} + +fn parse_event(line: &str) -> Option { + let v: Value = serde_json::from_str(line).ok()?; + if v.get("event")?.as_str()? != "property-change" { + return None; + } + let data = v.get("data"); + match v.get("name")?.as_str()? { + "time-pos" => Some(PlayerEvent::Position(data.and_then(Value::as_f64).unwrap_or(0.0))), + "duration" => Some(PlayerEvent::Duration(data.and_then(Value::as_f64).unwrap_or(0.0))), + "pause" => Some(PlayerEvent::Paused(data.and_then(Value::as_bool).unwrap_or(false))), + "playlist-pos" => Some(PlayerEvent::Track( + data.and_then(Value::as_i64).filter(|&i| i >= 0).map(|i| i as usize), + )), + _ => None, + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn parses_property_changes() { + let ev = parse_event(r#"{"event":"property-change","id":4,"name":"playlist-pos","data":2}"#); + assert!(matches!(ev, Some(PlayerEvent::Track(Some(2))))); + let ev = parse_event(r#"{"event":"property-change","id":4,"name":"playlist-pos","data":-1}"#); + assert!(matches!(ev, Some(PlayerEvent::Track(None)))); + let ev = parse_event(r#"{"event":"property-change","id":1,"name":"time-pos"}"#); + assert!(matches!(ev, Some(PlayerEvent::Position(p)) if p == 0.0)); + assert!(parse_event(r#"{"request_id":0,"error":"success"}"#).is_none()); + } +} diff --git a/src/subsonic.rs b/src/subsonic.rs new file mode 100644 index 0000000..257a515 --- /dev/null +++ b/src/subsonic.rs @@ -0,0 +1,484 @@ +//! Minimal OpenSubsonic client covering what the browser and player need. + +use std::hash::{BuildHasher, RandomState}; +use std::time::{SystemTime, UNIX_EPOCH}; + +use anyhow::{Context, Result, anyhow, bail}; +use serde::Deserialize; +use serde::de::{DeserializeOwned, Deserializer}; + +const API_VERSION: &str = "1.16.1"; +const CLIENT_NAME: &str = "remus"; + +#[derive(Clone)] +pub struct Client { + http: reqwest::Client, + base: String, + user: String, + salt: String, + token: String, +} + +impl Client { + pub fn new(base: &str, user: &str, salt: &str, token: &str) -> Self { + let http = reqwest::Client::builder() + .user_agent(concat!("remus/", env!("CARGO_PKG_VERSION"))) + .timeout(std::time::Duration::from_secs(30)) + .build() + .expect("http client"); + Client { + http, + base: normalize_base(base), + user: user.to_string(), + salt: salt.to_string(), + token: token.to_string(), + } + } + + /// Derives a token from the password so the password itself is never stored. + /// The token is still password-equivalent for this server. + pub fn from_password(base: &str, user: &str, password: &str) -> Self { + let salt = random_salt(); + let token = format!("{:x}", md5::compute(format!("{password}{salt}"))); + Client::new(base, user, &salt, &token) + } + + pub fn base(&self) -> &str { + &self.base + } + pub fn user(&self) -> &str { + &self.user + } + pub fn salt(&self) -> &str { + &self.salt + } + pub fn token(&self) -> &str { + &self.token + } + + fn endpoint_url(&self, endpoint: &str, params: &[(&str, String)]) -> Result { + let mut all: Vec<(&str, String)> = vec![ + ("u", self.user.clone()), + ("t", self.token.clone()), + ("s", self.salt.clone()), + ("v", API_VERSION.to_string()), + ("c", CLIENT_NAME.to_string()), + ("f", "json".to_string()), + ]; + all.extend(params.iter().cloned()); + reqwest::Url::parse_with_params(&format!("{}/rest/{endpoint}", self.base), &all) + .with_context(|| format!("invalid server url {}", self.base)) + } + + async fn call(&self, endpoint: &str, params: &[(&str, String)]) -> Result { + let url = self.endpoint_url(endpoint, params)?; + let resp = self + .http + .get(url) + .send() + .await + .map_err(redact) + .with_context(|| format!("{endpoint} request failed"))?; + let status = resp.status(); + if !status.is_success() { + bail!("{endpoint}: server returned {status}"); + } + let mut body: serde_json::Value = resp + .json() + .await + .map_err(redact) + .with_context(|| format!("{endpoint}: invalid json"))?; + let inner = body + .get_mut("subsonic-response") + .map(serde_json::Value::take) + .ok_or_else(|| anyhow!("{endpoint}: not a subsonic response"))?; + if inner.get("status").and_then(|s| s.as_str()) != Some("ok") { + let msg = inner + .pointer("/error/message") + .and_then(|m| m.as_str()) + .unwrap_or("unknown error"); + bail!("{msg}"); + } + serde_json::from_value(inner).with_context(|| format!("{endpoint}: unexpected response shape")) + } + + pub async fn ping(&self) -> Result<()> { + let _: serde_json::Value = self.call("ping", &[]).await?; + Ok(()) + } + + /// `kind` is a getAlbumList2 type: newest, random, alphabeticalByName, frequent, recent... + pub async fn album_list(&self, kind: &str, size: u32, offset: u32) -> Result> { + #[derive(Deserialize)] + struct R { + #[serde(rename = "albumList2", default)] + list: AlbumList, + } + #[derive(Deserialize, Default)] + struct AlbumList { + #[serde(default)] + album: Vec, + } + let r: R = self + .call( + "getAlbumList2", + &[ + ("type", kind.into()), + ("size", size.to_string()), + ("offset", offset.to_string()), + ], + ) + .await?; + Ok(r.list.album) + } + + pub async fn artists(&self) -> Result> { + #[derive(Deserialize)] + struct R { + #[serde(default)] + artists: Indexes, + } + #[derive(Deserialize, Default)] + struct Indexes { + #[serde(default)] + index: Vec, + } + #[derive(Deserialize)] + struct Index { + #[serde(default)] + artist: Vec, + } + let r: R = self.call("getArtists", &[]).await?; + Ok(r.artists.index.into_iter().flat_map(|i| i.artist).collect()) + } + + pub async fn artist(&self, id: &str) -> Result { + #[derive(Deserialize)] + struct R { + artist: ArtistDetail, + } + let r: R = self.call("getArtist", &[("id", id.into())]).await?; + Ok(r.artist) + } + + pub async fn album(&self, id: &str) -> Result { + #[derive(Deserialize)] + struct R { + album: AlbumDetail, + } + let r: R = self.call("getAlbum", &[("id", id.into())]).await?; + Ok(r.album) + } + + pub async fn playlists(&self) -> Result> { + #[derive(Deserialize)] + struct R { + #[serde(default)] + playlists: Lists, + } + #[derive(Deserialize, Default)] + struct Lists { + #[serde(default)] + playlist: Vec, + } + let r: R = self.call("getPlaylists", &[]).await?; + Ok(r.playlists.playlist) + } + + pub async fn playlist(&self, id: &str) -> Result { + #[derive(Deserialize)] + struct R { + playlist: PlaylistDetail, + } + let r: R = self.call("getPlaylist", &[("id", id.into())]).await?; + Ok(r.playlist) + } + + pub async fn search(&self, query: &str) -> Result { + #[derive(Deserialize)] + struct R { + #[serde(rename = "searchResult3", default)] + result: SearchResult, + } + let r: R = self + .call( + "search3", + &[ + ("query", query.into()), + ("artistCount", "20".into()), + ("albumCount", "40".into()), + ("songCount", "80".into()), + ], + ) + .await?; + Ok(r.result) + } + + pub async fn scrobble(&self, id: &str, submission: bool) -> Result<()> { + let _: serde_json::Value = self + .call("scrobble", &[("id", id.into()), ("submission", submission.to_string())]) + .await?; + Ok(()) + } + + pub async fn cover_art(&self, id: &str, size: u32) -> Result> { + let url = self.endpoint_url("getCoverArt", &[("id", id.into()), ("size", size.to_string())])?; + let resp = self.http.get(url).send().await.map_err(redact)?; + let status = resp.status(); + if !status.is_success() { + bail!("getCoverArt: server returned {status}"); + } + let is_json = resp + .headers() + .get(reqwest::header::CONTENT_TYPE) + .and_then(|v| v.to_str().ok()) + .is_some_and(|v| v.contains("json") || v.contains("xml")); + if is_json { + bail!("getCoverArt: no image for {id}"); + } + Ok(resp.bytes().await.map_err(redact)?.to_vec()) + } + + pub fn stream_url(&self, id: &str) -> String { + self.endpoint_url("stream", &[("id", id.into())]) + .map(|u| u.to_string()) + .unwrap_or_default() + } +} + +/// Request URLs carry the auth token, so they must never reach an error +/// message: those end up on screen and in the logs. +fn redact(e: reqwest::Error) -> reqwest::Error { + e.without_url() +} + +fn normalize_base(base: &str) -> String { + let base = base.trim().trim_end_matches('/'); + let base = base.strip_suffix("/rest").unwrap_or(base); + if base.starts_with("http://") || base.starts_with("https://") { + base.to_string() + } else { + format!("https://{base}") + } +} + +fn random_salt() -> String { + let nanos = SystemTime::now() + .duration_since(UNIX_EPOCH) + .map(|d| d.as_nanos()) + .unwrap_or(0); + let a = RandomState::new().hash_one(nanos); + let b = RandomState::new().hash_one(a ^ u64::from(std::process::id())); + format!("{a:016x}{b:016x}") +} + +/// Older servers send ids as numbers, OpenSubsonic as strings. +fn de_id<'de, D: Deserializer<'de>>(d: D) -> Result { + Ok(match serde_json::Value::deserialize(d)? { + serde_json::Value::String(s) => s, + serde_json::Value::Number(n) => n.to_string(), + other => other.to_string(), + }) +} + +fn de_opt_id<'de, D: Deserializer<'de>>(d: D) -> Result, D::Error> { + Ok(match Option::::deserialize(d)? { + Some(serde_json::Value::String(s)) if !s.is_empty() => Some(s), + Some(serde_json::Value::Number(n)) => Some(n.to_string()), + _ => None, + }) +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Album { + #[serde(deserialize_with = "de_id")] + pub id: String, + #[serde(default)] + pub name: String, + #[serde(default)] + pub artist: Option, + #[serde(default, deserialize_with = "de_opt_id")] + pub cover_art: Option, + #[serde(default)] + pub year: Option, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Artist { + #[serde(deserialize_with = "de_id")] + pub id: String, + #[serde(default)] + pub name: String, + #[serde(default)] + pub album_count: Option, + #[serde(default, deserialize_with = "de_opt_id")] + pub cover_art: Option, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct ArtistDetail { + #[serde(default)] + pub name: String, + #[serde(default)] + pub album: Vec, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct AlbumDetail { + #[serde(default)] + pub name: String, + #[serde(default)] + pub artist: Option, + #[serde(default, deserialize_with = "de_opt_id")] + pub cover_art: Option, + #[serde(default)] + pub year: Option, + #[serde(default)] + pub duration: Option, + #[serde(default)] + pub song: Vec, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Song { + #[serde(deserialize_with = "de_id")] + pub id: String, + #[serde(default)] + pub title: String, + #[serde(default)] + pub artist: Option, + #[serde(default)] + pub album: Option, + #[serde(default, deserialize_with = "de_opt_id")] + pub cover_art: Option, + #[serde(default)] + pub duration: Option, + #[serde(default)] + pub track: Option, + #[serde(default)] + pub disc_number: Option, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Playlist { + #[serde(deserialize_with = "de_id")] + pub id: String, + #[serde(default)] + pub name: String, + #[serde(default)] + pub song_count: Option, + #[serde(default, deserialize_with = "de_opt_id")] + pub cover_art: Option, + #[serde(default)] + pub owner: Option, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct PlaylistDetail { + #[serde(default)] + pub name: String, + #[serde(default, deserialize_with = "de_opt_id")] + pub cover_art: Option, + #[serde(default)] + pub duration: Option, + #[serde(default)] + pub entry: Vec, +} + +#[derive(Debug, Clone, Default, Deserialize)] +pub struct SearchResult { + #[serde(default)] + pub artist: Vec, + #[serde(default)] + pub album: Vec, + #[serde(default)] + pub song: Vec, +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn base_url_is_normalized() { + assert_eq!(normalize_base("music.example.com/"), "https://music.example.com"); + assert_eq!(normalize_base("http://nas:4533/rest"), "http://nas:4533"); + } + + #[test] + fn numeric_ids_are_accepted() { + let a: Album = serde_json::from_str(r#"{"id": 42, "name": "X", "coverArt": 7}"#).unwrap(); + assert_eq!(a.id, "42"); + assert_eq!(a.cover_art.as_deref(), Some("7")); + } + + /// Exercises every endpoint against a real server: + /// REMUS_TEST_URL=... REMUS_TEST_USER=... REMUS_TEST_PASS=... cargo test -- --ignored + #[tokio::test] + #[ignore] + async fn live_server() { + let var = |k| std::env::var(k).unwrap_or_else(|_| panic!("{k} not set")); + let c = Client::from_password(&var("REMUS_TEST_URL"), &var("REMUS_TEST_USER"), &var("REMUS_TEST_PASS")); + c.ping().await.unwrap(); + + let albums = c.album_list("newest", 10, 0).await.unwrap(); + assert!(!albums.is_empty(), "no albums"); + let album = c.album(&albums[0].id).await.unwrap(); + assert!(!album.song.is_empty(), "album has no songs"); + println!( + "album: {} by {:?}, {} songs", + album.name, + album.artist, + album.song.len() + ); + + let cover = album.cover_art.as_deref().expect("album has no cover id"); + let bytes = c.cover_art(cover, 256).await.unwrap(); + let img = image::load_from_memory(&bytes).unwrap(); + println!("cover: {}x{}", img.width(), img.height()); + + let artists = c.artists().await.unwrap(); + assert!(!artists.is_empty(), "no artists"); + let artist = c.artist(&artists[0].id).await.unwrap(); + println!("artist: {} with {} albums", artist.name, artist.album.len()); + + let playlists = c.playlists().await.unwrap(); + if let Some(p) = playlists.first() { + let p = c.playlist(&p.id).await.unwrap(); + println!("playlist: {} with {} entries", p.name, p.entry.len()); + } + + let found = c.search(&album.name).await.unwrap(); + assert!(!found.album.is_empty(), "search found nothing for {}", album.name); + + let url = c.stream_url(&album.song[0].id); + let resp = reqwest::get(&url).await.unwrap(); + assert!(resp.status().is_success(), "stream returned {}", resp.status()); + println!("stream content-type: {:?}", resp.headers().get("content-type")); + } + + #[tokio::test] + async fn errors_never_contain_the_token() { + // Port 1 on loopback refuses the connection, so the request fails. + let c = Client::new("http://127.0.0.1:1", "u", "somesalt", "secrettoken"); + let err = format!("{:#}", c.ping().await.unwrap_err()); + assert!(!err.contains("secrettoken"), "token leaked: {err}"); + assert!(!err.contains("somesalt"), "salt leaked: {err}"); + let err = format!("{:#}", c.cover_art("al-1", 256).await.unwrap_err()); + assert!(!err.contains("secrettoken"), "token leaked: {err}"); + } + + #[test] + fn token_is_md5_of_password_and_salt() { + let c = Client::from_password("http://x", "u", "sesame"); + let expected = format!("{:x}", md5::compute(format!("sesame{}", c.salt()))); + assert_eq!(c.token(), expected); + } +} diff --git a/ui/app.slint b/ui/app.slint new file mode 100644 index 0000000..d9d1f56 --- /dev/null +++ b/ui/app.slint @@ -0,0 +1,1102 @@ +// All sizes are multiplied by Theme.s, which is derived from the window height +// (800px = 1.0, the Steam Deck). The UI keeps the same proportions on a Deck +// and on a 4K TV, whatever scale factor the compositor reports. + +export enum Action { + none, up, down, left, right, page-up, page-down, activate, back, + play-pause, next, prev, queue, section-next, section-prev, + now-playing, search, seek-forward, seek-back, toggle-fullscreen, quit, +} + +export enum Screen { login, browse, now-playing } +export enum Area { sidebar, content, search } + +export struct Item { + index: int, + title: string, + subtitle: string, + detail: string, + number: string, + letter: string, + cover: image, + has-cover: bool, + tint: color, + round: bool, + show-art: bool, + playing: bool, +} + +export struct Header { + visible: bool, + kind: string, + title: string, + subtitle: string, + info: string, + letter: string, + cover: image, + has-cover: bool, + tint: color, + round: bool, +} + +export struct Hint { key: string, label: string } + +export global Theme { + in-out property s: 1.0; + out property bg: #0d0f13; + out property panel: #14171d; + out property raised: #1e222a; + out property line: #2a2f39; + out property text: #f3f4f6; + out property muted: #a0a7b4; + out property faint: #626a78; + out property accent: #8ab4ff; + out property on-accent: #0d0f13; +} + +component Art inherits Rectangle { + in property source; + in property has-image; + in property tint: #39404d; + in property letter; + in property round; + in property letter-size: 64px * Theme.s; + border-radius: root.round ? self.width / 2 : 8px * Theme.s; + clip: true; + background: @linear-gradient(135deg, root.tint, root.tint.darker(0.7)); + + Text { + width: parent.width; + height: parent.height; + text: root.letter; + // Not derived from the art's own height: that feeds back into layout. + font-size: root.letter-size; + font-weight: 800; + color: #ffffff60; + horizontal-alignment: center; + vertical-alignment: center; + visible: !root.has-image; + } + + Image { + width: parent.width; + height: parent.height; + source: root.source; + image-fit: ImageFit.cover; + opacity: root.has-image ? 1 : 0; + animate opacity { duration: 220ms; } + } +} + +component Card inherits Rectangle { + in property item; + in property selected; + in property active; + in property art; + callback clicked; + + property ring: 5px * Theme.s; + + Rectangle { + x: -root.ring; + y: -root.ring; + width: root.art + 2 * root.ring; + height: root.art + 2 * root.ring; + border-radius: root.item.round ? self.width / 2 : 13px * Theme.s; + border-width: 3px * Theme.s; + border-color: root.selected ? (root.active ? Theme.accent : Theme.faint) : transparent; + animate border-color { duration: 120ms; } + } + + Art { + x: 0; + y: 0; + width: root.art; + height: root.art; + source: root.item.cover; + has-image: root.item.has-cover; + tint: root.item.tint; + letter: root.item.letter; + round: root.item.round; + } + + if root.item.playing: Rectangle { + x: root.art - self.width - 10px * Theme.s; + y: root.art - self.height - 10px * Theme.s; + width: 34px * Theme.s; + height: 34px * Theme.s; + border-radius: self.width / 2; + background: Theme.accent; + Text { + text: "▶"; + color: Theme.on-accent; + font-size: 15px * Theme.s; + } + } + + Text { + x: 0; + y: root.art + 12px * Theme.s; + width: root.art; + text: root.item.title; + font-size: 16px * Theme.s; + font-weight: 600; + color: root.selected && root.active ? Theme.text : Theme.text.darker(0.08); + overflow: elide; + horizontal-alignment: root.item.round ? center : left; + } + + Text { + x: 0; + y: root.art + 35px * Theme.s; + width: root.art; + text: root.item.subtitle; + font-size: 13px * Theme.s; + color: Theme.muted; + overflow: elide; + horizontal-alignment: root.item.round ? center : left; + } + + TouchArea { + clicked => { root.clicked(); } + } +} + +component Row inherits Rectangle { + in property item; + in property selected; + in property active; + callback clicked; + + border-radius: 10px * Theme.s; + background: root.selected ? (root.active ? Theme.raised : Theme.panel) : transparent; + border-width: root.selected && root.active ? 2px * Theme.s : 0; + border-color: Theme.accent; + + HorizontalLayout { + padding-left: 16px * Theme.s; + padding-right: 22px * Theme.s; + spacing: 18px * Theme.s; + + if root.item.show-art: VerticalLayout { + alignment: center; + Art { + width: 46px * Theme.s; + height: 46px * Theme.s; + source: root.item.cover; + has-image: root.item.has-cover; + tint: root.item.tint; + letter: root.item.letter; + letter-size: 20px * Theme.s; + round: root.item.round; + } + } + if !root.item.show-art: Text { + width: 34px * Theme.s; + text: root.item.playing ? "▶" : root.item.number; + font-size: 15px * Theme.s; + color: root.item.playing ? Theme.accent : Theme.faint; + horizontal-alignment: right; + vertical-alignment: center; + } + + VerticalLayout { + alignment: center; + spacing: 3px * Theme.s; + horizontal-stretch: 1; + Text { + text: root.item.title; + font-size: 17px * Theme.s; + font-weight: 600; + color: root.item.playing ? Theme.accent : Theme.text; + overflow: elide; + } + if root.item.subtitle != "": Text { + text: root.item.subtitle; + font-size: 14px * Theme.s; + color: Theme.muted; + overflow: elide; + } + } + + Text { + text: root.item.detail; + font-size: 15px * Theme.s; + color: Theme.muted; + vertical-alignment: center; + } + } + + TouchArea { + clicked => { root.clicked(); } + } +} + +// A scrolling grid or list. Only a window of items around the selection is in +// `items`; each carries its absolute index, which positions it. +component ItemView inherits Rectangle { + in property <[Item]> items; + in property count; + in property selected; + in property list-mode; + in property active: true; + in property status; + callback item-clicked(int); + callback wheel(int); + + property gap: 26px * Theme.s; + property min-art: 170px * Theme.s; + property pad: 8px * Theme.s; + out property columns: root.list-mode ? 1 : max(1, floor((root.width - 2 * root.pad + root.gap) / (root.min-art + root.gap))); + out property art: root.list-mode ? 0px : (root.width - 2 * root.pad - (root.columns - 1) * root.gap) / root.columns; + property row-h: root.list-mode ? 70px * Theme.s : root.art + 64px * Theme.s + root.gap; + property total-rows: ceil(root.count / root.columns); + property sel-row: floor(root.selected / root.columns); + property max-scroll: max(0px, root.total-rows * root.row-h + 2 * root.pad - root.height); + property scroll: max(0px, min(root.max-scroll, root.sel-row * root.row-h - (root.height - root.row-h) / 2)); + animate scroll { duration: 200ms; easing: ease-out; } + + clip: true; + + TouchArea { + scroll-event(e) => { + if (e.delta-y < 0) { + root.wheel(1); + } else if (e.delta-y > 0) { + root.wheel(-1); + } + accept + } + + for it in root.items: Rectangle { + x: root.pad + (root.list-mode ? 0px : mod(it.index, root.columns) * (root.art + root.gap)); + y: root.pad + floor(it.index / root.columns) * root.row-h - root.scroll; + width: root.list-mode ? root.width - 2 * root.pad : root.art; + height: root.list-mode ? 64px * Theme.s : root.row-h - root.gap; + + if root.list-mode: Row { + width: parent.width; + height: parent.height; + item: it; + selected: it.index == root.selected; + active: root.active; + clicked => { root.item-clicked(it.index); } + } + if !root.list-mode: Card { + width: parent.width; + height: parent.height; + art: root.art; + item: it; + selected: it.index == root.selected; + active: root.active; + clicked => { root.item-clicked(it.index); } + } + } + } + + if root.status != "": Text { + text: root.status; + font-size: 20px * Theme.s; + color: Theme.muted; + horizontal-alignment: center; + vertical-alignment: center; + wrap: word-wrap; + width: parent.width * 0.7; + } +} + +component PageHeader inherits Rectangle { + in property
h; + property art: 176px * Theme.s; + + HorizontalLayout { + spacing: 30px * Theme.s; + padding-left: 8px * Theme.s; + padding-bottom: 12px * Theme.s; + + if root.h.has-cover || root.h.letter != "": VerticalLayout { + alignment: end; + Art { + width: root.art; + height: root.art; + source: root.h.cover; + has-image: root.h.has-cover; + tint: root.h.tint; + letter: root.h.letter; + letter-size: 72px * Theme.s; + round: root.h.round; + } + } + + VerticalLayout { + alignment: end; + spacing: 6px * Theme.s; + horizontal-stretch: 1; + Text { + text: root.h.kind; + font-size: 13px * Theme.s; + font-weight: 700; + letter-spacing: 2px * Theme.s; + color: Theme.accent; + } + Text { + text: root.h.title; + font-size: 40px * Theme.s; + font-weight: 800; + color: Theme.text; + overflow: elide; + } + if root.h.subtitle != "": Text { + text: root.h.subtitle; + font-size: 20px * Theme.s; + color: Theme.text; + overflow: elide; + } + if root.h.info != "": Text { + text: root.h.info; + font-size: 15px * Theme.s; + color: Theme.muted; + } + } + } +} + +component Sidebar inherits Rectangle { + in property <[string]> sections; + in property current; + in property active; + in property footer; + callback clicked(int); + + background: Theme.panel; + + VerticalLayout { + padding: 26px * Theme.s; + padding-top: 34px * Theme.s; + spacing: 6px * Theme.s; + alignment: start; + + Text { + text: "remus"; + font-size: 30px * Theme.s; + font-weight: 800; + color: Theme.text; + } + Rectangle { height: 26px * Theme.s; } + + for name[i] in root.sections: Rectangle { + height: 50px * Theme.s; + border-radius: 11px * Theme.s; + background: i == root.current ? (root.active ? Theme.accent : Theme.raised) : transparent; + animate background { duration: 120ms; } + Text { + x: 18px * Theme.s; + height: parent.height; + text: name; + font-size: 18px * Theme.s; + font-weight: i == root.current ? 700 : 500; + color: i == root.current ? (root.active ? Theme.on-accent : Theme.text) : Theme.muted; + vertical-alignment: center; + } + TouchArea { + clicked => { root.clicked(i); } + } + } + } + + Text { + x: 26px * Theme.s; + y: parent.height - self.height - 22px * Theme.s; + width: parent.width - 52px * Theme.s; + text: root.footer; + font-size: 12px * Theme.s; + color: Theme.faint; + overflow: elide; + } +} + +component SearchBox inherits Rectangle { + in-out property text; + in property highlighted; + callback accepted(string); + public function focus-input() { + input.focus(); + } + + border-radius: 12px * Theme.s; + background: Theme.raised; + border-width: 2px * Theme.s; + border-color: input.has-focus || root.highlighted ? Theme.accent : Theme.line; + + input := TextInput { + x: 18px * Theme.s; + width: parent.width - 36px * Theme.s; + height: parent.height; + text <=> root.text; + font-size: 20px * Theme.s; + color: Theme.text; + vertical-alignment: center; + single-line: true; + accepted => { root.accepted(self.text); } + } + if root.text == "": Text { + x: 18px * Theme.s; + height: parent.height; + text: "Search artists, albums and songs"; + font-size: 20px * Theme.s; + color: Theme.faint; + vertical-alignment: center; + } +} + +component NowBar inherits Rectangle { + in property has-track; + in property title; + in property artist; + in property cover; + in property has-cover; + in property tint; + in property letter; + in property progress; + in property time; + in property paused; + + background: Theme.panel; + + Rectangle { + x: 0; + y: 0; + width: parent.width; + height: 3px * Theme.s; + background: Theme.raised; + Rectangle { + x: 0; + width: parent.width * root.progress; + background: Theme.accent; + } + } + + HorizontalLayout { + padding-left: 22px * Theme.s; + padding-right: 30px * Theme.s; + padding-top: 12px * Theme.s; + padding-bottom: 10px * Theme.s; + spacing: 16px * Theme.s; + + if root.has-track: VerticalLayout { + alignment: center; + Art { + width: 54px * Theme.s; + height: 54px * Theme.s; + source: root.cover; + has-image: root.has-cover; + tint: root.tint; + letter: root.letter; + letter-size: 22px * Theme.s; + } + } + VerticalLayout { + alignment: center; + horizontal-stretch: 1; + spacing: 3px * Theme.s; + Text { + text: root.has-track ? root.title : "Nothing playing"; + font-size: 17px * Theme.s; + font-weight: 600; + color: root.has-track ? Theme.text : Theme.faint; + overflow: elide; + } + if root.has-track: Text { + text: root.artist; + font-size: 14px * Theme.s; + color: Theme.muted; + overflow: elide; + } + } + if root.has-track: Text { + text: root.time; + font-size: 15px * Theme.s; + color: Theme.muted; + vertical-alignment: center; + } + if root.has-track: Text { + text: root.paused ? "❚❚" : "▶"; + font-size: 18px * Theme.s; + color: Theme.accent; + vertical-alignment: center; + } + } +} + +component HintBar inherits Rectangle { + in property <[Hint]> hints; + + pure function key-color(k: string) -> color { + if (k == "A") { return #3fb950; } + if (k == "B") { return #f0605d; } + if (k == "X") { return #4d8ff7; } + if (k == "Y") { return #e3b341; } + return Theme.line; + } + + HorizontalLayout { + padding-left: 28px * Theme.s; + padding-right: 28px * Theme.s; + spacing: 28px * Theme.s; + alignment: end; + + for h in root.hints: HorizontalLayout { + spacing: 9px * Theme.s; + VerticalLayout { + alignment: center; + Rectangle { + min-width: 26px * Theme.s; + height: 26px * Theme.s; + border-radius: 13px * Theme.s; + background: root.key-color(h.key); + HorizontalLayout { + padding-left: 8px * Theme.s; + padding-right: 8px * Theme.s; + Text { + text: h.key; + font-size: 12px * Theme.s; + font-weight: 800; + color: #ffffff; + horizontal-alignment: center; + vertical-alignment: center; + } + } + } + } + Text { + text: h.label; + font-size: 14px * Theme.s; + color: Theme.muted; + vertical-alignment: center; + } + } + } +} + +component Field inherits VerticalLayout { + in property label; + in-out property text; + in property password; + in property highlighted; + callback accepted; + public function focus-input() { + input.focus(); + } + + spacing: 7px * Theme.s; + Text { + text: root.label; + font-size: 14px * Theme.s; + color: Theme.muted; + } + Rectangle { + height: 50px * Theme.s; + border-radius: 10px * Theme.s; + background: Theme.raised; + border-width: 2px * Theme.s; + border-color: input.has-focus || root.highlighted ? Theme.accent : Theme.line; + input := TextInput { + x: 16px * Theme.s; + width: parent.width - 32px * Theme.s; + height: parent.height; + text <=> root.text; + font-size: 19px * Theme.s; + color: Theme.text; + vertical-alignment: center; + single-line: true; + input-type: root.password ? InputType.password : InputType.text; + accepted => { root.accepted(); } + } + } +} + +component LoginView inherits Rectangle { + in-out property server; + in-out property username; + in-out property password; + in property focus-index; + in property error; + in property busy; + callback submit; + callback field-clicked(int); + public function focus-field(i: int) { + if (i == 0) { + f0.focus-input(); + } else if (i == 1) { + f1.focus-input(); + } else if (i == 2) { + f2.focus-input(); + } + } + + Rectangle { + width: min(560px * Theme.s, parent.width - 40px * Theme.s); + height: col.preferred-height; + border-radius: 18px * Theme.s; + background: Theme.panel; + + col := VerticalLayout { + padding: 40px * Theme.s; + spacing: 20px * Theme.s; + + Text { + text: "remus"; + font-size: 38px * Theme.s; + font-weight: 800; + color: Theme.text; + } + Text { + text: "Connect to your Subsonic server"; + font-size: 17px * Theme.s; + color: Theme.muted; + } + f0 := Field { + label: "Server address"; + text <=> root.server; + highlighted: root.focus-index == 0; + accepted => { root.field-clicked(1); } + } + f1 := Field { + label: "Username"; + text <=> root.username; + highlighted: root.focus-index == 1; + accepted => { root.field-clicked(2); } + } + f2 := Field { + label: "Password"; + text <=> root.password; + password: true; + highlighted: root.focus-index == 2; + accepted => { root.submit(); } + } + Rectangle { + height: 54px * Theme.s; + border-radius: 12px * Theme.s; + background: root.focus-index == 3 ? Theme.accent : Theme.raised; + Text { + text: root.busy ? "Connecting…" : "Connect"; + font-size: 19px * Theme.s; + font-weight: 700; + color: root.focus-index == 3 ? Theme.on-accent : Theme.text; + } + TouchArea { + clicked => { root.submit(); } + } + } + if root.error != "": Text { + text: root.error; + font-size: 15px * Theme.s; + color: #f0605d; + wrap: word-wrap; + } + Text { + text: "On a Steam Deck, press Steam + X to bring up the keyboard."; + font-size: 13px * Theme.s; + color: Theme.faint; + wrap: word-wrap; + } + } + } +} + +component NowPlayingView inherits Rectangle { + in property title; + in property artist; + in property album; + in property cover; + in property has-cover; + in property tint; + in property letter; + in property progress; + in property position; + in property duration; + in property paused; + in property has-track; + in property <[Item]> queue; + in property queue-count; + in property queue-selected; + callback queue-clicked(int); + callback queue-wheel(int); + // From the scale, not our own size: a layout child sized from its parent loops. + out property art-size: 440px * Theme.s; + + // Blown-up cover as a dim backdrop. + if root.has-cover: Image { + width: parent.width; + height: parent.height; + source: root.cover; + image-fit: ImageFit.cover; + opacity: 0.16; + } + Rectangle { + background: @linear-gradient(90deg, #0d0f13aa, #0d0f13f2); + } + + HorizontalLayout { + padding: 56px * Theme.s; + padding-bottom: 28px * Theme.s; + spacing: 64px * Theme.s; + + VerticalLayout { + alignment: center; + spacing: 10px * Theme.s; + width: root.art-size; + + Art { + width: root.art-size; + height: root.art-size; + source: root.cover; + has-image: root.has-cover; + tint: root.tint; + letter: root.letter; + letter-size: 150px * Theme.s; + drop-shadow-blur: 40px * Theme.s; + drop-shadow-color: #00000090; + } + Rectangle { height: 14px * Theme.s; } + Text { + text: root.has-track ? root.title : "Nothing playing"; + font-size: 30px * Theme.s; + font-weight: 800; + color: Theme.text; + overflow: elide; + } + Text { + text: root.artist; + font-size: 20px * Theme.s; + color: Theme.text; + overflow: elide; + } + Text { + text: root.album; + font-size: 16px * Theme.s; + color: Theme.muted; + overflow: elide; + } + Rectangle { height: 8px * Theme.s; } + Rectangle { + height: 6px * Theme.s; + border-radius: 3px * Theme.s; + background: Theme.raised; + Rectangle { + x: 0; + width: parent.width * root.progress; + border-radius: 3px * Theme.s; + background: Theme.accent; + } + } + HorizontalLayout { + Text { + text: root.position; + font-size: 14px * Theme.s; + color: Theme.muted; + } + Text { + horizontal-stretch: 1; + text: root.has-track ? (root.paused ? "Paused" : "Playing") : ""; + font-size: 14px * Theme.s; + color: Theme.accent; + horizontal-alignment: center; + } + Text { + text: root.duration; + font-size: 14px * Theme.s; + color: Theme.muted; + } + } + } + + VerticalLayout { + spacing: 14px * Theme.s; + horizontal-stretch: 1; + Text { + text: "Queue"; + font-size: 26px * Theme.s; + font-weight: 800; + color: Theme.text; + } + ItemView { + vertical-stretch: 1; + list-mode: true; + items: root.queue; + count: root.queue-count; + selected: root.queue-selected; + status: root.queue-count == 0 ? "The queue is empty. Press Y on an album or track to add it." : ""; + item-clicked(i) => { root.queue-clicked(i); } + wheel(d) => { root.queue-wheel(d); } + } + } + } +} + +export component AppWindow inherits Window { + title: "Remus"; + background: Theme.bg; + preferred-width: 1280px; + preferred-height: 800px; + min-width: 640px; + min-height: 400px; + default-font-size: 16px * Theme.s; + + callback action(Action); + callback item-clicked(int); + callback wheel(int); + callback sidebar-clicked(int); + callback queue-clicked(int); + callback queue-wheel(int); + callback search-accepted(string); + callback login-submit(); + callback login-field-clicked(int); + callback layout-changed(); + + in property screen: Screen.login; + in property area: Area.sidebar; + + // Login + in-out property login-server; + in-out property login-username; + in-out property login-password; + in property login-focus; + in property login-error; + in property login-busy; + + // Browse + in property <[string]> sections; + in property section; + in property server-label; + in property page-title; + in property page-loading; + in property
header; + in property is-search; + in-out property search-text; + in property <[Item]> items; + in property item-count; + in property selected; + in property list-mode; + in property status; + out property grid-columns: view.columns; + out property grid-art: view.art; + + // Playback + in property np-has-track; + in property np-title; + in property np-artist; + in property np-album; + in property np-cover; + in property np-has-cover; + in property np-tint; + in property np-letter; + in property np-progress; + in property np-position; + in property np-duration; + in property np-paused; + in property <[Item]> queue-items; + in property queue-count; + in property queue-selected; + out property np-art-size: np.art-size; + + in property <[Hint]> hints; + in property toast; + + public function focus-main() { + fs.focus(); + } + public function focus-search() { + search.focus-input(); + } + public function focus-login(i: int) { + if (i >= 3) { + fs.focus(); + } else { + login.focus-field(i); + } + } + + init => { + Theme.s = max(0.5, root.height / 800px); + } + changed height => { + Theme.s = max(0.5, root.height / 800px); + } + changed grid-columns => { + root.layout-changed(); + } + + forward-focus: fs; + + fs := FocusScope { + key-pressed(e) => { + if (e.modifiers.control && (e.text == "q" || e.text == "Q")) { + root.action(Action.quit); + return accept; + } + if (e.text == Key.UpArrow) { root.action(Action.up); return accept; } + if (e.text == Key.DownArrow) { root.action(Action.down); return accept; } + if (e.text == Key.LeftArrow) { root.action(Action.left); return accept; } + if (e.text == Key.RightArrow) { root.action(Action.right); return accept; } + if (e.text == Key.PageUp) { root.action(Action.page-up); return accept; } + if (e.text == Key.PageDown) { root.action(Action.page-down); return accept; } + if (e.text == Key.Return) { root.action(Action.activate); return accept; } + if (e.text == Key.Escape || e.text == Key.Backspace) { root.action(Action.back); return accept; } + if (e.text == Key.Backtab || (e.text == Key.Tab && e.modifiers.shift)) { root.action(Action.section-prev); return accept; } + if (e.text == Key.Tab) { root.action(Action.section-next); return accept; } + if (e.text == Key.F11) { root.action(Action.toggle-fullscreen); return accept; } + if (e.text == " ") { root.action(Action.play-pause); return accept; } + if (e.text == "n") { root.action(Action.next); return accept; } + if (e.text == "p") { root.action(Action.prev); return accept; } + if (e.text == "q") { root.action(Action.queue); return accept; } + if (e.text == "/") { root.action(Action.search); return accept; } + if (e.text == "f") { root.action(Action.now-playing); return accept; } + if (e.text == ",") { root.action(Action.seek-back); return accept; } + if (e.text == ".") { root.action(Action.seek-forward); return accept; } + reject + } + + VerticalLayout { + Rectangle { + vertical-stretch: 1; + // Hidden screens still report their minimum size; ignore it so the + // bars below always fit. + min-height: 0px; + + login := LoginView { + visible: root.screen == Screen.login; + server <=> root.login-server; + username <=> root.login-username; + password <=> root.login-password; + focus-index: root.login-focus; + error: root.login-error; + busy: root.login-busy; + submit => { root.login-submit(); } + field-clicked(i) => { root.login-field-clicked(i); } + } + + Rectangle { + visible: root.screen == Screen.browse; + HorizontalLayout { + Sidebar { + width: 236px * Theme.s; + sections: root.sections; + current: root.section; + active: root.area == Area.sidebar; + footer: root.server-label; + clicked(i) => { root.sidebar-clicked(i); } + } + VerticalLayout { + padding-left: 36px * Theme.s; + padding-right: 36px * Theme.s; + padding-top: 30px * Theme.s; + spacing: 14px * Theme.s; + + HorizontalLayout { + spacing: 16px * Theme.s; + height: root.header.visible ? 0px : 44px * Theme.s; + visible: !root.header.visible; + Text { + text: root.page-title; + font-size: 30px * Theme.s; + font-weight: 800; + color: Theme.text; + vertical-alignment: center; + } + Text { + horizontal-stretch: 1; + text: root.page-loading && root.item-count > 0 ? "Loading…" : ""; + font-size: 15px * Theme.s; + color: Theme.faint; + vertical-alignment: center; + } + } + PageHeader { + height: root.header.visible ? 200px * Theme.s : 0px; + visible: root.header.visible; + h: root.header; + } + search := SearchBox { + height: root.is-search ? 60px * Theme.s : 0px; + visible: root.is-search; + text <=> root.search-text; + highlighted: root.area == Area.search; + accepted(t) => { root.search-accepted(t); } + } + view := ItemView { + vertical-stretch: 1; + items: root.items; + count: root.item-count; + selected: root.selected; + list-mode: root.list-mode; + active: root.area == Area.content; + status: root.status; + item-clicked(i) => { root.item-clicked(i); } + wheel(d) => { root.wheel(d); } + } + } + } + } + + np := NowPlayingView { + visible: root.screen == Screen.now-playing; + title: root.np-title; + artist: root.np-artist; + album: root.np-album; + cover: root.np-cover; + has-cover: root.np-has-cover; + tint: root.np-tint; + letter: root.np-letter; + progress: root.np-progress; + position: root.np-position; + duration: root.np-duration; + paused: root.np-paused; + has-track: root.np-has-track; + queue: root.queue-items; + queue-count: root.queue-count; + queue-selected: root.queue-selected; + queue-clicked(i) => { root.queue-clicked(i); } + queue-wheel(d) => { root.queue-wheel(d); } + } + + if root.toast != "": Rectangle { + x: (parent.width - self.width) / 2; + y: 24px * Theme.s; + width: toast-text.preferred-width + 48px * Theme.s; + height: 48px * Theme.s; + border-radius: 24px * Theme.s; + background: Theme.raised; + border-width: 1px * Theme.s; + border-color: Theme.line; + drop-shadow-blur: 20px * Theme.s; + drop-shadow-color: #00000080; + toast-text := Text { + text: root.toast; + font-size: 16px * Theme.s; + color: Theme.text; + } + } + } + + if root.screen == Screen.browse: NowBar { + height: 80px * Theme.s; + has-track: root.np-has-track; + title: root.np-title; + artist: root.np-artist; + cover: root.np-cover; + has-cover: root.np-has-cover; + tint: root.np-tint; + letter: root.np-letter; + progress: root.np-progress; + time: root.np-position + " / " + root.np-duration; + paused: root.np-paused; + } + + HintBar { + height: 46px * Theme.s; + hints: root.hints; + } + } + } +}