diff --git a/.github/actions/system-deps/action.yml b/.github/actions/system-deps/action.yml index 1767ab4..7784414 100644 --- a/.github/actions/system-deps/action.yml +++ b/.github/actions/system-deps/action.yml @@ -16,7 +16,8 @@ runs: - name: apt packages if: runner.os == 'Linux' shell: bash - # ALSA (audio devices), fontconfig + xkbcommon (UI), libvpx + dav1d + # ALSA (audio devices), fontconfig + xkbcommon (UI), xkbcommon-x11 + xcb (linked + # by the GPUI front end), libvpx + dav1d # (video codecs), PipeWire + SPA (screen and audio capture), libclang # (bindgen), Xvfb (X11 tests). run: | @@ -27,7 +28,7 @@ runs: "${sudo[@]}" apt-get update "${sudo[@]}" apt-get install -y --no-install-recommends \ build-essential ca-certificates cmake curl git jq pkg-config python3 \ - libasound2-dev libfontconfig1-dev libxkbcommon-dev \ + libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev \ libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev \ xvfb xauth diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ac674..4145942 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,24 @@ User-visible changes of the apps and the `tsgw` gateway. The format follows ### Added +- `voelin-gpui`, the GPUI front end of the desktop app, in its first form: a + window titled Voelin with one line of the app's state in it (the version, + the voice connections that are up, the engine events handled, the seconds + up), fed by the same engine and the same view models as the Slint app + (`cargo run -p voelin-gpui --release`), in the Voelin theme: every colour, + radius, size and type token of the Slint app's `theme.slint`, light and dark + (a test reads the Slint file and fails when the two differ), written into + the widget library's theme too, in Inter, with the Slint app's Lucide icons. + `system` mode follows the window's appearance. `VOELIN_OPEN=swatch` shows + every token, a few widgets and the icons (`VOELIN_DEV_THEME`, + `VOELIN_FONT_SCALE`, `VOELIN_WINDOW_SIZE`; screenshots with + `scripts/gpui-shot.sh`, docs/ui/). `VOELIN_METER=1` logs what it costs once a + second: the CPU by group of threads, the memory and its own counters. A + window that cannot open (no driver, no display server) ends the app with + the reason and exit status 1. The Slint app (`voelin`) is unchanged and + stays the app; both run on one engine until the GPUI one reaches parity + (docs/ui.md). It needs Vulkan or OpenGL at run time (Mesa's lavapipe renders + in software); no package ships it yet. - Log files: each run logs to `/voelin/logs/voelin.log`, the previous four runs are kept; `VOELIN_LOG` sets what is logged. Settings → Advanced opens the folder. @@ -69,6 +87,18 @@ User-visible changes of the apps and the `tsgw` gateway. The format follows ### Changed +- The desktop portals (screen capture and camera through PipeWire, the push to + talk shortcut, the file chooser and the proxy settings) talk to D-Bus through + ashpd on `async-io` instead of `tokio`. Nothing changes on screen; the GPUI + front end, which is being built, enables ashpd's `async-io` and ashpd cannot + have both. Every D-Bus connection of the apps, the desktop notifications' + included, now runs on an I/O thread of its own, whichever part of the app + asks first. +- The build needs Rust 1.95 (`rust-toolchain.toml` and the workspace's + `rust-version`; 1.95.0 was used to check it), up from 1.94: the GPUI + front end, which is being built, depends on a library that calls a function + stable since 1.95. Nothing changes in the apps; the gateway's Docker image + builds from `rust:1.95-bookworm`. - The key store now keeps the device key when signing out of an account, unbound, whether it was in use before the account or was made for it; "Forget this device's identity" is the only way a key is deleted. The identity store diff --git a/CLAUDE.md b/CLAUDE.md index 7f5b8a3..d32c568 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,6 +8,12 @@ org `Voelin`; the current plan lives in the approved plan file referenced in `cargo fmt` (hard tabs, `rustfmt.toml`) and `cargo clippy -D warnings` on the project's own crates (`scripts/own-crates.sh`) green. +Two front ends run on one engine until the second reaches parity: +`crates/voelin-ui` (Slint, the `voelin` binary, the app today) and +`crates/voelin-gpui` (GPUI on an exactly pinned `gpui-kit`, the `voelin-gpui` +binary, under construction); `crates/voelin-ui-vm` holds what they share, the +view models and the state, with no UI toolkit (`docs/ui.md`). + ## Hosting: Gitea, not GitHub - The source of truth is **https://git.faumaray.com** (Gitea). Pull requests, diff --git a/Cargo.lock b/Cargo.lock index 31c9466..64b60f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -24,6 +24,7 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3b7f7f85a7e5f68090000ed7622545829afd484d210358702ae4cb97dd0c320" dependencies = [ + "enumn", "uuid", ] @@ -36,7 +37,7 @@ dependencies = [ "accesskit", "accesskit_consumer", "atspi-common", - "phf", + "phf 0.13.1", "serde", "zvariant", ] @@ -126,6 +127,15 @@ dependencies = [ "winit", ] +[[package]] +name = "addr2line" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5d307320b3181d6d7954e663bd7c774a838b8220fe0593c86d9fb09f498b4b" +dependencies = [ + "gimli", +] + [[package]] name = "adler2" version = "2.0.1" @@ -161,6 +171,7 @@ dependencies = [ "cfg-if", "cipher 0.4.4", "cpufeatures 0.2.17", + "zeroize", ] [[package]] @@ -197,6 +208,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" dependencies = [ "cfg-if", + "const-random", "getrandom 0.3.4", "once_cell", "version_check", @@ -212,6 +224,24 @@ dependencies = [ "memchr", ] +[[package]] +name = "aligned" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee4508988c62edf04abd8d92897fca0c2995d907ce1dfeaf369dac3716a40685" +dependencies = [ + "as-slice", +] + +[[package]] +name = "aligned-vec" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b" +dependencies = [ + "equator", +] + [[package]] name = "alloca" version = "0.4.0" @@ -413,6 +443,12 @@ dependencies = [ "security-framework", ] +[[package]] +name = "arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" + [[package]] name = "arboard" version = "3.6.1" @@ -431,6 +467,26 @@ dependencies = [ "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 = "arg_enum_proc_macro" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "argon2" version = "0.6.0" @@ -443,6 +499,12 @@ dependencies = [ "password-hash", ] +[[package]] +name = "arraydeque" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" + [[package]] name = "arrayref" version = "0.3.9" @@ -461,6 +523,15 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" +[[package]] +name = "as-slice" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "516b6b4f0e40d50dcda9365d53964ec74560ad4284da2e7fc97122cd83174516" +dependencies = [ + "stable_deref_trait", +] + [[package]] name = "ash" version = "0.38.0+1.3.281" @@ -477,11 +548,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb8421aaa9644a5faf26735f258b669b15f063313ef8f8e2bdb28912a1a6f111" dependencies = [ "enumflags2", + "futures-channel", "futures-util", "getrandom 0.4.3", "serde", "serde_repr", - "tokio", + "wayland-backend", + "wayland-client", + "wayland-protocols", "zbus", ] @@ -562,6 +636,17 @@ dependencies = [ "slab", ] +[[package]] +name = "async-fs" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5" +dependencies = [ + "async-lock", + "blocking", + "futures-lite", +] + [[package]] name = "async-io" version = "2.6.0" @@ -591,6 +676,17 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "async-net" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7" +dependencies = [ + "async-io", + "blocking", + "futures-lite", +] + [[package]] name = "async-process" version = "2.5.0" @@ -655,6 +751,12 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "atomic" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c59bdb34bc650a32731b31bd8f0829cc15d24a708ee31559e0bb34f2bc320cba" + [[package]] name = "atomic-waker" version = "1.1.2" @@ -750,6 +852,49 @@ dependencies = [ "num-traits", ] +[[package]] +name = "av-scenechange" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f321d77c20e19b92c39e7471cf986812cbb46659d2af674adc4331ef3f18394" +dependencies = [ + "aligned", + "anyhow", + "arg_enum_proc_macro", + "arrayvec", + "log", + "num-rational", + "num-traits", + "pastey 0.1.1", + "rayon", + "thiserror 2.0.21", + "v_frame", + "y4m", +] + +[[package]] +name = "av1-grain" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cfddb07216410377231960af4fcab838eaa12e013417781b78bd95ee22077f8" +dependencies = [ + "anyhow", + "arrayvec", + "log", + "nom 8.0.0", + "num-rational", + "v_frame", +] + +[[package]] +name = "avif-serialize" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7178fe5f7d460b13895ebb9dcb28a3a6216d2df2574a0806cb51b555d297f38" +dependencies = [ + "arrayvec", +] + [[package]] name = "aws-lc-rs" version = "1.18.1" @@ -835,6 +980,21 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be5eb007b7cacc6c660343e96f650fedf4b5a77512399eb952ca6642cf8d13f7" +[[package]] +name = "backtrace" +version = "0.3.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb531853791a215d7c62a30daf0dde835f381ab5de4589cfe7c649d2cbe92bd6" +dependencies = [ + "addr2line", + "cfg-if", + "libc", + "miniz_oxide 0.8.9", + "object", + "rustc-demangle", + "windows-link 0.2.1", +] + [[package]] name = "base16ct" version = "0.2.0" @@ -847,6 +1007,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd307490d624467aa6f74b0eabb77633d1f758a7b25f12bceb0b22e08d9726f6" +[[package]] +name = "base62" +version = "2.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3a647dce9631f152a99ec16cfc09267ae55fe280d5dc288964027d458076323" + [[package]] name = "base64" version = "0.22.1" @@ -872,7 +1038,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "144e573728da132683b9488acd528274c790e07fc06ff81ee29f9d8f8b1041e0" dependencies = [ "blowfish", - "pbkdf2", + "pbkdf2 0.13.0", "sha2 0.11.0", ] @@ -950,6 +1116,12 @@ dependencies = [ "serde", ] +[[package]] +name = "bit_field" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6" + [[package]] name = "bitflags" version = "1.3.2" @@ -965,6 +1137,15 @@ dependencies = [ "serde_core", ] +[[package]] +name = "bitstream-io" +version = "4.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7eff00be299a18769011411c9def0d827e8f2d7bf0c3dbf53633147a8867fd1f" +dependencies = [ + "no_std_io2", +] + [[package]] name = "blake2" version = "0.11.0" @@ -974,6 +1155,12 @@ dependencies = [ "digest 0.11.3", ] +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + [[package]] name = "block-buffer" version = "0.10.4" @@ -993,6 +1180,15 @@ dependencies = [ "zeroize", ] +[[package]] +name = "block-padding" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93" +dependencies = [ + "generic-array 0.14.7", +] + [[package]] name = "block-padding" version = "0.4.2" @@ -1067,6 +1263,23 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "bstr" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f" +dependencies = [ + "memchr", + "regex-automata", + "serde_core", +] + +[[package]] +name = "built" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c0e531d93d39c34eef561e929e8a7f86d77a5af08aac4f6d6e39976c51858e9" + [[package]] name = "bumpalo" version = "3.20.3" @@ -1171,12 +1384,33 @@ dependencies = [ "wayland-client", ] +[[package]] +name = "calloop-wayland-source" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa" +dependencies = [ + "calloop 0.14.4", + "rustix 1.1.5", + "wayland-backend", + "wayland-client", +] + [[package]] name = "cast" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" +[[package]] +name = "cbc" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6" +dependencies = [ + "cipher 0.4.4", +] + [[package]] name = "cbc" version = "0.2.1" @@ -1186,6 +1420,24 @@ dependencies = [ "cipher 0.5.2", ] +[[package]] +name = "cbindgen" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadd868a2ce9ca38de7eeafdcec9c7065ef89b42b32f0839278d55f35c54d1ff" +dependencies = [ + "heck 0.4.1", + "indexmap", + "log", + "proc-macro2", + "quote", + "serde", + "serde_json", + "syn 2.0.119", + "tempfile", + "toml 0.8.23", +] + [[package]] name = "cc" version = "1.5.0" @@ -1278,6 +1530,7 @@ dependencies = [ "iana-time-zone", "js-sys", "num-traits", + "serde", "wasm-bindgen", "windows-link 0.2.1", ] @@ -1317,6 +1570,7 @@ checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common 0.1.7", "inout 0.1.4", + "zeroize", ] [[package]] @@ -1370,7 +1624,7 @@ version = "4.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" dependencies = [ - "heck", + "heck 0.5.0", "proc-macro2", "quote", "syn 3.0.6", @@ -1426,12 +1680,44 @@ version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a" +[[package]] +name = "cocoa" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c" +dependencies = [ + "bitflags 1.3.2", + "block", + "cocoa-foundation", + "core-foundation 0.9.4", + "core-graphics 0.23.2", + "foreign-types", + "libc", + "objc", +] + +[[package]] +name = "cocoa-foundation" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7" +dependencies = [ + "bitflags 1.3.2", + "block", + "core-foundation 0.9.4", + "core-graphics-types 0.1.3", + "libc", + "objc", +] + [[package]] name = "codespan-reporting" version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681" dependencies = [ + "serde", + "termcolor", "unicode-width", ] @@ -1466,6 +1752,16 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + [[package]] name = "const-field-offset" version = "0.2.1" @@ -1499,6 +1795,26 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" +[[package]] +name = "const-random" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359" +dependencies = [ + "const-random-macro", +] + +[[package]] +name = "const-random-macro" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" +dependencies = [ + "getrandom 0.2.17", + "once_cell", + "tiny-keccak", +] + [[package]] name = "convert_case" version = "0.10.0" @@ -1508,6 +1824,15 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "convert_case" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "affbf0190ed2caf063e3def54ff444b449371d55c58e513a95ab98eca50adb49" +dependencies = [ + "unicode-segmentation", +] + [[package]] name = "cookie-factory" version = "0.3.3" @@ -1548,7 +1873,33 @@ checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" dependencies = [ "bitflags 1.3.2", "core-foundation 0.9.4", - "core-graphics-types", + "core-graphics-types 0.1.3", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "core-graphics-types 0.2.0", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-helmer-fork" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32eb7c354ae9f6d437a6039099ce7ecd049337a8109b23d73e48e8ffba8e9cd5" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.9.4", + "core-graphics-types 0.1.3", "foreign-types", "libc", ] @@ -1564,12 +1915,44 @@ dependencies = [ "libc", ] +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "libc", +] + +[[package]] +name = "core-text" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a593227b66cbd4007b2a050dfdd9e1d1318311409c8d600dc82ba1b15ca9c130" +dependencies = [ + "core-foundation 0.10.1", + "core-graphics 0.24.0", + "foreign-types", + "libc", +] + [[package]] name = "core_detect" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48" +[[package]] +name = "core_maths" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30" +dependencies = [ + "libm", +] + [[package]] name = "coreaudio-rs" version = "0.14.2" @@ -1584,6 +1967,30 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "cosmic-text" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be17b688510d934ce13f48a2beba700e11583e281e0fda99c22bb256a14eda73" +dependencies = [ + "bitflags 2.13.2", + "fontdb 0.23.0", + "harfrust 0.5.2", + "linebender_resource_handle", + "log", + "rangemap", + "rustc-hash 2.1.3", + "self_cell", + "skrifa 0.40.0", + "smol_str 0.3.6", + "swash", + "sys-locale", + "unicode-bidi", + "unicode-linebreak", + "unicode-script", + "unicode-segmentation", +] + [[package]] name = "countme" version = "3.0.1" @@ -1737,6 +2144,15 @@ 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" @@ -1851,6 +2267,16 @@ dependencies = [ "dtor", ] +[[package]] +name = "ctor" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d" +dependencies = [ + "link-section", + "linktime-proc-macro", +] + [[package]] name = "ctr" version = "0.9.2" @@ -2086,7 +2512,7 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" dependencies = [ - "convert_case", + "convert_case 0.10.0", "proc-macro2", "quote", "rustc_version", @@ -2150,13 +2576,34 @@ dependencies = [ "x509-cert 0.2.5", ] +[[package]] +name = "dirs" +version = "5.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" +dependencies = [ + "dirs-sys 0.4.1", +] + [[package]] name = "dirs" version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" dependencies = [ - "dirs-sys", + "dirs-sys 0.5.0", +] + +[[package]] +name = "dirs-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +dependencies = [ + "libc", + "option-ext", + "redox_users 0.4.6", + "windows-sys 0.48.0", ] [[package]] @@ -2167,7 +2614,7 @@ checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" dependencies = [ "libc", "option-ext", - "redox_users", + "redox_users 0.5.3", "windows-sys 0.61.2", ] @@ -2184,6 +2631,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" dependencies = [ "bitflags 2.13.2", + "block2 0.6.2", "objc2 0.6.4", ] @@ -2286,6 +2734,18 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" +[[package]] +name = "dwrote" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b35532432acc8b19ceed096e35dfa088d3ea037fe4f3c085f1f97f33b4d02" +dependencies = [ + "lazy_static", + "libc", + "winapi", + "wio", +] + [[package]] name = "dyn-clone" version = "1.0.20" @@ -2415,6 +2875,20 @@ dependencies = [ "zeroize", ] +[[package]] +name = "embed-resource" +version = "3.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6168487b5e7eb2673e6efe1200b1848016e436a6ca0b8031bf04bd9d493a249f" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.6+spec-1.1.0", + "vswhom", + "winreg", +] + [[package]] name = "encoding_rs" version = "0.8.42" @@ -2429,12 +2903,41 @@ dependencies = [ "simdutf8", ] +[[package]] +name = "encoding_rs_io" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fba3fe847045ecff794b9c138293a80db914678c453ad63fbf0c6a9eb6e00b22" +dependencies = [ + "encoding_rs", +] + [[package]] name = "endi" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" +[[package]] +name = "enum-iterator" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4549325971814bda7a44061bf3fe7e487d447cba01e4220a4b454d630d7a016" +dependencies = [ + "enum-iterator-derive", +] + +[[package]] +name = "enum-iterator-derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685adfa4d6f3d765a26bc5dbc936577de9abf756c1feeb3089b01dd395034842" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "enum_dispatch" version = "0.3.13" @@ -2468,6 +2971,17 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "enumn" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f9ed6b3789237c8a0c1c505af1c7eb2c560df6186f01b098c3a1064ea532f38" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "env_filter" version = "2.0.0" @@ -2488,6 +3002,26 @@ dependencies = [ "log", ] +[[package]] +name = "equator" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc" +dependencies = [ + "equator-macro", +] + +[[package]] +name = "equator-macro" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "equivalent" version = "1.0.2" @@ -2512,7 +3046,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2521,6 +3055,16 @@ version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" +[[package]] +name = "etagere" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc89bf99e5dc15954a60f707c1e09d7540e5cd9af85fa75caa0b510bc08c5342" +dependencies = [ + "euclid", + "svg_fmt", +] + [[package]] name = "euclid" version = "0.22.14" @@ -2550,6 +3094,23 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "exr" +version = "1.74.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "711fe42c9964295e01ee3fba3f9fe0e1d24b98886950d68efe81b1c76e21adf3" +dependencies = [ + "bit_field", + "half", + "lebe", + "miniz_oxide 0.8.9", + "num-complex", + "pulp", + "rayon-core", + "smallvec", + "zune-inflate", +] + [[package]] name = "fallible-iterator" version = "0.3.0" @@ -2568,6 +3129,12 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" +[[package]] +name = "fax" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" + [[package]] name = "fdeflate" version = "0.3.7" @@ -2586,7 +3153,7 @@ dependencies = [ "bitflags 2.13.2", "bytemuck", "fnv", - "glow", + "glow 0.18.0", "imgref", "itertools 0.15.0", "log", @@ -2639,6 +3206,17 @@ dependencies = [ "rustc_version", ] +[[package]] +name = "filedescriptor" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e40758ed24c9b2eeb76c35fb0aebc66c626084edd827e07e1552279814c6682d" +dependencies = [ + "libc", + "thiserror 1.0.69", + "winapi", +] + [[package]] name = "filetime" version = "0.2.29" @@ -2701,6 +3279,32 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ce81f49ae8a0482e4c55ea62ebbd7e5a686af544c00b9d090bba3ff9be97b3d" +[[package]] +name = "float_next_after" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8" + +[[package]] +name = "fluent-uri" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17c704e9dbe1ddd863da1e6ff3567795087b1eb201ce80d8fa81162e1516500d" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "flume" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e139bc46ca777eb5efaf62df0ab8cc5fd400866427e56c68b22e414e53bd3be" +dependencies = [ + "futures-core", + "futures-sink", + "spin 0.9.9", +] + [[package]] name = "fnv" version = "1.0.7" @@ -2719,6 +3323,15 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" +[[package]] +name = "font-types" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b38ad915f6dadd993ced50848a8291a543bd41ca62bc10740d5e64e2ab4cfd7" +dependencies = [ + "bytemuck", +] + [[package]] name = "font-types" version = "0.12.5" @@ -2728,6 +3341,29 @@ dependencies = [ "bytemuck", ] +[[package]] +name = "fontconfig-parser" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbc773e24e02d4ddd8395fd30dc147524273a83e54e0f312d986ea30de5f5646" +dependencies = [ + "roxmltree 0.20.0", +] + +[[package]] +name = "fontdb" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "457e789b3d1202543297a350643cf459f836cade38934e7a4cf6a39e7cde2905" +dependencies = [ + "fontconfig-parser", + "log", + "memmap2", + "slotmap", + "tinyvec", + "ttf-parser", +] + [[package]] name = "fontdb" version = "0.24.0" @@ -2753,8 +3389,8 @@ dependencies = [ "objc2-core-text", "objc2-foundation 0.3.2", "parlance", - "read-fonts", - "roxmltree", + "read-fonts 0.41.0", + "roxmltree 0.21.1", "smallvec", "windows 0.62.2", "windows-core 0.62.2", @@ -2797,12 +3433,33 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "freetype-sys" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e7edc5b9669349acfda99533e9e0bcf26a51862ab43b08ee7745c55d28eb134" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "fs_extra" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" +[[package]] +name = "futf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" +dependencies = [ + "mac", + "new_debug_unreachable", +] + [[package]] name = "futures" version = "0.3.34" @@ -2828,6 +3485,19 @@ dependencies = [ "futures-sink", ] +[[package]] +name = "futures-concurrency" +version = "7.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175cd8cca9e1d45b87f18ffa75088f2099e3c4fe5e2f83e42de112560bea8ea6" +dependencies = [ + "fixedbitset", + "futures-core", + "futures-lite", + "pin-project", + "smallvec", +] + [[package]] name = "futures-core" version = "0.3.34" @@ -2978,9 +3648,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", + "js-sys", "libc", "r-efi 5.3.0", "wasip2", + "wasm-bindgen", ] [[package]] @@ -3007,6 +3679,16 @@ dependencies = [ "zeroize", ] +[[package]] +name = "gif" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae047235e33e2829703574b54fdec96bfbad892062d97fed2f76022287de61b" +dependencies = [ + "color_quant", + "weezl", +] + [[package]] name = "gif" version = "0.14.2" @@ -3017,6 +3699,12 @@ dependencies = [ "weezl", ] +[[package]] +name = "gimli" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629b9b98ef3dd8afe6ca2bd0f89306cec16d43d907889945bc5d6687f2f13c7" + [[package]] name = "git-testament" version = "0.2.6" @@ -3056,6 +3744,42 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" +[[package]] +name = "globset" +version = "0.4.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07c34a9410465b45bd9787443bc7370f37735bad04b0f0cd57ff1a3186c98988" +dependencies = [ + "aho-corasick", + "bstr", + "log", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "globwalk" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93e3af942408868f6934a7b85134a3230832b9977cf66125df2f9edcfce4ddcc" +dependencies = [ + "bitflags 1.3.2", + "ignore", + "walkdir", +] + +[[package]] +name = "glow" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "glow" version = "0.18.0" @@ -3158,6 +3882,646 @@ dependencies = [ "windows 0.62.2", ] +[[package]] +name = "gpui-base" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d862bc8f2e27710039013d075ac4995892e9687ff207fa530f880cbcd513936f" +dependencies = [ + "aho-corasick", + "anyhow", + "ashpd", + "async-channel", + "chrono", + "data-url", + "futures", + "gpui-pre", + "gpui-pre-macros", + "gpui-pre-sum-tree", + "html5ever", + "instant", + "itertools 0.13.0", + "lsp-types", + "markdown", + "markup5ever_rcdom", + "num-traits", + "objc2 0.6.4", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "raw-window-handle", + "regex", + "ropey", + "schemars", + "serde", + "serde_json", + "smallvec", + "smol", + "tracing", + "unicode-linebreak", + "unicode-segmentation", + "web-time", + "windows 0.58.0", +] + +[[package]] +name = "gpui-component" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46ce53430332e30f303364eaabfa10ed2aa23dfaf2a147e04370e0e9c423578b" +dependencies = [ + "anyhow", + "chrono", + "core-text", + "enum-iterator", + "gpui-base", + "gpui-component-macros", + "gpui-kit-assets", + "gpui-pre", + "gpui-pre-macros", + "gpui-pre-sum-tree", + "instant", + "itertools 0.13.0", + "log", + "lsp-types", + "markdown", + "notify", + "num-traits", + "objc2 0.6.4", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "once_cell", + "paste", + "raw-window-handle", + "regex", + "resvg 0.45.1", + "ropey", + "rust-i18n", + "schemars", + "serde", + "serde_json", + "serde_repr", + "similar", + "smallvec", + "smol", + "tracing", + "unicode-segmentation", + "unicode-width", + "uuid", + "windows 0.58.0", +] + +[[package]] +name = "gpui-component-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a512c830553e7dddc43c3f8faffc2d2d7bd24db21fe3dc1326dde9c470013768" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "gpui-kit" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25210f6e59ea9ffac3a033dbce9edafe5ff0dd2900f894fd1316f54da2fe2b89" +dependencies = [ + "gpui-base", + "gpui-component", + "gpui-kit-assets", + "gpui-pre", + "gpui-pre-macros", + "gpui-pre-platform", + "gpui-pre-web", +] + +[[package]] +name = "gpui-kit-assets" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c214017b45e5654665f18faa551f58a2c2c8d25efe6632b1a443ba8edf365e96" +dependencies = [ + "anyhow", + "gpui-pre", + "gpui-pre-reqwest", + "log", + "rust-embed", + "wasm-bindgen", + "wasm-bindgen-futures", +] + +[[package]] +name = "gpui-pre" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df4b5f8d0c278308df2f11e0bfe0212dd77d7848ce1bdc4b9d513334414396f6" +dependencies = [ + "accesskit", + "anyhow", + "async-channel", + "async-task", + "backtrace", + "bitflags 2.13.2", + "chrono", + "ctor 1.0.13", + "derive_more", + "embed-resource", + "etagere", + "futures", + "futures-concurrency", + "getrandom 0.3.4", + "gpui-pre-collections", + "gpui-pre-http-client", + "gpui-pre-macros", + "gpui-pre-refineable", + "gpui-pre-scheduler", + "gpui-pre-shared-string", + "gpui-pre-sum-tree", + "gpui-pre-util", + "heapless", + "image", + "inventory", + "itertools 0.14.0", + "libc", + "log", + "lyon", + "num_cpus", + "objc2-core-foundation", + "objc2-core-video", + "parking", + "parking_lot", + "pin-project", + "pollster 0.4.0", + "postage", + "profiling", + "proptest", + "rand 0.9.5", + "raw-window-handle", + "regex", + "resvg 0.46.0", + "schemars", + "seahash", + "serde", + "serde_json", + "slotmap", + "smallvec", + "spin 0.10.1", + "strum", + "taffy 0.15.1", + "thiserror 2.0.21", + "ttf-parser", + "url", + "usvg 0.46.0", + "uuid", + "waker-fn", + "web-time", + "windows 0.62.2", + "zed-scap", +] + +[[package]] +name = "gpui-pre-apple" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e97cd068d8134b4e073321b946491760aa1e4511e486084a92e73b9174bff78a" +dependencies = [ + "anyhow", + "async-task", + "block2 0.6.2", + "cbindgen", + "core-foundation 0.10.1", + "core-foundation-sys", + "core-graphics 0.24.0", + "core-text", + "derive_more", + "dispatch2", + "etagere", + "foreign-types", + "futures", + "gpui-pre", + "gpui-pre-collections", + "gpui-pre-util", + "image", + "libc", + "log", + "mach2", + "metal", + "objc2 0.6.4", + "objc2-core-foundation", + "objc2-core-text", + "objc2-core-video", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", + "objc2-quartz-core 0.3.2", + "objc2-security", + "parking_lot", + "pathfinder_geometry", + "smallvec", + "thiserror 2.0.21", + "zed-font-kit", +] + +[[package]] +name = "gpui-pre-collections" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f89bf8941a7437dd761161c552543fb8268b9633fe74e29eafbe0014cd2164b" +dependencies = [ + "gpui-pre-util", + "indexmap", + "rustc-hash 2.1.3", +] + +[[package]] +name = "gpui-pre-derive-refineable" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2998b1cebbaa0fa004fe4939a513bbf4103c7fb69ae2e84ee73634554e3f7edc" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "gpui-pre-http-client" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e516820ee56ac357a87ff97b1a2c5f22c8d5dcd2a50cdd15c16949f24464d98e" +dependencies = [ + "anyhow", + "bytes", + "futures", + "http", + "http-body", + "log", + "parking_lot", + "serde", + "serde_json", + "serde_urlencoded", + "url", +] + +[[package]] +name = "gpui-pre-ios" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5773a1e3a399df64f3ecc5538727fd0575279bd190959cf97a9e2b698c0310b8" +dependencies = [ + "anyhow", + "block2 0.6.2", + "futures", + "gpui-pre", + "gpui-pre-apple", + "log", + "objc2 0.6.4", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "objc2-ui-kit 0.3.2", + "parking_lot", + "raw-window-handle", + "uuid", +] + +[[package]] +name = "gpui-pre-linux" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c6ffd2dce7b75cce0bb3382994912f84c2a05389a4a236bb8bd72cb098fc083" +dependencies = [ + "accesskit", + "accesskit_unix", + "anyhow", + "as-raw-xcb-connection", + "ashpd", + "bytemuck", + "calloop 0.14.4", + "calloop-wayland-source 0.4.1", + "filedescriptor", + "futures", + "gpui-pre", + "gpui-pre-collections", + "gpui-pre-http-client", + "gpui-pre-util", + "gpui-pre-wgpu", + "libc", + "log", + "notify-rust", + "oo7", + "open", + "parking_lot", + "raw-window-handle", + "smallvec", + "smol", + "strum", + "url", + "uuid", + "wayland-backend", + "wayland-client", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-plasma", + "wayland-protocols-wlr", + "x11rb", + "xkbcommon 0.8.0", + "zed-scap", + "zed-xim", +] + +[[package]] +name = "gpui-pre-macos" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e07a5e5c84f0b2160c194a1c852cc89d1942db66867938ceabcd7f763cb4386" +dependencies = [ + "accesskit", + "accesskit_macos", + "anyhow", + "block2 0.6.2", + "core-foundation 0.10.1", + "core-foundation-sys", + "core-graphics 0.24.0", + "ctor 1.0.13", + "dispatch2", + "foreign-types", + "futures", + "gpui-pre", + "gpui-pre-apple", + "gpui-pre-collections", + "gpui-pre-scheduler", + "gpui-pre-util", + "image", + "itertools 0.14.0", + "log", + "objc2 0.6.4", + "objc2-app-kit 0.3.2", + "objc2-core-graphics", + "objc2-core-video", + "objc2-foundation 0.3.2", + "objc2-user-notifications 0.3.2", + "parking_lot", + "raw-window-handle", + "semver", + "smallvec", + "strum", + "uuid", +] + +[[package]] +name = "gpui-pre-macros" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c95d70a9fe10701533606c6135f9a1d4cd96e87e4e6062b3d426eb57b415daf" +dependencies = [ + "heck 0.5.0", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "gpui-pre-platform" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8a7f07a15187e82ec76491492c7e3245db1b59633d3bedb00b828ffaf67c4b8" +dependencies = [ + "anyhow", + "console_error_panic_hook", + "gpui-pre", + "gpui-pre-ios", + "gpui-pre-linux", + "gpui-pre-macos", + "gpui-pre-web", + "gpui-pre-windows", +] + +[[package]] +name = "gpui-pre-refineable" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ce7e83592bc6c1ead2affd91b333f11b60c3eb7d06cae1605dd56f149fe8674" +dependencies = [ + "gpui-pre-derive-refineable", +] + +[[package]] +name = "gpui-pre-reqwest" +version = "0.12.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05be23908e707966824f8c51a609904b7f30739e8d915e120a53c1b995ba964c" +dependencies = [ + "base64 0.22.1", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "ipnet", + "js-sys", + "log", + "mime", + "mime_guess", + "once_cell", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-native-certs", + "rustls-pemfile", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "system-configuration 0.6.1", + "tokio", + "tokio-rustls", + "tokio-socks", + "tokio-util", + "tower", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", + "windows-registry 0.4.0", +] + +[[package]] +name = "gpui-pre-scheduler" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87c2c6b0fabcd20e6773a0be30afa1f25637c53a06201bb80ab24a21fe198865" +dependencies = [ + "async-task", + "backtrace", + "chrono", + "flume", + "futures", + "parking_lot", + "rand 0.9.5", + "wasm_thread", + "web-time", +] + +[[package]] +name = "gpui-pre-shared-string" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8068f94355f173558a51998a32985a434af54cc6c7262a060fffc369a505998f" +dependencies = [ + "schemars", + "serde", + "smol_str 0.3.6", +] + +[[package]] +name = "gpui-pre-sum-tree" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1ce66c57e9b5fd6c7a90fa9f9de2f9bb342127d670ca3c8fe5885270079eefa" +dependencies = [ + "gpui-pre-ztracing", + "heapless", + "rayon", + "tracing", +] + +[[package]] +name = "gpui-pre-util" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162dc29b2d2c0223ee4bb4e9f5e913eab4f62cad0943eb0c1122a74ac82b0768" +dependencies = [ + "anyhow", + "log", + "which", +] + +[[package]] +name = "gpui-pre-web" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1acd86af2347f0dd8b63c441a5dbd43b3fcd7dac69b340827c3497da5a13d6fb" +dependencies = [ + "anyhow", + "async-channel", + "console_error_panic_hook", + "futures", + "gpui-pre", + "gpui-pre-http-client", + "gpui-pre-scheduler", + "gpui-pre-wgpu", + "js-sys", + "log", + "parking_lot", + "raw-window-handle", + "smallvec", + "unicode-properties", + "unicode-script", + "unicode-segmentation", + "uuid", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm_thread", + "web-sys", + "web-time", +] + +[[package]] +name = "gpui-pre-wgpu" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce693915768aae38bf788f245af75aae78e3e1179245860fc80ce831d0a8f74e" +dependencies = [ + "anyhow", + "bytemuck", + "cosmic-text", + "etagere", + "gpui-pre", + "gpui-pre-collections", + "gpui-pre-util", + "itertools 0.14.0", + "log", + "parking_lot", + "profiling", + "raw-window-handle", + "smallvec", + "swash", + "unicode-bidi", + "unicode-segmentation", + "web-sys", + "wgpu", + "zed-font-kit", +] + +[[package]] +name = "gpui-pre-windows" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80670f987b920fba019917b2e222ecf2b377f2a6d77872010c7d284c235837b3" +dependencies = [ + "accesskit", + "accesskit_windows", + "anyhow", + "dunce", + "etagere", + "futures", + "gpui-pre", + "gpui-pre-collections", + "gpui-pre-scheduler", + "gpui-pre-util", + "image", + "itertools 0.14.0", + "log", + "parking_lot", + "rand 0.9.5", + "raw-window-handle", + "smallvec", + "uuid", + "windows 0.62.2", + "windows-core 0.62.2", + "windows-numerics 0.3.1", + "windows-registry 0.6.1", +] + +[[package]] +name = "gpui-pre-ztracing" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "814cc08c526961c88703806a68ba4cf216a1d988ffbbdc673304f4dd25858952" +dependencies = [ + "gpui-pre-ztracing-macro", + "tracing", +] + +[[package]] +name = "gpui-pre-ztracing-macro" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0f9dae92b9bc15baa6e530c90bdd4c689d3710bd4d18c3566deb1d6ae182daf" + +[[package]] +name = "granit-parser" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e20f99e46474f56bd905c56e817ebddcf377a611f94c53ac4649e4d3fa3c0cd0" +dependencies = [ + "arraydeque", + "smallvec", +] + [[package]] name = "grid" version = "1.0.1" @@ -3217,6 +4581,19 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "harfrust" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9da2e5ae821f6e96664977bf974d6d6a2d6682f9ccee23e62ec1d134246845f9" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "core_maths", + "read-fonts 0.37.0", + "smallvec", +] + [[package]] name = "harfrust" version = "0.12.0" @@ -3225,10 +4602,19 @@ checksum = "c03d949a14aa089bbb282f7dd76a498a7f684428e4257202efc119ec010376f9" dependencies = [ "bitflags 2.13.2", "bytemuck", - "read-fonts", + "read-fonts 0.41.0", "smallvec", ] +[[package]] +name = "hash32" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d60b12902ba28e2730cd37e95b8c9223af2808df9e902d4df49588d1470606" +dependencies = [ + "byteorder", +] + [[package]] name = "hashbrown" version = "0.14.5" @@ -3273,6 +4659,22 @@ dependencies = [ "hashbrown 0.17.1", ] +[[package]] +name = "heapless" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ba4bd83f9415b58b4ed8dc5714c76e626a105be4646c02630ad730ad3b5aa4" +dependencies = [ + "hash32", + "stable_deref_trait", +] + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + [[package]] name = "heck" version = "0.5.0" @@ -3367,7 +4769,7 @@ dependencies = [ "rand 0.10.3", "resolv-conf", "smallvec", - "system-configuration", + "system-configuration 0.7.0", "thiserror 2.0.21", "tokio", "tracing", @@ -3415,6 +4817,20 @@ version = "3.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f" +[[package]] +name = "html5ever" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c13771afe0e6e846f1e67d038d4cb29998a6779f93c809212e4e9c32efd244d4" +dependencies = [ + "log", + "mac", + "markup5ever", + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "htmlparser" version = "0.2.1" @@ -3510,6 +4926,7 @@ dependencies = [ "hyper", "hyper-util", "rustls", + "rustls-native-certs", "tokio", "tokio-rustls", "tower-service", @@ -3534,11 +4951,11 @@ dependencies = [ "percent-encoding", "pin-project-lite", "socket2", - "system-configuration", + "system-configuration 0.7.0", "tokio", "tower-service", "tracing", - "windows-registry", + "windows-registry 0.6.1", ] [[package]] @@ -3579,7 +4996,7 @@ dependencies = [ "memmap2", "nix", "raw-window-handle", - "xkbcommon", + "xkbcommon 0.9.0", ] [[package]] @@ -3672,8 +5089,8 @@ dependencies = [ "icu_locale_core", "icu_provider", "pulldown-cmark", - "resvg", - "skrifa", + "resvg 0.48.1", + "skrifa 0.44.0", ] [[package]] @@ -3698,10 +5115,10 @@ dependencies = [ "proc-macro2", "quote", "rayon", - "resvg", + "resvg 0.48.1", "rowan", "rspolib", - "skrifa", + "skrifa 0.44.0", "smol_str 0.3.6", "strum", "swash", @@ -3745,15 +5162,15 @@ dependencies = [ "pin-weak", "portable-atomic", "raw-window-handle", - "resvg", + "resvg 0.48.1", "rgb", "scopeguard", - "skrifa", + "skrifa 0.44.0", "slab", "strum", "swash", "sys-locale", - "taffy", + "taffy 0.10.1", "unicode-linebreak", "unicode-script", "unicode-segmentation", @@ -3785,7 +5202,7 @@ dependencies = [ "cfg-if", "const-field-offset", "femtovg", - "glow", + "glow 0.18.0", "i-slint-common", "i-slint-core", "i-slint-core-macros", @@ -3808,7 +5225,7 @@ dependencies = [ "cfg_aliases", "clru", "const-field-offset", - "glow", + "glow 0.18.0", "glutin", "i-slint-common", "i-slint-core", @@ -3822,7 +5239,7 @@ dependencies = [ "objc2-quartz-core 0.3.2", "pin-weak", "raw-window-handle", - "read-fonts", + "read-fonts 0.41.0", "scoped-tls-hkt", "skia-safe", "softbuffer", @@ -3850,7 +5267,7 @@ dependencies = [ "i-slint-core", "lyon_path", "num-traits", - "skrifa", + "skrifa 0.44.0", "swash", "zeno", ] @@ -4070,6 +5487,22 @@ dependencies = [ "icu_properties", ] +[[package]] +name = "ignore" +version = "0.4.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b69833ed729dc5aa7d19541d96d6cf8e9137194207a04916d658e43168402f" +dependencies = [ + "crossbeam-deque", + "globset", + "log", + "memchr", + "regex-automata", + "same-file", + "walkdir", + "winapi-util", +] + [[package]] name = "image" version = "0.25.10" @@ -4079,13 +5512,18 @@ dependencies = [ "bytemuck", "byteorder-lite", "color_quant", - "gif", + "exr", + "gif 0.14.2", "image-webp", "moxcms", "num-traits", - "png", - "zune-core", - "zune-jpeg", + "png 0.18.1", + "qoi", + "ravif", + "rayon", + "tiff", + "zune-core 0.5.3", + "zune-jpeg 0.5.15", ] [[package]] @@ -4095,9 +5533,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" dependencies = [ "byteorder-lite", - "quick-error", + "quick-error 2.0.1", ] +[[package]] +name = "imagesize" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edcd27d72f2f071c64249075f42e205ff93c9a4c5f6c6da53e79ed9f9832c285" + +[[package]] +name = "imagesize" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e54e57b4c48b40f7aec75635392b12b3421fa26fe8b4332e63138ed278459c" + [[package]] name = "imagesize" version = "0.15.0" @@ -4118,6 +5568,28 @@ checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" dependencies = [ "equivalent", "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[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]] @@ -4126,6 +5598,7 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ + "block-padding 0.3.3", "generic-array 0.14.7", ] @@ -4135,7 +5608,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7" dependencies = [ - "block-padding", + "block-padding 0.4.2", "hybrid-array", ] @@ -4158,6 +5631,29 @@ version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "36eee07d8e02bd95bf52b2e642cf13d33701b94c6e4b04fbf1d1fb07e9cb19e7" +[[package]] +name = "instant" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" +dependencies = [ + "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "interpolate_name" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "inventory" version = "0.3.24" @@ -4186,7 +5682,7 @@ checksum = "4d40460c0ce33d6ce4b0630ad68ff63d6661961c48b6dba35e5a4d81cfb48222" dependencies = [ "socket2", "widestring", - "windows-registry", + "windows-registry 0.6.1", "windows-result 0.4.1", "windows-sys 0.61.2", ] @@ -4213,12 +5709,40 @@ dependencies = [ "tracing", ] +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + [[package]] name = "is_terminal_polyfill" version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" +[[package]] +name = "itertools" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.13.0" @@ -4399,12 +5923,43 @@ dependencies = [ "log", ] +[[package]] +name = "khronos-egl" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76" +dependencies = [ + "libc", + "libloading", + "pkg-config", +] + [[package]] name = "khronos_api" version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" +[[package]] +name = "kqueue" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d763e5b24120b4ddf50de6c92308156765aabfbbccebf401da7cff2d70a41ea" +dependencies = [ + "kqueue-sys", + "libc", +] + +[[package]] +name = "kqueue-sys" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07293a4e297ac234359b510362495713f75ea345d5307140414f20c69ffeb087" +dependencies = [ + "bitflags 2.13.2", + "libc", +] + [[package]] name = "ksni" version = "0.3.6" @@ -4417,12 +5972,23 @@ dependencies = [ "futures-channel", "futures-lite", "futures-util", - "pastey", + "pastey 0.2.3", "serde", "task-local", "zbus", ] +[[package]] +name = "kurbo" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c62026ae44756f8a599ba21140f350303d4f08dcdcc71b5ad9c9bb8128c13c62" +dependencies = [ + "arrayvec", + "euclid", + "smallvec", +] + [[package]] name = "kurbo" version = "0.13.1" @@ -4441,6 +6007,12 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" +[[package]] +name = "lebe" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8" + [[package]] name = "libbz2-rs-sys" version = "0.2.5" @@ -4453,6 +6025,16 @@ version = "0.2.189" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +[[package]] +name = "libfuzzer-sys" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9fd2f41a1cba099f79a0b6b6c35656cf7c03351a7bae8ff0f28f25270f929d2" +dependencies = [ + "arbitrary", + "cc", +] + [[package]] name = "libloading" version = "0.8.9" @@ -4576,6 +6158,18 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" +[[package]] +name = "link-section" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39c29a617ce3df32c08497bdc1ab6e2376e0b17948ac166a2fbe5977c5954cd9" + +[[package]] +name = "linktime-proc-macro" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e57c38c1e860fd37c604281cdfb1dd2216977fd76a50f85ba2f388ef3219616" + [[package]] name = "linux-raw-sys" version = "0.4.15" @@ -4620,6 +6214,18 @@ name = "log" version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +dependencies = [ + "serde_core", +] + +[[package]] +name = "loop9" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062" +dependencies = [ + "imgref", +] [[package]] name = "lru-slab" @@ -4627,6 +6233,29 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f" +[[package]] +name = "lsp-types" +version = "0.97.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53353550a17c04ac46c585feb189c2db82154fc84b79c7a66c96c2c644f66071" +dependencies = [ + "bitflags 1.3.2", + "fluent-uri", + "serde", + "serde_json", + "serde_repr", +] + +[[package]] +name = "lyon" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0578bdecb7d6d88987b8b2b1e3a4e2f81df9d0ece1078623324a567904e7b7" +dependencies = [ + "lyon_algorithms", + "lyon_tessellation", +] + [[package]] name = "lyon_algorithms" version = "1.0.21" @@ -4668,6 +6297,23 @@ dependencies = [ "num-traits", ] +[[package]] +name = "lyon_tessellation" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd4872650e70dc907dd4f7ebc449d7d657a0d2658e423b2e724970870bbbf75b" +dependencies = [ + "float_next_after", + "lyon_path", + "num-traits", +] + +[[package]] +name = "mac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" + [[package]] name = "mac-notification-sys" version = "0.6.15" @@ -4688,12 +6334,57 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dae608c151f68243f2b000364e1f7b186d9c29845f7d2d85bd31b9ad77ad552b" +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + [[package]] name = "maplit" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" +[[package]] +name = "markdown" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5cab8f2cadc416a82d2e783a1946388b31654d391d1c7d92cc1f03e295b1deb" +dependencies = [ + "serde", + "unicode-id", +] + +[[package]] +name = "markup5ever" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16ce3abbeba692c8b8441d036ef91aea6df8da2c6b6e21c7e14d3c18e526be45" +dependencies = [ + "log", + "phf 0.11.3", + "phf_codegen", + "string_cache", + "string_cache_codegen", + "tendril", +] + +[[package]] +name = "markup5ever_rcdom" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edaa21ab3701bfee5099ade5f7e1f84553fd19228cf332f13cd6e964bf59be18" +dependencies = [ + "html5ever", + "markup5ever", + "tendril", + "xml5ever", +] + [[package]] name = "matchers" version = "0.2.0" @@ -4719,6 +6410,26 @@ dependencies = [ "rawpointer", ] +[[package]] +name = "maybe-rayon" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519" +dependencies = [ + "cfg-if", + "rayon", +] + +[[package]] +name = "md-5" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" +dependencies = [ + "cfg-if", + "digest 0.10.7", +] + [[package]] name = "md5" version = "0.8.1" @@ -4755,12 +6466,37 @@ dependencies = [ "autocfg", ] +[[package]] +name = "metal" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7047791b5bc903b8cd963014b355f71dc9864a9a0b727057676c1dcae5cbc15" +dependencies = [ + "bitflags 2.13.2", + "block", + "core-graphics-types 0.2.0", + "foreign-types", + "log", + "objc", + "paste", +] + [[package]] name = "mime" version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + [[package]] name = "minijinja" version = "2.24.0" @@ -4804,6 +6540,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8" dependencies = [ "libc", + "log", "wasi", "windows-sys 0.61.2", ] @@ -4874,7 +6611,7 @@ dependencies = [ "objc2-core-foundation", "objc2-foundation 0.3.2", "once_cell", - "png", + "png 0.18.1", "thiserror 2.0.21", "windows-sys 0.61.2", ] @@ -4997,6 +6734,12 @@ dependencies = [ "jni-sys 0.3.1", ] +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + [[package]] name = "nix" version = "0.31.3" @@ -5009,6 +6752,21 @@ dependencies = [ "libc", ] +[[package]] +name = "no_std_io2" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418abd1b6d34fbf6cae440dc874771b0525a604428704c76e48b29a5e67b8003" +dependencies = [ + "memchr", +] + +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + [[package]] name = "nom" version = "7.1.3" @@ -5037,6 +6795,40 @@ dependencies = [ "nom 8.0.0", ] +[[package]] +name = "noop_proc_macro" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" + +[[package]] +name = "normpath" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b11ce00d2594068e8a27c9146fdc5cf9f3ac38eb42c7cd34d05fea618873ac9f" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "notify" +version = "8.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f812702fbc75d35416d3f884e04925be7e9498f4eceea2e24ba34559284674" +dependencies = [ + "bitflags 2.13.2", + "inotify", + "kqueue", + "libc", + "log", + "mio", + "notify-types", + "objc2-core-foundation", + "objc2-core-services", + "walkdir", + "windows-sys 0.61.2", +] + [[package]] name = "notify-rust" version = "4.18.0" @@ -5051,6 +6843,24 @@ dependencies = [ "zbus", ] +[[package]] +name = "notify-types" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "ntapi" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae" +dependencies = [ + "winapi", +] + [[package]] name = "nu-ansi-term" version = "0.50.3" @@ -5096,12 +6906,30 @@ dependencies = [ "rand_core 0.10.1", ] +[[package]] +name = "num-bigint-dig" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7f9a86e097b0d187ad0e65667c2f58b9254671e86e7dbb78036b16692eae099" +dependencies = [ + "libm", + "num-integer", + "num-iter", + "num-traits", + "once_cell", + "rand 0.9.5", + "serde", + "smallvec", + "zeroize", +] + [[package]] name = "num-complex" version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" dependencies = [ + "bytemuck", "num-traits", ] @@ -5162,6 +6990,16 @@ dependencies = [ "libm", ] +[[package]] +name = "num_cpus" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" +dependencies = [ + "hermit-abi 0.5.3", + "libc", +] + [[package]] name = "num_enum" version = "0.7.6" @@ -5184,6 +7022,27 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", + "objc_exception", +] + +[[package]] +name = "objc-foundation" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9" +dependencies = [ + "block", + "objc", + "objc_id", +] + [[package]] name = "objc-sys" version = "0.3.5" @@ -5219,8 +7078,8 @@ dependencies = [ "block2 0.5.1", "libc", "objc2 0.5.2", - "objc2-core-data", - "objc2-core-image", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", "objc2-foundation 0.2.2", "objc2-quartz-core 0.2.2", ] @@ -5232,9 +7091,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" dependencies = [ "bitflags 2.13.2", + "block2 0.6.2", + "libc", "objc2 0.6.4", + "objc2-cloud-kit 0.3.2", + "objc2-core-data 0.3.2", "objc2-core-foundation", "objc2-core-graphics", + "objc2-core-image 0.3.2", + "objc2-core-text", + "objc2-core-video", "objc2-foundation 0.3.2", "objc2-quartz-core 0.3.2", ] @@ -5278,6 +7144,17 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.4", + "objc2-foundation 0.3.2", +] + [[package]] name = "objc2-contacts" version = "0.2.2" @@ -5324,6 +7201,17 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.4", + "objc2-foundation 0.3.2", +] + [[package]] name = "objc2-core-foundation" version = "0.3.2" @@ -5362,6 +7250,16 @@ dependencies = [ "objc2-metal 0.2.2", ] +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2 0.6.4", + "objc2-foundation 0.3.2", +] + [[package]] name = "objc2-core-location" version = "0.2.2" @@ -5374,6 +7272,16 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-core-services" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "583300ad934cba24ff5292aee751ecc070f7ca6b39a574cc21b7b5e588e06a0b" +dependencies = [ + "libc", + "objc2-core-foundation", +] + [[package]] name = "objc2-core-text" version = "0.3.2" @@ -5381,7 +7289,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" dependencies = [ "bitflags 2.13.2", + "objc2 0.6.4", "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-core-video" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.4", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-io-surface", + "objc2-metal 0.3.2", ] [[package]] @@ -5490,6 +7414,15 @@ dependencies = [ "objc2-metal 0.3.2", ] +[[package]] +name = "objc2-security" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a" +dependencies = [ + "objc2-core-foundation", +] + [[package]] name = "objc2-symbols" version = "0.2.2" @@ -5509,16 +7442,16 @@ dependencies = [ "bitflags 2.13.2", "block2 0.5.1", "objc2 0.5.2", - "objc2-cloud-kit", - "objc2-core-data", - "objc2-core-image", + "objc2-cloud-kit 0.2.2", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", "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", + "objc2-user-notifications 0.2.2", ] [[package]] @@ -5559,6 +7492,45 @@ dependencies = [ "objc2-foundation 0.2.2", ] +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.4", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc_exception" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" +dependencies = [ + "cc", +] + +[[package]] +name = "objc_id" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" +dependencies = [ + "objc", +] + +[[package]] +name = "object" +version = "0.37.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff76201f031d8863c38aa7f905eca4f53abbfa15f609db4277d44cd8938f33fe" +dependencies = [ + "memchr", +] + [[package]] name = "oid-registry" version = "0.8.1" @@ -5593,12 +7565,57 @@ version = "1.70.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" +[[package]] +name = "oo7" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78f2bfed90f1618b4b48dcad9307f25e14ae894e2949642c87c351601d62cebd" +dependencies = [ + "aes 0.8.4", + "ashpd", + "async-fs", + "async-io", + "async-lock", + "blocking", + "cbc 0.1.2", + "cipher 0.4.4", + "digest 0.10.7", + "endi", + "futures-lite", + "futures-util", + "getrandom 0.4.3", + "hkdf 0.12.4", + "hmac 0.12.1", + "md-5", + "num", + "num-bigint-dig", + "pbkdf2 0.12.2", + "serde", + "serde_bytes", + "sha2 0.10.9", + "subtle", + "zbus", + "zbus_macros", + "zeroize", + "zvariant", +] + [[package]] name = "oorandom" version = "11.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" +[[package]] +name = "open" +version = "5.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d8c8b8e725ad26404d6896eb2f064294a0a7b4f1d9120210d85544684c4ca95" +dependencies = [ + "is-wsl", + "libc", +] + [[package]] name = "openh264" version = "0.9.8" @@ -5676,7 +7693,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" dependencies = [ "libc", - "windows-sys 0.45.0", + "windows-sys 0.61.2", ] [[package]] @@ -5814,7 +7831,7 @@ checksum = "22d2ff88bd3f7d68d1d9b09c7e6209f9a8e8c05088295140a2bcf2e9b17038c5" dependencies = [ "accesskit", "fontique", - "harfrust", + "harfrust 0.12.0", "hashbrown 0.17.1", "icu_normalizer", "icu_properties", @@ -5822,7 +7839,7 @@ dependencies = [ "linebender_resource_handle", "parlance", "parley_data", - "skrifa", + "skrifa 0.44.0", ] [[package]] @@ -5843,12 +7860,53 @@ dependencies = [ "phc", ] +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pastey" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35fb2e5f958ec131621fdd531e9fc186ed768cbe395337403ae56c17a74c68ec" + [[package]] name = "pastey" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4" +[[package]] +name = "pathfinder_geometry" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b7e7b4ea703700ce73ebf128e1450eb69c3a8329199ffbfb9b2a0418e5ad3" +dependencies = [ + "log", + "pathfinder_simd", +] + +[[package]] +name = "pathfinder_simd" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4500030c302e4af1d423f36f3b958d1aecb6c04184356ed5a833bf6b60435777" +dependencies = [ + "rustc_version", +] + +[[package]] +name = "pbkdf2" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" +dependencies = [ + "digest 0.10.7", + "hmac 0.12.1", +] + [[package]] name = "pbkdf2" version = "0.13.0" @@ -5914,6 +7972,15 @@ dependencies = [ "ctutils", ] +[[package]] +name = "phf" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +dependencies = [ + "phf_shared 0.11.3", +] + [[package]] name = "phf" version = "0.13.1" @@ -5921,10 +7988,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" dependencies = [ "phf_macros", - "phf_shared", + "phf_shared 0.13.1", "serde", ] +[[package]] +name = "phf_codegen" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared 0.11.3", + "rand 0.8.8", +] + [[package]] name = "phf_generator" version = "0.13.1" @@ -5932,7 +8019,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" dependencies = [ "fastrand", - "phf_shared", + "phf_shared 0.13.1", ] [[package]] @@ -5941,13 +8028,22 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.13.1", + "phf_shared 0.13.1", "proc-macro2", "quote", "syn 2.0.119", ] +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher", +] + [[package]] name = "phf_shared" version = "0.13.1" @@ -6055,9 +8151,9 @@ checksum = "63d440a804ec8d6fafbb6b84471e013286658d373248927692ab3366686220ca" dependencies = [ "aes 0.9.3", "aes-gcm", - "cbc", + "cbc 0.2.1", "der 0.8.2", - "pbkdf2", + "pbkdf2 0.13.0", "rand_core 0.10.1", "scrypt", "sha2 0.11.0", @@ -6126,6 +8222,19 @@ dependencies = [ "plotters-backend", ] +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + [[package]] name = "png" version = "0.18.1" @@ -6153,6 +8262,18 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "pollster" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5da3b0203fd7ee5720aa0b5e790b591aa5d3f41c3ed2c34a3a393382198af2f7" + +[[package]] +name = "pollster" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" + [[package]] name = "poly1305" version = "0.9.1" @@ -6203,6 +8324,21 @@ dependencies = [ "portable-atomic", ] +[[package]] +name = "postage" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3fb618632874fb76937c2361a7f22afd393c982a2165595407edc75b06d3c1" +dependencies = [ + "atomic", + "crossbeam-queue", + "parking_lot", + "pin-project", + "pollster 0.2.5", + "static_assertions", + "thiserror 1.0.69", +] + [[package]] name = "potential_utf" version = "0.1.6" @@ -6229,6 +8365,12 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + [[package]] name = "prefix-trie" version = "0.8.4" @@ -6307,7 +8449,7 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" dependencies = [ - "toml_edit", + "toml_edit 0.25.15+spec-1.1.0", ] [[package]] @@ -6324,6 +8466,52 @@ name = "profiling" version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5" +dependencies = [ + "profiling-procmacros", +] + +[[package]] +name = "profiling-procmacros" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4488a4a36b9a4ba6b9334a32a39971f77c1436ec82c38707bce707699cc3bbcb" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "proptest" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8530004ccb15eae51c7e40009fbe317f341f804db54dc033eec1c50be28cfa0" +dependencies = [ + "bit-set 0.11.1", + "bit-vec 0.10.1", + "bitflags 2.13.2", + "chacha20", + "core_detect", + "num-traits", + "proptest-macro", + "rand 0.10.3", + "rand_xorshift", + "regex-syntax", + "rusty-fork", + "tempfile", + "unarray", +] + +[[package]] +name = "proptest-macro" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e99782ea31698c2206c6887c1220d2f594b291c26cb9ec5b6d7cf175320bc212" +dependencies = [ + "convert_case 0.11.0", + "proc-macro2", + "quote", + "syn 3.0.6", +] [[package]] name = "prost" @@ -6359,12 +8547,50 @@ dependencies = [ "unicase", ] +[[package]] +name = "pulp" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046aa45b989642ec2e4717c8e72d677b13edd831a4d3b6cf37d9a3e54912496a" +dependencies = [ + "bytemuck", + "cfg-if", + "libm", + "num-complex", + "paste", + "pulp-wasm-simd-flag", + "raw-cpuid", + "reborrow", + "version_check", +] + +[[package]] +name = "pulp-wasm-simd-flag" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d8f70e07b9c3962945a74e59ca1c511bba65b6419468acc217c457d93f3c740" + [[package]] name = "pxfm" version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" +[[package]] +name = "qoi" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "quick-error" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" + [[package]] name = "quick-error" version = "2.0.1" @@ -6467,7 +8693,7 @@ dependencies = [ "once_cell", "socket2", "tracing", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6586,12 +8812,86 @@ dependencies = [ "rand_core 0.10.1", ] +[[package]] +name = "rand_xorshift" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60aa6af80be32871323012e02e6e65f8a7cc7890931ae421d217ad8fe0df2ccf" +dependencies = [ + "rand_core 0.10.1", +] + [[package]] name = "range-alloc" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" +[[package]] +name = "rangemap" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a611d15b50743feb4c76b7d03edcb0e64f399c26961e4efe6975bc398be6aa3d" + +[[package]] +name = "rav1e" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b6dd56e85d9483277cde964fd1bdb0428de4fec5ebba7540995639a21cb32b" +dependencies = [ + "aligned-vec", + "arbitrary", + "arg_enum_proc_macro", + "arrayvec", + "av-scenechange", + "av1-grain", + "bitstream-io", + "built", + "cfg-if", + "interpolate_name", + "itertools 0.14.0", + "libc", + "libfuzzer-sys", + "log", + "maybe-rayon", + "new_debug_unreachable", + "noop_proc_macro", + "num-derive", + "num-traits", + "paste", + "profiling", + "rand 0.9.5", + "rand_chacha 0.9.0", + "simd_helpers", + "thiserror 2.0.21", + "v_frame", + "wasm-bindgen", +] + +[[package]] +name = "ravif" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e52310197d971b0f5be7fe6b57530dcd27beb35c1b013f29d66c1ad73fbbcc45" +dependencies = [ + "avif-serialize", + "imgref", + "loop9", + "quick-error 2.0.1", + "rav1e", + "rayon", + "rgb", +] + +[[package]] +name = "raw-cpuid" +version = "11.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498cd0dc59d73224351ee52a95fee0f1a617a2eae0e7d9d720cc622c73a54186" +dependencies = [ + "bitflags 2.13.2", +] + [[package]] name = "raw-window-handle" version = "0.6.2" @@ -6649,6 +8949,17 @@ dependencies = [ "yasna", ] +[[package]] +name = "read-fonts" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b634fabf032fab15307ffd272149b622260f55974d9fad689292a5d33df02e5" +dependencies = [ + "bytemuck", + "core_maths", + "font-types 0.11.3", +] + [[package]] name = "read-fonts" version = "0.41.0" @@ -6656,7 +8967,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709" dependencies = [ "bytemuck", - "font-types", + "font-types 0.12.5", "once_cell", ] @@ -6669,6 +8980,12 @@ dependencies = [ "rustfft", ] +[[package]] +name = "reborrow" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03251193000f4bd3b042892be858ee50e8b3719f2b08e5833ac4353724632430" + [[package]] name = "redox_syscall" version = "0.4.1" @@ -6696,6 +9013,17 @@ dependencies = [ "bitflags 2.13.2", ] +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 1.0.69", +] + [[package]] name = "redox_users" version = "0.5.3" @@ -6808,6 +9136,40 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e061d1b48cb8d38042de4ae0a7a6401009d6143dc80d2e2d6f31f0bdd6470c7" +[[package]] +name = "resvg" +version = "0.45.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8928798c0a55e03c9ca6c4c6846f76377427d2c1e1f7e6de3c06ae57942df43" +dependencies = [ + "gif 0.13.3", + "image-webp", + "log", + "pico-args", + "rgb", + "svgtypes 0.15.3", + "tiny-skia 0.11.4", + "usvg 0.45.1", + "zune-jpeg 0.4.21", +] + +[[package]] +name = "resvg" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b563218631706d614e23059436526d005b50ab5f2d506b55a17eb65c5eb83419" +dependencies = [ + "gif 0.14.2", + "image-webp", + "log", + "pico-args", + "rgb", + "svgtypes 0.16.1", + "tiny-skia 0.11.4", + "usvg 0.46.0", + "zune-jpeg 0.5.15", +] + [[package]] name = "resvg" version = "0.48.1" @@ -6815,15 +9177,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67e3803f97b999e80cbf7c6ecdd07a8102204d92e1633cf48783720c521196bd" dependencies = [ "bytemuck", - "gif", + "gif 0.14.2", "image-webp", "log", "pico-args", "rgb", - "svgtypes", + "svgtypes 0.16.1", "tiny-skia 0.12.0", - "usvg", - "zune-jpeg", + "usvg 0.48.1", + "zune-jpeg 0.5.15", ] [[package]] @@ -6869,6 +9231,15 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "ropey" +version = "2.0.0-beta.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4045a00dc327d084a2bbf126976e14125b54f23bd30511d45b842eba76c52d74" +dependencies = [ + "str_indices", +] + [[package]] name = "rowan" version = "0.17.0" @@ -6882,6 +9253,12 @@ dependencies = [ "text-size", ] +[[package]] +name = "roxmltree" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97" + [[package]] name = "roxmltree" version = "0.21.1" @@ -6991,10 +9368,10 @@ dependencies = [ "aes 0.9.3", "aws-lc-rs", "bitflags 2.13.2", - "block-padding", + "block-padding 0.4.2", "byteorder", "bytes", - "cbc", + "cbc 0.2.1", "cipher 0.5.2", "crypto-bigint 0.7.7", "ctr 0.10.1", @@ -7025,7 +9402,7 @@ dependencies = [ "p384", "p521", "pageant", - "pbkdf2", + "pbkdf2 0.13.0", "pkcs1", "pkcs5", "pkcs8 0.11.0", @@ -7077,6 +9454,97 @@ dependencies = [ "wasm-bindgen-futures", ] +[[package]] +name = "rust-embed" +version = "8.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19afa5b4b6a611de00bd1bdae6ae6f39084c9399f0679c3f52d8469cf335cc23" +dependencies = [ + "rust-embed-impl", + "rust-embed-utils", + "walkdir", +] + +[[package]] +name = "rust-embed-impl" +version = "8.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0d8afda6374eac59e066abee06d265247ebbaf3006cf878e2879e8356e34053" +dependencies = [ + "mime_guess", + "proc-macro2", + "quote", + "rust-embed-utils", + "shellexpand", + "syn 2.0.119", + "walkdir", +] + +[[package]] +name = "rust-embed-utils" +version = "8.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d84e8ba78bd384263e5922f084cbe1b081c3b7e69add59c8fb097b879ba968a" +dependencies = [ + "globset", + "sha2 0.11.0", + "walkdir", +] + +[[package]] +name = "rust-i18n" +version = "4.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8502e73e6461c738659455c5d2cf95bc132760a6f203c717e66ee72b78906d7f" +dependencies = [ + "globwalk", + "regex", + "rust-i18n-macro", + "rust-i18n-support", + "smallvec", +] + +[[package]] +name = "rust-i18n-macro" +version = "4.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d54a28dd9d46108d56b9f0c85b220908844233e561c03087890325104f90f2c6" +dependencies = [ + "glob", + "proc-macro2", + "quote", + "rust-i18n-support", + "serde", + "serde_json", + "syn 2.0.119", +] + +[[package]] +name = "rust-i18n-support" +version = "4.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e806c2a9701cbd6043992cd935c30cb1fdb128fa15e7b506f3b46f97045737c0" +dependencies = [ + "arc-swap", + "base62", + "foldhash 0.2.0", + "globwalk", + "itertools 0.11.0", + "normpath", + "serde", + "serde-saphyr", + "serde_json", + "siphasher", + "toml 0.8.23", + "triomphe", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b74b56ffa8bb2830709a538c2cbcae9aa062db0d2a42563bfb09bdaae44020eb" + [[package]] name = "rustc-hash" version = "1.1.0" @@ -7144,7 +9612,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys 0.12.1", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -7155,6 +9623,7 @@ checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" dependencies = [ "aws-lc-rs", "once_cell", + "ring", "rustls-pki-types", "rustls-webpki", "subtle", @@ -7173,6 +9642,15 @@ dependencies = [ "security-framework", ] +[[package]] +name = "rustls-pemfile" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +dependencies = [ + "rustls-pki-types", +] + [[package]] name = "rustls-pki-types" version = "1.15.1" @@ -7201,7 +9679,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -7228,6 +9706,36 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" +[[package]] +name = "rusty-fork" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2" +dependencies = [ + "fnv", + "quick-error 1.2.3", + "tempfile", + "wait-timeout", +] + +[[package]] +name = "rustybuzz" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3c7c96f8a08ee34eff8857b11b49b07d71d1c3f4e88f8a88d4c9e9f90b1702" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "core_maths", + "log", + "smallvec", + "ttf-parser", + "unicode-bidi-mirroring", + "unicode-ccc", + "unicode-properties", + "unicode-script", +] + [[package]] name = "ryu" version = "1.0.23" @@ -7271,6 +9779,32 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "schemars" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab508826f74a77ca9d5aba6ff19b522583ee3eaf28a19384ff3d0e5835fadf6e" +dependencies = [ + "dyn-clone", + "indexmap", + "ref-cast", + "schemars_derive", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1c3a92094fa7d61aa124645844facb6b554dfc797136d0f5fd1f890e2bffc69" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 3.0.6", +] + [[package]] name = "scoped-tls" version = "1.0.1" @@ -7289,6 +9823,29 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +[[package]] +name = "screencapturekit" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5eeeb57ac94960cfe5ff4c402be6585ae4c8d29a2cf41b276048c2e849d64e" +dependencies = [ + "screencapturekit-sys", +] + +[[package]] +name = "screencapturekit-sys" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22411b57f7d49e7fe08025198813ee6fd65e1ee5eff4ebc7880c12c82bde4c60" +dependencies = [ + "block", + "dispatch", + "objc", + "objc-foundation", + "objc_id", + "once_cell", +] + [[package]] name = "scrypt" version = "0.12.0" @@ -7296,7 +9853,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d87af57419b594aa23fa95f09f0e06d80d84ba01c26148c43844cad6ff4485f0" dependencies = [ "cfg-if", - "pbkdf2", + "pbkdf2 0.13.0", "salsa20", "sha2 0.11.0", ] @@ -7329,6 +9886,12 @@ dependencies = [ "thiserror 2.0.21", ] +[[package]] +name = "seahash" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" + [[package]] name = "sec1" version = "0.7.3" @@ -7364,7 +9927,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5107b24b91445dd2aa449a258a1807b63240942157292354dc5bfdbeb8bc6db8" dependencies = [ "aes 0.9.3", - "cbc", + "cbc 0.2.1", "futures-util", "getrandom 0.4.3", "hkdf 0.13.0", @@ -7410,6 +9973,10 @@ name = "semver" version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] [[package]] name = "semver-parser" @@ -7430,6 +9997,33 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "serde-saphyr" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8050abb251097357e24aff63ba2c52a6309ecb7d23a5474023df960a02694d8" +dependencies = [ + "annotate-snippets 0.12.16", + "base64 0.23.1", + "encoding_rs_io", + "granit-parser", + "nohash-hasher", + "num-traits", + "serde_core", + "smallvec", + "zmij", +] + +[[package]] +name = "serde_bytes" +version = "0.11.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8" +dependencies = [ + "serde", + "serde_core", +] + [[package]] name = "serde_core" version = "1.0.229" @@ -7450,12 +10044,24 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "serde_derive_internals" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f852137cce035d6a4df67ccce505ff6b3e9fd3a10e3e52b24dc71e650bb1a9bd" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "serde_json" version = "1.0.151" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" dependencies = [ + "indexmap", "itoa", "memchr", "serde", @@ -7485,6 +10091,15 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + [[package]] name = "serde_spanned" version = "1.1.1" @@ -7549,6 +10164,12 @@ dependencies = [ "digest 0.11.3", ] +[[package]] +name = "sha1_smol" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" + [[package]] name = "sha2" version = "0.10.9" @@ -7601,6 +10222,15 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "shellexpand" +version = "3.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32824fab5e16e6c4d86dc1ba84489390419a39f97699852b66480bb87d297ed8" +dependencies = [ + "dirs 6.0.0", +] + [[package]] name = "shlex" version = "1.3.0" @@ -7659,12 +10289,31 @@ dependencies = [ "simdutf8", ] +[[package]] +name = "simd_helpers" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6" +dependencies = [ + "quote", +] + [[package]] name = "simdutf8" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" +[[package]] +name = "similar" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" +dependencies = [ + "bstr", + "unicode-segmentation", +] + [[package]] name = "simple_asn1" version = "0.6.4" @@ -7701,12 +10350,12 @@ dependencies = [ "bindgen", "cc", "flate2", - "heck", + "heck 0.5.0", "pkg-config", "regex", "serde_json", "tar", - "toml", + "toml 1.1.6+spec-1.1.0", ] [[package]] @@ -7720,6 +10369,16 @@ dependencies = [ "windows 0.62.2", ] +[[package]] +name = "skrifa" +version = "0.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fbdfe3d2475fbd7ddd1f3e5cf8288a30eb3e5f95832829570cd88115a7434ac" +dependencies = [ + "bytemuck", + "read-fonts 0.37.0", +] + [[package]] name = "skrifa" version = "0.44.0" @@ -7727,7 +10386,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68" dependencies = [ "bytemuck", - "read-fonts", + "read-fonts 0.41.0", ] [[package]] @@ -7770,7 +10429,7 @@ dependencies = [ "fontique", "i-slint-compiler", "spin_on", - "toml_edit", + "toml_edit 0.25.15+spec-1.1.0", ] [[package]] @@ -7808,7 +10467,7 @@ checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" dependencies = [ "bitflags 2.13.2", "calloop 0.13.0", - "calloop-wayland-source", + "calloop-wayland-source 0.3.0", "cursor-icon", "libc", "log", @@ -7825,6 +10484,23 @@ dependencies = [ "xkeysym", ] +[[package]] +name = "smol" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a33bd3e260892199c3ccfc487c88b2da2265080acb316cd920da72fdfd7c599f" +dependencies = [ + "async-channel", + "async-executor", + "async-fs", + "async-io", + "async-lock", + "async-net", + "async-process", + "blocking", + "futures-lite", +] + [[package]] name = "smol_str" version = "0.2.2" @@ -7859,7 +10535,7 @@ version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451" dependencies = [ - "heck", + "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.119", @@ -7979,6 +10655,24 @@ dependencies = [ "cpufeatures 0.3.1", ] +[[package]] +name = "spin" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spin" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "023a211cb3138dbc438680b32560ad89f699977624c9f8dbb95a47d5b4c07dd3" +dependencies = [ + "lock_api", +] + [[package]] name = "spin_on" version = "0.1.1" @@ -8153,6 +10847,12 @@ dependencies = [ "time", ] +[[package]] +name = "str_indices" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d08889ec5408683408db66ad89e0e1f93dff55c73a4ccc71c427d5b277ee47e6" + [[package]] name = "strength_reduce" version = "0.2.4" @@ -8178,6 +10878,31 @@ dependencies = [ "serde", ] +[[package]] +name = "string_cache" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.11.3", + "precomputed-hash", + "serde", +] + +[[package]] +name = "string_cache_codegen" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", +] + [[package]] name = "strsim" version = "0.11.1" @@ -8199,7 +10924,7 @@ version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664" dependencies = [ - "heck", + "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.119", @@ -8211,13 +10936,29 @@ version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" +[[package]] +name = "svg_fmt" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0193cc4331cfd2f3d2011ef287590868599a2f33c3e69bc22c1a3d3acf9e02fb" + +[[package]] +name = "svgtypes" +version = "0.15.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68c7541fff44b35860c1a7a47a7cadf3e4a304c457b58f9870d9706ece028afc" +dependencies = [ + "kurbo 0.11.3", + "siphasher", +] + [[package]] name = "svgtypes" version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "695b5790b3131dafa99b3bbfd25a216edb3d216dad9ca208d4657bfb8f2abc3d" dependencies = [ - "kurbo", + "kurbo 0.13.1", "siphasher", ] @@ -8227,7 +10968,7 @@ version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c2499c2d826531388872b2268718aed907a39bd785ab0dcfe57fab26283f92e" dependencies = [ - "skrifa", + "skrifa 0.44.0", "yazi", "zeno", ] @@ -8297,6 +11038,31 @@ dependencies = [ "web-sys", ] +[[package]] +name = "sysinfo" +version = "0.31.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "355dbe4f8799b304b05e1b0f05fc59b2a18d36645cf169607da45bde2f69a1be" +dependencies = [ + "core-foundation-sys", + "libc", + "memchr", + "ntapi", + "rayon", + "windows 0.57.0", +] + +[[package]] +name = "system-configuration" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.9.4", + "system-configuration-sys", +] + [[package]] name = "system-configuration" version = "0.7.0" @@ -8325,9 +11091,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "396a35feb67335377e0251fcbc1092fc85c484bd4e3a7a54319399da127796e7" dependencies = [ "cfg-expr", - "heck", + "heck 0.5.0", "pkg-config", - "toml", + "toml 1.1.6+spec-1.1.0", "version-compare", ] @@ -8355,12 +11121,35 @@ dependencies = [ "slotmap", ] +[[package]] +name = "taffy" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31f7bd2d97198df05186f93a3a3c306845f40e8b3c22bf9279cdd7e5cf5fea7d" +dependencies = [ + "serde", + "slotmap", + "smallvec", +] + [[package]] name = "tagptr" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" +[[package]] +name = "tao-core-video-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271450eb289cb4d8d0720c6ce70c72c8c858c93dd61fc625881616752e6b98f6" +dependencies = [ + "cfg-if", + "core-foundation-sys", + "libc", + "objc", +] + [[package]] name = "tar" version = "0.4.46" @@ -8405,10 +11194,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", "rustix 1.1.5", - "windows-sys 0.52.0", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" +dependencies = [ + "futf", + "mac", + "utf-8", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", ] [[package]] @@ -8466,6 +11275,20 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "tiff" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error 2.0.1", + "weezl", + "zune-jpeg 0.5.15", +] + [[package]] name = "time" version = "0.3.55" @@ -8496,6 +11319,15 @@ dependencies = [ "time-core", ] +[[package]] +name = "tiny-keccak" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +dependencies = [ + "crunchy", +] + [[package]] name = "tiny-skia" version = "0.11.4" @@ -8507,6 +11339,7 @@ dependencies = [ "bytemuck", "cfg-if", "log", + "png 0.17.16", "tiny-skia-path 0.11.4", ] @@ -8521,7 +11354,7 @@ dependencies = [ "bytemuck", "cfg-if", "log", - "png", + "png 0.18.1", "tiny-skia-path 0.12.0", ] @@ -8554,7 +11387,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a90a0ca3ee6a69f2ad28fd11621a4c3f03b371f366be500b64df260c4ffbafb4" dependencies = [ "as-raw-xcb-connection", - "ctor", + "ctor 0.10.1", "libloading", "pkg-config", "tracing", @@ -8601,7 +11434,6 @@ dependencies = [ "signal-hook-registry", "socket2", "tokio-macros", - "tracing", "windows-sys 0.61.2", ] @@ -8626,6 +11458,18 @@ dependencies = [ "tokio", ] +[[package]] +name = "tokio-socks" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7e2948f60dbe26b35f2c7fb74ac2854c1fddded0fe9d7548fcc674a246f7615" +dependencies = [ + "either", + "futures-util", + "thiserror 1.0.69", + "tokio", +] + [[package]] name = "tokio-stream" version = "0.1.19" @@ -8679,6 +11523,18 @@ dependencies = [ "tokio", ] +[[package]] +name = "toml" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.11", + "toml_edit 0.22.27", +] + [[package]] name = "toml" version = "1.1.6+spec-1.1.0" @@ -8687,11 +11543,20 @@ checksum = "920602543f0911ab71da12c50d59701da54c196d1a2bf5cb4b75667f137a406a" dependencies = [ "indexmap", "serde_core", - "serde_spanned", - "toml_datetime", + "serde_spanned 1.1.1", + "toml_datetime 1.1.1+spec-1.1.0", "toml_parser", "toml_writer", - "winnow", + "winnow 1.0.4", +] + +[[package]] +name = "toml_datetime" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" +dependencies = [ + "serde", ] [[package]] @@ -8703,6 +11568,20 @@ dependencies = [ "serde_core", ] +[[package]] +name = "toml_edit" +version = "0.22.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" +dependencies = [ + "indexmap", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.11", + "toml_write", + "winnow 0.7.15", +] + [[package]] name = "toml_edit" version = "0.25.15+spec-1.1.0" @@ -8710,10 +11589,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1340ea94a5856333492c9064b02c778b191dd2c853778d9609debdcdfea3a614" dependencies = [ "indexmap", - "toml_datetime", + "toml_datetime 1.1.1+spec-1.1.0", "toml_parser", "toml_writer", - "winnow", + "winnow 1.0.4", ] [[package]] @@ -8722,9 +11601,15 @@ version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" dependencies = [ - "winnow", + "winnow 1.0.4", ] +[[package]] +name = "toml_write" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" + [[package]] name = "toml_writer" version = "1.1.2+spec-1.1.0" @@ -8860,7 +11745,7 @@ dependencies = [ "num-complex", "num-integer", "num-traits", - "pastey", + "pastey 0.2.3", "rustfft", "serde", "smallvec", @@ -8933,7 +11818,7 @@ dependencies = [ "log", "minijinja", "num-traits", - "pastey", + "pastey 0.2.3", "tract-data", "walkdir", ] @@ -9028,6 +11913,17 @@ dependencies = [ "petgraph", ] +[[package]] +name = "triomphe" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d15f4f5898bcfc5d8a8e45ed30b2f108d710c1a2e5489dbf80e078f707181bc" +dependencies = [ + "arc-swap", + "serde", + "stable_deref_trait", +] + [[package]] name = "try-lock" version = "0.2.5" @@ -9040,7 +11936,7 @@ version = "0.1.0" dependencies = [ "base64 0.22.1", "criterion", - "heck", + "heck 0.5.0", "itertools 0.14.0", "num-derive", "num-traits", @@ -9148,10 +12044,10 @@ version = "0.2.0" dependencies = [ "base64 0.22.1", "csv", - "heck", + "heck 0.5.0", "once_cell", "serde", - "toml", + "toml 1.1.6+spec-1.1.0", ] [[package]] @@ -9163,7 +12059,7 @@ dependencies = [ "curve25519-dalek 4.1.3", "elliptic-curve 0.13.8", "generic-array 0.14.7", - "heck", + "heck 0.5.0", "num-bigint 0.4.8", "num-derive", "num-traits", @@ -9184,6 +12080,9 @@ name = "ttf-parser" version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" +dependencies = [ + "core_maths", +] [[package]] name = "tungstenite" @@ -9270,6 +12169,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "unarray" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" + [[package]] name = "unicase" version = "2.9.0" @@ -9282,6 +12187,24 @@ version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" +[[package]] +name = "unicode-bidi-mirroring" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dfa6e8c60bb66d49db113e0125ee8711b7647b5579dc7f5f19c42357ed039fe" + +[[package]] +name = "unicode-ccc" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e" + +[[package]] +name = "unicode-id" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65dd75ab2d9d379dbe86d4059e91d8b5a6e7054865eaba1ddbfc7a817ff96392" + [[package]] name = "unicode-ident" version = "1.0.26" @@ -9294,6 +12217,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" +[[package]] +name = "unicode-properties" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d" + [[package]] name = "unicode-script" version = "0.5.8" @@ -9364,6 +12293,60 @@ dependencies = [ "serde", ] +[[package]] +name = "usvg" +version = "0.45.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80be9b06fbae3b8b303400ab20778c80bbaf338f563afe567cf3c9eea17b47ef" +dependencies = [ + "base64 0.22.1", + "data-url", + "flate2", + "fontdb 0.23.0", + "imagesize 0.13.0", + "kurbo 0.11.3", + "log", + "pico-args", + "roxmltree 0.20.0", + "rustybuzz", + "simplecss", + "siphasher", + "strict-num", + "svgtypes 0.15.3", + "tiny-skia-path 0.11.4", + "unicode-bidi", + "unicode-script", + "unicode-vo", + "xmlwriter", +] + +[[package]] +name = "usvg" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e419dff010bb12512b0ae9e3d2f318dfbdf0167fde7eb05465134d4e8756076f" +dependencies = [ + "base64 0.22.1", + "data-url", + "flate2", + "fontdb 0.23.0", + "imagesize 0.14.0", + "kurbo 0.13.1", + "log", + "pico-args", + "roxmltree 0.21.1", + "rustybuzz", + "simplecss", + "siphasher", + "strict-num", + "svgtypes 0.16.1", + "tiny-skia-path 0.11.4", + "unicode-bidi", + "unicode-script", + "unicode-vo", + "xmlwriter", +] + [[package]] name = "usvg" version = "0.48.1" @@ -9373,18 +12356,18 @@ dependencies = [ "base64 0.23.1", "data-url", "flate2", - "fontdb", - "harfrust", - "imagesize", - "kurbo", + "fontdb 0.24.0", + "harfrust 0.12.0", + "imagesize 0.15.0", + "kurbo 0.13.1", "log", "pico-args", - "roxmltree", + "roxmltree 0.21.1", "simplecss", "siphasher", - "skrifa", + "skrifa 0.44.0", "strict-num", - "svgtypes", + "svgtypes 0.16.1", "tiny-skia-path 0.12.0", "unicode-bidi", "unicode-script", @@ -9392,6 +12375,12 @@ dependencies = [ "xmlwriter", ] +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + [[package]] name = "utf8_iter" version = "1.0.4" @@ -9413,6 +12402,18 @@ dependencies = [ "getrandom 0.4.3", "js-sys", "serde_core", + "sha1_smol", + "wasm-bindgen", +] + +[[package]] +name = "v_frame" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2" +dependencies = [ + "aligned-vec", + "num-traits", "wasm-bindgen", ] @@ -9495,7 +12496,7 @@ dependencies = [ "anyhow", "base64 0.22.1", "bytes", - "dirs", + "dirs 6.0.0", "futures", "h2", "hickory-resolver", @@ -9510,7 +12511,7 @@ dependencies = [ "thiserror 2.0.21", "tokio", "tokio-tungstenite 0.30.0", - "toml", + "toml 1.1.6+spec-1.1.0", "tracing", "tsclientlib", "tsproto", @@ -9547,7 +12548,7 @@ dependencies = [ "thiserror 2.0.21", "tokio", "tokio-tungstenite 0.30.0", - "toml", + "toml 1.1.6+spec-1.1.0", "tracing", "tracing-subscriber", "tsproto-types", @@ -9575,6 +12576,23 @@ dependencies = [ "voelin-model", ] +[[package]] +name = "voelin-gpui" +version = "0.0.1-alpha" +dependencies = [ + "anyhow", + "gpui-kit", + "gpui-pre", + "rustix 1.1.5", + "tokio", + "tracing", + "tracing-subscriber", + "voelin-core", + "voelin-platform", + "voelin-store", + "voelin-ui-vm", +] + [[package]] name = "voelin-identity" version = "0.2.0" @@ -9627,11 +12645,11 @@ dependencies = [ "wayland-protocols", "wayland-protocols-wlr", "windows 0.62.2", - "windows-capture", + "windows-capture 2.0.1", "x11rb", "yuv", - "zune-core", - "zune-jpeg", + "zune-core 0.5.3", + "zune-jpeg 0.5.15", ] [[package]] @@ -9660,7 +12678,7 @@ name = "voelin-platform" version = "0.1.0" dependencies = [ "ashpd", - "dirs", + "dirs 6.0.0", "futures-util", "notify-rust", "serde", @@ -9738,9 +12756,9 @@ version = "0.0.1-alpha" dependencies = [ "anyhow", "chrono", - "dirs", + "dirs 6.0.0", "image", - "png", + "png 0.18.1", "serde", "serde_json", "slint", @@ -9767,8 +12785,8 @@ dependencies = [ "chrono", "image", "miniz_oxide 0.8.9", - "png", - "roxmltree", + "png 0.18.1", + "roxmltree 0.21.1", "serde", "serde_json", "unicode-segmentation", @@ -9786,11 +12804,11 @@ dependencies = [ "anyhow", "base64 0.22.1", "clap", - "dirs", + "dirs 6.0.0", "futures", "futures-util", "md5", - "png", + "png 0.18.1", "serde_json", "tokio", "tokio-tungstenite 0.30.0", @@ -9810,6 +12828,26 @@ dependencies = [ "voelin-stream", ] +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "vtable" version = "0.5.0" @@ -9833,6 +12871,21 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "wait-timeout" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11" +dependencies = [ + "libc", +] + +[[package]] +name = "waker-fn" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" + [[package]] name = "walkdir" version = "2.5.0" @@ -9936,6 +12989,31 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "wasm_thread" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7516db7f32decdadb1c3b8deb1b7d78b9df7606c5cc2f6241737c2ab3a0258e" +dependencies = [ + "futures", + "js-sys", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "wayland-backend" version = "0.3.17" @@ -9944,6 +13022,7 @@ checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" dependencies = [ "cc", "downcast-rs 1.2.1", + "log", "rustix 1.1.5", "scoped-tls", "smallvec", @@ -10109,12 +13188,18 @@ dependencies = [ "cfg_aliases", "document-features", "hashbrown 0.17.1", + "js-sys", "log", + "naga", + "parking_lot", "portable-atomic", "profiling", "raw-window-handle", "smallvec", "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", "wgpu-core", "wgpu-hal", "wgpu-types", @@ -10147,6 +13232,8 @@ dependencies = [ "smallvec", "thiserror 2.0.21", "wgpu-core-deps-apple", + "wgpu-core-deps-emscripten", + "wgpu-core-deps-wasm", "wgpu-core-deps-windows-linux-android", "wgpu-hal", "wgpu-naga-bridge", @@ -10162,6 +13249,24 @@ dependencies = [ "wgpu-hal", ] +[[package]] +name = "wgpu-core-deps-emscripten" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98b86cf4abf524a902dd35f18ca6a3f08fc2ae9847c8f10b48e30491b1f0b86" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-wasm" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d260ca2ca8adc654f513a869bf3cac0b47f5b8d3f87803d6942015f8de597aae" +dependencies = [ + "wgpu-hal", +] + [[package]] name = "wgpu-core-deps-windows-linux-android" version = "30.0.1" @@ -10186,13 +13291,18 @@ dependencies = [ "bytemuck", "cfg-if", "cfg_aliases", + "glow 0.17.0", + "glutin_wgl_sys", "gpu-allocator", "hashbrown 0.17.1", + "js-sys", + "khronos-egl", "libc", "libloading", "log", "naga", "naga-types", + "ndk-sys 0.6.0+11769913", "objc2 0.6.4", "objc2-core-foundation", "objc2-core-graphics", @@ -10212,10 +13322,14 @@ dependencies = [ "smallvec", "static_assertions", "thiserror 2.0.21", + "wasm-bindgen", + "wayland-sys", + "web-sys", "wgpu-naga-bridge", "wgpu-types", "windows 0.62.2", "windows-core 0.62.2", + "windows-result 0.4.1", ] [[package]] @@ -10236,10 +13350,21 @@ checksum = "99dad6f1fbdbbdb4c278a6508b059d44688f5cebddf78d005a46a31340269286" dependencies = [ "bitflags 2.13.2", "bytemuck", + "js-sys", "log", "naga-types", "raw-window-handle", "static_assertions", + "web-sys", +] + +[[package]] +name = "which" +version = "8.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bae2f2b2b816647a1cab1acc91f5bd20812d53cb344382635ec2181940c8034f" +dependencies = [ + "libc", ] [[package]] @@ -10280,7 +13405,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.61.2", ] [[package]] @@ -10298,6 +13423,26 @@ dependencies = [ "num-traits", ] +[[package]] +name = "windows" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143" +dependencies = [ + "windows-core 0.57.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core 0.58.0", + "windows-targets 0.52.6", +] + [[package]] name = "windows" version = "0.61.3" @@ -10323,6 +13468,19 @@ dependencies = [ "windows-numerics 0.3.1", ] +[[package]] +name = "windows-capture" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a4df73e95feddb9ec1a7e9c2ca6323b8c97d5eeeff78d28f1eccdf19c882b24" +dependencies = [ + "parking_lot", + "rayon", + "thiserror 2.0.21", + "windows 0.61.3", + "windows-future 0.2.1", +] + [[package]] name = "windows-capture" version = "2.0.1" @@ -10354,14 +13512,39 @@ dependencies = [ "windows-core 0.62.2", ] +[[package]] +name = "windows-core" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d" +dependencies = [ + "windows-implement 0.57.0", + "windows-interface 0.57.0", + "windows-result 0.1.2", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets 0.52.6", +] + [[package]] name = "windows-core" version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" dependencies = [ - "windows-implement", - "windows-interface", + "windows-implement 0.60.2", + "windows-interface 0.59.3", "windows-link 0.1.3", "windows-result 0.3.4", "windows-strings 0.4.2", @@ -10373,8 +13556,8 @@ version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ - "windows-implement", - "windows-interface", + "windows-implement 0.60.2", + "windows-interface 0.59.3", "windows-link 0.2.1", "windows-result 0.4.1", "windows-strings 0.5.1", @@ -10402,6 +13585,28 @@ dependencies = [ "windows-threading 0.2.1", ] +[[package]] +name = "windows-implement" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "windows-implement" version = "0.60.2" @@ -10413,6 +13618,28 @@ dependencies = [ "syn 2.0.119", ] +[[package]] +name = "windows-interface" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + [[package]] name = "windows-interface" version = "0.59.3" @@ -10469,6 +13696,17 @@ dependencies = [ "windows-link 0.2.1", ] +[[package]] +name = "windows-registry" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" +dependencies = [ + "windows-result 0.3.4", + "windows-strings 0.3.1", + "windows-targets 0.53.5", +] + [[package]] name = "windows-registry" version = "0.6.1" @@ -10480,6 +13718,24 @@ dependencies = [ "windows-strings 0.5.1", ] +[[package]] +name = "windows-result" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + [[package]] name = "windows-result" version = "0.3.4" @@ -10498,6 +13754,25 @@ dependencies = [ "windows-link 0.2.1", ] +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" +dependencies = [ + "windows-link 0.1.3", +] + [[package]] name = "windows-strings" version = "0.4.2" @@ -10591,13 +13866,30 @@ dependencies = [ "windows_aarch64_gnullvm 0.52.6", "windows_aarch64_msvc 0.52.6", "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm", + "windows_i686_gnullvm 0.52.6", "windows_i686_msvc 0.52.6", "windows_x86_64_gnu 0.52.6", "windows_x86_64_gnullvm 0.52.6", "windows_x86_64_msvc 0.52.6", ] +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link 0.2.1", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + [[package]] name = "windows-threading" version = "0.1.0" @@ -10643,6 +13935,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + [[package]] name = "windows_aarch64_msvc" version = "0.42.2" @@ -10661,6 +13959,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + [[package]] name = "windows_i686_gnu" version = "0.42.2" @@ -10679,12 +13983,24 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + [[package]] name = "windows_i686_msvc" version = "0.42.2" @@ -10703,6 +14019,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + [[package]] name = "windows_x86_64_gnu" version = "0.42.2" @@ -10721,6 +14043,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + [[package]] name = "windows_x86_64_gnullvm" version = "0.42.2" @@ -10739,6 +14067,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + [[package]] name = "windows_x86_64_msvc" version = "0.42.2" @@ -10757,6 +14091,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + [[package]] name = "winit" version = "0.30.13" @@ -10773,7 +14113,7 @@ dependencies = [ "cfg_aliases", "concurrent-queue", "core-foundation 0.9.4", - "core-graphics", + "core-graphics 0.23.2", "cursor-icon", "dpi", "js-sys", @@ -10809,6 +14149,15 @@ dependencies = [ "xkbcommon-dl", ] +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +dependencies = [ + "memchr", +] + [[package]] name = "winnow" version = "1.0.4" @@ -10818,6 +14167,25 @@ dependencies = [ "memchr", ] +[[package]] +name = "winreg" +version = "0.56.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10" +dependencies = [ + "cfg-if", + "windows-sys 0.61.2", +] + +[[package]] +name = "wio" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d129932f4644ac2396cb456385cbf9e63b5b30c6e8dc4820bdca4eb082037a5" +dependencies = [ + "winapi", +] + [[package]] name = "wit-bindgen" version = "0.57.1" @@ -10860,11 +14228,11 @@ version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cae90d1d9f6d1d36ef116b0b1e651a6d7c12ba925439d4d06ff9adc94662a3d8" dependencies = [ - "font-types", + "font-types 0.12.5", "indexmap", - "kurbo", + "kurbo 0.13.1", "log", - "read-fonts", + "read-fonts 0.41.0", ] [[package]] @@ -10873,6 +14241,16 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + [[package]] name = "x11-dl" version = "2.21.0" @@ -10897,6 +14275,7 @@ dependencies = [ "once_cell", "rustix 1.1.5", "x11rb-protocol", + "xcursor", ] [[package]] @@ -10955,12 +14334,54 @@ dependencies = [ "rustix 1.1.5", ] +[[package]] +name = "xcb" +version = "1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6c2ad15e0e922856ee89afe862b8992334bbe7953adad56cd1199358cb30566" +dependencies = [ + "bitflags 2.13.2", + "libc", + "quick-xml", + "x11", +] + [[package]] name = "xcursor" version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" +[[package]] +name = "xim-ctext" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ac61a7062c40f3c37b6e82eeeef835d5cc7824b632a72784a89b3963c33284c" +dependencies = [ + "encoding_rs", +] + +[[package]] +name = "xim-parser" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dcee45f89572d5a65180af3a84e7ddb24f5ea690a6d3aa9de231281544dd7b7" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "xkbcommon" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d66ca9352cbd4eecbbc40871d8a11b4ac8107cfc528a6e14d7c19c69d0e1ac9" +dependencies = [ + "as-raw-xcb-connection", + "libc", + "memmap2", + "xkeysym", +] + [[package]] name = "xkbcommon" version = "0.9.0" @@ -10997,12 +14418,29 @@ version = "0.8.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" +[[package]] +name = "xml5ever" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bbb26405d8e919bc1547a5aa9abc95cbfa438f04844f5fdd9dc7596b748bf69" +dependencies = [ + "log", + "mac", + "markup5ever", +] + [[package]] name = "xmlwriter" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec7a2a501ed189703dba8b08142f057e887dfc4b2cc4db2d343ac6376ba3e0b9" +[[package]] +name = "y4m" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a5a4b21e1a62b67a2970e6831bc091d7b87e119e7f9791aef9702e3bef04448" + [[package]] name = "yasna" version = "0.6.0" @@ -11087,12 +14525,11 @@ dependencies = [ "rustix 1.1.5", "serde", "serde_repr", - "tokio", "tracing", "uds_windows", "uuid", "windows-sys 0.61.2", - "winnow", + "winnow 1.0.4", "zbus_macros", "zbus_names", "zvariant", @@ -11155,7 +14592,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8bf88b4a3ff53e883001e0e0115b297a9d53c31b9c1edd2bfdd853e3428624e" dependencies = [ "serde", - "winnow", + "winnow 1.0.4", "zvariant", ] @@ -11166,7 +14603,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d1586c021a01ca0a9216dcd874e546382e156a5cbab5fab6cb5f10087e22682a" dependencies = [ "serde", - "winnow", + "winnow 1.0.4", "zbus_names", "zvariant", ] @@ -11180,6 +14617,67 @@ dependencies = [ "serde", ] +[[package]] +name = "zed-font-kit" +version = "0.14.1-zed" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3898e450f36f852edda72e3f985c34426042c4951790b23b107f93394f9bff5" +dependencies = [ + "bitflags 2.13.2", + "byteorder", + "core-foundation 0.10.1", + "core-graphics 0.24.0", + "core-text", + "dirs 5.0.1", + "dwrote", + "float-ord", + "freetype-sys", + "lazy_static", + "libc", + "log", + "pathfinder_geometry", + "pathfinder_simd", + "walkdir", + "winapi", + "yeslogic-fontconfig-sys", +] + +[[package]] +name = "zed-scap" +version = "0.0.8-zed" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b338d705ae33a43ca00287c11129303a7a0aa57b101b72a1c08c863f698ac8" +dependencies = [ + "anyhow", + "cocoa", + "core-graphics-helmer-fork", + "log", + "objc", + "rand 0.8.8", + "screencapturekit", + "screencapturekit-sys", + "sysinfo", + "tao-core-video-sys", + "windows 0.61.3", + "windows-capture 1.5.0", + "x11", + "xcb", +] + +[[package]] +name = "zed-xim" +version = "0.4.0-zed" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0b46ed118eba34d9ba53d94ddc0b665e0e06a2cf874cfa2dd5dec278148642" +dependencies = [ + "ahash", + "hashbrown 0.14.5", + "log", + "x11rb", + "xim-ctext", + "xim-parser", +] + [[package]] name = "zeno" version = "0.3.3" @@ -11232,6 +14730,20 @@ name = "zeroize" version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] [[package]] name = "zerotrie" @@ -11280,19 +14792,43 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" +[[package]] +name = "zune-core" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a" + [[package]] name = "zune-core" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" +[[package]] +name = "zune-inflate" +version = "0.2.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "zune-jpeg" +version = "0.4.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713" +dependencies = [ + "zune-core 0.4.12", +] + [[package]] name = "zune-jpeg" version = "0.5.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" dependencies = [ - "zune-core", + "zune-core 0.5.3", ] [[package]] @@ -11304,7 +14840,8 @@ dependencies = [ "endi", "enumflags2", "serde", - "winnow", + "serde_bytes", + "winnow 1.0.4", "zcheapstr", "zvariant_derive", "zvariant_utils", @@ -11333,5 +14870,5 @@ dependencies = [ "quote", "serde", "syn 3.0.6", - "winnow", + "winnow 1.0.4", ] diff --git a/Cargo.toml b/Cargo.toml index 61c3b6f..f8fb442 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ members = [ "crates/voelin-core", "crates/voelin-gateway", "crates/voelin-gateway-proto", + "crates/voelin-gpui", "crates/voelin-media", "crates/voelin-observer", "crates/voelin-platform", @@ -36,6 +37,7 @@ default-members = [ "crates/voelin-core", "crates/voelin-gateway", "crates/voelin-gateway-proto", + "crates/voelin-gpui", "crates/voelin-observer", "crates/voelin-platform", "crates/voelin-query", @@ -48,7 +50,7 @@ default-members = [ [workspace.package] edition = "2024" -rust-version = "1.94" +rust-version = "1.95" license = "MIT OR Apache-2.0" repository = "https://github.com/Faumaray/Voelin" publish = false @@ -66,6 +68,11 @@ voelin-identity = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.gi voelin-proto = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "c5bb6b914bdab86eb36f6e32a1a5bc9ac4785562" } # The UI-facing domain model and the client's replica of v1 entities. voelin-model = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "c5bb6b914bdab86eb36f6e32a1a5bc9ac4785562" } +# GPUI, gpui-component and their assets for the GPUI front end (voelin-gpui). Pre-1.0: +# pinned exactly (it pins its `gpui-pre` snapshot exactly too), upgraded in commits of +# their own after rebuilding spikes/gpui on the new release (docs/design/gpui-spikes.md, +# "The version to pin"). +gpui-kit = "=0.8.1" [workspace.lints.rust] # deny, not forbid: generated code (Slint) needs a local allow. diff --git a/README.md b/README.md index 96986e6..2ad5787 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,11 @@ Done so far (milestones M0–M4 and the first part of M5 of [the plan](docs/arch - `crates/voelin-ui-vm`: the view models and the app's state behind the UI, with no UI toolkit: engine state as plain rows and forms, chat formatting, the Twemoji archive, and what the settings pages and the Stream Studio decide; `voelin-ui` puts them on Slint windows ([docs/ui.md](docs/ui.md)) +- `crates/voelin-gpui` (`voelin-gpui`): the GPUI front end, under construction, on the same engine and + view models as the Slint one, which stays the app until it reaches parity: a window with the engine's + state in one line, the Voelin theme (every token of the Slint one's `theme.slint`, light and dark, in + Inter with the same Lucide icons; `VOELIN_OPEN=swatch` shows them) and a cost meter (`VOELIN_METER=1`) + ([docs/ui.md](docs/ui.md), "The GPUI front end") - `crates/voelin-stream`: TeamSpeak 6 streams: stream commands and notifications, JSON signalling, WebRTC peers (str0m) with host and STUN candidates. A live test streams VP8 + Opus between two clients through a TS6 server @@ -79,6 +84,8 @@ The UI (design system, desktop and phone layouts, emoji, how to add a screen) is ```sh # Desktop app cargo run -p voelin-ui --bin voelin +# The GPUI front end, under construction (Vulkan or OpenGL at run time) +cargo run -p voelin-gpui --release # Local servers (use REGISTRY=mirror.gcr.io if Docker Hub rate-limits you) docker compose -f dev/docker-compose.yml up -d diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index aed22ae..1fad605 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -175,19 +175,43 @@ the crate's authors are listed as its copyright holders. | License | Crates | |---|---| -| MIT License | 667 | -| Apache License 2.0 | 31 | +| MIT License | 856 | +| Apache License 2.0 | 56 | +| BSD 3-Clause "New" or "Revised" License | 26 | | Unicode License v3 | 26 | -| BSD 3-Clause "New" or "Revised" License | 22 | | LicenseRef-Slint-Royalty-free-2.0 | 12 | -| ISC License | 8 | +| ISC License | 10 | | BSD 2-Clause "Simplified" License | 3 | +| Mozilla Public License 2.0 | 3 | | zlib License | 3 | +| BSD Zero Clause License | 2 | | Boost Software License 1.0 | 2 | -| Mozilla Public License 2.0 | 2 | +| Creative Commons Zero v1.0 Universal | 2 | | The Unlicense | 1 | | bzip2 and libbzip2 License v1.0.6 | 1 | +### BSD Zero Clause License + +Used by: enum-iterator-derive 1.5.0, enum-iterator 2.3.0 + +````text +BSD Zero Clause License + +Copyright (c) 2018 Stephane Raux + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +```` + ### Apache License 2.0 Used by: flagset 0.4.7, hound 3.5.1 @@ -812,7 +836,7 @@ Used by: moxcms 0.8.1, pxfm 0.1.30, yuv 0.8.19 ```` -Used by: cpal 0.18.2, imgref 1.12.3, self_cell 1.3.0, unicode-linebreak 0.1.5 +Used by: codespan-reporting 0.13.1, cpal 0.18.2, imgref 1.12.3, self_cell 1.3.0, unicode-linebreak 0.1.5 ````text Apache License @@ -1019,7 +1043,7 @@ Used by: cpal 0.18.2, imgref 1.12.3, self_cell 1.3.0, unicode-linebreak 0.1.5 ```` -Used by: gethostname 1.1.0, prost-derive 0.14.4, prost 0.14.4 +Used by: gethostname 1.1.0, prost-derive 0.14.4, prost 0.14.4, similar 2.7.0 ````text Apache License @@ -1645,12 +1669,16 @@ Standard text, used by: - accesskit_winit 0.33.2: The AccessKit contributors (https://github.com/AccessKit/accesskit) - audio-codec-algorithms 0.8.1 (https://github.com/karip/audio-codec-algorithms) - aws-lc-sys 0.45.0: AWS-LC (https://github.com/aws/aws-lc-rs) +- dunce 1.0.5: Kornel (https://gitlab.com/kornelski/dunce) +- gpui-kit-assets 0.8.1 (https://github.com/longbridge/gpui-kit) +- gpui-kit 0.8.1 (https://github.com/longbridge/gpui-kit) - owned_ttf_parser 0.25.1: Alex Butler (https://github.com/alexheretic/owned-ttf-parser) - pageant 0.2.3: Eugene (https://github.com/warp-tech/russh) - russh-cryptovec 0.62.0: Pierre-Étienne Meunier , Eugeny (https://github.com/warp-tech/russh) - ryu 1.0.23: David Tolnay (https://github.com/dtolnay/ryu) +- spirv 0.4.0+sdk-1.4.341.0: Lei Zhang (https://github.com/gfx-rs/rspirv) - sync_wrapper 1.0.2: Actyx AG (https://github.com/Actyx/sync_wrapper) ````text @@ -1730,6 +1758,431 @@ limitations under the License. ```` +Used by: gpui-pre-collections 0.3.10, gpui-pre-derive-refineable 0.3.10, gpui-pre-http-client 0.3.10, gpui-pre-linux 0.3.10, gpui-pre-macros 0.3.10, gpui-pre-platform 0.3.10, gpui-pre-refineable 0.3.10, gpui-pre-scheduler 0.3.10, gpui-pre-shared-string 0.3.10, gpui-pre-sum-tree 0.3.10, gpui-pre-util 0.3.10, gpui-pre-wgpu 0.3.10, gpui-pre-windows 0.3.10, gpui-pre-ztracing-macro 0.3.10, gpui-pre-ztracing 0.3.10, gpui-pre 0.3.10 + +````text +Copyright 2022 - 2025 Zed Industries, Inc. + + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + + http://www.apache.org/licenses/LICENSE-2.0 + + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + + +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + + 1. Definitions. + + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + + END OF TERMS AND CONDITIONS + +```` + +Used by: gpui-base 0.8.1, gpui-component-macros 0.8.1, gpui-component 0.8.1 + +````text +Copyright 2024 - 2026 Longbridge + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +```` + ### BSD 2-Clause "Simplified" License Used by: openh264-sys2 0.9.8 @@ -2082,11 +2535,78 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ```` +Used by: instant 0.1.13 + +````text +Copyright (c) 2019, Sébastien Crozet +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the author nor the names of its contributors may be used + to endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +```` + +Used by: lebe 0.5.3 + +````text +Copyright (c) 2022 Contributors to the lebe Project. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors +may be used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +```` + Standard text, used by: - aws-lc-sys 0.45.0: AWS-LC (https://github.com/aws/aws-lc-rs) - curve25519-dalek 4.1.3: Isis Lovecruft , Henry de Valence (https://github.com/dalek-cryptography/curve25519-dalek/tree/main/curve25519-dalek) +- exr 1.74.2: johannesvollmer (https://github.com/johannesvollmer/exrs) - git-testament-derive 0.2.1: Daniel Silverstone (https://github.com/kinnison/git-testament/) - git-testament 0.2.6: Daniel Silverstone (https://github.com/kinnison/git-testament/) +- sha1_smol 1.0.1: Armin Ronacher (https://github.com/mitsuhiko/sha1-smol) - sonora-aec3 0.2.0 (https://github.com/dignifiedquire/sonora) ````text @@ -2231,6 +2751,181 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ```` +### Creative Commons Zero v1.0 Universal + +Used by: notify 8.2.1 + +````text +Creative Commons CC0 1.0 Universal + +<> CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. <> + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; + + ii. moral rights retained by the original author(s) and/or performer(s); + + iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; + + iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; + + v. rights protecting the extraction, dissemination, use and reuse of data in a Work; + + vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and + + vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. + + b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. + + c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. + + d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. +```` + +Used by: tiny-keccak 2.0.2 + +````text +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. + +```` + ### ISC License Used by: untrusted 0.7.1, untrusted 0.9.0 @@ -2593,6 +3288,43 @@ THIS SOFTWARE. ```` +Used by: inotify-sys 0.1.8 + +````text +Copyright (c) Hanno Braun and contributors + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. +```` + +Used by: inotify 0.11.5 + +````text +Copyright (c) Hanno Braun and contributors + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. + +```` + Used by: libloading 0.8.9 ````text @@ -2725,6 +3457,33 @@ Unless required by law, SixtyFPS won't be liable for any direct, indirect, incid ### MIT License +Used by: rustybuzz 0.20.1 + +````text + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE + +```` + Used by: uds_windows 1.2.1 ````text @@ -2752,6 +3511,643 @@ Used by: uds_windows 1.2.1 ```` +Used by: freetype-sys 0.20.1 + +````text +# +# FreeType 2 BDF module definition +# + +# Copyright 2001, 2002, 2006 by +# Francesco Zappa Nardelli +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + + +FTMODULE_H_COMMANDS += BDF_DRIVER + +define BDF_DRIVER +$(OPEN_DRIVER) FT_Driver_ClassRec, bdf_driver_class $(CLOSE_DRIVER) +$(ECHO_DRIVER)bdf $(ECHO_DRIVER_DESC)bdf bitmap fonts$(ECHO_DRIVER_DONE) +endef + +# EOF + +```` + +Used by: freetype-sys 0.20.1 + +````text +# +# FreeType 2 PCF module definition +# + +# Copyright 2000, 2006 by +# Francesco Zappa Nardelli +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + + +FTMODULE_H_COMMANDS += PCF_DRIVER + +define PCF_DRIVER +$(OPEN_DRIVER) FT_Driver_ClassRec, pcf_driver_class $(CLOSE_DRIVER) +$(ECHO_DRIVER)pcf $(ECHO_DRIVER_DESC)pcf bitmap fonts$(ECHO_DRIVER_DONE) +endef + +# EOF + +```` + +Used by: schemars 1.2.3 + +````text +#![allow(clippy::all)] +use crate::_alloc_prelude::*; +// Copied from regex_syntax crate to avoid pulling in the whole crate just for a utility function +// https://github.com/rust-lang/regex/blob/431c4e4867e1eb33eb39b23ed47c9934b2672f8f/regex-syntax/src/lib.rs +// +// Copyright (c) 2014 The Rust Project Developers +// +// Permission is hereby granted, free of charge, to any +// person obtaining a copy of this software and associated +// documentation files (the "Software"), to deal in the +// Software without restriction, including without +// limitation the rights to use, copy, modify, merge, +// publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software +// is furnished to do so, subject to the following +// conditions: +// +// The above copyright notice and this permission notice +// shall be included in all copies or substantial portions +// of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +// ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +// SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +// IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +// DEALINGS IN THE SOFTWARE. + +pub fn escape(text: &str) -> String { + let mut quoted = String::new(); + escape_into(text, &mut quoted); + quoted +} + +fn escape_into(text: &str, buf: &mut String) { + buf.reserve(text.len()); + for c in text.chars() { + if is_meta_character(c) { + buf.push('\\'); + } + buf.push(c); + } +} + +fn is_meta_character(c: char) -> bool { + match c { + '\\' | '.' | '+' | '*' | '?' | '(' | ')' | '|' | '[' | ']' | '{' | '}' | '^' | '$' + | '#' | '&' | '-' | '~' => true, + _ => false, + } +} + +```` + +Used by: markdown 1.0.0 + +````text +(The MIT License) + +Copyright (c) 2022 Titus Wormer + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +```` + +Used by: qoi 0.4.1 + +````text +/* + +clang fuzzing harness for qoi_decode + +Compile and run with: + clang -fsanitize=address,fuzzer -g -O0 qoifuzz.c && ./a.out + +Dominic Szablewski - https://phoboslab.org + + +-- LICENSE: The MIT License(MIT) + +Copyright(c) 2021 Dominic Szablewski + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files(the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and / or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions : +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +*/ + + +#define QOI_IMPLEMENTATION +#include "qoi.h" +#include +#include + +int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + int w, h; + if (size < 4) { + return 0; + } + + qoi_desc desc; + void* decoded = qoi_decode((void*)(data + 4), (int)(size - 4), &desc, *((int *)data)); + if (decoded != NULL) { + free(decoded); + } + return 0; +} + +```` + +Used by: freetype-sys 0.20.1 + +````text +/* + * Copyright 2001, 2002, 2012 Francesco Zappa Nardelli + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE COMPUTING RESEARCH LAB OR NEW MEXICO STATE UNIVERSITY BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT + * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + + /************************************************************************** + * + * This file is used to define the BDF error enumeration constants. + * + */ + +#ifndef BDFERROR_H_ +#define BDFERROR_H_ + +#include + +#undef FTERRORS_H_ + +#undef FT_ERR_PREFIX +#define FT_ERR_PREFIX BDF_Err_ +#define FT_ERR_BASE FT_Mod_Err_BDF + +#include + +#endif /* BDFERROR_H_ */ + + +/* END */ + +```` + +Used by: freetype-sys 0.20.1 + +````text +/* bdf.c + + FreeType font driver for bdf files + + Copyright (C) 2001, 2002 by + Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + + +#define FT_MAKE_OPTION_SINGLE_OBJECT + +#include "bdflib.c" +#include "bdfdrivr.c" + + +/* END */ + +```` + +Used by: freetype-sys 0.20.1 + +````text +/* bdfdrivr.h + + FreeType font driver for bdf fonts + + Copyright (C) 2001, 2002, 2003, 2004 by + Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + + +#ifndef BDFDRIVR_H_ +#define BDFDRIVR_H_ + +#include + +#include "bdf.h" + + +FT_BEGIN_HEADER + + + typedef struct BDF_encoding_el_ + { + FT_ULong enc; + FT_UShort glyph; + + } BDF_encoding_el; + + + typedef struct BDF_FaceRec_ + { + FT_FaceRec root; + + char* charset_encoding; + char* charset_registry; + + bdf_font_t* bdffont; + + BDF_encoding_el* en_table; + + FT_UInt default_glyph; + + } BDF_FaceRec, *BDF_Face; + + + FT_EXPORT_VAR( const FT_Driver_ClassRec ) bdf_driver_class; + + +FT_END_HEADER + + +#endif /* BDFDRIVR_H_ */ + + +/* END */ + +```` + +Used by: freetype-sys 0.20.1 + +````text +/* pcf.c + + FreeType font driver for pcf fonts + + Copyright 2000-2001, 2003 by + Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + + +#define FT_MAKE_OPTION_SINGLE_OBJECT + +#include "pcfdrivr.c" +#include "pcfread.c" +#include "pcfutil.c" + + +/* END */ + +```` + +Used by: freetype-sys 0.20.1 + +````text +/* pcfdrivr.h + + FreeType font driver for pcf fonts + + Copyright 2000-2001, 2002 by + Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + + +#ifndef PCFDRIVR_H_ +#define PCFDRIVR_H_ + +#include + + +FT_BEGIN_HEADER + + FT_EXPORT_VAR( const FT_Driver_ClassRec ) pcf_driver_class; + +FT_END_HEADER + + +#endif /* PCFDRIVR_H_ */ + + +/* END */ + +```` + +Used by: freetype-sys 0.20.1 + +````text +/* pcfread.h + + FreeType font driver for pcf fonts + + Copyright 2003 by + Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + + +#ifndef PCFREAD_H_ +#define PCFREAD_H_ + + + +FT_BEGIN_HEADER + + FT_LOCAL( PCF_Property ) + pcf_find_property( PCF_Face face, + const FT_String* prop ); + +FT_END_HEADER + +#endif /* PCFREAD_H_ */ + + +/* END */ + +```` + +Used by: freetype-sys 0.20.1 + +````text +/* pcfutil.h + + FreeType font driver for pcf fonts + + Copyright 2000, 2001, 2004 by + Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + + +#ifndef PCFUTIL_H_ +#define PCFUTIL_H_ + + +#include +#include FT_CONFIG_CONFIG_H +#include + +FT_BEGIN_HEADER + + FT_LOCAL( void ) + BitOrderInvert( unsigned char* buf, + size_t nbytes ); + + FT_LOCAL( void ) + TwoByteSwap( unsigned char* buf, + size_t nbytes ); + + FT_LOCAL( void ) + FourByteSwap( unsigned char* buf, + size_t nbytes ); + +FT_END_HEADER + +#endif /* PCFUTIL_H_ */ + + +/* END */ + +```` + +Used by: globwalk 0.8.1 + +````text +// Copyright (c) 2018 Gilad Naaman +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +extern crate globwalk; + +use globwalk::GlobWalkerBuilder; +use std::env::args; + +fn main() { + let patterns = args().skip(1).collect::>(); + + for f in GlobWalkerBuilder::from_patterns(".", &patterns[..]) + .build() + .unwrap() + { + println!("{:?}", f.unwrap().path()); + } +} + +```` + Used by: atomic-waker 1.1.2, futures-lite 2.6.1 ````text @@ -2803,7 +4199,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: sha-1 0.10.1, sha1 0.10.7, sha2 0.10.9 +Used by: md-5 0.10.6, sha-1 0.10.1, sha1 0.10.7, sha2 0.10.9 ````text Copyright (c) 2006-2009 Graydon Hoare @@ -2836,6 +4232,60 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: markup5ever_rcdom 0.3.0 + +````text +Copyright (c) 2006-2013 James Graham, Geoffrey Sneddon and +other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +```` + +Used by: markup5ever_rcdom 0.3.0 + +````text +Copyright (c) 2006-2013 James Graham, Geoffrey Sneddon, and +other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +```` + Used by: lazy_static 1.5.0, rayon-core 1.13.0, rayon 1.12.0 ````text @@ -2867,7 +4317,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: euclid 0.22.14 +Used by: euclid 0.22.14, string_cache 0.8.9 ````text Copyright (c) 2012-2013 Mozilla Foundation @@ -2986,7 +4436,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: cfg-if 1.0.5, filetime 0.2.29, openssl-probe 0.2.1, scoped-tls 1.0.1, socket2 0.6.5 +Used by: backtrace 0.3.76, cfg-if 1.0.5, filetime 0.2.29, openssl-probe 0.2.1, rustc-demangle 0.1.28, scoped-tls 1.0.1, socket2 0.6.5 ````text Copyright (c) 2014 Alex Crichton @@ -3225,7 +4675,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: bitflags 2.13.2, log 0.4.34, num-bigint 0.4.8, num-bigint 0.5.1, num-complex 0.4.6, num-derive 0.4.2, num-integer 0.1.47, num-iter 0.1.46, num-rational 0.4.2, num-traits 0.2.19, num 0.4.3, regex-automata 0.4.18, regex-syntax 0.8.11, regex 1.13.1 +Used by: bitflags 1.3.2, bitflags 2.13.2, glob 0.3.4, log 0.4.34, num-bigint-dig 0.9.1, num-bigint 0.4.8, num-bigint 0.5.1, num-complex 0.4.6, num-derive 0.4.2, num-integer 0.1.47, num-iter 0.1.46, num-rational 0.4.2, num-traits 0.2.19, num 0.4.3, regex-automata 0.4.18, regex-syntax 0.8.11, regex 1.13.1 ````text Copyright (c) 2014 The Rust Project Developers @@ -3288,6 +4738,37 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: html5ever 0.27.0, markup5ever 0.12.1, markup5ever_rcdom 0.3.0, xml5ever 0.18.1 + +````text +Copyright (c) 2014 The html5ever Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: libsqlite3-sys 0.38.2, rusqlite 0.40.2 ````text @@ -3477,7 +4958,7 @@ THE SOFTWARE. ```` -Used by: either 1.18.0, itertools 0.14.0, itertools 0.15.0, maplit 1.0.2, petgraph 0.8.3, rawpointer 0.2.1 +Used by: either 1.18.0, itertools 0.11.0, itertools 0.13.0, itertools 0.14.0, itertools 0.15.0, maplit 1.0.2, petgraph 0.8.3, rawpointer 0.2.1 ````text Copyright (c) 2015 @@ -3566,6 +5047,93 @@ THE SOFTWARE. ```` +Used by: base62 2.2.6 + +````text +Copyright (c) 2015 François Bernier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +```` + +Used by: new_debug_unreachable 1.0.6, ordered-float 5.5.0 + +````text +Copyright (c) 2015 Jonathan Reem + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + +Used by: futf 0.1.5, tendril 0.4.3 + +````text +Copyright (c) 2015 Keegan McAllister + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: tempfile 3.27.0, xattr 1.6.1 ````text @@ -3597,6 +5165,37 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: object 0.37.3 + +````text +Copyright (c) 2015 The Gimli Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: hickory-net 0.26.3, hickory-proto 0.26.3, hickory-resolver 0.26.3 ````text @@ -3623,7 +5222,7 @@ SOFTWARE. ```` -Used by: bit-vec 0.6.3, heck 0.5.0, unicode-bidi 0.3.18, unicode-segmentation 1.13.3, unicode-width 0.2.2, unicode-xid 0.2.6 +Used by: bit-vec 0.6.3, gimli 0.32.3, heck 0.5.0, unicode-bidi 0.3.18, unicode-id 0.3.7, unicode-properties 0.1.4, unicode-segmentation 1.13.3, unicode-width 0.2.2, unicode-xid 0.2.6 ````text Copyright (c) 2015 The Rust Project Developers @@ -3779,6 +5378,31 @@ SOFTWARE. ```` +Used by: wio 0.2.2 + +````text +Copyright (c) 2015 The winapi-rs Developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: dlib 0.5.3 ````text @@ -3803,7 +5427,32 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -Used by: png 0.18.1 +Used by: which 8.0.6 + +````text +Copyright (c) 2015 fangyuanziti + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +```` + +Used by: png 0.17.16, png 0.18.1 ````text Copyright (c) 2015 nwin @@ -3903,6 +5552,31 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: winapi 0.3.9 + +````text +Copyright (c) 2015-2018 The winapi-rs Developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: hkdf 0.12.4, hkdf 0.13.0 ````text @@ -3935,7 +5609,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: httparse 1.10.1 +Used by: httparse 1.10.1, num_cpus 1.17.0 ````text Copyright (c) 2015-2025 Sean McArthur @@ -4025,6 +5699,37 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: ash 0.38.0+1.3.281 + +````text +Copyright (c) 2016 ASH + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: futures-channel 0.3.34, futures-core 0.3.34, futures-executor 0.3.34, futures-io 0.3.34, futures-macro 0.3.34, futures-sink 0.3.34, futures-task 0.3.34, futures-util 0.3.34, futures 0.3.34 ````text @@ -4057,7 +5762,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: hashbrown 0.14.5, hashbrown 0.15.5, hashbrown 0.16.1, hashbrown 0.17.1 +Used by: const-random-macro 0.1.16, const-random 0.1.18, hashbrown 0.14.5, hashbrown 0.15.5, hashbrown 0.16.1, hashbrown 0.17.1 ````text Copyright (c) 2016 Amanieu d'Antras @@ -4219,6 +5924,37 @@ THE SOFTWARE. ```` +Used by: xkbcommon 0.8.0 + +````text +Copyright (c) 2016 Remi Thebault + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: opus2 0.4.0 ````text @@ -4424,6 +6160,37 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: addr2line 0.25.1 + +````text +Copyright (c) 2016-2018 The gimli Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: scopeguard 1.2.0 ````text @@ -4665,7 +6432,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: pbkdf2 0.13.0 +Used by: pbkdf2 0.12.2, pbkdf2 0.13.0 ````text Copyright (c) 2017 Artyom Pavlov @@ -4754,7 +6521,7 @@ THE SOFTWARE. ```` -Used by: memoffset 0.9.1 +Used by: globwalk 0.8.1, memoffset 0.9.1 ````text Copyright (c) 2017 Gilad Naaman @@ -4778,6 +6545,37 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +Used by: heapless 0.9.3 + +````text +Copyright (c) 2017 Jorge Aparicio + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: ipconfig 0.3.4 ````text @@ -4925,6 +6723,37 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +Used by: arc-swap 1.9.3 + +````text +Copyright (c) 2017 arc-swap developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: h2 0.4.19 ````text @@ -5238,7 +7067,38 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: kurbo 0.13.1, polycool 0.4.0 +Used by: hash32 0.3.1 + +````text +Copyright (c) 2018 Jorge Aparicio + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + +Used by: kurbo 0.11.3, kurbo 0.13.1, polycool 0.4.0 ````text Copyright (c) 2018 Raph Levien @@ -5386,7 +7246,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -Used by: calloop 0.13.0 +Used by: calloop 0.13.0, calloop 0.14.4 ````text Copyright (c) 2018 Victor Berger @@ -5411,7 +7271,7 @@ THE SOFTWARE. ```` -Used by: svgtypes 0.16.1, ttf-parser 0.25.1 +Used by: svgtypes 0.15.3, svgtypes 0.16.1, ttf-parser 0.25.1 ````text Copyright (c) 2018 Yevhenii Reizner @@ -5463,7 +7323,7 @@ THE SOFTWARE. ```` -Used by: block-buffer 0.10.4, dbl 0.3.2 +Used by: block-buffer 0.10.4, block-padding 0.3.3, dbl 0.3.2 ````text Copyright (c) 2018-2019 The RustCrypto Project Developers @@ -5494,7 +7354,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: dirs-sys 0.5.0, dirs 6.0.0 +Used by: dirs-sys 0.4.1, dirs-sys 0.5.0, dirs 5.0.1, dirs 6.0.0 ````text Copyright (c) 2018-2019 dirs-rs contributors @@ -5550,7 +7410,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: cbc 0.2.1, ctr 0.10.1, ctr 0.9.2 +Used by: cbc 0.1.2, cbc 0.2.1, ctr 0.10.1, ctr 0.9.2 ````text Copyright (c) 2018-2022 RustCrypto Developers @@ -5955,6 +7815,37 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: font-types 0.11.3, read-fonts 0.37.0, skrifa 0.40.0 + +````text +Copyright (c) 2019 Colin Rothfels + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: sharded-slab 0.1.7 ````text @@ -6005,6 +7896,37 @@ SOFTWARE. ```` +Used by: presser 0.3.1 + +````text +Copyright (c) 2019 Embark Studios + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: font-types 0.12.5, read-fonts 0.41.0, skrifa 0.44.0 ````text @@ -6374,7 +8296,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: aes-gcm 0.11.1, chacha20 0.10.2, ghash 0.6.0, polyval 0.7.3 +Used by: aes-gcm 0.11.1, chacha20 0.10.2, ghash 0.6.0, polyval 0.7.3, zeroize_derive 1.5.0 ````text Copyright (c) 2019-2026 The RustCrypto Project Developers @@ -6726,7 +8648,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -Used by: pin-weak 1.1.0 +Used by: document-features 0.2.12, pin-weak 1.1.0 ````text Copyright (c) 2020 Olivier Goffart @@ -6751,6 +8673,37 @@ SOFTWARE. ```` +Used by: litrs 1.0.0 + +````text +Copyright (c) 2020 Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: ccm 0.5.0, eax 0.5.0 ````text @@ -6839,6 +8792,37 @@ SOFTWARE. ```` +Used by: pollster 0.4.0 + +````text +Copyright (c) 2020-2021 Joshua Barretto + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: p384 0.14.0 ````text @@ -7184,6 +9168,18 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: gpu-allocator 0.28.0 + +````text +Copyright (c) 2021 Traverse Research B.V. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +```` + Used by: sec1 0.7.3 ````text @@ -7339,6 +9335,68 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: renderdoc-sys 1.1.0 + +````text +Copyright (c) 2022 Eyal Kalderon + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + +Used by: qoi 0.4.1 + +````text +Copyright (c) 2022 Ivan Smirnov + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: atspi-common 0.13.0, atspi-proxies 0.13.0, atspi 0.29.0 ````text @@ -7627,7 +9685,7 @@ SOFTWARE. ```` -Used by: calloop-wayland-source 0.3.0 +Used by: calloop-wayland-source 0.3.0, calloop-wayland-source 0.4.1 ````text Copyright (c) 2023 Kirill Chibisov @@ -7676,7 +9734,38 @@ SOFTWARE. ```` -Used by: bit-set 0.11.1, bit-vec 0.10.1 +Used by: notify-types 2.1.0 + +````text +Copyright (c) 2023 Notify Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + +Used by: bit-set 0.11.1, bit-vec 0.10.1, bit-vec 0.9.1 ````text Copyright (c) 2023 The Rust Project Developers @@ -8018,6 +10107,37 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: bit-set 0.10.0 + +````text +Copyright (c) 2026 The Rust Project Developers + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: sponge-cursor 0.1.0 ````text @@ -8080,7 +10200,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: annotate-snippets 0.12.16, anstream 1.0.0, anstyle-parse 1.0.0, anstyle-query 1.1.5, anstyle-wincon 3.0.11, anstyle 1.0.14, clap 4.6.7, clap_builder 4.6.7, clap_derive 4.6.7, clap_lex 1.1.1, colorchoice 1.0.5, is_terminal_polyfill 1.70.2, once_cell_polyfill 1.70.2, serde_spanned 1.1.1, toml 1.1.6+spec-1.1.0, toml_datetime 1.1.1+spec-1.1.0, toml_edit 0.25.15+spec-1.1.0, toml_parser 1.1.3+spec-1.1.0, toml_writer 1.1.2+spec-1.1.0 +Used by: annotate-snippets 0.12.16, anstream 1.0.0, anstyle-parse 1.0.0, anstyle-query 1.1.5, anstyle-wincon 3.0.11, anstyle 1.0.14, clap 4.6.7, clap_builder 4.6.7, clap_derive 4.6.7, clap_lex 1.1.1, colorchoice 1.0.5, is_terminal_polyfill 1.70.2, once_cell_polyfill 1.70.2, serde_spanned 0.6.9, serde_spanned 1.1.1, toml 0.8.23, toml 1.1.6+spec-1.1.0, toml_datetime 0.6.11, toml_datetime 1.1.1+spec-1.1.0, toml_edit 0.22.27, toml_edit 0.25.15+spec-1.1.0, toml_parser 1.1.3+spec-1.1.0, toml_write 0.1.2, toml_writer 1.1.2+spec-1.1.0 ````text Copyright (c) Individual contributors @@ -8305,7 +10425,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ```` -Used by: resvg 0.48.1, usvg 0.48.1 +Used by: resvg 0.45.1, resvg 0.46.0, resvg 0.48.1, usvg 0.45.1, usvg 0.46.0, usvg 0.48.1 ````text Copyright 2017 the Resvg Authors @@ -8399,6 +10519,43 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: nohash-hasher 0.2.0 + +````text +Copyright 2018 Parity Technologies (UK) Ltd. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +```` + +Used by: rangemap 1.8.0 + +````text +Copyright 2019 Jeffrey Parsons + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +```` + Used by: as-raw-xcb-connection 1.0.1 ````text @@ -8746,6 +10903,43 @@ The above is the version of the MIT "Expat" License used by X.org: ```` +Used by: markup5ever_rcdom 0.3.0 + +````text +Copyright © 2009/2021 Andrey Vlasovskikh + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be included in all copies or +substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT +OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +```` + +Used by: fax 0.2.7 + +````text +Copyright © 2021 The pdf-rs contributers. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +```` + Used by: glutin-winit 0.5.0 ````text @@ -8852,6 +11046,33 @@ SOFTWARE. ```` +Used by: precomputed-hash 0.1.1 + +````text +MIT License + +Copyright (c) 2017 Emilio Cobos Álvarez + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: notify-rust 4.18.0 ````text @@ -9014,6 +11235,33 @@ SOFTWARE. ```` +Used by: tiff 0.11.3 + +````text +MIT License + +Copyright (c) 2018 PistonDevelopers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: crc32fast 1.5.2 ````text @@ -9041,6 +11289,33 @@ SOFTWARE. ```` +Used by: filedescriptor 0.8.3 + +````text +MIT License + +Copyright (c) 2018 Wez Furlong + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: alsa-sys 0.4.0 ````text @@ -9137,6 +11412,33 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ```` +Used by: schemars 1.2.3, schemars_derive 1.2.3 + +````text +MIT License + +Copyright (c) 2019 Graham Esau + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: rgb 0.8.53 ````text @@ -9164,6 +11466,39 @@ SOFTWARE. ```` +Used by: triomphe 0.1.17 + +````text +MIT License + +Copyright (c) 2019 Manish Goregaokar + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +```` + Used by: raw-window-handle 0.6.2 ````text @@ -9359,6 +11694,33 @@ SOFTWARE. ```` +Used by: zed-xim 0.4.0-zed + +````text +MIT License + +Copyright (c) 2020 Riey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: xcursor 0.3.11 ````text @@ -9386,6 +11748,35 @@ SOFTWARE. ```` +Used by: float_next_after 1.0.0 + +````text +MIT License + +Copyright (c) 2020 Scripta Qumranica Electronica + +Created by Bronson Brown-deVost + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: string-interner 0.20.0 ````text @@ -9413,6 +11804,33 @@ SOFTWARE. ```` +Used by: normpath 1.5.2 + +````text +MIT License + +Copyright (c) 2020 dylni (https://github.com/dylni) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: sys-locale 0.3.2 ````text @@ -9440,6 +11858,33 @@ SOFTWARE. ```` +Used by: rust-i18n 4.2.4 + +````text +MIT License + +Copyright (c) 2021 Longbridge + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: tagptr 0.2.0 ````text @@ -9467,6 +11912,33 @@ SOFTWARE. ```` +Used by: pulp 0.22.3 + +````text +MIT License + +Copyright (c) 2021 sarah + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: sctp-proto 0.10.5 ````text @@ -9549,6 +12021,33 @@ SOFTWARE. ```` +Used by: oo7 0.6.0 + +````text +MIT License + +Copyright (c) 2022 Bilal Elmoussaoui, Sophie Herold, Maximiliano Sandoval, Dhanuka Warusadura + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: matchit 0.8.4 ````text @@ -9603,6 +12102,33 @@ SOFTWARE. ```` +Used by: reborrow 0.5.5 + +````text +MIT License + +Copyright (c) 2022 sarah + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: muda 0.19.3 ````text @@ -9672,6 +12198,114 @@ SOFTWARE. ```` +Used by: ropey 2.0.0-beta.1 + +````text +MIT License + +Copyright (c) 2023 Nathan Vegdahl + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + +Used by: is-docker 0.2.0, is-wsl 0.4.0 + +````text +MIT License + +Copyright (c) 2023 Sean Larkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + +Used by: range-alloc 0.1.5 + +````text +MIT License + +Copyright (c) 2023 The gfx-rs developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + +Used by: web-time 1.1.0 + +````text +MIT License + +Copyright (c) 2023 dAxpeDDa + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: visibility 0.1.1 ````text @@ -9699,6 +12333,32 @@ SOFTWARE. ```` +Used by: core_maths 0.1.1 + +````text +MIT License + +Copyright (c) 2024 Robert Bastian + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +```` + Used by: libopus_sys 0.3.3 ````text @@ -9752,6 +12412,33 @@ SOFTWARE. ```` +Used by: naga-types 30.0.1, naga 30.0.1, wgpu-core-deps-windows-linux-android 30.0.1, wgpu-core 30.0.1, wgpu-hal 30.0.1, wgpu-naga-bridge 30.0.1, wgpu-types 30.0.1, wgpu 30.0.1 + +````text +MIT License + +Copyright (c) 2025 The gfx-rs developers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: convert_case 0.10.0 ````text @@ -9790,66 +12477,89 @@ Standard text, used by: - dasp_sample 0.11.0: mitchmindtree (https://github.com/rustaudio/sample.git) - delegate 0.13.5: Godfrey Chan , Jakub Beránek (https://github.com/kobzol/rust-delegate) - dpi 0.1.2 (https://github.com/rust-windowing/winit) +- granit-parser 1.3.0: Ethiraric , David Aguilar , Yuheng Chen , Bourumir Wyngs (https://github.com/bourumir-wyngs/granit-parser) +- harfrust 0.5.2 (https://github.com/harfbuzz/harfrust) - is 0.11.0: Martin Algesten , Thomas Eizinger (https://github.com/algesten/str0m) - jni-macros 0.22.4 (https://github.com/jni-rs/jni-rs) - jni-sys-macros 0.4.1: Robert Bragg (https://github.com/jni-rs/jni-sys) - jni 0.22.4: jni team (https://github.com/jni-rs/jni-rs) - libm 0.2.16: Alex Crichton , Amanieu d'Antras , Jorge Aparicio , Trevor Gross (https://github.com/rust-lang/compiler-builtins) +- lyon 1.0.19: Nicolas Silva (https://github.com/nical/lyon) - lyon_algorithms 1.0.21: Nicolas Silva (https://github.com/nical/lyon) - lyon_extra 1.1.0: Nicolas Silva (https://github.com/nical/lyon) - lyon_geom 1.0.19: Nicolas Silva (https://github.com/nical/lyon) - lyon_path 1.0.19: Nicolas Silva (https://github.com/nical/lyon) +- lyon_tessellation 1.0.23: Nicolas Silva (https://github.com/nical/lyon) +- mac 0.1.1: Jonathan Reem (https://github.com/reem/rust-mac.git) - md5 0.8.1: Daniel McKenna , Ivan Ukhov , Kamal Ahmad , Konstantin Stepanov , Lukas Kalbertodt , Nathan Musoke , Scott Mabin , Tony Arcieri , Wim de With , Yosef Dinerstein (https://github.com/stainless-steel/md5) - ndk-context 0.1.1: The Rust Windowing contributors (https://github.com/rust-windowing/android-ndk-rs) - ndk-sys 0.6.0+11769913: The Rust Windowing contributors (https://github.com/rust-mobile/ndk) - ndk 0.9.0: The Rust Mobile contributors (https://github.com/rust-mobile/ndk) - nom-language 0.1.0: contact@geoffroycouprie.com (https://github.com/rust-bakery/nom) +- pathfinder_geometry 0.5.1: Patrick Walton (https://github.com/servo/pathfinder) +- pathfinder_simd 0.5.6: Patrick Walton (https://github.com/servo/pathfinder) +- profiling-procmacros 1.0.18: Philip Degarmo (https://github.com/aclysma/profiling) +- profiling 1.0.18: Philip Degarmo (https://github.com/aclysma/profiling) +- pulp-wasm-simd-flag 0.1.1: sarah quiñones (https://github.com/sarah-quinones/pulp/) - quicklz 0.3.1: Flakebi (https://github.com/ReSpeak/quicklz) - rcgen 0.14.10 (https://github.com/rustls/rcgen) - realfft 3.5.0: HEnquist (https://github.com/HEnquist/realfft) +- rust-i18n-macro 4.2.4 (https://github.com/longbridge/rust-i18n) +- rust-i18n-support 4.2.4 (https://github.com/longbridge/rust-i18n) - rustls-platform-verifier-android 0.2.0 (https://github.com/rustls/rustls-platform-verifier) +- seahash 4.1.0: ticki , Tom Almeida (https://gitlab.redox-os.org/redox-os/seahash) - skia-bindings 0.153.3: LongYinan , Armin Sander (https://github.com/rust-skia/rust-skia) - skia-safe 0.153.3: Armin Sander (https://github.com/rust-skia/rust-skia) - str0m-aws-lc-rs 0.6.0: Martin Algesten (https://github.com/algesten/str0m) - str0m-proto 0.7.0: Martin Algesten (https://github.com/algesten/str0m) +- svg_fmt 0.4.5: Nicolas Silva (https://github.com/nical/rust_debug) - taffy 0.10.1: Alice Cecile , Johnathan Kelley , Nico Burns (https://github.com/DioxusLabs/taffy) +- taffy 0.15.1: Alice Cecile , Johnathan Kelley , Nico Burns (https://github.com/DioxusLabs/taffy) - tauri-winrt-notification 0.7.3: allenbenz, Tauri Programme within The Commons Conservancy (https://github.com/tauri-apps/winrt-notification) - tract-extra 0.23.8: Mathieu Poumeyrol (https://github.com/sonos/tract) - tract-transformers 0.23.8: Mathieu Poumeyrol , Louis Chouraki (https://github.com/sonos/tract) - windows-collections 0.2.0 (https://github.com/microsoft/windows-rs) - windows-collections 0.3.2 (https://github.com/microsoft/windows-rs) +- windows-core 0.58.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-core 0.61.2: Microsoft (https://github.com/microsoft/windows-rs) - windows-core 0.62.2 (https://github.com/microsoft/windows-rs) - windows-future 0.2.1 (https://github.com/microsoft/windows-rs) - windows-future 0.3.2 (https://github.com/microsoft/windows-rs) +- windows-implement 0.58.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-implement 0.60.2 (https://github.com/microsoft/windows-rs) +- windows-interface 0.58.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-interface 0.59.3 (https://github.com/microsoft/windows-rs) - windows-link 0.1.3: Microsoft (https://github.com/microsoft/windows-rs) - windows-link 0.2.1 (https://github.com/microsoft/windows-rs) - windows-numerics 0.2.0 (https://github.com/microsoft/windows-rs) - windows-numerics 0.3.1 (https://github.com/microsoft/windows-rs) - windows-registry 0.6.1 (https://github.com/microsoft/windows-rs) +- windows-result 0.2.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-result 0.3.4: Microsoft (https://github.com/microsoft/windows-rs) - windows-result 0.4.1 (https://github.com/microsoft/windows-rs) +- windows-strings 0.1.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-strings 0.4.2: Microsoft (https://github.com/microsoft/windows-rs) - windows-strings 0.5.1 (https://github.com/microsoft/windows-rs) -- windows-sys 0.45.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-sys 0.48.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-sys 0.52.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-sys 0.61.2 (https://github.com/microsoft/windows-rs) -- windows-targets 0.42.2: Microsoft (https://github.com/microsoft/windows-rs) - windows-targets 0.48.5: Microsoft (https://github.com/microsoft/windows-rs) - windows-targets 0.52.6: Microsoft (https://github.com/microsoft/windows-rs) - windows-threading 0.1.0: Microsoft (https://github.com/microsoft/windows-rs) - windows-threading 0.2.1 (https://github.com/microsoft/windows-rs) - windows-version 0.1.7 (https://github.com/microsoft/windows-rs) +- windows 0.58.0: Microsoft (https://github.com/microsoft/windows-rs) - windows 0.61.3: Microsoft (https://github.com/microsoft/windows-rs) - windows 0.62.2 (https://github.com/microsoft/windows-rs) - windows_x86_64_gnu 0.48.5: Microsoft (https://github.com/microsoft/windows-rs) - windows_x86_64_gnu 0.52.6: Microsoft (https://github.com/microsoft/windows-rs) -- windows_x86_64_msvc 0.42.2: Microsoft (https://github.com/microsoft/windows-rs) - windows_x86_64_msvc 0.48.5: Microsoft (https://github.com/microsoft/windows-rs) - windows_x86_64_msvc 0.52.6: Microsoft (https://github.com/microsoft/windows-rs) +- xim-ctext 0.3.0: Riey (https://github.com/Riey/xim-rs) +- xim-parser 0.2.2: Riey (https://github.com/Riey/xim-rs) +- zune-core 0.4.12 +- zune-inflate 0.2.54 +- zune-jpeg 0.4.21: caleb (https://github.com/etemesi254/zune-image/tree/dev/crates/zune-jpeg) ````text MIT License @@ -10085,7 +12795,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -Used by: android-activity 0.6.1, half 2.7.1, linebender_resource_handle 0.1.1, widestring 1.2.1 +Used by: android-activity 0.6.1, half 2.7.1, linebender_resource_handle 0.1.1, str_indices 0.4.4, widestring 1.2.1 ````text MIT License @@ -10110,6 +12820,33 @@ SOFTWARE. ```` +Used by: imagesize 0.13.0, imagesize 0.14.0 + +````text +MIT License + +Copyright (c) 2017 Maiddog + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: unicode-script 0.5.8 ````text @@ -10143,6 +12880,59 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: fontconfig-parser 0.5.8 + +````text +MIT License + +Copyright (c) 2021 Riey + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + +Used by: fluent-uri 0.1.4 + +````text +MIT License + +Copyright (c) 2021 Scallop Ye + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +```` + Used by: windows-capture 2.0.1 ````text @@ -10195,7 +12985,7 @@ OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -Used by: async-recursion 1.1.1, glow 0.18.0, rsa 0.10.0-rc.18, rustc-hash 2.1.3 +Used by: async-recursion 1.1.1, flume 0.12.0, glow 0.18.0, rsa 0.10.0-rc.18, rustc-hash 2.1.3 ````text Permission is hereby granted, free of charge, to any @@ -10223,7 +13013,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -Used by: adler2 2.0.1, anyhow 1.0.104, async-channel 2.5.0, async-executor 1.14.0, async-io 2.6.0, async-lock 3.4.2, async-process 2.5.0, async-signal 0.2.14, async-task 4.7.1, async-trait 0.1.92, atomic-waker 1.1.2, blocking 1.7.0, concurrent-queue 2.5.0, countme 3.0.1, curve25519-dalek-derive 0.1.1, displaydoc 0.2.7, dyn-clone 1.0.20, dyn-hash 1.0.0, endi 1.1.1, erased-serde 0.4.10, event-listener-strategy 0.5.4, event-listener 5.4.2, fastrand 2.5.0, futures-lite 2.6.1, group 0.13.0, group 0.14.0, inventory 0.3.24, itoa 1.0.18, linux-raw-sys 0.12.1, linux-raw-sys 0.4.15, num_enum 0.7.6, num_enum_derive 0.7.6, once_cell 1.21.4, ordered-stream 0.2.0, parking 2.2.1, pastey 0.2.3, pin-project-internal 1.1.13, pin-project-lite 0.2.17, pin-project 1.1.13, piper 0.2.5, polling 3.11.0, portable-atomic 1.15.0, proc-macro-crate 3.5.0, proc-macro2 1.0.107, quote 1.0.47, ref-cast-impl 1.0.27, ref-cast 1.0.27, rowan 0.17.0, rtrb 0.4.0, rustc-hash 1.1.0, rustix 0.38.44, rustix 1.1.5, rustversion 1.0.23, serde 1.0.229, serde_core 1.0.229, serde_derive 1.0.229, serde_json 1.0.151, serde_path_to_error 0.1.20, serde_repr 0.1.21, simd_cesu8 1.2.0, smol_str 0.2.2, smol_str 0.3.6, spin_on 0.1.1, syn 2.0.119, syn 3.0.6, thiserror-impl 1.0.69, thiserror-impl 2.0.21, thiserror 1.0.69, thiserror 2.0.21, tract-core 0.23.8, tract-data 0.23.8, tract-hir 0.23.8, tract-linalg 0.23.8, tract-nnef 0.23.8, tract-onnx-opl 0.23.8, tract-onnx 0.23.8, typeid 1.0.3, unicode-ident 1.0.26, x11-dl 2.21.0, zbus-lockstep-macros 0.5.2, zbus-lockstep 0.5.2, zmij 1.0.23, zvariant_utils 4.2.0 +Used by: adler2 2.0.1, anyhow 1.0.104, async-channel 2.5.0, async-executor 1.14.0, async-fs 2.2.0, async-io 2.6.0, async-lock 3.4.2, async-net 2.0.0, async-process 2.5.0, async-signal 0.2.14, async-task 4.7.1, async-trait 0.1.92, atomic-waker 1.1.2, blocking 1.7.0, concurrent-queue 2.5.0, countme 3.0.1, curve25519-dalek-derive 0.1.1, displaydoc 0.2.7, dyn-clone 1.0.20, dyn-hash 1.0.0, endi 1.1.1, enumn 0.1.14, erased-serde 0.4.10, event-listener-strategy 0.5.4, event-listener 5.4.2, fastrand 2.5.0, futures-lite 2.6.1, group 0.13.0, group 0.14.0, inventory 0.3.24, itoa 1.0.18, khronos-egl 6.0.0, linux-raw-sys 0.12.1, linux-raw-sys 0.4.15, num_enum 0.7.6, num_enum_derive 0.7.6, once_cell 1.21.4, ordered-stream 0.2.0, parking 2.2.1, paste 1.0.15, pastey 0.2.3, pin-project-internal 1.1.13, pin-project-lite 0.2.17, pin-project 1.1.13, piper 0.2.5, polling 3.11.0, portable-atomic 1.15.0, proc-macro-crate 3.5.0, proc-macro2 1.0.107, quote 1.0.47, ref-cast-impl 1.0.27, ref-cast 1.0.27, rowan 0.17.0, rtrb 0.4.0, rustc-hash 1.1.0, rustix 0.38.44, rustix 1.1.5, rustversion 1.0.23, serde-saphyr 1.3.0, serde 1.0.229, serde_bytes 0.11.19, serde_core 1.0.229, serde_derive 1.0.229, serde_derive_internals 0.30.0, serde_json 1.0.151, serde_path_to_error 0.1.20, serde_repr 0.1.21, simd_cesu8 1.2.0, smol 2.0.2, smol_str 0.2.2, smol_str 0.3.6, spin_on 0.1.1, syn 2.0.119, syn 3.0.6, thiserror-impl 1.0.69, thiserror-impl 2.0.21, thiserror 1.0.69, thiserror 2.0.21, tract-core 0.23.8, tract-data 0.23.8, tract-hir 0.23.8, tract-linalg 0.23.8, tract-nnef 0.23.8, tract-onnx-opl 0.23.8, tract-onnx 0.23.8, typeid 1.0.3, unicode-ident 1.0.26, utf-8 0.7.6, waker-fn 1.2.0, x11-dl 2.21.0, zbus-lockstep-macros 0.5.2, zbus-lockstep 0.5.2, zed-font-kit 0.14.1-zed, zmij 1.0.23, zvariant_utils 4.2.0 ````text Permission is hereby granted, free of charge, to any @@ -10252,6 +13042,34 @@ DEALINGS IN THE SOFTWARE. ```` +Used by: glow 0.17.0 + +````text +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. +```` + Used by: allocator-api2 0.2.21, text-size 1.1.1 ````text @@ -10281,7 +13099,7 @@ DEALINGS IN THE SOFTWARE. ```` -Used by: winnow 1.0.4 +Used by: winnow 0.7.15, winnow 1.0.4 ````text Permission is hereby granted, free of charge, to any person obtaining @@ -10328,7 +13146,7 @@ SOFTWARE. ```` -Used by: ctor 0.10.1 +Used by: ctor 0.10.1, ctor 1.0.13, link-section 0.19.3, linktime-proc-macro 0.2.3 ````text Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: @@ -10402,6 +13220,32 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` +Used by: spin 0.10.1, spin 0.9.9 + +````text +The MIT License (MIT) + +Copyright (c) 2014 Mathijs van de Nes + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +```` + Used by: tracing-core 0.1.36 ````text @@ -10454,6 +13298,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +```` + +Used by: freetype-sys 0.20.1 + +````text +The MIT License (MIT) + +Copyright (c) 2014 PistonDevelopers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ```` Used by: chrono 0.4.45 @@ -10482,7 +13354,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```` -Used by: phf 0.13.1, phf_generator 0.13.1, phf_macros 0.13.1, phf_shared 0.13.1 +Used by: phf 0.11.3, phf 0.13.1, phf_generator 0.13.1, phf_macros 0.13.1, phf_shared 0.11.3, phf_shared 0.13.1 ````text The MIT License (MIT) @@ -10535,7 +13407,7 @@ THE SOFTWARE. ```` -Used by: aho-corasick 1.1.5, byteorder-lite 0.1.0, byteorder 1.5.0, csv-core 0.1.13, csv 1.4.0, memchr 2.8.3, walkdir 2.5.0 +Used by: aho-corasick 1.1.5, byteorder-lite 0.1.0, byteorder 1.5.0, csv-core 0.1.13, csv 1.4.0, encoding_rs_io 0.1.8, globset 0.4.20, ignore 0.4.33, memchr 2.8.3, walkdir 2.5.0 ````text The MIT License (MIT) @@ -10618,6 +13490,32 @@ SOFTWARE. ```` +Used by: raw-cpuid 11.6.0 + +````text +The MIT License (MIT) + +Copyright (c) 2015 Gerd Zellweger + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +```` + Used by: combine 4.6.8 ````text @@ -10646,7 +13544,7 @@ THE SOFTWARE. ```` -Used by: gif 0.14.2 +Used by: gif 0.13.3, gif 0.14.2 ````text The MIT License (MIT) @@ -10761,6 +13659,61 @@ SOFTWARE. ```` +Used by: lsp-types 0.97.0 + +````text +The MIT License (MIT) + +Copyright (c) 2016 Markus Westerlind + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +```` + +Used by: bit_field 0.10.3 + +````text +The MIT License (MIT) + +Copyright (c) 2016 Philipp Oppermann + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: color_quant 1.1.0 ````text @@ -10788,6 +13741,33 @@ SOFTWARE. ```` +Used by: shellexpand 3.1.2 + +````text +The MIT License (MIT) + +Copyright (c) 2016 Vladimir Matveev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: same-file 1.0.6, winapi-util 0.1.11 ````text @@ -10898,6 +13878,33 @@ SOFTWARE. ```` +Used by: arraydeque 0.5.1 + +````text +The MIT License (MIT) + +Copyright (c) 2018 Andy Lok + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: htmlparser 0.2.1, simplecss 0.2.2, unicode-vo 0.1.0 ````text @@ -10925,7 +13932,7 @@ SOFTWARE. ```` -Used by: roxmltree 0.21.1 +Used by: roxmltree 0.20.0, roxmltree 0.21.1 ````text The MIT License (MIT) @@ -10952,6 +13959,61 @@ SOFTWARE. ```` +Used by: rust-embed-impl 8.13.0, rust-embed-utils 8.13.0, rust-embed 8.13.0 + +````text +The MIT License (MIT) + +Copyright (c) 2018 pyros2097 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +```` + +Used by: bstr 1.13.1 + +````text +The MIT License (MIT) + +Copyright (c) 2018-2019 Andrew Gallant + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +```` + Used by: xmlwriter 0.1.0 ````text @@ -11039,7 +14101,33 @@ SOFTWARE. ```` -Used by: fontdb 0.24.0 +Used by: etagere 0.2.15 + +````text +The MIT License (MIT) + +Copyright (c) 2020 Nicolas Silva + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +```` + +Used by: fontdb 0.23.0, fontdb 0.24.0, unicode-bidi-mirroring 0.4.0, unicode-ccc 0.4.0 ````text The MIT License (MIT) @@ -11093,6 +14181,33 @@ SOFTWARE. ```` +Used by: cosmic-text 0.19.0 + +````text +The MIT License (MIT) + +Copyright (c) 2022 System76 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +```` + Used by: xkbcommon-dl 0.4.2 ````text @@ -11147,7 +14262,7 @@ THE SOFTWARE. ```` -Used by: harfrust 0.12.0 +Used by: harfrust 0.12.0, rustybuzz 0.20.1 ````text The MIT License (MIT) @@ -11201,6 +14316,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +```` + +Used by: crunchy 0.2.4 + +````text +The MIT License (MIT) + +Copyright 2017-2023 Eira Fransham. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + ```` Used by: yeslogic-fontconfig-sys 6.0.1 @@ -11259,6 +14401,37 @@ THE SOFTWARE. ```` +Used by: open 5.4.5 + +````text +The MIT License (MIT) +===================== + +Copyright © `2015` `Sebastian Thiel` + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +```` + Used by: nu-ansi-term 0.50.3 ````text @@ -11285,6 +14458,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +```` + +Used by: mime_guess 2.0.5 + +````text +The MIT License (MIT) + +Copyright (c) 2015 Austin Bonander + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ```` Used by: generic-array 0.14.7, generic-array 1.4.5 @@ -11376,6 +14577,7 @@ DEALINGS IN THE SOFTWARE. ### Mozilla Public License 2.0 Standard text, used by: +- dwrote 0.11.5: The Servo Project Developers, Vladimir Vukicevic (https://github.com/servo/dwrote-rs) - libvpx-native-sys 5.0.17: Kornel Lesiński , Richard Diamond (https://github.com/kornelski/rust-vpx) - option-ext 0.2.0: Simon Ochsenreither (https://github.com/soc/option-ext.git) @@ -12006,6 +15208,13 @@ archive in crates/voelin-ui-vm): - Lucide icons (lucide-static 1.48.0), Copyright (c) Lucide Icons and Contributors, under the ISC License; the icons derived from Feather are Copyright (c) 2013-present Cole Bemis, under the MIT License (texts below). +- Lucide icons 1.43.0 (the 1,818 icons of the catalogue of gpui-kit-assets + 0.8.1, embedded in the GPUI front end, crates/voelin-gpui, behind the + client's own set above), Copyright (c) Lucide Icons and Contributors, under + the ISC License; the icons derived from Feather are Copyright (c) 2013-present + Cole Bemis, under the MIT License (the same texts, below). The catalogue's + 12 other icons are the crate's own, under its Apache-2.0 licence (listed with + the crates). - Twemoji 15.0 (the emoji images): Twemoji graphics by Twitter, Inc and other contributors, licensed under CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/). The SVG files are packed diff --git a/about-assets.md b/about-assets.md index 78580fd..1acf291 100644 --- a/about-assets.md +++ b/about-assets.md @@ -11,6 +11,13 @@ archive in crates/voelin-ui-vm): - Lucide icons (lucide-static 1.48.0), Copyright (c) Lucide Icons and Contributors, under the ISC License; the icons derived from Feather are Copyright (c) 2013-present Cole Bemis, under the MIT License (texts below). +- Lucide icons 1.43.0 (the 1,818 icons of the catalogue of gpui-kit-assets + 0.8.1, embedded in the GPUI front end, crates/voelin-gpui, behind the + client's own set above), Copyright (c) Lucide Icons and Contributors, under + the ISC License; the icons derived from Feather are Copyright (c) 2013-present + Cole Bemis, under the MIT License (the same texts, below). The catalogue's + 12 other icons are the crate's own, under its Apache-2.0 licence (listed with + the crates). - Twemoji 15.0 (the emoji images): Twemoji graphics by Twitter, Inc and other contributors, licensed under CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/). The SVG files are packed diff --git a/about.toml b/about.toml index 896b84a..ae97a46 100644 --- a/about.toml +++ b/about.toml @@ -23,6 +23,10 @@ accepted = [ "LicenseRef-Slint-Royalty-free-2.0", # libbz2-rs-sys (unpacks Cisco's OpenH264 download in voelin-media). "bzip2-1.0.6", + # The GPUI front end: 0BSD (enum-iterator, enum-iterator-derive) and CC0-1.0 + # (notify 8, tiny-keccak); see deny.toml. + "0BSD", + "CC0-1.0", ] # What the apps ship on: the desktop app on Linux (x86_64, and aarch64 for diff --git a/crates/voelin-gateway/Dockerfile b/crates/voelin-gateway/Dockerfile index e6ad157..cbd6f35 100644 --- a/crates/voelin-gateway/Dockerfile +++ b/crates/voelin-gateway/Dockerfile @@ -9,7 +9,7 @@ # -e TSGW_QUERY_PASSWORD=… -p 7788:7788 tsgw # Logs: docker logs -f tsgw (more: -e TSGW_LOG_LEVEL=debug; also to a file in # the volume: -e TSGW_LOG_FILE=logs/tsgw.log). See docs/gateway-admin.md. -FROM rust:1.94-bookworm AS build +FROM rust:1.95-bookworm AS build WORKDIR /src RUN apt-get update && apt-get install -y --no-install-recommends cmake git libasound2-dev openssh-client && rm -rf /var/lib/apt/lists/* # voelin-identity comes from the private VoelinProtocol repository, fetched diff --git a/crates/voelin-gpui/Cargo.toml b/crates/voelin-gpui/Cargo.toml new file mode 100644 index 0000000..091ea3e --- /dev/null +++ b/crates/voelin-gpui/Cargo.toml @@ -0,0 +1,53 @@ +[package] +name = "voelin-gpui" +version = "0.0.1-alpha" +description = "The GPUI front end of the desktop app, under construction: it runs on the same engine as the Slint front end (voelin-ui) until it reaches parity." +edition.workspace = true +rust-version.workspace = true +license.workspace = true +repository.workspace = true +publish.workspace = true + +[lib] +name = "voelin_gpui" +path = "src/lib.rs" + +[[bin]] +name = "voelin-gpui" +path = "src/main.rs" + +[dependencies] +anyhow = "1.0.104" +# GPUI, gpui-component and gpui-kit-assets behind one pinned dependency. +gpui-kit = { workspace = true } +# The engine's runtime and the channel of its events (a tokio receiver needs no +# reactor, so GPUI's executor can await it). +tokio = { version = "1.53.1", features = ["rt-multi-thread", "sync", "time"] } +tracing = "0.1.44" +tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } +# The engine, with the desktop's capture and codecs: ashpd on async-io (the +# commit that moved voelin-media and voelin-platform to it) lets this binary +# hold both the portals and gpui-kit. +voelin-core = { path = "../voelin-core", default-features = false, features = ["audio-device", "media-desktop"] } +# The app's name and id, the hotkeys and portals of the slices to come. +voelin-platform = { path = "../voelin-platform" } +# The Host trait's types (what the store knows of a chat's read marker). +voelin-store = { path = "../voelin-store" } +# The view models and the state, shared with the Slint front end. +voelin-ui-vm = { path = "../voelin-ui-vm" } + +# The meter reads /proc/self (CPU ticks per second, the page size). +[target.'cfg(target_os = "linux")'.dependencies] +rustix = { version = "1.1.5", features = ["param"] } + +[dev-dependencies] +# GPUI's test platform (`#[gpui::test]`, `TestAppContext`): the front end's tests +# need no display. gpui-kit's own `test-support` feature is not used: it names +# the optional `gpui-fast` backend in weak features, which puts gpui-fast and +# its tree into Cargo.lock and pins taffy to 0.15.0 for every build. gpui-kit +# pins `gpui-pre` exactly, so this line moves with its `=` pin (a mismatch does +# not resolve). +gpui = { package = "gpui-pre", version = "=0.3.10", features = ["test-support"] } + +[lints] +workspace = true diff --git a/crates/voelin-gpui/build.rs b/crates/voelin-gpui/build.rs new file mode 100644 index 0000000..67a0877 --- /dev/null +++ b/crates/voelin-gpui/build.rs @@ -0,0 +1,34 @@ +//! Embeds the client's Lucide icons: `crates/voelin-ui/ui/assets/icons/*.svg` +//! (Lucide 1.48, the set the Slint front end draws) become a sorted table of +//! `include_bytes!` in `$OUT_DIR/icons.rs`, which `assets.rs` serves as +//! gpui-component's `icons/.svg` paths before gpui-kit-assets' own +//! (Lucide 1.43) catalogue. No dependency: the directory is read and the +//! table written with `std`. + +use std::fmt::Write as _; +use std::path::PathBuf; + +fn main() { + let manifest = + PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR")); + let dir = manifest.join("../voelin-ui/ui/assets/icons"); + println!("cargo:rerun-if-changed={}", dir.display()); + let mut names: Vec = std::fs::read_dir(&dir) + .unwrap_or_else(|e| panic!("the client's icons are at {}: {e}", dir.display())) + .filter_map(|entry| entry.ok()?.file_name().into_string().ok()) + .filter(|name| name.ends_with(".svg")) + .collect(); + names.sort(); + assert!(!names.is_empty(), "no icons in {}", dir.display()); + let mut table = String::from( + "/// The client's icons by file name, sorted.\npub static ICONS: &[(&str, &[u8])] = &[\n", + ); + for name in &names { + let path = dir.join(name); + let path = path.canonicalize().unwrap_or(path); + let _ = writeln!(table, "\t({name:?}, include_bytes!({:?})),", path.display().to_string()); + } + table.push_str("];\n"); + let out = PathBuf::from(std::env::var_os("OUT_DIR").expect("OUT_DIR")).join("icons.rs"); + std::fs::write(out, table).expect("write icons.rs"); +} diff --git a/crates/voelin-gpui/src/app.rs b/crates/voelin-gpui/src/app.rs new file mode 100644 index 0000000..571634b --- /dev/null +++ b/crates/voelin-gpui/src/app.rs @@ -0,0 +1,453 @@ +//! The root state of the window, `Entity`: everything the client +//! knows (the toolkit-free [`voelin_ui_vm`] state and the friends and pokes +//! beside it) and the three loops that keep it current on GPUI's thread: +//! +//! - the **engine's events**: a foreground task awaits the receiver of +//! [`crate::engine::HostedEngine`] (a tokio channel needs no reactor, so +//! GPUI's executor can poll it), hands every event to +//! [`events::handle`] and tells the entity to redraw (`cx.notify()`), the +//! pattern of spike 3's hotkey task; +//! - the **tick**, once a second, a loop of `background_executor().timer` +//! (the Slint front end's `slint::Timer` calling `App::tick`); +//! - **later**: other threads (a hotkey, a camera, a decoder) cannot touch the +//! entity, and GPUI's `AsyncApp` is not `Send`, so they hold a [`Later`], a +//! channel of jobs a third foreground task runs on GPUI's thread, as +//! `later(|app| ...)` does in the Slint front end. +//! +//! What a transition asks for besides the state (`Update`: which parts to +//! draw again, what to keep, the streams' capture and decoder) belongs to +//! the slices that have those parts; today only the engine commands go out +//! and the warnings are logged. + +use std::time::{Duration, Instant}; + +use gpui_kit::Context; +use tokio::sync::mpsc::{self, UnboundedReceiver, UnboundedSender}; +use voelin_core::{AudioSettings, Command, Engine, Event, VoiceState}; +use voelin_store::{ChatRead, ChatTarget as StoredTarget}; +use voelin_ui_vm::bridge::ChatLine; +use voelin_ui_vm::events; +use voelin_ui_vm::host::{Host, Update}; +use voelin_ui_vm::settings::UiSettings; +use voelin_ui_vm::social::logic::Social; + +use crate::meter::Counters; + +/// The toolkit-free state of the client, with the chat lines of a tab as plain +/// rows (what a front end that draws again from the list needs). +pub type VmState = voelin_ui_vm::state::AppState>; + +/// A job for GPUI's thread, from any thread. +type Job = Box) + Send>; + +/// How other threads reach the root state: `later.run(|app, cx| ...)` runs +/// the closure on GPUI's thread with the entity (the Slint front end's +/// `later`). Cloneable and `Send`; the closure must be `Send` too. +#[derive(Clone)] +pub struct Later(UnboundedSender); + +impl Later { + /// Run `job` on GPUI's thread soon. `false` once a job has found the + /// window gone (the entity released): the loop that runs the jobs notices + /// that only when a job reaches it, ends and drops the channel, so the + /// first job sent after the window went answers `true` and is never run. + /// `true` is a promise of nothing more than that the job was queued. + pub fn run( + &self, + job: impl FnOnce(&mut AppState, &mut Context) + Send + 'static, + ) -> bool { + self.0.send(Box::new(job)).is_ok() + } +} + +/// What the transitions of the state ask of this front end while they run. +/// There is no store yet (the shell slice opens it): nothing was read, and +/// nothing is kept. +#[derive(Debug, Default)] +struct ShellHost; + +impl Host for ShellHost { + fn demo_ui(&self) -> bool { + false + } + + fn chat_shown(&self) -> bool { + false + } + + fn watching(&self) -> bool { + false + } + + fn autowatch(&self) -> bool { + false + } + + fn studio_streams_to(&self, _session: i64) -> bool { + false + } + + fn preview_limit(&self) -> u64 { + 0 + } + + fn fetch_images(&self) -> bool { + false + } + + fn dm_shown(&self, _session: i64, _uid: &str) -> bool { + false + } + + fn chat_reads(&self, _server_uid: &str) -> Result, String> { + Ok(Vec::new()) + } + + fn set_chat_read( + &self, + _server_uid: &str, + _target: &StoredTarget, + _read: &ChatRead, + ) -> Result<(), String> { + Ok(()) + } +} + +/// The root entity. +pub struct AppState { + /// What the client knows apart from the window. + pub vm: VmState, + /// The friends, pokes and notices the social screens keep. + pub social: Social<()>, + /// Engine events handled since the window opened. + pub events_handled: u64, + /// One-second ticks since the window opened. + pub ticks: u64, + engine: Option, + host: ShellHost, + started: Instant, + counters: Counters, + later: Later, +} + +impl AppState { + /// The state at start, with its three loops running: the engine's + /// `events` (the engine is `None` in tests that need none), the tick and + /// the jobs of [`Later`]. They end when the entity is released. + pub fn new( + engine: Option, + events: UnboundedReceiver, + counters: Counters, + cx: &mut Context, + ) -> Self { + let (later, mut jobs) = mpsc::unbounded_channel::(); + + cx.spawn(async move |this, cx| { + let mut events = events; + while let Some(event) = events.recv().await { + if this.update(cx, |state, cx| state.handle_event(event, cx)).is_err() { + break; + } + } + }) + .detach(); + + cx.spawn(async move |this, cx| { + loop { + cx.background_executor().timer(Duration::from_secs(1)).await; + if this.update(cx, |state, cx| state.tick(cx)).is_err() { + break; + } + } + }) + .detach(); + + cx.spawn(async move |this, cx| { + while let Some(job) = jobs.recv().await { + if this + .update(cx, |state, cx| { + state.counters.later_jobs.incr(); + job(state, cx); + cx.notify(); + }) + .is_err() + { + break; + } + } + }) + .detach(); + + Self { + vm: VmState::new( + Vec::new(), + UiSettings::default(), + AudioSettings::default(), + Default::default(), + ), + social: Social::default(), + events_handled: 0, + ticks: 0, + engine, + host: ShellHost, + started: Instant::now(), + counters, + later: Later(later), + } + } + + /// The handle other threads use to run something on GPUI's thread. + pub fn later(&self) -> Later { + self.later.clone() + } + + /// What an engine event does to the state ([`events::handle`], the one + /// dispatch of both front ends), and what comes of it for the engine. + pub fn handle_event(&mut self, event: Event, cx: &mut Context) { + self.events_handled += 1; + self.counters.engine_events.incr(); + let update = events::handle(&mut self.vm, &mut self.social, &self.host, event); + self.perform(update); + self.counters.connections.set(self.connections() as u64); + cx.notify(); + } + + /// Do what an update asks that this front end has the parts for: the + /// engine's commands go out, the warnings are logged. + fn perform(&mut self, update: Update) { + if let Some(engine) = &self.engine { + for command in update.commands { + engine.send(command); + } + } + for warning in update.warnings { + tracing::warn!("{warning}"); + } + } + + /// The once-a-second work: what the Slint front end's `App::tick` will be + /// here (stream statistics, stored settings); today it counts. + pub fn tick(&mut self, cx: &mut Context) { + self.ticks += 1; + self.counters.ticks.incr(); + cx.notify(); + } + + /// Voice connections that are up. + pub fn connections(&self) -> usize { + self.vm.sessions.values().filter(|view| view.state.voice == VoiceState::Connected).count() + } + + /// Seconds since the window opened. + pub fn uptime(&self) -> Duration { + self.started.elapsed() + } + + /// The one line of state the window shows: the version, how many voice + /// connections are up, how many engine events came and how long the + /// window has run. Each part moves by a loop above, so a line that + /// changes shows that the loop runs. + pub fn state_line(&self) -> String { + let connections = self.connections(); + format!( + "{} {} · {} connection{} · {} engine event{} · {} s up", + voelin_platform::APP_NAME, + env!("CARGO_PKG_VERSION"), + connections, + if connections == 1 { "" } else { "s" }, + self.events_handled, + if self.events_handled == 1 { "" } else { "s" }, + self.ticks, + ) + } + + /// Leave the servers properly, so no ghost client stays behind until it + /// times out (the window is closing): tell the engine to close every + /// session. Returns how many it told, so that the caller can give the + /// engine time to act on them before the runtime goes (none without an + /// engine). + pub fn shutdown(&self) -> usize { + let Some(engine) = &self.engine else { return 0 }; + for id in self.vm.sessions.keys() { + engine.send(Command::CloseSession { session: *id as u64 }); + } + self.vm.sessions.len() + } +} + +#[cfg(test)] +mod tests { + use std::time::Duration; + + use gpui::TestAppContext; + use gpui_kit::AppContext as _; + use voelin_core::{Command, Event, SessionState, VoiceState}; + + use super::*; + use crate::engine::HostedEngine; + + fn voice(voice: VoiceState) -> Event { + Event::State { session: 1, state: SessionState { voice, ..Default::default() } } + } + + /// The entity of a test with no engine behind it: `tx` stands in for the + /// engine's events. + fn entity( + cx: &mut TestAppContext, + ) -> (gpui_kit::Entity, UnboundedSender, Counters) { + let (tx, rx) = mpsc::unbounded_channel(); + let counters = Counters::default(); + let app = cx.new({ + let counters = counters.clone(); + move |cx| AppState::new(None, rx, counters, cx) + }); + (app, tx, counters) + } + + #[gpui::test] + fn an_injected_engine_event_reaches_the_entity(cx: &mut TestAppContext) { + let (app, tx, counters) = entity(cx); + app.read_with(cx, |app, _| { + assert_eq!(app.connections(), 0); + assert!(app.state_line().contains("0 connections · 0 engine events")); + }); + + tx.send(voice(VoiceState::Connected)).unwrap(); + cx.run_until_parked(); + app.read_with(cx, |app, _| { + assert_eq!(app.events_handled, 1); + assert_eq!(app.connections(), 1); + assert_eq!(app.vm.status, "Connected", "the transition's status line"); + assert!( + app.state_line().contains("1 connection · 1 engine event"), + "{}", + app.state_line() + ); + }); + assert_eq!(counters.engine_events.get(), 1); + assert_eq!(counters.connections.get(), 1); + + tx.send(voice(VoiceState::Disconnected)).unwrap(); + cx.run_until_parked(); + app.read_with(cx, |app, _| { + assert_eq!((app.events_handled, app.connections()), (2, 0)); + }); + } + + #[gpui::test] + fn the_entity_redraws_on_an_event(cx: &mut TestAppContext) { + let (app, tx, _) = entity(cx); + let notified = std::rc::Rc::new(std::cell::Cell::new(0)); + let _subscription = cx.update(|cx| { + let notified = notified.clone(); + cx.observe(&app, move |_, _| notified.set(notified.get() + 1)) + }); + tx.send(voice(VoiceState::Connecting)).unwrap(); + cx.run_until_parked(); + assert_eq!(notified.get(), 1); + } + + #[gpui::test] + fn the_tick_runs_once_a_second(cx: &mut TestAppContext) { + let (app, _tx, counters) = entity(cx); + cx.run_until_parked(); + assert_eq!(app.read_with(cx, |app, _| app.ticks), 0); + for second in 1..=3 { + cx.executor().advance_clock(Duration::from_secs(1)); + cx.run_until_parked(); + assert_eq!(app.read_with(cx, |app, _| app.ticks), second); + } + assert_eq!(counters.ticks.get(), 3); + } + + #[gpui::test] + fn another_thread_runs_a_job_on_the_entity_through_later(cx: &mut TestAppContext) { + let (app, _tx, counters) = entity(cx); + let later = app.read_with(cx, |app, _| app.later()); + let sent = std::thread::spawn(move || { + later.run(|app, _| app.vm.status = "from another thread".into()) + }) + .join() + .unwrap(); + assert!(sent); + cx.run_until_parked(); + assert_eq!(app.read_with(cx, |app, _| app.vm.status.clone()), "from another thread"); + assert_eq!(counters.later_jobs.get(), 1); + } + + #[gpui::test] + fn a_job_sent_after_the_window_went_is_dropped_and_the_next_one_is_refused( + cx: &mut TestAppContext, + ) { + let (app, _tx, counters) = entity(cx); + let later = app.read_with(cx, |app, _| app.later()); + drop(app); + cx.update(|_| {}); + cx.run_until_parked(); + assert!(later.run(|_, _| {}), "queued: nothing has found the entity gone yet"); + cx.run_until_parked(); + assert_eq!(counters.later_jobs.get(), 0, "never run"); + assert!(!later.run(|_, _| {}), "the first job found the entity gone"); + } + + /// What closing the window hands the runtime's shutdown: the number of + /// sessions the engine was told to close, which `run` gives time to act + /// on (the Slint front end does the same). The engine ignores a close for + /// a session it never opened, so the sessions here are only the state's. + #[gpui::test] + fn closing_counts_the_sessions_the_engine_was_told_to_close(cx: &mut TestAppContext) { + let runtime = tokio::runtime::Builder::new_multi_thread() + .worker_threads(2) + .enable_all() + .build() + .unwrap(); + let hosted = HostedEngine::start(&runtime); + let (tx, rx) = mpsc::unbounded_channel(); + let app = + cx.new(|cx| AppState::new(Some(hosted.engine.clone()), rx, Counters::default(), cx)); + assert_eq!(app.read_with(cx, |app, _| app.shutdown()), 0, "no session open yet"); + tx.send(voice(VoiceState::Connected)).unwrap(); + cx.run_until_parked(); + assert_eq!(app.read_with(cx, |app, _| app.shutdown()), 1); + runtime.shutdown_timeout(Duration::from_secs(2)); + } + + #[gpui::test] + fn closing_without_an_engine_tells_nothing(cx: &mut TestAppContext) { + let (app, tx, _) = entity(cx); + tx.send(voice(VoiceState::Connected)).unwrap(); + cx.run_until_parked(); + assert_eq!(app.read_with(cx, |app, _| (app.connections(), app.shutdown())), (1, 0)); + } + + /// The whole path with a real engine: a command makes the engine report a + /// setting change, which its forwarder hands to the window's channel and + /// the foreground task to the entity. The engine's tasks run on tokio + /// threads, so the test looks again until the event is in (no bound on + /// how long the loaded machine takes, a generous one on the whole wait); + /// the test scheduler is told that other threads wake it + /// (`allow_parking`), which it otherwise reports as a test that is not + /// deterministic. + #[gpui::test] + fn a_real_engine_event_reaches_the_entity(cx: &mut TestAppContext) { + cx.executor().allow_parking(); + let runtime = tokio::runtime::Builder::new_multi_thread() + .worker_threads(2) + .enable_all() + .build() + .unwrap(); + let hosted = HostedEngine::start(&runtime); + let engine = hosted.engine.clone(); + let counters = Counters::default(); + let app = cx.new(|cx| AppState::new(Some(engine.clone()), hosted.events, counters, cx)); + engine.send(Command::SetSetting { key: "stream.fps".into(), value: 144.into() }); + let deadline = Instant::now() + Duration::from_secs(120); + while app.read_with(cx, |app, _| app.events_handled) == 0 { + assert!(Instant::now() < deadline, "the engine's event never arrived"); + cx.run_until_parked(); + std::thread::sleep(Duration::from_millis(10)); + } + assert!(app.read_with(cx, |app, _| app.events_handled) >= 1); + runtime.shutdown_timeout(Duration::from_secs(2)); + } +} diff --git a/crates/voelin-gpui/src/assets.rs b/crates/voelin-gpui/src/assets.rs new file mode 100644 index 0000000..9eb69bb --- /dev/null +++ b/crates/voelin-gpui/src/assets.rs @@ -0,0 +1,79 @@ +//! What `svg()` and gpui-component's `Icon` load by path. The client's own +//! Lucide 1.48 icons (the 147 SVGs of the Slint front end, embedded by +//! `build.rs`) answer `icons/.svg` first, so every widget draws the +//! icons the client draws; anything else (the rest of gpui-kit-assets' +//! Lucide 1.43 catalogue, which gpui-component's `IconName` names) comes from +//! gpui-kit-assets. + +use std::borrow::Cow; + +use gpui_kit::{AssetSource, Result, SharedString}; + +include!(concat!(env!("OUT_DIR"), "/icons.rs")); + +/// The client's icons first, then gpui-kit-assets'. +#[derive(Clone, Copy, Debug, Default)] +pub struct Assets; + +/// The client's icon of a file name (`mic.svg`), if it has one. +pub fn client_icon(name: &str) -> Option<&'static [u8]> { + ICONS.binary_search_by_key(&name, |(n, _)| n).ok().map(|i| ICONS[i].1) +} + +/// The names of the client's icons, sorted. +pub fn client_icon_names() -> impl Iterator { + ICONS.iter().map(|(name, _)| *name) +} + +impl AssetSource for Assets { + fn load(&self, path: &str) -> Result>> { + if let Some(bytes) = path.strip_prefix("icons/").and_then(client_icon) { + return Ok(Some(Cow::Borrowed(bytes))); + } + gpui_kit::assets::AllAssets.load(path) + } + + fn list(&self, path: &str) -> Result> { + gpui_kit::assets::AllAssets.list(path) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn the_client_set_is_embedded_and_sorted() { + assert!(ICONS.len() >= 140, "{} icons", ICONS.len()); + assert!(ICONS.windows(2).all(|pair| pair[0].0 < pair[1].0)); + for (name, bytes) in ICONS { + assert!(std::str::from_utf8(bytes).is_ok_and(|text| text.contains(", + /// The text size factor, when the switch names one. + pub font_scale: Option, + /// The window's size in pixels, when the switch names one. + pub window: Option<(f32, f32)>, + /// Log the cost meter. + pub meter: bool, +} + +impl Default for Switches { + fn default() -> Self { + Self { open: Page::Shell, theme: None, font_scale: None, window: None, meter: false } + } +} + +impl Switches { + /// The switches of this process's environment. + pub fn from_env() -> Self { + Self::parse(|name| std::env::var(name).ok()) + } + + /// The switches `get` answers for; what it does not understand is logged + /// and left out. + pub fn parse(get: impl Fn(&str) -> Option) -> Self { + let mut switches = Self::default(); + if let Some(list) = get("VOELIN_OPEN") { + for what in list.split(',').map(str::trim).filter(|w| !w.is_empty()) { + match what { + "swatch" => switches.open = Page::Swatch, + other => tracing::warn!( + "VOELIN_OPEN={other}: this page is not in the GPUI front end yet (swatch is)" + ), + } + } + } + if let Some(name) = get("VOELIN_DEV_THEME") { + match Choice::parse(name.trim()) { + Some(choice) => switches.theme = Some(choice), + None => tracing::warn!("VOELIN_DEV_THEME={name}: dark, light or system"), + } + } + if let Some(text) = get("VOELIN_FONT_SCALE") { + match text.trim().parse::() { + Ok(scale) if (0.5..=3.0).contains(&scale) => switches.font_scale = Some(scale), + _ => tracing::warn!("VOELIN_FONT_SCALE={text}: a number from 0.5 to 3"), + } + } + if let Some(text) = get("VOELIN_WINDOW_SIZE") { + match parse_size(&text) { + Some(size) => switches.window = Some(size), + None => tracing::warn!("VOELIN_WINDOW_SIZE={text}: WIDTHxHEIGHT, such as 1440x960"), + } + } + switches.meter = get("VOELIN_METER").is_some_and(|v| !matches!(v.trim(), "" | "0")); + switches + } +} + +/// `WIDTHxHEIGHT` in pixels, at least 320 by 240 and at most 16384 each way. +fn parse_size(text: &str) -> Option<(f32, f32)> { + let (w, h) = text.trim().split_once('x')?; + let (w, h): (u32, u32) = (w.parse().ok()?, h.parse().ok()?); + ((320..=16384).contains(&w) && (240..=16384).contains(&h)).then_some((w as f32, h as f32)) +} + +#[cfg(test)] +mod tests { + use std::collections::HashMap; + + use super::*; + + fn env(pairs: &[(&str, &str)]) -> Switches { + let map: HashMap = + pairs.iter().map(|(k, v)| ((*k).to_owned(), (*v).to_owned())).collect(); + Switches::parse(|name| map.get(name).cloned()) + } + + #[test] + fn nothing_switched_is_the_shell_in_the_settings_theme() { + assert_eq!(env(&[]), Switches::default()); + } + + #[test] + fn every_switch_is_read() { + let s = env(&[ + ("VOELIN_OPEN", "swatch"), + ("VOELIN_DEV_THEME", "light"), + ("VOELIN_FONT_SCALE", "1.25"), + ("VOELIN_WINDOW_SIZE", "1440x960"), + ("VOELIN_METER", "1"), + ]); + assert_eq!(s.open, Page::Swatch); + assert_eq!(s.theme, Some(Choice::Light)); + assert_eq!(s.font_scale, Some(1.25)); + assert_eq!(s.window, Some((1440.0, 960.0))); + assert!(s.meter); + } + + #[test] + fn what_makes_no_sense_is_left_out() { + let s = env(&[ + ("VOELIN_OPEN", "settings:voice,home"), + ("VOELIN_DEV_THEME", "blue"), + ("VOELIN_FONT_SCALE", "9"), + ("VOELIN_WINDOW_SIZE", "10x10"), + ("VOELIN_METER", "0"), + ]); + assert_eq!(s, Switches::default()); + } +} diff --git a/crates/voelin-gpui/src/engine.rs b/crates/voelin-gpui/src/engine.rs new file mode 100644 index 0000000..9646555 --- /dev/null +++ b/crates/voelin-gpui/src/engine.rs @@ -0,0 +1,45 @@ +//! The engine this front end runs on, the same one the Slint front end +//! hosts (`voelin_ui::HostedEngine`, `crates/voelin-ui/src/app.rs`): started +//! on a tokio runtime, its events forwarded into a channel the window reads. +//! The Slint crate cannot be a dependency here (it brings Slint in), so the +//! few lines are repeated; both go into `voelin-ui-vm` when the Slint front +//! end is retired. + +use tokio::runtime::{Handle, Runtime}; +use tokio::sync::{broadcast, mpsc}; +use voelin_core::{Engine, Event}; + +/// An engine owned by the caller of [`crate::run`]. +pub struct HostedEngine { + /// The handle: commands go in through it. + pub engine: Engine, + /// The runtime the engine runs on; the window's helpers run there too. + pub runtime: Handle, + /// The engine's events for the window: first those that rebuild the + /// current state of every session, then new ones. Reading them needs no + /// reactor, so the window's foreground executor can await it. + pub events: mpsc::UnboundedReceiver, +} + +impl HostedEngine { + /// A new engine on `runtime`, all of whose events go to the window. + pub fn start(runtime: &Runtime) -> Self { + let engine = runtime.block_on(async { Engine::start() }); + let (tx, events) = mpsc::unbounded_channel(); + let mut rx = engine.subscribe(); + runtime.spawn(async move { + loop { + match rx.recv().await { + Ok(event) => { + if tx.send(event).is_err() { + break; + } + } + Err(broadcast::error::RecvError::Lagged(_)) => continue, + Err(_) => break, + } + } + }); + Self { engine, runtime: runtime.handle().clone(), events } + } +} diff --git a/crates/voelin-gpui/src/fonts.rs b/crates/voelin-gpui/src/fonts.rs new file mode 100644 index 0000000..d761815 --- /dev/null +++ b/crates/voelin-gpui/src/fonts.rs @@ -0,0 +1,39 @@ +//! Inter, the UI font, as the Slint front end bundles it +//! (`crates/voelin-ui/ui/assets/fonts`, OFL): the five files go into GPUI's +//! text system and are used by family name ([`crate::theme::FONT_FAMILY`]), +//! so nothing depends on what fontconfig finds for Latin text. Colour emoji +//! come later (the chat slice; docs/design/gpui-spikes.md, "Open choices for step 3"). + +use std::borrow::Cow; + +use gpui_kit::App; + +/// The files of the family: regular, medium, semibold, bold, italic. +const INTER: [&[u8]; 5] = [ + include_bytes!("../../voelin-ui/ui/assets/fonts/Inter-Regular.ttf"), + include_bytes!("../../voelin-ui/ui/assets/fonts/Inter-Medium.ttf"), + include_bytes!("../../voelin-ui/ui/assets/fonts/Inter-SemiBold.ttf"), + include_bytes!("../../voelin-ui/ui/assets/fonts/Inter-Bold.ttf"), + include_bytes!("../../voelin-ui/ui/assets/fonts/Inter-Italic.ttf"), +]; + +/// Add Inter to GPUI's text system. +pub fn load(cx: &mut App) { + let fonts: Vec> = INTER.iter().map(|bytes| Cow::Borrowed(*bytes)).collect(); + if let Err(error) = cx.text_system().add_fonts(fonts) { + tracing::warn!(%error, "cannot add Inter to the text system"); + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn the_files_are_fonts() { + for bytes in INTER { + assert!(bytes.len() > 100_000, "a font file, not {} bytes", bytes.len()); + assert!(matches!(&bytes[..4], [0, 1, 0, 0] | b"OTTO" | b"true"), "an sfnt header"); + } + } +} diff --git a/crates/voelin-gpui/src/lib.rs b/crates/voelin-gpui/src/lib.rs new file mode 100644 index 0000000..48b077b --- /dev/null +++ b/crates/voelin-gpui/src/lib.rs @@ -0,0 +1,182 @@ +//! The GPUI front end of the desktop app, under construction (plan section 6 +//! of the migration from Slint; docs/ui.md, "The GPUI front end"). The Slint +//! front end (`voelin-ui`, the `voelin` binary) stays the app until this one +//! reaches parity; both run on the same engine. + +#![warn(missing_docs)] + +pub mod app; +pub mod assets; +pub mod dev; +pub mod engine; +pub mod fonts; +pub mod meter; +pub mod swatch; +pub mod theme; +pub mod view; + +use std::cell::{Cell, RefCell}; +use std::rc::Rc; +use std::time::Duration; + +use anyhow::{Context as _, Result}; +use gpui_kit::{App, AppContext as _, TitlebarOptions, WindowBounds, WindowOptions, px, size}; +use tracing_subscriber::{EnvFilter, fmt, prelude::*}; + +use crate::app::AppState; +use crate::assets::Assets; +use crate::dev::Switches; +use crate::engine::HostedEngine; +use crate::meter::Counters; +use crate::theme::{Choice, VoelinTheme}; +use crate::view::MainView; + +/// How long the engine gets, after the window closed, to act on the +/// `CloseSession` commands the close sent (the Slint front end waits as long): +/// its tasks run on the runtime, and shutting the runtime down drops them. +const CLOSE_GRACE: Duration = Duration::from_millis(500); + +/// What the log gets without `VOELIN_LOG` or `RUST_LOG`: warnings of every +/// crate, this front end's information, and what GPUI says about the display +/// and the GPU adapter it picked (which device a run used). Two warnings are +/// left out because they are harmless: zbus's, as in the Slint front end (it +/// warns when a desktop portal's request object is gone before it reads its +/// properties), and GPUI's "failed to load font .SystemUIFont" (gpui-component +/// asks for the platform's UI font, which Linux has no name for, before the +/// theme names Inter; the text system falls back). +const LOG_FILTER: &str = + "warn,zbus=error,gpui::text_system=error,voelin_gpui=info,gpui_wgpu=info,gpui_linux=info"; + +/// Log to the terminal: `VOELIN_LOG`, else `RUST_LOG`, else [`LOG_FILTER`]. +/// GPUI logs through the `log` crate; the subscriber carries those records. +pub fn init_logging() { + let filter = EnvFilter::try_from_env("VOELIN_LOG") + .or_else(|_| EnvFilter::try_from_default_env()) + .unwrap_or_else(|_| EnvFilter::new(LOG_FILTER)); + let _ = tracing_subscriber::registry() + .with(fmt::layer().with_writer(std::io::stderr).with_filter(filter)) + .try_init(); +} + +/// The main window's options: titled with the app's name, grouped by its id, +/// centred, 1280 by 800 unless `VOELIN_WINDOW_SIZE` says otherwise. +fn window_options(switches: &Switches, cx: &App) -> WindowOptions { + let (width, height) = switches.window.unwrap_or((1280.0, 800.0)); + WindowOptions { + titlebar: Some(TitlebarOptions { + title: Some(voelin_platform::APP_NAME.into()), + ..Default::default() + }), + app_id: Some(voelin_platform::APP_ID.to_owned()), + window_min_size: Some(size(px(640.0), px(480.0))), + window_bounds: Some(WindowBounds::centered(size(px(width), px(height)), cx)), + ..Default::default() + } +} + +/// Open the main window on the root state; closing it leaves the servers and +/// ends the app. `closed_sessions` is set to how many sessions the close told +/// the engine to close, which [`run`] needs after GPUI's loop has ended. +fn open_main_window( + cx: &mut App, + switches: &Switches, + engine: HostedEngine, + counters: Counters, + closed_sessions: Rc>, +) -> Result<()> { + // Without a display server GPUI falls back to a headless platform, which + // opens windows that draw nothing and runs until it is stopped. + if cx.compositor_name() == "headless" { + return Err(anyhow::anyhow!( + "no display: neither DISPLAY nor WAYLAND_DISPLAY names a display server" + )) + .context("cannot open the main window"); + } + let HostedEngine { engine, events, .. } = engine; + let app = cx.new({ + let counters = counters.clone(); + move |cx| AppState::new(Some(engine), events, counters, cx) + }); + let options = window_options(switches, cx); + let page = switches.open; + gpui_kit::open_window(options, cx, { + let app = app.clone(); + move |window, cx| { + // The window's own appearance, which may differ from the system's before + // the window exists. + VoelinTheme::set_system_appearance(cx, window.appearance()); + window.on_window_should_close(cx, { + let app = app.clone(); + move |_, cx| { + closed_sessions.set(app.read(cx).shutdown()); + cx.quit(); + true + } + }); + cx.new(|cx| MainView::new(app, page, counters, window, cx)) + } + }) + .context("cannot open the main window")?; + Ok(()) +} + +/// Run the app on the current thread until its window closes. +pub fn run() -> Result<()> { + init_logging(); + let switches = Switches::from_env(); + tracing::info!( + version = env!("CARGO_PKG_VERSION"), + os = std::env::consts::OS, + "Voelin (GPUI) starting" + ); + let counters = Counters::default(); + if switches.meter { + meter::start(counters.clone()); + } + // The engine runs on tokio threads of its own; the window is GPUI's. + let runtime = tokio::runtime::Builder::new_multi_thread() + .enable_all() + .build() + .context("cannot start the engine's runtime")?; + let hosted = HostedEngine::start(&runtime); + let failure: Rc>> = Rc::default(); + let closed_sessions: Rc> = Rc::default(); + gpui_kit::application().with_assets(Assets).run({ + let failure = failure.clone(); + let closed_sessions = closed_sessions.clone(); + move |cx| { + gpui_kit::init(cx); + fonts::load(cx); + // Until the settings are read here (the shell slice), the mode and + // the text size are the development switches' or the defaults. + VoelinTheme::init( + cx, + switches.theme.unwrap_or(Choice::System), + cx.window_appearance(), + switches.font_scale.unwrap_or(1.0), + ); + if let Err(e) = open_main_window(cx, &switches, hosted, counters, closed_sessions) { + *failure.borrow_mut() = Some(e); + // Not `cx.quit()` here: GPUI's Linux platform runs this callback + // before it starts its event loop, and the loop forgets a stop + // asked for earlier (calloop clears its stop signal when it + // starts), so the process would stay with no window and no + // message. A task runs inside the loop. + cx.spawn(async move |cx| cx.update(|cx| cx.quit())).detach(); + } + } + }); + // The close told the engine to close the sessions; give its tasks time to + // send that before the runtime drops them (`shutdown_timeout` waits for + // blocking tasks only), as the Slint front end does, or ghost clients stay + // on the servers until they time out. Any other way to end the app that + // the slices add must call `AppState::shutdown` too. + if closed_sessions.get() > 0 { + runtime.block_on(tokio::time::sleep(CLOSE_GRACE)); + } + runtime.shutdown_timeout(Duration::from_secs(2)); + match failure.take() { + Some(e) => Err(e), + None => Ok(()), + } +} diff --git a/crates/voelin-gpui/src/main.rs b/crates/voelin-gpui/src/main.rs new file mode 100644 index 0000000..3c91e4d --- /dev/null +++ b/crates/voelin-gpui/src/main.rs @@ -0,0 +1,6 @@ +//! `voelin-gpui`: the GPUI front end of the desktop app (docs/ui.md, "The +//! GPUI front end"). + +fn main() -> anyhow::Result<()> { + voelin_gpui::run() +} diff --git a/crates/voelin-gpui/src/meter.rs b/crates/voelin-gpui/src/meter.rs new file mode 100644 index 0000000..10c1775 --- /dev/null +++ b/crates/voelin-gpui/src/meter.rs @@ -0,0 +1,303 @@ +//! What the app costs, once a second, in the log: the CPU of the process and +//! of each group of threads, the resident memory, and the app's own counters +//! (a development switch, `VOELIN_METER=1`, so that every slice can say what +//! it costs). It is `spike_common::meter` of the GPUI spikes +//! (`spikes/gpui/common/src/meter.rs`, docs/design/gpui-spikes.md) without the +//! measuring run's summary and exit, writing log lines instead of JSON. +//! +//! CPU is in percent of one core (200 means two cores busy). Threads are +//! grouped by name without a trailing number (`llvmpipe-12` becomes +//! `llvmpipe`), which tells the software renderer's share (Mesa's `llvmpipe-*` +//! threads, work a GPU would take over) from GPUI's thread, the engine's +//! runtime and the codecs. The numbers come from `/proc/self`: on other +//! systems the meter says it cannot read them and stops. + +use std::collections::BTreeMap; +use std::fmt::Write as _; +use std::sync::Arc; +use std::sync::atomic::{AtomicU64, Ordering}; +use std::time::{Duration, Instant}; + +/// A number the app counts up (events handled, frames drawn) or sets (open +/// connections); the meter reports counters per second and gauges as they +/// are. +#[derive(Clone, Default, Debug)] +pub struct Counter(Arc); + +impl Counter { + /// Add one. + pub fn incr(&self) { + self.0.fetch_add(1, Ordering::Relaxed); + } + + /// Set (gauges). + pub fn set(&self, value: u64) { + self.0.store(value, Ordering::Relaxed); + } + + /// The current value. + pub fn get(&self) -> u64 { + self.0.load(Ordering::Relaxed) + } +} + +/// The app's own numbers the meter reports besides the process's. +#[derive(Clone, Default, Debug)] +pub struct Counters { + /// Engine events handled by the root state (per second). + pub engine_events: Counter, + /// One-second ticks of the root state (per second: 1). + pub ticks: Counter, + /// Windows drawn (frames, per second). + pub renders: Counter, + /// Jobs other threads handed to the foreground through + /// [`crate::app::Later`] (per second). + pub later_jobs: Counter, + /// Voice connections that are up (a gauge). + pub connections: Counter, +} + +/// CPU ticks of the process and of each thread group, and the resident +/// memory, at one moment. +#[derive(Clone, Debug)] +pub struct Snapshot { + at: Instant, + process: u64, + threads: BTreeMap, + rss_bytes: u64, +} + +/// The size of a page of memory, for `statm`'s page counts. +#[cfg(target_os = "linux")] +fn page_size() -> u64 { + rustix::param::page_size() as u64 +} + +/// The size of a page of memory (Linux only matters: `/proc`). +#[cfg(not(target_os = "linux"))] +fn page_size() -> u64 { + 4096 +} + +/// The unit of the CPU times in `stat`. +#[cfg(target_os = "linux")] +fn clock_ticks_per_second() -> u64 { + rustix::param::clock_ticks_per_second() +} + +/// The unit of the CPU times in `stat` (Linux only matters: `/proc`). +#[cfg(not(target_os = "linux"))] +fn clock_ticks_per_second() -> u64 { + 100 +} + +/// `utime + stime` and the name of a `/proc/.../stat` line. +fn ticks_of(stat: &str) -> Option<(String, u64)> { + let open = stat.find('(')?; + let close = stat.rfind(')')?; + let name = stat.get(open + 1..close)?.to_owned(); + let fields: Vec<&str> = stat.get(close + 1..)?.split_whitespace().collect(); + // Fields 14 and 15 of proc(5); the remainder starts at field 3. + let utime: u64 = fields.get(11)?.parse().ok()?; + let stime: u64 = fields.get(12)?.parse().ok()?; + Some((name, utime + stime)) +} + +/// A thread's group: its name without a trailing number or separator. +pub fn group_of(name: &str) -> String { + let trimmed = name.trim_end_matches(|c: char| c.is_ascii_digit()); + let trimmed = trimmed.trim_end_matches(['-', '_', ':', ' ', '#']); + if trimmed.is_empty() { name.to_owned() } else { trimmed.to_owned() } +} + +impl Snapshot { + /// Read `/proc/self` now; `None` where there is none. + pub fn now() -> Option { + let process = std::fs::read_to_string("/proc/self/stat").ok().and_then(|s| ticks_of(&s))?.1; + let mut threads = BTreeMap::new(); + if let Ok(dir) = std::fs::read_dir("/proc/self/task") { + for entry in dir.flatten() { + let Ok(stat) = std::fs::read_to_string(entry.path().join("stat")) else { continue }; + if let Some((name, ticks)) = ticks_of(&stat) { + *threads.entry(group_of(&name)).or_insert(0) += ticks; + } + } + } + let rss_bytes = std::fs::read_to_string("/proc/self/statm") + .ok() + .and_then(|s| s.split_whitespace().nth(1)?.parse::().ok()) + .map_or(0, |pages| pages * page_size()); + Some(Self { at: Instant::now(), process, threads, rss_bytes }) + } + + /// Resident memory in MiB. + pub fn rss_mib(&self) -> f64 { + self.rss_bytes as f64 / (1024.0 * 1024.0) + } +} + +/// CPU in percent of one core between two snapshots: the process's and each +/// thread group's that used any (groups that exited in between count from +/// zero). +pub fn cpu_between(a: &Snapshot, b: &Snapshot) -> (f64, BTreeMap) { + let hz = clock_ticks_per_second() as f64; + let secs = b.at.duration_since(a.at).as_secs_f64().max(1e-6); + let pct = |ticks: u64| ticks as f64 / hz / secs * 100.0; + let process = pct(b.process.saturating_sub(a.process)); + let threads = b + .threads + .iter() + .map(|(name, &t)| (name.clone(), pct(t.saturating_sub(*a.threads.get(name).unwrap_or(&0))))) + .filter(|(_, p)| *p > 0.0) + .collect(); + (process, threads) +} + +/// One second of the meter as a log line: `cpu 42.0% rss 210.4 MiB threads +/// llvmpipe 31.0 main 5.0 | engine_events 0.0/s ... | connections 1`. +pub fn line( + cpu: f64, + rss_mib: f64, + threads: &BTreeMap, + rates: &[(&str, f64)], + gauges: &[(&str, u64)], +) -> String { + let mut text = format!("cpu {cpu:.1}% rss {rss_mib:.1} MiB"); + // The busiest groups first; a thread group under 0.5 % is noise. + let mut busy: Vec<(&String, &f64)> = threads.iter().filter(|(_, p)| **p >= 0.5).collect(); + busy.sort_by(|a, b| b.1.total_cmp(a.1).then_with(|| a.0.cmp(b.0))); + if !busy.is_empty() { + text.push_str(" | threads"); + for (name, pct) in busy { + let _ = write!(text, " {name} {pct:.1}"); + } + } + text.push_str(" |"); + for (name, rate) in rates { + let _ = write!(text, " {name} {rate:.1}/s"); + } + if !gauges.is_empty() { + text.push_str(" |"); + for (name, value) in gauges { + let _ = write!(text, " {name} {value}"); + } + } + text +} + +/// Start the meter on a thread of its own: once a second, a log line (target +/// `voelin_gpui::meter`, level info) with the process's CPU and memory and +/// `counters`' rates. It ends with the process. +pub fn start(counters: Counters) { + let spawned = std::thread::Builder::new().name("voelin-meter".into()).spawn(move || { + let Some(mut last) = Snapshot::now() else { + tracing::warn!(target: "voelin_gpui::meter", "the meter reads /proc/self; there is none here"); + return; + }; + let rated = [ + ("engine_events", counters.engine_events.clone()), + ("ticks", counters.ticks.clone()), + ("renders", counters.renders.clone()), + ("later_jobs", counters.later_jobs.clone()), + ]; + let mut last_counts: Vec = rated.iter().map(|(_, c)| c.get()).collect(); + tracing::info!(target: "voelin_gpui::meter", "meter on: one line a second (VOELIN_METER)"); + loop { + std::thread::sleep(Duration::from_secs(1)); + let Some(now) = Snapshot::now() else { return }; + let secs = now.at.duration_since(last.at).as_secs_f64().max(1e-6); + let (cpu, threads) = cpu_between(&last, &now); + let counts: Vec = rated.iter().map(|(_, c)| c.get()).collect(); + let rates: Vec<(&str, f64)> = rated + .iter() + .zip(counts.iter().zip(&last_counts)) + .map(|((name, _), (c, l))| (*name, c.saturating_sub(*l) as f64 / secs)) + .collect(); + let gauges = [("connections", counters.connections.get())]; + tracing::info!( + target: "voelin_gpui::meter", + "{}", + line(cpu, now.rss_mib(), &threads, &rates, &gauges) + ); + last = now; + last_counts = counts; + } + }); + if let Err(error) = spawned { + tracing::warn!(target: "voelin_gpui::meter", %error, "no meter thread"); + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn groups_drop_trailing_numbers() { + assert_eq!(group_of("llvmpipe-12"), "llvmpipe"); + assert_eq!(group_of("tokio-runtime-w"), "tokio-runtime-w"); + assert_eq!(group_of("voelin-meter"), "voelin-meter"); + assert_eq!(group_of("1234"), "1234"); + } + + #[test] + fn stat_lines_parse_with_spaces_in_names() { + let line = "42 (a b) c) S 1 2 3 4 5 6 7 8 9 10 100 23 0 0 20 0 1 0 0"; + assert_eq!(ticks_of(line), Some(("a b) c".to_owned(), 123))); + } + + #[test] + fn the_line_names_the_busiest_threads_first_and_hides_the_idle_ones() { + let threads = BTreeMap::from([ + ("main".to_owned(), 5.04), + ("llvmpipe".to_owned(), 310.0), + ("idle".to_owned(), 0.2), + ]); + let text = line( + 317.0, + 210.44, + &threads, + &[("engine_events", 0.0), ("renders", 59.96)], + &[("connections", 1)], + ); + assert_eq!( + text, + "cpu 317.0% rss 210.4 MiB | threads llvmpipe 310.0 main 5.0 | engine_events 0.0/s renders 60.0/s | connections 1" + ); + } + + #[test] + fn this_process_can_be_read_on_linux() { + if !cfg!(target_os = "linux") { + return; + } + let a = Snapshot::now().expect("/proc/self"); + // The kernel counts a process's CPU in ticks of 10 ms, and on a busy + // machine this thread gets a tick's worth of CPU only after a long wall + // time: burn CPU until a second reading shows the process's ticks above + // the first, and in a thread group (the process's total and a thread's + // own are rounded separately). The deadline only ends a hang + // (docs/testing/load.md); it never decides the result. + let deadline = Instant::now() + Duration::from_secs(30); + let (b, cpu) = loop { + let burn = Instant::now(); + let mut x = 0u64; + while burn.elapsed() < Duration::from_millis(2) { + x = x.wrapping_mul(31).wrapping_add(7); + } + std::hint::black_box(x); + let b = Snapshot::now().expect("/proc/self"); + let (cpu, threads) = cpu_between(&a, &b); + if b.process > a.process && !threads.is_empty() { + break (b, cpu); + } + assert!( + Instant::now() < deadline, + "no CPU tick showed in 30 s: {} -> {}", + a.process, + b.process + ); + }; + assert!(cpu > 0.0 && b.rss_mib() > 1.0, "{cpu} {}", b.rss_mib()); + } +} diff --git a/crates/voelin-gpui/src/swatch.rs b/crates/voelin-gpui/src/swatch.rs new file mode 100644 index 0000000..fedd8ab --- /dev/null +++ b/crates/voelin-gpui/src/swatch.rs @@ -0,0 +1,389 @@ +//! The swatch page: every colour token of the theme with its name and value, +//! the radii, the spacing, the type scale, a few gpui-component widgets (drawn +//! from the second layer of the theme) and the client's icons, in the mode +//! the theme is in. A development page (`VOELIN_OPEN=swatch`): the screenshots +//! of a theme change, and what the screenshots in docs/ui/ show. + +use std::collections::HashMap; + +use gpui_kit::component::button::{Button, ButtonVariants as _}; +use gpui_kit::component::checkbox::Checkbox; +use gpui_kit::component::switch::Switch; +use gpui_kit::{ + FontWeight, InteractiveElement as _, IntoElement, ParentElement as _, + StatefulInteractiveElement as _, Styled as _, div, px, svg, +}; + +use crate::theme::{VoelinTheme, hsla, tokens::Rgba}; + +/// The colour tokens by the groups of docs/ui.md's "Theme tokens" table. +pub const GROUPS: [(&str, &[&str]); 6] = [ + ( + "Backgrounds", + &[ + "bg-app", + "bg-rail", + "surface", + "surface-2", + "surface-3", + "surface-4", + "scrim", + "scrim-light", + "overlay", + ], + ), + ("Lines", &["border", "border-strong", "border-popup", "glow"]), + ( + "Accent", + &[ + "accent", + "accent-hover", + "accent-pressed", + "accent-soft", + "accent-soft-hover", + "accent-text", + "name-text", + "on-accent", + ], + ), + ( + "States", + &[ + "live", + "live-soft", + "danger", + "danger-soft", + "success", + "success-soft", + "warning", + "warning-soft", + "idle", + "dnd", + "offline", + "gold", + "info", + ], + ), + ("Text", &["text", "text-secondary", "text-muted", "text-disabled", "icon"]), + ("Meter", &["meter-low", "meter-mid", "meter-high", "meter-off"]), +]; + +/// Icons shown, by the name of the client's file. +const ICONS: [&str; 16] = [ + "mic.svg", + "mic-off.svg", + "headphones.svg", + "volume-2.svg", + "settings.svg", + "search.svg", + "bell.svg", + "users.svg", + "message-square.svg", + "monitor-up.svg", + "hash.svg", + "lock.svg", + "crown.svg", + "plus.svg", + "x.svg", + "check.svg", +]; + +fn heading(theme: &VoelinTheme, text: &str) -> impl IntoElement { + let m = &theme.metrics; + div() + .text_size(px(m.font_md)) + .font_weight(FontWeight::SEMIBOLD) + .text_color(hsla(theme.colors.text)) + .child(text.to_owned()) +} + +fn chip(theme: &VoelinTheme, name: &str, color: Rgba) -> impl IntoElement { + let (c, m) = (&theme.colors, &theme.metrics); + div() + .w(px(100.0)) + .flex() + .flex_col() + .gap(px(2.0)) + .child( + div() + .h(px(24.0)) + .rounded(px(m.radius_xs)) + .border_1() + .border_color(hsla(c.border_strong)) + .bg(hsla(color)), + ) + .child( + div() + .text_size(px(m.font_xs)) + .text_color(hsla(c.text_secondary)) + .child(name.to_owned()), + ) + .child( + div().text_size(px(m.font_xs)).text_color(hsla(c.text_muted)).child(color.to_string()), + ) +} + +fn colours(theme: &VoelinTheme) -> impl IntoElement { + let (c, m) = (&theme.colors, &theme.metrics); + let by_name: HashMap<&str, Rgba> = c.entries().into_iter().collect(); + let mut column = div().flex().flex_col().gap(px(m.space_4)); + for (group, names) in GROUPS { + let mut row = div().flex().flex_row().flex_wrap().gap(px(m.space_3)); + for name in names { + row = row.child(chip(theme, name, by_name[name])); + } + column = column.child( + div().flex().flex_col().gap(px(m.space_2)).child(heading(theme, group)).child(row), + ); + } + column +} + +fn radii(theme: &VoelinTheme) -> impl IntoElement { + let (c, m) = (&theme.colors, &theme.metrics); + let mut row = div().flex().flex_row().gap(px(m.space_4)); + for (name, radius) in [ + ("xs", m.radius_xs), + ("sm", m.radius_sm), + ("md", m.radius_md), + ("lg", m.radius_lg), + ("xl", m.radius_xl), + ("pill", m.radius_pill), + ] { + row = row.child( + div() + .flex() + .flex_col() + .items_center() + .gap(px(m.space_2)) + .child( + div() + .size(px(40.0)) + .rounded(px(radius)) + .bg(hsla(c.surface_4)) + .border_1() + .border_color(hsla(c.border_popup)), + ) + .child(div().text_size(px(m.font_xs)).text_color(hsla(c.text_muted)).child(name)), + ); + } + div().flex().flex_col().gap(px(m.space_3)).child(heading(theme, "Radii")).child(row) +} + +fn spacing(theme: &VoelinTheme) -> impl IntoElement { + let (c, m) = (&theme.colors, &theme.metrics); + let mut rows = div().flex().flex_col().gap(px(m.space_1)); + for (name, space) in [ + ("space-1", m.space_1), + ("space-2", m.space_2), + ("space-3", m.space_3), + ("space-4", m.space_4), + ("space-5", m.space_5), + ("space-6", m.space_6), + ("space-7", m.space_7), + ("space-8", m.space_8), + ] { + rows = rows.child( + div() + .flex() + .flex_row() + .items_center() + .gap(px(m.space_3)) + .child( + div() + .w(px(56.0)) + .text_size(px(m.font_xs)) + .text_color(hsla(c.text_muted)) + .child(name), + ) + .child(div().h(px(6.0)).w(px(space * 4.0)).rounded(px(2.0)).bg(hsla(c.accent))) + .child( + div() + .text_size(px(m.font_xs)) + .text_color(hsla(c.text_muted)) + .child(format!("{space} px")), + ), + ); + } + div().flex().flex_col().gap(px(m.space_3)).child(heading(theme, "Spacing")).child(rows) +} + +fn type_scale(theme: &VoelinTheme) -> impl IntoElement { + let (c, m) = (&theme.colors, &theme.metrics); + let mut rows = div().flex().flex_col(); + for (name, size, weight) in [ + ("font-3xl", m.font_3xl, FontWeight::BOLD), + ("font-2xl", m.font_2xl, FontWeight::SEMIBOLD), + ("font-xl", m.font_xl, FontWeight::SEMIBOLD), + ("font-lg", m.font_lg, FontWeight::MEDIUM), + ("font-md", m.font_md, FontWeight::MEDIUM), + ("font-body", m.font_body, FontWeight::NORMAL), + ("font-sm", m.font_sm, FontWeight::NORMAL), + ("font-xs", m.font_xs, FontWeight::NORMAL), + ] { + rows = rows.child( + div() + .text_size(px(size)) + .font_weight(weight) + .text_color(hsla(c.text)) + .child(format!("{name} {size}: Raid tonight at 21:00")), + ); + } + div().flex().flex_col().gap(px(m.space_3)).child(heading(theme, "Type")).child(rows) +} + +fn components(theme: &VoelinTheme) -> impl IntoElement { + let m = &theme.metrics; + div() + .flex() + .flex_col() + .gap(px(m.space_3)) + .child(heading(theme, "Components (gpui-component, through ThemeColor)")) + .child( + div() + .flex() + .flex_row() + .flex_wrap() + .gap(px(m.space_3)) + .child(Button::new("primary").primary().label("Primary")) + .child(Button::new("secondary").label("Secondary")) + .child(Button::new("danger").danger().label("Danger")) + .child(Button::new("success").success().label("Success")) + .child(Button::new("warning").warning().label("Warning")) + .child(Button::new("info").info().label("Info")), + ) + .child( + div() + .flex() + .flex_row() + .items_center() + .gap(px(m.space_5)) + .child(Switch::new("on").checked(true)) + .child(Switch::new("off").checked(false)) + .child(Checkbox::new("checked").checked(true).label("Checked")) + .child(Checkbox::new("unchecked").checked(false).label("Unchecked")), + ) +} + +fn backdrop(theme: &VoelinTheme) -> impl IntoElement { + let (c, m, b) = (&theme.colors, &theme.metrics, &theme.backdrop); + let [first, _, last] = b.stops; + div().flex().flex_col().gap(px(m.space_3)).child(heading(theme, "Backdrop")).child( + div() + .h(px(36.0)) + .rounded(px(m.radius_md)) + .border_1() + .border_color(hsla(c.border)) + .bg(b.to_gpui()) + .px(px(m.space_3)) + .py(px(m.space_2)) + .text_size(px(m.font_xs)) + .text_color(hsla(c.text_secondary)) + .child(format!( + "{}deg: {} to {}; the middle stop, {} at {}%, is not drawn", + b.angle, + first.0, + last.0, + b.stops[1].0, + (b.stops[1].1 * 100.0).round() + )), + ) +} + +fn icons(theme: &VoelinTheme) -> impl IntoElement { + let (c, m) = (&theme.colors, &theme.metrics); + let mut row = div().flex().flex_row().flex_wrap().gap(px(m.space_5)); + for name in ICONS { + row = row.child( + svg().path(format!("icons/{name}")).size(px(m.icon_lg)).text_color(hsla(c.icon)), + ); + } + div() + .flex() + .flex_col() + .gap(px(m.space_3)) + .child(heading(theme, "Icons (the client's Lucide 1.48, as gpui-component's icons/ paths)")) + .child(row) +} + +/// The page: the colours on the left, the rest on the right; it scrolls when +/// the window is smaller than it. +pub fn swatch(theme: &VoelinTheme) -> impl IntoElement { + let (c, m) = (&theme.colors, &theme.metrics); + div() + .id("swatch") + .size_full() + .overflow_y_scroll() + .flex() + .flex_col() + .gap(px(m.space_4)) + .p(px(m.space_6)) + .bg(hsla(c.bg_app)) + .child( + div() + .flex() + .flex_row() + .items_baseline() + .gap(px(m.space_4)) + .child( + div() + .text_size(px(m.font_2xl)) + .font_weight(FontWeight::BOLD) + .text_color(hsla(c.text)) + .child("Voelin theme"), + ) + .child(div().text_size(px(m.font_sm)).text_color(hsla(c.text_muted)).child( + format!( + "{} (setting {}), text size {}", + if theme.is_dark() { "dark" } else { "light" }, + theme.choice().name(), + m.font_scale + ), + )), + ) + .child( + div() + .flex() + .flex_row() + .gap(px(m.space_8)) + .child(div().w(px(752.0)).flex_none().child(colours(theme))) + .child( + div() + .w(px(600.0)) + .flex() + .flex_col() + .gap(px(m.space_4)) + .child(backdrop(theme)) + .child(radii(theme)) + .child(spacing(theme)) + .child(type_scale(theme)) + .child(components(theme)) + .child(icons(theme)), + ), + ) +} + +#[cfg(test)] +mod tests { + use std::collections::BTreeSet; + + use super::*; + use crate::assets::client_icon; + use crate::theme::Palette; + + #[test] + fn every_colour_token_is_in_exactly_one_group() { + let shown: Vec<&str> = GROUPS.iter().flat_map(|(_, names)| names.iter().copied()).collect(); + let unique: BTreeSet<&str> = shown.iter().copied().collect(); + assert_eq!(shown.len(), unique.len(), "a token in two groups"); + let tokens: BTreeSet<&str> = Palette::DARK.entries().into_iter().map(|(n, _)| n).collect(); + assert_eq!(unique, tokens); + } + + #[test] + fn the_icons_shown_are_the_clients() { + for name in ICONS { + assert!(client_icon(name).is_some(), "{name}"); + } + } +} diff --git a/crates/voelin-gpui/src/theme/components.rs b/crates/voelin-gpui/src/theme/components.rs new file mode 100644 index 0000000..b699f86 --- /dev/null +++ b/crates/voelin-gpui/src/theme/components.rs @@ -0,0 +1,278 @@ +//! The second layer of the theme: the colours gpui-component's widgets read, +//! written from the Voelin palette. gpui-component's `ThemeColor` is shadcn's +//! vocabulary (about 135 colours: a background, a primary, a muted, one set +//! for the list, one for the table, one for each kind of button); the +//! client's tokens map onto it as docs/ui.md ("The GPUI front end") lists. +//! What has no counterpart stays as the registered theme of the mode has it +//! (charts' bullish and bearish colours, the cyan and magenta of the base +//! palette). +//! +//! gpui-component's "accent" is a hover background, not a brand colour: the +//! client's `accent` is its `primary`. + +use gpui_kit::Hsla; +use gpui_kit::component::ThemeColor; + +use super::tokens::{Palette, Rgba}; + +/// A palette colour as GPUI's. +pub fn hsla(color: Rgba) -> Hsla { + gpui_kit::rgba(color.0).into() +} + +/// Of `base`, the colours a status button needs: hover, active, and a text +/// that reads on it (white or the window's ink, whichever contrasts more). +struct Status { + base: Hsla, + hover: Hsla, + active: Hsla, + foreground: Hsla, +} + +fn status(base: Rgba, ink: Rgba, dark: bool) -> Status { + let toward_hover = if dark { Rgba(0xffff_ffff) } else { Rgba(0x0000_00ff) }; + Status { + base: hsla(base), + hover: hsla(base.mix(toward_hover, 0.14)), + active: hsla(base.mix(Rgba(0x0000_00ff), 0.18)), + foreground: hsla(base.readable(ink)), + } +} + +/// Write the palette's colours into `colors`, over what the registered theme +/// of the mode left there. Every field that gpui-component's themes derive +/// from another (the buttons fall back to `primary`, `danger`, ...) is written +/// too, so that none keeps the default theme's blue. +pub fn write(p: &Palette, dark: bool, colors: &mut ThemeColor) { + let c = colors; + let h = hsla; + let clear = Hsla::transparent_black(); + + // The window and its text. + c.background = h(p.bg_app); + c.foreground = h(p.text); + c.border = h(p.border); + c.input = h(p.border_strong); + c.ring = h(p.glow); + c.overlay = h(p.scrim); + c.window_border = h(p.border); + c.caret = h(p.text); + c.selection = h(p.accent_soft); + c.drag_border = h(p.accent); + c.drop_target = h(p.accent_soft); + + // Links: one colour for all three states, as the client has one. + c.link = h(p.accent_text); + c.link_hover = h(p.accent_text); + c.link_active = h(p.accent_text); + + // The brand colour, and gpui-component's hover "accent". + c.primary = h(p.accent); + c.primary_hover = h(p.accent_hover); + c.primary_active = h(p.accent_pressed); + c.primary_foreground = h(p.on_accent); + c.accent = h(p.surface_3); + c.accent_foreground = h(p.text); + + // Cards, inputs, menus, popovers. + c.secondary = h(p.surface_2); + c.secondary_hover = h(p.surface_3); + c.secondary_active = h(p.surface_4); + c.secondary_foreground = h(p.text); + c.muted = h(p.surface_2); + c.muted_foreground = h(p.text_muted); + c.popover = h(p.surface_3); + c.popover_foreground = h(p.text); + c.group_box = h(p.surface_2); + c.group_box_foreground = h(p.text); + c.accordion = h(p.surface_2); + c.description_list_label = h(p.surface_2); + c.description_list_label_foreground = h(p.text_secondary); + + // The status colours, with the text that reads on each. + let [danger, success, warning, info] = + [p.danger, p.success, p.warning, p.info].map(|base| status(base, p.bg_app, dark)); + (c.danger, c.danger_hover, c.danger_active, c.danger_foreground) = + (danger.base, danger.hover, danger.active, danger.foreground); + (c.success, c.success_hover, c.success_active, c.success_foreground) = + (success.base, success.hover, success.active, success.foreground); + (c.warning, c.warning_hover, c.warning_active, c.warning_foreground) = + (warning.base, warning.hover, warning.active, warning.foreground); + (c.info, c.info_hover, c.info_active, c.info_foreground) = + (info.base, info.hover, info.active, info.foreground); + + // Lists and tables: rows on the panel, hovered rows raised, the selected + // row the soft accent with the accent's edge. + c.list = h(p.surface); + c.list_hover = h(p.surface_3); + c.list_active = h(p.accent_soft); + c.list_active_border = h(p.accent); + c.list_even = h(p.surface); + c.list_head = h(p.surface_2); + c.table = h(p.surface); + c.table_hover = h(p.surface_3); + c.table_active = h(p.accent_soft); + c.table_active_border = h(p.accent); + c.table_even = h(p.surface); + c.table_head = h(p.surface_2); + c.table_head_foreground = h(p.text_secondary); + c.table_foot = h(p.surface_2); + c.table_foot_foreground = h(p.text_secondary); + c.table_row_border = h(p.border); + + // The panels around the content: the sidebar, the title and status bars. + c.sidebar = h(p.surface); + c.sidebar_foreground = h(p.text); + c.sidebar_border = h(p.border); + c.sidebar_accent = h(p.surface_3); + c.sidebar_accent_foreground = h(p.text); + c.sidebar_primary = h(p.accent); + c.sidebar_primary_foreground = h(p.on_accent); + c.title_bar = h(p.surface); + c.title_bar_border = h(p.border); + c.status_bar = h(p.surface); + c.status_bar_border = h(p.border); + + // Small widgets. + c.scrollbar = clear; + c.scrollbar_thumb = h(p.border_strong); + c.scrollbar_thumb_hover = h(p.text_muted); + c.slider_bar = h(p.accent); + c.slider_thumb = h(p.on_accent); + c.switch = h(p.surface_4); + c.switch_thumb = h(p.on_accent); + c.progress_bar = h(p.accent); + c.skeleton = h(p.surface_3); + c.tab = clear; + c.tab_active = h(p.surface_2); + c.tab_active_foreground = h(p.text); + c.tab_bar = h(p.surface); + c.tab_bar_segmented = h(p.surface_2); + c.tab_foreground = h(p.text_secondary); + + // The base palette and the charts: the client's state colours. + c.red = h(p.danger); + c.red_light = h(p.danger_soft); + c.green = h(p.success); + c.green_light = h(p.success_soft); + c.yellow = h(p.warning); + c.yellow_light = h(p.warning_soft); + c.blue = h(p.info); + c.blue_light = h(p.accent_soft); + c.chart_1 = h(p.accent); + c.chart_2 = h(p.success); + c.chart_3 = h(p.warning); + c.chart_4 = h(p.danger); + c.chart_5 = h(p.info); + + // The buttons: what a theme file leaves out they take from the colours + // above, so they are written from them here. + c.button = c.secondary; + c.button_hover = c.secondary_hover; + c.button_active = c.secondary_active; + c.button_foreground = c.secondary_foreground; + c.button_primary = c.primary; + c.button_primary_hover = c.primary_hover; + c.button_primary_active = c.primary_active; + c.button_primary_foreground = c.primary_foreground; + c.button_secondary = c.secondary; + c.button_secondary_hover = c.secondary_hover; + c.button_secondary_active = c.secondary_active; + c.button_secondary_foreground = c.secondary_foreground; + c.button_danger = c.danger; + c.button_danger_hover = c.danger_hover; + c.button_danger_active = c.danger_active; + c.button_danger_foreground = c.danger_foreground; + c.button_success = c.success; + c.button_success_hover = c.success_hover; + c.button_success_active = c.success_active; + c.button_success_foreground = c.success_foreground; + c.button_warning = c.warning; + c.button_warning_hover = c.warning_hover; + c.button_warning_active = c.warning_active; + c.button_warning_foreground = c.warning_foreground; + c.button_info = c.info; + c.button_info_hover = c.info_hover; + c.button_info_active = c.info_active; + c.button_info_foreground = c.info_foreground; +} + +#[cfg(test)] +mod tests { + use super::*; + + fn written(dark: bool) -> (Palette, ThemeColor) { + let palette = if dark { Palette::DARK } else { Palette::LIGHT }; + let mut colors = ThemeColor::default(); + write(&palette, dark, &mut colors); + (palette, colors) + } + + #[test] + fn the_client_tokens_land_where_the_table_says() { + for dark in [true, false] { + let (p, c) = written(dark); + assert_eq!(c.background, hsla(p.bg_app)); + assert_eq!(c.foreground, hsla(p.text)); + assert_eq!(c.primary, hsla(p.accent)); + assert_eq!(c.primary_hover, hsla(p.accent_hover)); + assert_eq!(c.primary_active, hsla(p.accent_pressed)); + assert_eq!(c.primary_foreground, hsla(p.on_accent)); + assert_eq!( + c.accent, + hsla(p.surface_3), + "gpui-component's accent is a hover background" + ); + assert_eq!(c.secondary, hsla(p.surface_2)); + assert_eq!(c.secondary_active, hsla(p.surface_4)); + assert_eq!(c.border, hsla(p.border)); + assert_eq!(c.input, hsla(p.border_strong)); + assert_eq!(c.ring, hsla(p.glow)); + assert_eq!(c.overlay, hsla(p.scrim)); + assert_eq!(c.list_active, hsla(p.accent_soft)); + assert_eq!(c.link, hsla(p.accent_text)); + assert_eq!(c.muted_foreground, hsla(p.text_muted)); + assert_eq!(c.sidebar, hsla(p.surface)); + assert_eq!(c.danger, hsla(p.danger)); + assert_eq!(c.success, hsla(p.success)); + } + } + + #[test] + fn the_buttons_follow_the_colours_they_fall_back_to() { + let (_, c) = written(true); + assert_eq!(c.button_primary, c.primary); + assert_eq!(c.button_primary_hover, c.primary_hover); + assert_eq!(c.button_danger_foreground, c.danger_foreground); + assert_eq!(c.button, c.secondary); + assert_eq!(c.button_info_active, c.info_active); + } + + #[test] + fn the_text_on_a_status_colour_is_the_one_that_reads_better() { + for (p, dark) in [(Palette::DARK, true), (Palette::LIGHT, false)] { + for base in [p.danger, p.success, p.warning, p.info] { + let s = status(base, p.bg_app, dark); + let chosen = base.readable(p.bg_app); + let other = if chosen == Rgba(0xffff_ffff) { p.bg_app } else { Rgba(0xffff_ffff) }; + assert!(base.contrast(chosen) >= base.contrast(other), "{base} on {chosen}"); + assert_eq!(s.foreground, hsla(chosen)); + assert_ne!(s.hover, s.base); + assert_ne!(s.active, s.base); + } + } + } + + #[test] + fn mixing_and_contrast_do_what_they_say() { + let (black, white) = (Rgba(0x0000_00ff), Rgba(0xffff_ffff)); + assert_eq!(black.mix(white, 0.0), black); + assert_eq!(black.mix(white, 1.0), white); + assert_eq!(Rgba(0x1020_30c0).mix(white, 0.0), Rgba(0x1020_30c0), "opacity stays"); + assert!((black.contrast(white) - 21.0).abs() < 0.01); + assert_eq!(black.readable(black), white); + assert_eq!(Rgba(0xf5b3_01ff).readable(Rgba(0x060a_18ff)), Rgba(0x060a_18ff)); + assert_eq!(Rgba(0x12ab_34ff).to_string(), "#12ab34"); + assert_eq!(Rgba(0x12ab_3480).to_string(), "#12ab3480"); + } +} diff --git a/crates/voelin-gpui/src/theme/mod.rs b/crates/voelin-gpui/src/theme/mod.rs new file mode 100644 index 0000000..c4a02ea --- /dev/null +++ b/crates/voelin-gpui/src/theme/mod.rs @@ -0,0 +1,293 @@ +//! The Voelin theme, in two layers (docs/ui.md, "The GPUI front end"): +//! +//! 1. [`VoelinTheme`], a GPUI global with every token of +//! `crates/voelin-ui/ui/theme.slint`, light and dark ([`tokens`]), which a +//! test keeps equal to the Slint file ([`slint_parity`]). The shell's own +//! elements (the server rail, presence dots, meters, the backdrop) read it. +//! 2. gpui-component's `ThemeColor`, the colours its widgets (inputs, lists, +//! menus, dialogs) read, written from the first on every change +//! ([`components`]), so that they look like ours. +//! +//! The mode is the client's `ui.theme`: `system` follows the window's +//! appearance (and its changes), `light` and `dark` do not. + +mod components; +#[cfg(test)] +mod slint_parity; +pub mod tokens; + +pub use components::hsla; +use gpui_kit::component::{Theme, ThemeMode}; +use gpui_kit::{App, Background, Global, WindowAppearance, linear_color_stop, linear_gradient, px}; +pub use tokens::{Backdrop, FONT_FAMILY, Metrics, Palette, Rgba}; + +impl Backdrop { + /// What GPUI draws: its gradient has two colour stops, so the first and the + /// last of the three; the middle one is not drawn. + pub fn to_gpui(&self) -> Background { + let [first, _, last] = self.stops; + linear_gradient( + self.angle, + linear_color_stop(hsla(first.0), first.1), + linear_color_stop(hsla(last.0), last.1), + ) + } +} + +/// The theme mode setting (`ui.theme` of the Slint front end). +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] +pub enum Choice { + /// Follow the window's appearance. + System, + /// Always light. + Light, + /// Always dark. + Dark, +} + +impl Choice { + /// `system`, `light` or `dark`. + pub fn parse(text: &str) -> Option { + match text { + "system" => Some(Self::System), + "light" => Some(Self::Light), + "dark" => Some(Self::Dark), + _ => None, + } + } + + /// The setting's value. + pub fn name(self) -> &'static str { + match self { + Self::System => "system", + Self::Light => "light", + Self::Dark => "dark", + } + } + + /// Whether the theme is dark, given whether the window's appearance is. + pub fn resolve(self, system_dark: bool) -> bool { + match self { + Self::System => system_dark, + Self::Light => false, + Self::Dark => true, + } + } +} + +/// Whether a window's appearance is a dark one. +pub fn is_dark(appearance: WindowAppearance) -> bool { + matches!(appearance, WindowAppearance::Dark | WindowAppearance::VibrantDark) +} + +/// Every token of `theme.slint` for the resolved mode and text size; a GPUI +/// global. +#[derive(Clone, Debug)] +pub struct VoelinTheme { + choice: Choice, + dark: bool, + /// The colours of the resolved mode. + pub colors: Palette, + /// The window's backdrop gradient of the resolved mode. + pub backdrop: Backdrop, + /// The sizes, radii, type and durations at the text size factor. + pub metrics: Metrics, +} + +impl Global for VoelinTheme {} + +impl VoelinTheme { + /// The tokens for a mode (resolved against `system_dark`) and a text size + /// factor. + pub fn new(choice: Choice, system_dark: bool, font_scale: f32) -> Self { + let dark = choice.resolve(system_dark); + Self { + choice, + dark, + colors: if dark { Palette::DARK } else { Palette::LIGHT }, + backdrop: if dark { Backdrop::DARK } else { Backdrop::LIGHT }, + metrics: Metrics::new(font_scale), + } + } + + /// The theme mode that was set. + pub fn choice(&self) -> Choice { + self.choice + } + + /// Whether the colours are the dark ones. + pub fn is_dark(&self) -> bool { + self.dark + } + + /// Install the theme as the global and write it into gpui-component, which + /// `gpui_kit::init` must have set up. `appearance` is the window's (or + /// the system's before there is a window). + pub fn init(cx: &mut App, choice: Choice, appearance: WindowAppearance, font_scale: f32) { + cx.set_global(Self::new(choice, is_dark(appearance), font_scale)); + Self::apply(cx); + } + + /// The theme global. + pub fn global(cx: &App) -> &Self { + cx.global::() + } + + /// Change the mode (a setting changed), given the window's appearance now. + pub fn set_choice(cx: &mut App, choice: Choice, appearance: WindowAppearance) { + let (scale, current) = { + let this = Self::global(cx); + (this.metrics.font_scale, this.choice) + }; + if current == choice && Self::global(cx).dark == choice.resolve(is_dark(appearance)) { + return; + } + cx.set_global(Self::new(choice, is_dark(appearance), scale)); + Self::apply(cx); + } + + /// The window's appearance changed; it matters only in `system` mode. + pub fn set_system_appearance(cx: &mut App, appearance: WindowAppearance) { + let this = Self::global(cx); + if this.choice == Choice::System && this.dark != is_dark(appearance) { + let (choice, scale) = (this.choice, this.metrics.font_scale); + cx.set_global(Self::new(choice, is_dark(appearance), scale)); + Self::apply(cx); + } + } + + /// The text size factor changed (`ui.font_scale`). + pub fn set_font_scale(cx: &mut App, font_scale: f32) { + let this = Self::global(cx); + if (this.metrics.font_scale - font_scale).abs() < f32::EPSILON { + return; + } + // `dark` is what the mode resolved to: for every mode, resolving it again + // against it gives the same. + let (choice, dark) = (this.choice, this.dark); + cx.set_global(Self::new(choice, dark, font_scale)); + Self::apply(cx); + } + + /// Write the global into gpui-component's theme: the mode, the colours of + /// the second layer, the font, the base size and the radii. + fn apply(cx: &mut App) { + let this = Self::global(cx).clone(); + // The registered theme of the mode first (it sets whatever the second + // layer leaves alone), then our colours over it in a second update, as + // `Theme::update` says a mode change must be. + Theme::change(if this.dark { ThemeMode::Dark } else { ThemeMode::Light }, None, cx); + Theme::update(cx, |theme| { + components::write(&this.colors, this.dark, &mut theme.colors); + theme.font_family = FONT_FAMILY.into(); + theme.font_size = px(this.metrics.font_body); + theme.radius = px(this.metrics.radius_sm); + theme.radius_lg = px(this.metrics.radius_lg); + }); + // Where the platform draws the window's frame itself (macOS), it follows + // the mode; elsewhere this does nothing. + cx.set_window_appearance(match this.choice { + Choice::System => None, + Choice::Light => Some(WindowAppearance::Light), + Choice::Dark => Some(WindowAppearance::Dark), + }); + } +} + +#[cfg(test)] +mod tests { + use gpui::TestAppContext; + use gpui_kit::component::ActiveTheme as _; + + use super::*; + + fn start(cx: &mut TestAppContext, choice: Choice, appearance: WindowAppearance) { + cx.update(|cx| { + gpui_kit::init(cx); + VoelinTheme::init(cx, choice, appearance, 1.0); + }); + } + + #[test] + fn the_mode_resolves_against_the_window() { + assert!(Choice::System.resolve(true) && !Choice::System.resolve(false)); + assert!(Choice::Dark.resolve(false) && !Choice::Light.resolve(true)); + for choice in [Choice::System, Choice::Light, Choice::Dark] { + assert_eq!(Choice::parse(choice.name()), Some(choice)); + } + assert_eq!(Choice::parse("blue"), None); + assert!(is_dark(WindowAppearance::VibrantDark) && !is_dark(WindowAppearance::VibrantLight)); + } + + #[test] + fn the_backdrop_draws_the_first_and_the_last_of_its_three_stops() { + let b = Backdrop::DARK; + let [first, middle, last] = b.stops; + assert_eq!( + b.to_gpui(), + linear_gradient( + 160.0, + linear_color_stop(hsla(first.0), 0.0), + linear_color_stop(hsla(last.0), 1.0) + ) + ); + assert_ne!( + b.to_gpui(), + linear_gradient( + 160.0, + linear_color_stop(hsla(first.0), 0.0), + linear_color_stop(hsla(middle.0), 1.0) + ), + "the middle stop is not the end one" + ); + } + + #[gpui::test] + fn the_tokens_reach_gpui_component(cx: &mut TestAppContext) { + start(cx, Choice::Dark, WindowAppearance::Light); + cx.update(|cx| { + let theme = cx.theme(); + assert!(theme.is_dark()); + assert_eq!(theme.colors.primary, hsla(Palette::DARK.accent)); + assert_eq!(theme.colors.background, hsla(Palette::DARK.bg_app)); + assert_eq!(theme.colors.button_primary, hsla(Palette::DARK.accent)); + assert_eq!(theme.font_family.as_ref(), "Inter"); + assert_eq!(theme.font_size, px(14.0)); + assert_eq!(theme.radius, px(6.0)); + assert_eq!(theme.radius_lg, px(12.0)); + assert_eq!(VoelinTheme::global(cx).colors, Palette::DARK); + assert_eq!(VoelinTheme::global(cx).backdrop, Backdrop::DARK); + }); + } + + #[gpui::test] + fn system_follows_the_window_appearance_and_light_and_dark_do_not(cx: &mut TestAppContext) { + start(cx, Choice::System, WindowAppearance::Light); + let primary = |cx: &mut TestAppContext| cx.update(|cx| cx.theme().colors.primary); + assert_eq!(primary(cx), hsla(Palette::LIGHT.accent)); + cx.update(|cx| VoelinTheme::set_system_appearance(cx, WindowAppearance::Dark)); + assert_eq!(primary(cx), hsla(Palette::DARK.accent)); + cx.update(|cx| VoelinTheme::set_system_appearance(cx, WindowAppearance::VibrantLight)); + assert_eq!(primary(cx), hsla(Palette::LIGHT.accent)); + + cx.update(|cx| VoelinTheme::set_choice(cx, Choice::Dark, WindowAppearance::Light)); + assert_eq!(primary(cx), hsla(Palette::DARK.accent)); + cx.update(|cx| VoelinTheme::set_system_appearance(cx, WindowAppearance::Light)); + assert_eq!(primary(cx), hsla(Palette::DARK.accent), "a dark choice ignores the window"); + cx.update(|cx| VoelinTheme::set_choice(cx, Choice::Light, WindowAppearance::Dark)); + assert_eq!(primary(cx), hsla(Palette::LIGHT.accent), "so does a light one"); + } + + #[gpui::test] + fn the_text_size_scales_the_type_and_the_controls(cx: &mut TestAppContext) { + start(cx, Choice::Dark, WindowAppearance::Dark); + cx.update(|cx| VoelinTheme::set_font_scale(cx, 1.25)); + cx.update(|cx| { + let theme = VoelinTheme::global(cx); + assert!(theme.is_dark(), "the mode stays"); + assert_eq!(theme.metrics.font_body, 17.5); + assert_eq!(theme.metrics.control_height, 45.0); + assert_eq!(cx.theme().font_size, px(17.5)); + }); + } +} diff --git a/crates/voelin-gpui/src/theme/slint_parity.rs b/crates/voelin-gpui/src/theme/slint_parity.rs new file mode 100644 index 0000000..a9d8ce6 --- /dev/null +++ b/crates/voelin-gpui/src/theme/slint_parity.rs @@ -0,0 +1,318 @@ +//! `crates/voelin-ui/ui/theme.slint` against `tokens.rs`: the Slint file is +//! read and every token in it is compared with the Rust value of the same +//! name, light and dark and at four text sizes; a token on one side only, a +//! value that differs, or a declaration of a kind this test does not know +//! (or a second brush or string, of which it knows `backdrop`, `mode` and +//! `font-family`) fails it. While both front ends live, a token changed in +//! one place and not the other is caught here. + +use std::collections::{BTreeMap, BTreeSet}; + +use super::tokens::{Backdrop, FONT_FAMILY, Metrics, Palette, Rgba}; + +const SLINT: &str = include_str!("../../../voelin-ui/ui/theme.slint"); + +/// What `theme.slint` declares: the kind and the expression of each property +/// of the `Theme` global, in file order. +fn declarations() -> Vec<(String, String, String)> { + declarations_of(SLINT) +} + +/// The same for the text of a `.slint` file (the tests below also read +/// altered copies of `theme.slint`). +fn declarations_of(source: &str) -> Vec<(String, String, String)> { + let without_comments: String = source + .lines() + .map(|line| line.split("//").next().unwrap_or("")) + .collect::>() + .join("\n"); + let body = without_comments.split_once("export global Theme {").expect("the Theme global").1; + let mut found = Vec::new(); + for statement in body.split(';') { + let statement = statement.trim(); + let Some(rest) = ["in-out property", "out property", "in property"] + .iter() + .find_map(|prefix| statement.strip_prefix(prefix)) + else { + continue; + }; + let (kind, rest) = + rest.trim().strip_prefix('<').expect("").split_once('>').expect(""); + let (name, expr) = rest.trim().split_once(':').expect("name: expression"); + // One line, single spaces: `backdrop` is written over several. + let expr = expr.split_whitespace().collect::>().join(" "); + found.push((name.trim().to_owned(), kind.trim().to_owned(), expr)); + } + found +} + +/// `#rgb`-style literal as `Rgba`. +fn colour(text: &str) -> Rgba { + let hex = text.trim().strip_prefix('#').unwrap_or_else(|| panic!("a colour, not {text:?}")); + let value = u32::from_str_radix(hex, 16).unwrap_or_else(|_| panic!("hex digits in {text:?}")); + match hex.len() { + 6 => Rgba(value << 8 | 0xff), + 8 => Rgba(value), + _ => panic!("#rrggbb or #rrggbbaa, not {text:?}"), + } +} + +/// Split `dark ? A : B` at its top-level `?` and `:`; `A` for a plain `A`. +fn by_mode(expr: &str) -> (String, String) { + let Some(rest) = expr.strip_prefix("dark ?") else { + return (expr.to_owned(), expr.to_owned()); + }; + let mut depth = 0; + for (i, c) in rest.char_indices() { + match c { + '(' => depth += 1, + ')' => depth -= 1, + ':' if depth == 0 => { + return (rest[..i].trim().to_owned(), rest[i + 1..].trim().to_owned()); + } + _ => {} + } + } + panic!("no `:` in {expr:?}"); +} + +/// The arithmetic of the length tokens: numbers with a unit, other tokens, +/// `*`, `+`, `max(a, b)` and parentheses. +struct Eval<'a> { + tokens: Vec, + at: usize, + env: &'a BTreeMap, + scale: f64, +} + +impl<'a> Eval<'a> { + fn run(expr: &str, env: &'a BTreeMap, scale: f64) -> f64 { + let mut tokens = Vec::new(); + let mut word = String::new(); + for c in expr.chars() { + if c.is_alphanumeric() || matches!(c, '-' | '.' | '%') { + word.push(c); + } else { + if !word.is_empty() { + tokens.push(std::mem::take(&mut word)); + } + if !c.is_whitespace() { + tokens.push(c.to_string()); + } + } + } + if !word.is_empty() { + tokens.push(word); + } + let mut eval = Eval { tokens, at: 0, env, scale }; + let value = eval.sum(); + assert_eq!(eval.at, eval.tokens.len(), "all of {expr:?} is read"); + value + } + + fn peek(&self) -> Option<&str> { + self.tokens.get(self.at).map(String::as_str) + } + + fn take(&mut self) -> String { + self.at += 1; + self.tokens[self.at - 1].clone() + } + + fn sum(&mut self) -> f64 { + let mut value = self.product(); + while self.peek() == Some("+") { + self.take(); + value += self.product(); + } + value + } + + fn product(&mut self) -> f64 { + let mut value = self.factor(); + while self.peek() == Some("*") { + self.take(); + value *= self.factor(); + } + value + } + + fn factor(&mut self) -> f64 { + let token = self.take(); + if token == "(" { + let value = self.sum(); + assert_eq!(self.take(), ")"); + return value; + } + if token == "max" { + assert_eq!(self.take(), "("); + let a = self.sum(); + assert_eq!(self.take(), ","); + let b = self.sum(); + assert_eq!(self.take(), ")"); + return a.max(b); + } + if token == "font-scale" { + return self.scale; + } + if token.starts_with(|c: char| c.is_ascii_digit()) { + let number: String = + token.chars().take_while(|c| c.is_ascii_digit() || *c == '.').collect(); + return number.parse().unwrap_or_else(|_| panic!("a number in {token:?}")); + } + let expr = + self.env.get(&token).unwrap_or_else(|| panic!("a token named {token:?}")).clone(); + Eval::run(&expr, self.env, self.scale) + } +} + +/// The names `theme.slint` declares that are state, not tokens: the mode and +/// what it resolves to, and the text size factor (the factor is a parameter +/// of [`Metrics`]). +const STATE: [&str; 4] = ["mode", "system-dark", "dark", "font-scale"]; + +#[test] +fn every_colour_is_the_same_in_both_files() { + let slint: Vec<(String, String, String)> = + declarations().into_iter().filter(|(_, kind, _)| kind == "color").collect(); + assert!(slint.len() > 40, "the colours were found: {}", slint.len()); + let dark: BTreeMap<_, _> = Palette::DARK.entries().into_iter().collect(); + let light: BTreeMap<_, _> = Palette::LIGHT.entries().into_iter().collect(); + let mut names = BTreeSet::new(); + for (name, _, expr) in &slint { + let (d, l) = by_mode(expr); + assert_eq!(dark.get(name.as_str()), Some(&colour(&d)), "{name} (dark)"); + assert_eq!(light.get(name.as_str()), Some(&colour(&l)), "{name} (light)"); + names.insert(name.as_str()); + } + let ours: BTreeSet<&str> = dark.keys().copied().collect(); + assert_eq!(ours, names, "colours in tokens.rs and not in theme.slint, or the other way"); +} + +#[test] +fn every_length_weight_and_duration_is_the_same_in_both_files() { + let all = declarations(); + let env: BTreeMap = + all.iter().map(|(name, _, expr)| (name.clone(), expr.clone())).collect(); + let numeric: Vec<&(String, String, String)> = all + .iter() + .filter(|(name, kind, _)| { + matches!(kind.as_str(), "length" | "int" | "duration") + && !STATE.contains(&name.as_str()) + }) + .collect(); + assert!(numeric.len() > 30, "the numbers were found: {}", numeric.len()); + for scale in [1.0_f32, 1.25, 0.8, 2.0] { + let ours: BTreeMap<&str, f64> = Metrics::new(scale).entries().into_iter().collect(); + let mut names = BTreeSet::new(); + for (name, _, expr) in &numeric { + let slint = Eval::run(expr, &env, f64::from(scale)); + let ours = *ours.get(name.as_str()).unwrap_or_else(|| panic!("{name} is in tokens.rs")); + assert!( + (slint - ours).abs() < 1e-3, + "{name} at {scale}: theme.slint {slint}, tokens.rs {ours}" + ); + names.insert(name.as_str()); + } + let rust: BTreeSet<&str> = ours.keys().copied().collect(); + assert_eq!(rust, names, "numbers in tokens.rs and not in theme.slint, or the other way"); + } +} + +#[test] +fn the_backdrop_and_the_font_are_the_same_in_both_files() { + let all = declarations(); + let get = |name: &str| { + all.iter().find(|(n, _, _)| n == name).unwrap_or_else(|| panic!("{name}")).2.clone() + }; + let gradient = |text: &str| -> Backdrop { + let inner = text + .trim() + .strip_prefix("@linear-gradient(") + .and_then(|t| t.strip_suffix(')')) + .unwrap_or_else(|| panic!("a linear gradient, not {text:?}")); + let mut parts = inner.split(',').map(str::trim); + let angle: f32 = parts.next().unwrap().trim_end_matches("deg").parse().unwrap(); + let stops: Vec<(Rgba, f32)> = parts + .map(|stop| { + let (colour_text, position) = stop.split_once(' ').unwrap(); + let percent: f32 = position.trim().trim_end_matches('%').parse().unwrap(); + (colour(colour_text), percent / 100.0) + }) + .collect(); + Backdrop { angle, stops: stops.try_into().expect("three stops") } + }; + let (dark, light) = by_mode(&get("backdrop")); + assert_eq!(gradient(&dark), Backdrop::DARK); + assert_eq!(gradient(&light), Backdrop::LIGHT); + assert_eq!(get("font-family"), format!("\"{FONT_FAMILY}\"")); +} + +/// What the declarations hold that no comparison above covers, one sentence +/// each; empty when there is none: a kind of declaration this test does not +/// know, a brush other than `backdrop` or a string other than `mode` and +/// `font-family` (the two comparisons of those go by name, so a second one +/// would pass unseen), a state name that is no longer declared. +fn unknown_to_this_test(declared: &[(String, String, String)]) -> Vec { + let mut problems = Vec::new(); + let kinds: BTreeSet<&str> = declared + .iter() + .filter(|(name, _, _)| !STATE.contains(&name.as_str())) + .map(|(_, kind, _)| kind.as_str()) + .collect(); + let known = BTreeSet::from(["color", "brush", "length", "int", "duration", "string"]); + if kinds != known { + problems.push(format!("kinds of declaration {kinds:?}, this test knows {known:?}")); + } + for (kind, expected) in [("brush", &["backdrop"][..]), ("string", &["mode", "font-family"])] { + let found: BTreeSet<&str> = declared + .iter() + .filter(|(_, declared_kind, _)| declared_kind == kind) + .map(|(name, _, _)| name.as_str()) + .collect(); + let expected: BTreeSet<&str> = expected.iter().copied().collect(); + for name in found.symmetric_difference(&expected) { + problems.push(format!( + "{name}: the <{kind}> declarations are {found:?}, this test compares {expected:?}" + )); + } + } + for name in STATE { + if !declared.iter().any(|(declared, _, _)| declared == name) { + problems.push(format!("{name} is not declared")); + } + } + problems +} + +#[test] +fn the_file_declares_nothing_this_test_does_not_know() { + let problems = unknown_to_this_test(&declarations()); + assert!(problems.is_empty(), "{problems:#?}"); +} + +/// `theme.slint` with one more declaration in its `Theme` global. +fn with_declaration(declaration: &str) -> String { + let opening = "export global Theme {"; + assert!(SLINT.contains(opening)); + SLINT.replacen(opening, &format!("{opening}\n {declaration}"), 1) +} + +#[test] +fn a_second_brush_or_string_is_not_passed_unseen() { + // Mutants of the Slint file: a token on one side only. + for (declaration, name) in [ + ("out property backdrop-soft: #123456;", "backdrop-soft"), + ("out property font-mono: \"Mono\";", "font-mono"), + ] { + let mutant = declarations_of(&with_declaration(declaration)); + assert!(mutant.iter().any(|(declared, _, _)| declared == name), "the mutant has {name}"); + let problems = unknown_to_this_test(&mutant); + assert!( + problems.iter().any(|problem| problem.contains(name)), + "{name} goes unnoticed: {problems:#?}" + ); + } + // And the file as it is has neither. + assert_eq!(unknown_to_this_test(&declarations()), Vec::::new()); +} diff --git a/crates/voelin-gpui/src/theme/tokens.rs b/crates/voelin-gpui/src/theme/tokens.rs new file mode 100644 index 0000000..dc341d6 --- /dev/null +++ b/crates/voelin-gpui/src/theme/tokens.rs @@ -0,0 +1,372 @@ +//! The tokens of `crates/voelin-ui/ui/theme.slint`, light and dark, as Rust +//! values: the source of truth the GPUI front end copies. `theme.slint` stays +//! the original while the Slint front end lives; the test in +//! `theme/slint_parity.rs` reads it and fails when a value, a name or a +//! formula here differs from it, so the two cannot drift apart. + +use std::fmt; + +/// A colour as `0xRRGGBBAA`, as the Slint file writes `#rrggbbaa` (`#rrggbb` +/// is opaque). +#[derive(Clone, Copy, PartialEq, Eq, Hash)] +pub struct Rgba(pub u32); + +impl fmt::Debug for Rgba { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "{self}") + } +} + +impl fmt::Display for Rgba { + /// `#rrggbb`, or `#rrggbbaa` when not opaque. + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + if self.alpha() == 255 { + write!(f, "#{:06x}", self.0 >> 8) + } else { + write!(f, "#{:08x}", self.0) + } + } +} + +impl Rgba { + /// Transparent black, for the widgets that draw nothing. + pub const TRANSPARENT: Self = Self(0); + + /// The opacity, 0 to 255. + pub fn alpha(self) -> u8 { + (self.0 & 0xff) as u8 + } + + /// The same colour with another opacity. + pub fn with_alpha(self, alpha: u8) -> Self { + Self((self.0 & 0xffff_ff00) | u32::from(alpha)) + } + + /// The channels, 0 to 1. + pub fn channels(self) -> [f32; 3] { + [24, 16, 8].map(|shift| ((self.0 >> shift) & 0xff) as f32 / 255.0) + } + + /// Mixed with `other` (of `amount`, 0 to 1), channel by channel, opacity + /// from `self`. + pub fn mix(self, other: Self, amount: f32) -> Self { + let (a, b) = (self.channels(), other.channels()); + let channel = + |i: usize| ((a[i] + (b[i] - a[i]) * amount) * 255.0).round().clamp(0.0, 255.0) as u32; + Self(channel(0) << 24 | channel(1) << 16 | channel(2) << 8 | u32::from(self.alpha())) + } + + /// The relative luminance of WCAG 2, 0 (black) to 1 (white). + pub fn luminance(self) -> f32 { + let [r, g, b] = self + .channels() + .map(|c| if c <= 0.03928 { c / 12.92 } else { ((c + 0.055) / 1.055).powf(2.4) }); + 0.2126 * r + 0.7152 * g + 0.0722 * b + } + + /// The contrast ratio of WCAG 2 between two colours, 1 to 21. + pub fn contrast(self, other: Self) -> f32 { + let (a, b) = (self.luminance(), other.luminance()); + (a.max(b) + 0.05) / (a.min(b) + 0.05) + } + + /// Of white and `ink`, the one that reads better on `self`. + pub fn readable(self, ink: Self) -> Self { + let white = Self(0xffff_ffff); + if self.contrast(white) >= self.contrast(ink) { white } else { ink } + } +} + +macro_rules! palette { + ($($field:ident $name:literal: $dark:literal, $light:literal;)*) => { + /// Every colour token of `theme.slint` for one mode. + #[derive(Clone, Copy, Debug, PartialEq, Eq)] + pub struct Palette { + $( + #[doc = concat!("`", $name, "` of `theme.slint`.")] + pub $field: Rgba, + )* + } + + impl Palette { + /// The dark palette. + pub const DARK: Self = Self { $($field: Rgba($dark),)* }; + /// The light palette. + pub const LIGHT: Self = Self { $($field: Rgba($light),)* }; + + /// Every colour by the name it has in `theme.slint`, in its order. + pub fn entries(&self) -> Vec<(&'static str, Rgba)> { + vec![$(($name, self.$field),)*] + } + } + }; +} + +palette! { + bg_app "bg-app": 0x060a18ff, 0xe9eef9ff; + bg_rail "bg-rail": 0x070c1dff, 0xdfe6f4ff; + surface "surface": 0x0b1330ff, 0xf7f9feff; + surface_2 "surface-2": 0x101a3cff, 0xffffffff; + surface_3 "surface-3": 0x16224bff, 0xeaf0fbff; + surface_4 "surface-4": 0x1c2b5cff, 0xdce5f7ff; + scrim "scrim": 0x02050fc0, 0x0b132b80; + scrim_light "scrim-light": 0x02050f73, 0x0b132b33; + overlay "overlay": 0x060a18c8, 0x0b1330b0; + border "border": 0x1b2750ff, 0xd3dceeff; + border_strong "border-strong": 0x2a3a6eff, 0xb9c6e2ff; + border_popup "border-popup": 0x3d5296ff, 0x9fb0d4ff; + accent "accent": 0x2d6bffff, 0x2458e6ff; + accent_hover "accent-hover": 0x4a82ffff, 0x3a6cf0ff; + accent_pressed "accent-pressed": 0x1f55d9ff, 0x1b47c0ff; + accent_soft "accent-soft": 0x18348aff, 0xd6e2ffff; + accent_soft_hover "accent-soft-hover": 0x1d3d9cff, 0xc8d8ffff; + accent_text "accent-text": 0x5c9dffff, 0x1d4fd6ff; + name_text "name-text": 0x45b9ffff, 0x0f6cc4ff; + on_accent "on-accent": 0xffffffff, 0xffffffff; + glow "glow": 0x3f7bff90, 0x2458e660; + live "live": 0xff2d55ff, 0xe0203fff; + live_soft "live-soft": 0x3a0f22ff, 0xffe0e6ff; + danger "danger": 0xff4d5eff, 0xd92c3cff; + danger_soft "danger-soft": 0x3b1020ff, 0xffe3e6ff; + success "success": 0x22d36bff, 0x16a557ff; + success_soft "success-soft": 0x0d3326ff, 0xd7f5e4ff; + warning "warning": 0xf5b301ff, 0xb77f00ff; + warning_soft "warning-soft": 0x3a2a06ff, 0xfff0c8ff; + idle "idle": 0xf5b301ff, 0xc98b00ff; + dnd "dnd": 0xff4d5eff, 0xd92c3cff; + offline "offline": 0x5f6d93ff, 0x8d99b5ff; + gold "gold": 0xffc233ff, 0xd99a00ff; + info "info": 0x3fb3ffff, 0x1180d6ff; + text "text": 0xeef2ffff, 0x0e1733ff; + text_secondary "text-secondary": 0xaeb9d8ff, 0x43506fff; + text_muted "text-muted": 0x6d7ca6ff, 0x6f7b98ff; + text_disabled "text-disabled": 0x46527aff, 0xa7b1c8ff; + icon "icon": 0xb9c4e2ff, 0x43506fff; + meter_low "meter-low": 0x21d07aff, 0x21d07aff; + meter_mid "meter-mid": 0xf5d000ff, 0xf5d000ff; + meter_high "meter-high": 0xff4d5eff, 0xff4d5eff; + meter_off "meter-off": 0x1a2550ff, 0xd5ddefff; +} + +/// `@linear-gradient(angle, stop 0%, stop 55%, stop 100%)`: the window's +/// backdrop. GPUI's `Background` has two colour stops, so what it draws +/// (`Backdrop::to_gpui`, in the theme module) is the first and the last; the +/// middle one stays here for a front end that can use it. +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct Backdrop { + /// The direction in degrees, as CSS and Slint take it (0 is to the top). + pub angle: f32, + /// Three stops: colour and position (0 to 1). + pub stops: [(Rgba, f32); 3], +} + +impl Backdrop { + /// The dark backdrop. + pub const DARK: Self = Self { + angle: 160.0, + stops: [(Rgba(0x0a1230ff), 0.0), (Rgba(0x060a18ff), 0.55), (Rgba(0x0a1638ff), 1.0)], + }; + /// The light backdrop. + pub const LIGHT: Self = Self { + angle: 160.0, + stops: [(Rgba(0xf4f7fdff), 0.0), (Rgba(0xe6ecf8ff), 0.60), (Rgba(0xdde6f7ff), 1.0)], + }; +} + +/// The family of the UI font (`font-family` of `theme.slint`). +pub const FONT_FAMILY: &str = "Inter"; + +/// Every size, radius, weight and duration token of `theme.slint` for one +/// text size factor: lengths in logical pixels. +#[derive(Clone, Copy, Debug, PartialEq)] +pub struct Metrics { + /// `font-scale`: multiplies every type size and the sizes that follow text. + pub font_scale: f32, + /// `radius-xs`. + pub radius_xs: f32, + /// `radius-sm`. + pub radius_sm: f32, + /// `radius-md`. + pub radius_md: f32, + /// `radius-lg`. + pub radius_lg: f32, + /// `radius-xl`. + pub radius_xl: f32, + /// `radius-pill`. + pub radius_pill: f32, + /// `space-1`. + pub space_1: f32, + /// `space-2`. + pub space_2: f32, + /// `space-3`. + pub space_3: f32, + /// `space-4`. + pub space_4: f32, + /// `space-5`. + pub space_5: f32, + /// `space-6`. + pub space_6: f32, + /// `space-7`. + pub space_7: f32, + /// `space-8`. + pub space_8: f32, + /// `font-xs` (scaled). + pub font_xs: f32, + /// `font-sm` (scaled). + pub font_sm: f32, + /// `font-body` (scaled). + pub font_body: f32, + /// `font-md` (scaled). + pub font_md: f32, + /// `font-lg` (scaled). + pub font_lg: f32, + /// `font-xl` (scaled). + pub font_xl: f32, + /// `font-2xl` (scaled). + pub font_2xl: f32, + /// `font-3xl` (scaled). + pub font_3xl: f32, + /// `weight-regular`. + pub weight_regular: u16, + /// `weight-medium`. + pub weight_medium: u16, + /// `weight-semibold`. + pub weight_semibold: u16, + /// `weight-bold`. + pub weight_bold: u16, + /// `row-height` (scaled). + pub row_height: f32, + /// `control-height` (scaled). + pub control_height: f32, + /// `control-height-sm` (scaled). + pub control_height_sm: f32, + /// `icon-sm`. + pub icon_sm: f32, + /// `icon-md`. + pub icon_md: f32, + /// `icon-lg`. + pub icon_lg: f32, + /// `glow-width`: the ring around focused and selected items. + pub glow_width: f32, + /// `rail-width`. + pub rail_width: f32, + /// `sidebar-width`: 264 and more with large text. + pub sidebar_width: f32, + /// `topbar-height`: 44, taller when large text makes the controls taller. + pub topbar_height: f32, + /// `right-panel-min`. + pub right_panel_min: f32, + /// `fast`, in milliseconds. + pub fast_ms: u32, + /// `normal`, in milliseconds. + pub normal_ms: u32, +} + +impl Metrics { + /// The tokens at a text size factor (1 is the default). + pub fn new(font_scale: f32) -> Self { + let s = font_scale; + let control_height = 36.0 * s; + let space_3 = 8.0; + Self { + font_scale, + radius_xs: 4.0, + radius_sm: 6.0, + radius_md: 8.0, + radius_lg: 12.0, + radius_xl: 16.0, + radius_pill: 999.0, + space_1: 2.0, + space_2: 4.0, + space_3, + space_4: 12.0, + space_5: 16.0, + space_6: 20.0, + space_7: 24.0, + space_8: 32.0, + font_xs: 11.0 * s, + font_sm: 12.0 * s, + font_body: 14.0 * s, + font_md: 15.0 * s, + font_lg: 17.0 * s, + font_xl: 20.0 * s, + font_2xl: 24.0 * s, + font_3xl: 30.0 * s, + weight_regular: 400, + weight_medium: 500, + weight_semibold: 600, + weight_bold: 700, + row_height: 32.0 * s, + control_height, + control_height_sm: 28.0 * s, + icon_sm: 16.0, + icon_md: 20.0, + icon_lg: 24.0, + glow_width: 2.0, + rail_width: 72.0, + sidebar_width: 264.0 * s.max(1.0), + topbar_height: 44.0_f32.max(control_height + space_3), + right_panel_min: 220.0, + fast_ms: 120, + normal_ms: 200, + } + } + + /// Every number token by the name it has in `theme.slint`, in its order: + /// lengths in pixels, weights as they are, durations in milliseconds. + pub fn entries(&self) -> Vec<(&'static str, f64)> { + let m = self; + [ + ("radius-xs", m.radius_xs), + ("radius-sm", m.radius_sm), + ("radius-md", m.radius_md), + ("radius-lg", m.radius_lg), + ("radius-xl", m.radius_xl), + ("radius-pill", m.radius_pill), + ("space-1", m.space_1), + ("space-2", m.space_2), + ("space-3", m.space_3), + ("space-4", m.space_4), + ("space-5", m.space_5), + ("space-6", m.space_6), + ("space-7", m.space_7), + ("space-8", m.space_8), + ("font-xs", m.font_xs), + ("font-sm", m.font_sm), + ("font-body", m.font_body), + ("font-md", m.font_md), + ("font-lg", m.font_lg), + ("font-xl", m.font_xl), + ("font-2xl", m.font_2xl), + ("font-3xl", m.font_3xl), + ("row-height", m.row_height), + ("control-height", m.control_height), + ("control-height-sm", m.control_height_sm), + ("icon-sm", m.icon_sm), + ("icon-md", m.icon_md), + ("icon-lg", m.icon_lg), + ("glow-width", m.glow_width), + ("rail-width", m.rail_width), + ("sidebar-width", m.sidebar_width), + ("topbar-height", m.topbar_height), + ("right-panel-min", m.right_panel_min), + ] + .into_iter() + .map(|(name, value)| (name, f64::from(value))) + .chain([ + ("weight-regular", f64::from(m.weight_regular)), + ("weight-medium", f64::from(m.weight_medium)), + ("weight-semibold", f64::from(m.weight_semibold)), + ("weight-bold", f64::from(m.weight_bold)), + ("fast", f64::from(m.fast_ms)), + ("normal", f64::from(m.normal_ms)), + ]) + .collect() + } +} + +impl Default for Metrics { + fn default() -> Self { + Self::new(1.0) + } +} diff --git a/crates/voelin-gpui/src/view.rs b/crates/voelin-gpui/src/view.rs new file mode 100644 index 0000000..2886a40 --- /dev/null +++ b/crates/voelin-gpui/src/view.rs @@ -0,0 +1,92 @@ +//! The window's content. The shell is not built yet (slice 1 of the +//! migration): the window is the theme's page with the one line of the root +//! state that proves the loops run in a status bar, or, with +//! `VOELIN_OPEN=swatch`, the swatch page above that bar. + +use gpui_kit::{ + Context, Entity, IntoElement, ParentElement as _, Render, Styled as _, Window, div, px, +}; + +use crate::app::AppState; +use crate::dev::Page; +use crate::meter::Counters; +use crate::swatch::swatch; +use crate::theme::{VoelinTheme, hsla}; + +/// What the main window draws, from the root state and the theme. +pub struct MainView { + app: Entity, + page: Page, + counters: Counters, +} + +impl MainView { + /// A view of `app` that draws again whenever it changes, and that keeps + /// the theme in `system` mode in step with the window's appearance. + pub fn new( + app: Entity, + page: Page, + counters: Counters, + window: &mut Window, + cx: &mut Context, + ) -> Self { + cx.observe(&app, |_, _, cx| cx.notify()).detach(); + cx.observe_window_appearance(window, |_, window, cx| { + VoelinTheme::set_system_appearance(cx, window.appearance()); + }) + .detach(); + Self { app, page, counters } + } +} + +impl Render for MainView { + fn render(&mut self, _window: &mut Window, cx: &mut Context) -> impl IntoElement { + self.counters.renders.incr(); + let line = self.app.read(cx).state_line(); + let theme = VoelinTheme::global(cx).clone(); + let (c, m) = (&theme.colors, &theme.metrics); + let page = match self.page { + Page::Swatch => div().flex_1().overflow_hidden().child(swatch(&theme)), + Page::Shell => div() + .flex_1() + .flex() + .flex_col() + .items_center() + .justify_center() + .gap(px(m.space_3)) + .child( + div() + .text_size(px(m.font_3xl)) + .text_color(hsla(c.text)) + .child(voelin_platform::APP_NAME), + ) + .child( + div() + .text_size(px(m.font_body)) + .text_color(hsla(c.text_muted)) + .child("The desktop shell is the next slice."), + ), + }; + div() + .size_full() + .flex() + .flex_col() + .bg(hsla(c.bg_app)) + .text_color(hsla(c.text)) + .font_family(crate::theme::FONT_FAMILY) + .child(page) + .child( + div() + .h(px(m.control_height_sm)) + .px(px(m.space_5)) + .flex() + .items_center() + .bg(hsla(c.surface)) + .border_t_1() + .border_color(hsla(c.border)) + .text_size(px(m.font_sm)) + .text_color(hsla(c.text_secondary)) + .child(line), + ) + } +} diff --git a/crates/voelin-gpui/tests/launch_failure.rs b/crates/voelin-gpui/tests/launch_failure.rs new file mode 100644 index 0000000..2b860b9 --- /dev/null +++ b/crates/voelin-gpui/tests/launch_failure.rs @@ -0,0 +1,154 @@ +//! The binary's failure path, end to end: when the main window cannot be +//! opened (no display server, no Vulkan or GL driver), `voelin-gpui` prints +//! why and exits with status 1 instead of staying alive with no window and no +//! message. +//! +//! It has to start the real binary. GPUI's Linux platform runs the launch +//! callback before it starts its event loop, and the loop forgets a quit asked +//! for before it started, so a failure handled by quitting inside the +//! callback hung the process; the test platform of the unit tests has no such +//! loop and cannot show it. +//! +//! The no-driver test needs a test X server in `VOELIN_X11_TEST_DISPLAY` (an +//! Xvfb, as CI has; never the desktop's display) and is skipped without one. + +#![cfg(target_os = "linux")] + +use std::fs; +use std::os::unix::fs::PermissionsExt as _; +use std::path::{Path, PathBuf}; +use std::process::{Command, ExitStatus, Stdio}; +use std::time::{Duration, Instant}; + +/// Where the drivers are not: the Vulkan loader, EGL's vendor library +/// directory and Mesa's driver directory all point here. +const NOWHERE: &str = "/nonexistent-voelin-gpui-test"; + +/// Loaded machines are slow, so the wait is generous; a run that works takes a +/// second or two. +const WAIT: Duration = Duration::from_secs(120); + +/// The scratch directory of one run, removed at the end. +struct Scratch(PathBuf); + +impl Drop for Scratch { + fn drop(&mut self) { + let _ = fs::remove_dir_all(&self.0); + } +} + +/// How a run of the binary went. +enum Outcome { + /// It ended, with this status and this much of the log. + Ended(ExitStatus, String), + /// It picked a GPU: the window can open, so nothing failed. + Opened, + /// It was still running after [`WAIT`] with no GPU picked. + Hung(String), +} + +/// Run the binary with the drivers hidden (`hide_drivers`) on `display` +/// (none: no display server at all) and wait for it to end, to pick a GPU or +/// to run out of time. Nothing of the user's state, display or session bus is +/// in its environment. +fn run_binary(name: &str, display: Option<&str>, hide_drivers: bool) -> Outcome { + let scratch = Scratch( + Path::new(env!("CARGO_TARGET_TMPDIR")).join(format!("{name}-{}", std::process::id())), + ); + let home = scratch.0.join("home"); + let runtime = scratch.0.join("runtime"); + fs::create_dir_all(&runtime).unwrap(); + fs::set_permissions(&runtime, fs::Permissions::from_mode(0o700)).unwrap(); + let log = scratch.0.join("stderr.log"); + + let mut command = Command::new(env!("CARGO_BIN_EXE_voelin-gpui")); + command + .env_remove("DISPLAY") + .env_remove("WAYLAND_DISPLAY") + .env_remove("WAYLAND_SOCKET") + .env_remove("XDG_SESSION_TYPE") + .env_remove("DBUS_SESSION_BUS_ADDRESS") + .env_remove("RUST_LOG") + .env("HOME", &home) + .env("XDG_RUNTIME_DIR", &runtime) + .env("XDG_CONFIG_HOME", home.join("config")) + .env("XDG_DATA_HOME", home.join("data")) + .env("XDG_STATE_HOME", home.join("state")) + .env("XDG_CACHE_HOME", home.join("cache")) + .env("VOELIN_DATA_DIR", home.join("voelin")) + // The log line that tells a GPU was picked. + .env("VOELIN_LOG", "warn,voelin_gpui=info,gpui_wgpu=info") + .stdin(Stdio::null()) + .stdout(Stdio::null()) + .stderr(fs::File::create(&log).unwrap()); + if let Some(display) = display { + command.env("DISPLAY", display); + } + if hide_drivers { + command + .env("VK_DRIVER_FILES", format!("{NOWHERE}/vulkan.json")) + .env("VK_ICD_FILENAMES", format!("{NOWHERE}/vulkan.json")) + .env("__EGL_VENDOR_LIBRARY_DIRS", NOWHERE) + .env("__EGL_VENDOR_LIBRARY_FILENAMES", format!("{NOWHERE}/egl.json")) + .env("LIBGL_DRIVERS_PATH", NOWHERE); + } + let mut child = command.spawn().unwrap(); + + let deadline = Instant::now() + WAIT; + loop { + if let Some(status) = child.try_wait().unwrap() { + return Outcome::Ended(status, fs::read_to_string(&log).unwrap_or_default()); + } + let seen = fs::read_to_string(&log).unwrap_or_default(); + let outcome = if seen.contains("Selected GPU adapter") { + Outcome::Opened + } else if Instant::now() > deadline { + Outcome::Hung(seen) + } else { + std::thread::sleep(Duration::from_millis(50)); + continue; + }; + let _ = child.kill(); + let _ = child.wait(); + return outcome; + } +} + +#[test] +fn a_window_that_cannot_open_for_want_of_a_driver_ends_the_binary_with_an_error() { + let Some(display) = std::env::var("VOELIN_X11_TEST_DISPLAY").ok().filter(|d| !d.is_empty()) + else { + eprintln!("skipped: VOELIN_X11_TEST_DISPLAY is not set"); + return; + }; + match run_binary("no-driver", Some(&display), true) { + Outcome::Ended(status, seen) => { + assert_eq!(status.code(), Some(1), "{seen}"); + assert!(seen.contains("cannot open the main window"), "{seen}"); + } + Outcome::Opened => eprintln!( + "skipped: this machine's driver was found in spite of the environment, \ + so the window can open" + ), + Outcome::Hung(seen) => panic!( + "still running after {WAIT:?} with no window and no GPU: a quit asked for in the \ + launch callback is lost\n{seen}" + ), + } +} + +#[test] +fn without_a_display_server_the_binary_ends_with_an_error() { + match run_binary("no-display", None, false) { + Outcome::Ended(status, seen) => { + assert_eq!(status.code(), Some(1), "{seen}"); + assert!(seen.contains("cannot open the main window"), "{seen}"); + assert!(seen.contains("no display"), "{seen}"); + } + Outcome::Opened => panic!("a GPU was picked without a display server"), + Outcome::Hung(seen) => panic!( + "still running after {WAIT:?} with no window: GPUI's headless platform keeps \ + the app alive\n{seen}" + ), + } +} diff --git a/crates/voelin-media/Cargo.toml b/crates/voelin-media/Cargo.toml index 07ed387..cf5ad7a 100644 --- a/crates/voelin-media/Cargo.toml +++ b/crates/voelin-media/Cargo.toml @@ -69,7 +69,13 @@ tracing = "0.1.44" yuv = "0.8.19" [target.'cfg(target_os = "linux")'.dependencies] -ashpd = { version = "0.13.13", default-features = false, features = ["camera", "screencast", "tokio"], optional = true } +# `async-io`, not `tokio`: GPUI's Linux backend enables ashpd's `async-io`, ashpd +# refuses both at once, and a front end holds the portals and GPUI in one binary. +# zbus then runs every connection on an I/O thread of its own, whichever thread +# builds it: no crate of the workspace turns zbus's `tokio` feature on (with it +# zbus would pick tokio for a connection made inside a tokio runtime, and ashpd +# shares one connection per process with every later caller). +ashpd = { version = "0.13.13", default-features = false, features = ["camera", "screencast", "async-io"], optional = true } memmap2 = { version = "0.9.11", optional = true } pipewire = { version = "0.10.1", optional = true } rustix = { version = "1.1.5", features = ["event", "fs", "stdio"], optional = true } diff --git a/crates/voelin-media/src/capture/mod.rs b/crates/voelin-media/src/capture/mod.rs index f0568d9..d2b91bb 100644 --- a/crates/voelin-media/src/capture/mod.rs +++ b/crates/voelin-media/src/capture/mod.rs @@ -279,14 +279,14 @@ impl FrameSink for QueueSink { pub fn forward(mut frames: FrameReceiver, mut sink: Box) -> Result<()> { std::thread::Builder::new().name("voelin-capture-forward".into()).spawn(move || { loop { - match frames.recv_timeout(Duration::from_millis(100)) { - Some(frame) => { - if sink.wants(frame.timestamp) && !sink.frame(frame.view()) { - break; - } + let Some(frame) = frames.recv_timeout(Duration::from_millis(100)) else { + if frames.is_closed() { + break; } - None if frames.is_closed() => break, - None => {} + continue; + }; + if sink.wants(frame.timestamp) && !sink.frame(frame.view()) { + break; } } })?; diff --git a/crates/voelin-media/src/capture/portal.rs b/crates/voelin-media/src/capture/portal.rs index e171b47..d76a104 100644 --- a/crates/voelin-media/src/capture/portal.rs +++ b/crates/voelin-media/src/capture/portal.rs @@ -181,7 +181,9 @@ impl ScreenCapture for PortalCapture { } /// Asks the user through the portal dialog (unless a restore token - /// applies). Needs a tokio runtime (the D-Bus connection runs on it). + /// applies). Any executor will do: ashpd runs on zbus's `async-io` in every + /// binary of the workspace (no crate turns zbus's `tokio` feature on), whose + /// connection has an I/O thread of its own, whichever thread builds it. fn start( &mut self, source: &SourceId, diff --git a/crates/voelin-media/src/ffmpeg/sys.rs b/crates/voelin-media/src/ffmpeg/sys.rs index f72635d..a6bf3bd 100644 --- a/crates/voelin-media/src/ffmpeg/sys.rs +++ b/crates/voelin-media/src/ffmpeg/sys.rs @@ -446,7 +446,7 @@ fn files_in(dir: &Path, base: &str) -> Vec { matches.then(|| (major_of(&name).unwrap_or(0), e.path())) }) .collect(); - found.sort_by(|a, b| b.0.cmp(&a.0)); + found.sort_by_key(|entry| std::cmp::Reverse(entry.0)); found.into_iter().map(|(_, p)| p).collect() } @@ -466,7 +466,7 @@ fn ldconfig(base: &str) -> Vec { name.starts_with(&prefix).then(|| (major_of(name).unwrap_or(0), PathBuf::from(path))) }) .collect(); - found.sort_by(|a, b| b.0.cmp(&a.0)); + found.sort_by_key(|entry| std::cmp::Reverse(entry.0)); found.into_iter().map(|(_, p)| p).collect() } diff --git a/crates/voelin-media/src/studio/camera.rs b/crates/voelin-media/src/studio/camera.rs index 298c967..fbbe8d0 100644 --- a/crates/voelin-media/src/studio/camera.rs +++ b/crates/voelin-media/src/studio/camera.rs @@ -603,8 +603,8 @@ mod v4l2 { // Seconds per frame; a stepwise range starts with its smallest // interval, which is the highest rate. let (num, den) = (entry.interval[0], entry.interval[1]); - if num > 0 { - best = best.max(den / num); + if let Some(rate) = den.checked_div(num) { + best = best.max(rate); } if entry.type_ != FRMIVAL_DISCRETE { break; diff --git a/crates/voelin-platform/Cargo.toml b/crates/voelin-platform/Cargo.toml index bf848cc..58a0d1f 100644 --- a/crates/voelin-platform/Cargo.toml +++ b/crates/voelin-platform/Cargo.toml @@ -24,9 +24,11 @@ tokio = { version = "1", features = ["rt", "sync", "time"] } tracing = "0.1" [target.'cfg(all(unix, not(target_os = "macos")))'.dependencies] -ashpd = { version = "0.13", default-features = false, features = ["tokio", "global_shortcuts", "file_chooser", "proxy_resolver"], optional = true } +# `async-io`, not `tokio`, as in voelin-media: GPUI enables ashpd's `async-io` and +# ashpd refuses both features at once. +ashpd = { version = "0.13", default-features = false, features = ["async-io", "global_shortcuts", "file_chooser", "proxy_resolver"], optional = true } futures-util = { version = "0.3", optional = true } -notify-rust = { version = "4.18", default-features = false, features = ["z-with-tokio"] } +notify-rust = { version = "4.18", default-features = false, features = ["z"] } x11rb = { version = "0.13", features = ["xinput"], optional = true } [target.'cfg(windows)'.dependencies] @@ -46,8 +48,11 @@ tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] } [target.'cfg(all(unix, not(target_os = "macos")))'.dev-dependencies] x11rb = { version = "0.13", features = ["xinput", "xtest"] } # A stand-in desktop portal on a private session bus (tests/proxy.rs); the -# zbus ashpd uses. -zbus = { version = "5", default-features = false, features = ["tokio"] } +# zbus ashpd uses, on `async-io` like every other zbus in the workspace: a +# `tokio` here would put the executor choice of ashpd's connection (zbus picks +# tokio when a tokio runtime is current where it builds the connection) into +# the tests alone, and tests/proxy.rs checks that the choice does not matter. +zbus = { version = "5", default-features = false, features = ["async-io"] } [lints] workspace = true diff --git a/crates/voelin-platform/tests/proxy.rs b/crates/voelin-platform/tests/proxy.rs index f9a1ed0..998ca35 100644 --- a/crates/voelin-platform/tests/proxy.rs +++ b/crates/voelin-platform/tests/proxy.rs @@ -5,6 +5,11 @@ //! the real one is started and answers instead. Without `dbus-run-session`, //! or a bus daemon for it, the test says so and checks nothing. Its own test //! binary: answers are kept process-wide. +//! +//! The second and third tests call ashpd from a thread with no tokio runtime, +//! as GPUI's executor would: ashpd runs on zbus's `async-io`, whichever thread +//! built its connection (the third lets a tokio caller build it first; +//! docs/design/gpui-spikes.md, "Dependencies"). #![cfg(all(unix, not(target_os = "macos"), feature = "portal"))] @@ -61,17 +66,17 @@ fn bus_config(dir: &std::path::Path) -> String { ) } -/// Run this test again under `dbus-run-session` on a bus of its own, and say -/// nothing was checked when that bus cannot be had. -fn on_a_bus_of_its_own() { +/// Run the test `name` again under `dbus-run-session` on a bus of its own, and +/// say nothing was checked when that bus cannot be had. +fn on_a_bus_of_its_own(name: &str) { let dir = std::env::temp_dir(); - let config = dir.join(format!("voelin-proxy-test-bus-{}.conf", std::process::id())); + let config = dir.join(format!("voelin-proxy-test-bus-{}-{name}.conf", std::process::id())); std::fs::write(&config, bus_config(&dir)).unwrap(); let run = std::process::Command::new("dbus-run-session") .arg(format!("--config-file={}", config.display())) .arg("--") .arg(std::env::current_exe().unwrap()) - .args(["--exact", "the_portal_names_the_proxy", "--nocapture", "--test-threads=1"]) + .args(["--exact", name, "--nocapture", "--test-threads=1"]) .env(ON_ITS_OWN_BUS, "1") .output(); let _ = std::fs::remove_file(&config); @@ -104,7 +109,7 @@ fn on_a_bus_of_its_own() { #[tokio::test] async fn the_portal_names_the_proxy() { if std::env::var_os(ON_ITS_OWN_BUS).is_none() { - on_a_bus_of_its_own(); + on_a_bus_of_its_own("the_portal_names_the_proxy"); return; } let lookups = Arc::new(AtomicU32::new(0)); @@ -133,3 +138,96 @@ async fn the_portal_names_the_proxy() { assert_eq!(proxy_for("https://capped.example:8443/").await, None); assert_eq!(lookups.load(Ordering::SeqCst), 2); } + +/// Run `future` on the calling thread, which parks while it waits: an executor +/// of no runtime at all, as a GPUI foreground task is to ashpd. +fn block_on(future: F) -> F::Output { + struct Unpark(std::thread::Thread); + impl std::task::Wake for Unpark { + fn wake(self: Arc) { + self.0.unpark(); + } + } + let waker = std::task::Waker::from(Arc::new(Unpark(std::thread::current()))); + let mut cx = std::task::Context::from_waker(&waker); + let mut future = std::pin::pin!(future); + loop { + if let std::task::Poll::Ready(output) = future.as_mut().poll(&mut cx) { + return output; + } + std::thread::park(); + } +} + +/// The stand-in portal on the bus of its own, served from the calling task. +async fn stand_in_portal(lookups: &Arc) -> zbus::Connection { + zbus::connection::Builder::session() + .unwrap() + .name("org.freedesktop.portal.Desktop") + .unwrap() + .serve_at("/org/freedesktop/portal/desktop", Resolver { lookups: lookups.clone() }) + .unwrap() + .build() + .await + .unwrap() +} + +/// A lookup through ashpd, from the calling task. +async fn lookup() -> Vec { + let resolver = ashpd::desktop::proxy_resolver::ProxyResolver::new().await.unwrap(); + let uri = ashpd::Uri::parse("https://capped.example/").unwrap(); + resolver.lookup(&uri).await.unwrap() +} + +/// A lookup through ashpd from a thread of its own with no runtime, blocking +/// the caller's task for it (the pool's threads, `spawn_blocking`, have the +/// runtime in reach). The stand-in portal runs on the test's runtime: keep it +/// free while waiting. +async fn lookup_without_a_runtime() -> Vec { + let caller = std::thread::spawn(|| { + assert!(tokio::runtime::Handle::try_current().is_err(), "this thread has no runtime"); + block_on(lookup()).iter().map(|uri| uri.as_str().to_owned()).collect::>() + }); + tokio::task::spawn_blocking(move || caller.join().unwrap()).await.unwrap() +} + +/// ashpd with `async-io`: a caller outside any tokio runtime gets its answer, +/// the connection's I/O running on zbus's own thread. +#[tokio::test(flavor = "multi_thread")] +async fn the_portal_answers_a_caller_without_a_runtime() { + const TEST: &str = "the_portal_answers_a_caller_without_a_runtime"; + if std::env::var_os(ON_ITS_OWN_BUS).is_none() { + on_a_bus_of_its_own(TEST); + return; + } + let lookups = Arc::new(AtomicU32::new(0)); + let _portal = stand_in_portal(&lookups).await; + assert_eq!(lookup_without_a_runtime().await, ["socks://127.0.0.1:2080"]); + assert_eq!(lookups.load(Ordering::SeqCst), 1); +} + +/// ashpd keeps one session connection for the process, and zbus picks the +/// executor of a connection once, when it builds it: tokio if a tokio runtime +/// is current on that thread and zbus has its `tokio` feature on, its own +/// `async-io` thread otherwise. If the engine's runtime made the connection +/// first, a later caller with no runtime (a GPUI foreground task) would find a +/// tokio connection with no reactor to run on and panic ("there is no reactor +/// running" in zbus's property cache). With zbus on `async-io` alone in every +/// binary (notify-rust without `z-with-tokio`, no zbus `tokio` here either) +/// the order does not matter. +#[tokio::test(flavor = "multi_thread")] +async fn the_portal_answers_a_caller_without_a_runtime_after_a_tokio_caller() { + const TEST: &str = "the_portal_answers_a_caller_without_a_runtime_after_a_tokio_caller"; + if std::env::var_os(ON_ITS_OWN_BUS).is_none() { + on_a_bus_of_its_own(TEST); + return; + } + let lookups = Arc::new(AtomicU32::new(0)); + let _portal = stand_in_portal(&lookups).await; + // The tokio caller first: it builds the process's session connection. + let answer: Vec<_> = lookup().await.iter().map(|uri| uri.as_str().to_owned()).collect(); + assert_eq!(answer, ["socks://127.0.0.1:2080"]); + // Then the caller with no runtime, on the same connection. + assert_eq!(lookup_without_a_runtime().await, ["socks://127.0.0.1:2080"]); + assert_eq!(lookups.load(Ordering::SeqCst), 2); +} diff --git a/crates/voelin-stream/src/peer.rs b/crates/voelin-stream/src/peer.rs index 9777f5b..71b10df 100644 --- a/crates/voelin-stream/src/peer.rs +++ b/crates/voelin-stream/src/peer.rs @@ -1075,7 +1075,8 @@ impl Task { } Event::IceConnectionStateChange(IceConnectionState::Disconnected) => return false, Event::MediaAdded(m) => { - if !self.mids.iter().any(|(mid, _)| *mid == m.mid) { + let known = self.mids.iter().any(|(mid, _)| *mid == m.mid); + if !known { self.mids.push((m.mid, m.kind)); } } diff --git a/crates/voelin-stream/src/session.rs b/crates/voelin-stream/src/session.rs index 694624d..9899dc1 100644 --- a/crates/voelin-stream/src/session.rs +++ b/crates/voelin-stream/src/session.rs @@ -801,7 +801,8 @@ impl StreamerSession { } StreamNotification::JoinRequest { viewer, remove: true, .. } | StreamNotification::ViewerLeft { viewer, .. } => { - if self.viewers.remove(&viewer.0).is_some() { + let was_viewer = self.viewers.remove(&viewer.0).is_some(); + if was_viewer { self.emit_viewers(out); self.update_targets(out); } diff --git a/deny.toml b/deny.toml index 94ece77..0a39c8f 100644 --- a/deny.toml +++ b/deny.toml @@ -53,6 +53,16 @@ allow = [ # Permissive BSD-style license of bzip2, kept by its pure Rust port # (libbz2-rs-sys), which voelin-media uses to unpack Cisco's OpenH264 download. "bzip2-1.0.6", + # The GPUI front end (gpui-kit, crates/voelin-gpui) brought two licences no + # other crate of ours has. 0BSD, the BSD Zero Clause License (OSI approved; + # MIT without the notice requirement): `enum-iterator` and + # `enum-iterator-derive`, under gpui-component. CC0-1.0, Creative Commons + # Zero (a public domain dedication; no notice to carry): `notify` 8, the + # file watcher of gpui-component, and `tiny-keccak`, a hash of the X input + # method client under gpui-pre-linux (`zed-xim`, through `ahash`'s + # `const-random`). + "0BSD", + "CC0-1.0", ] confidence-threshold = 0.9 diff --git a/docker/linux.Dockerfile b/docker/linux.Dockerfile index 0b7a641..4c7d652 100644 --- a/docker/linux.Dockerfile +++ b/docker/linux.Dockerfile @@ -19,7 +19,7 @@ ARG DEBIAN_FRONTEND=noninteractive # the .deb's dependencies and patchelf for the .tar.gz's bundled libraries. RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential ca-certificates cmake curl dpkg-dev git openssh-client patchelf pkg-config \ - libasound2-dev libfontconfig1-dev libxkbcommon-dev \ + libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev \ libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev \ && rm -rf /var/lib/apt/lists/* # Extra CA certificates (PEM, one or more), for building behind a diff --git a/docs/building.md b/docs/building.md index d6cb80c..84c4e9f 100644 --- a/docs/building.md +++ b/docs/building.md @@ -119,10 +119,25 @@ the proxy is on localhost. If the proxy inspects TLS, set ## Locally without Docker +- **Rust:** 1.95, the channel `rust-toolchain.toml` pins; `rustup` installs it + on the first `cargo` run in the checkout. The workspace's `rust-version` is + 1.95 too, the oldest Rust the GPUI front end's libraries build with (they + call `std::hint::cold_path`, stable since 1.95.0), so a distribution's older + `rustc` does not build the workspace. - **Linux:** the packages from the table above need - `sudo apt install libasound2-dev libfontconfig1-dev libxkbcommon-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev cmake dpkg-dev patchelf`, + `sudo apt install libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev libxcb1-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev cmake dpkg-dev patchelf`, then `cargo build --release --locked -p voelin-ui -p voelin-gateway` and `scripts/package.sh linux`. +- **The GPUI front end** (`cargo build -p voelin-gpui --release`, under construction, + in no package yet) builds with the same development packages, which include + `libxkbcommon-x11-dev` and `libxcb1-dev` (it links `libxkbcommon-x11` and + `libxcb`, as `readelf -d` on the binary shows; the list above did not have + their development packages before). At run time it needs those libraries installed, opens `libwayland-client`, + the Vulkan loader (`libvulkan.so.1`) and `libEGL.so.1` by name, and draws + through wgpu: a Vulkan driver (Mesa's RADV, ANV or NVK, NVIDIA's) or OpenGL, + and in a virtual machine or a remote desktop Mesa's lavapipe + (`mesa-vulkan-drivers`) in software. X11 needs a window manager for + fullscreen and close requests. - **Windows:** [packaging/windows/README.md](../packaging/windows/README.md) (MSVC, vcpkg libvpx and dav1d, NSIS), then `bash scripts/fetch-ffmpeg-windows.sh ffmpeg && FFMPEG_DLL_DIR=ffmpeg bash scripts/package.sh windows` diff --git a/docs/ci.md b/docs/ci.md index d388927..3c43ed8 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -89,9 +89,9 @@ the separate `release.yml` workflow below. The workflow shares the repository's local system-dependencies action with GitHub CI and bootstraps rustup if absent, then installs the toolchain and -components pinned in `rust-toolchain.toml`. Checkout uses a fully qualified -GitHub action URL rather than depending on the instance's action-source -configuration. +components pinned in `rust-toolchain.toml` (1.95: a channel change there is all +the runner needs). Checkout uses a fully qualified GitHub action URL rather +than depending on the instance's action-source configuration. No GitHub cache/artifact service or reusable-workflow support is required. The job does not need a Docker socket mounted inside its container; the @@ -131,8 +131,9 @@ docker run --rm --init -v "$PWD":/src -w /src -e HOME=/root \ ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git apt-get update && apt-get install -y --no-install-recommends \ build-essential ca-certificates cmake curl git jq pkg-config python3 \ - libasound2-dev libfontconfig1-dev libxkbcommon-dev libvpx-dev \ - libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev xvfb xauth + libasound2-dev libfontconfig1-dev libxkbcommon-dev libxkbcommon-x11-dev \ + libxcb1-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev \ + libclang-dev xvfb xauth curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs | \ sh -s -- -y --profile minimal --default-toolchain none . "$CARGO_HOME/env" && rustup toolchain install diff --git a/docs/design/gpui-spikes.md b/docs/design/gpui-spikes.md index a85b15e..7b45fa8 100644 --- a/docs/design/gpui-spikes.md +++ b/docs/design/gpui-spikes.md @@ -14,8 +14,25 @@ listed in "History"), and every figure and check below was run again on the commits after it: nightly clippy is clean (`as_chunks` in `bgra.rs`, and a second lint that the first hid), the video headline says "raw" with the quiet-window pipeline figure beside it, and the `--no-drop` row's XDamage -exception is explained (a counter window longer than the case). `gpui-kit` -0.8.1 of 2026-10-26 is still unmeasured, as "The version to pin" says. +exception is explained (a counter window longer than the case). Step 3 +(2026-10-27) rebuilt the three spikes on `gpui-kit` 0.8.1 of 2026-10-26 and +ran each README's measurement command once: they build, every check passes +and the per-frame cost is 0.8.0's, so the pin is 0.8.1 ("The version to +pin"); the figures on this page are still 0.8.0's, but for the two video +cases the foundation's review ran again on a quiet machine. The same day the +foundation of step 3 landed on `phase5/gpui-foundation` (items 1 to 4 and 6 +of "What step 3's first slice must contain": Rust 1.95, ashpd on `async-io`, +the `voelin-gpui` crate with its root entity, the theme with Inter and Lucide, +the cost meter; item 5, the shell, is next): what exists, how to run it and +the slices that follow are in [docs/ui.md](../ui.md), "The GPUI front end". +The foundation was reviewed and gated the same day (a Sonnet review, then the +Opus gate: no blocker and no major, six minors), and the minors are closed in +the commits after it: the meter's `/proc` test waits for a CPU tick instead of +burning 60 ms, zbus runs on `async-io` alone in every binary (with a test for +the order of ashpd's callers), the lock figures and the Lucide 1.43 credit are +corrected, the slice list points at "Open choices for step 3", and the parity +test sees a second brush or string. The risks the review and the gate left to +the slices that meet them are in docs/ui.md, "For the next slices". | Spike | The plan's no-go | Seen (software rendering, see Setup) | Verdict | |---|---|---|---| @@ -25,7 +42,8 @@ exception is explained (a counter window longer than the case). `gpui-kit` Before step 3 can start: Rust 1.95 for the client (no `gpui-kit` builds on 1.94) and the client's ashpd on `async-io` (GPUI's and the client's ashpd -features cannot be built together); both are under "Settled for step 3". +features cannot be built together); both are under "Settled for step 3", and +both are done (the first two commits of `phase5/gpui-foundation`). ## Setup @@ -36,7 +54,7 @@ Every figure on this page comes from one machine and one software stack: | Machine | AMD Ryzen 9 7950X3D (16 cores, 32 threads), 61 GiB, NixOS; no GPU was used | | Display | Xvfb `:91`, 3840x2160x24, openbox, a private D-Bus bus (`spikes/gpui/headless.sh`); the Wayland runs on sway's headless backend with its pixman renderer (`headless-wayland.sh`) | | Device | Mesa 26.2.5 lavapipe (`llvmpipe (LLVM 21.1.8, 256 bits)`) through wgpu's Vulkan backend, the only Vulkan driver (`VK_DRIVER_FILES` = its `lvp_icd.x86_64.json`); GPUI's log: "Selected GPU adapter: llvmpipe … (Vulkan)" | -| GPUI | `gpui-kit` 0.8.0 (`gpui-pre` 0.3.9, `gpui-component` 0.8.0, `gpui-kit-assets` 0.8.0) | +| GPUI | `gpui-kit` 0.8.0 (`gpui-pre` 0.3.9, `gpui-component` 0.8.0, `gpui-kit-assets` 0.8.0) for every figure on this page; the rebuild on 0.8.1 is under "The version to pin" | | Rust | 1.95.0 (fenix, `spikes/gpui/shell.sh`); nixpkgs 02c087f3fe67 for the libraries and tools | | Load | another task's load generator kept the machine busy for part of the day; every run records the load average before and after it (`.load`), and the tables give it | @@ -362,16 +380,67 @@ portal's, see "Dependencies"). ### The version to pin -**`gpui-kit` 0.8.0, exactly**, the version measured here (gpui-pre 0.3.9). -0.8.1 (gpui-pre 0.3.10) came out on 2026-10-26, after these spikes were -built; step 3's first commit moves to the newest release only after -building the three spikes on it (`cargo update -p gpui-kit --precise` in -`spikes/gpui`, then the READMEs' runs). A pre-1.0 release may change any -API (the pin is exact for that reason, and `gpui-kit` pins its `gpui-pre` -exactly too); upgrades are commits of their own. +**`gpui-kit` 0.8.1, exactly** (`gpui-pre` 0.3.10, `gpui-component` 0.8.1, +`gpui-kit-assets` 0.8.1; wgpu 30 where 0.8.0 had 29), in the root workspace's +`[workspace.dependencies]` and in `spikes/gpui`. The figures on this page were +measured on 0.8.0 (`gpui-pre` 0.3.9), the version the spikes were built on; +0.8.1 came out on 2026-10-26, a day after, and step 3's first commits rebuilt +the three spikes on it before moving the client to it. A pre-1.0 release may +change any API (the pin is exact for that reason, and `gpui-kit` pins its +`gpui-pre` exactly too); upgrades are commits of their own. -**Rust 1.95 or newer.** No `gpui-kit` release builds on the client's Rust -1.94: every `gpui-pre` 0.3.x (0.3.0 to 0.3.10, which every `gpui-kit` from +**What the rebuild on 0.8.1 found** (2026-10-27, Xvfb `:96` with openbox and +a private D-Bus bus from `headless.sh`, Mesa 26.2.5 lavapipe through wgpu's +Vulkan backend: "Selected GPU adapter: llvmpipe (LLVM 21.1.8, 256 bits) +(Vulkan)"; Rust 1.95.0; one run of each README's measurement command): + +- `cargo update -p gpui-kit --precise 0.8.1` (after `=0.8.1` in + `spikes/gpui/Cargo.toml`) moves 40 packages of the lock (1,069 entries + before, 1,065 after): `gpui-kit`, `gpui-base`, `gpui-component` and + `gpui-kit-assets` 0.8.0 to 0.8.1, the 19 `gpui-pre*` crates 0.3.9 to 0.3.10, + wgpu (and its `-core`, `-hal`, `-types` and `-naga-bridge`) 29.0.4 to 30.0.1, + naga 29 to 30, taffy 0.13 to 0.15, `bit-set` 0.9 to 0.10; `gpu-descriptor`, + `gpu-descriptor-types` and `hexf-parse` go, `gpui-pre-ios`, `naga-types` and + `objc2-ui-kit` come. **No source change**: the three spikes build as they + were (release, 8 min 54 s on 32 threads at a load average of 70). +- **Every check passes**: the composer's `drive.sh` 8 PASS (and the emoji + probe), `ime.sh` 3 PASS (X11 preedit with fcitx5 and Pinyin), the windows' + `drive.sh` 11 PASS (the second window, focus, fullscreen, the global hotkey + with the studio window active, both closes). The composer's screenshot of + the sample chat differs from the committed one in 579 of its 900,000 pixels + (ImageMagick `compare`; by eye, the input's caret). +- **The video cases cost what they cost on 0.8.0 per frame.** The machine was + busier than for the 0.8.0 runs (load average 64 to 80 against 28 to 53; + another task's builds), so the frame rates are lower and are not the + comparison: the CPU a shown frame costs is (the process's CPU in percent of + a core divided by the frames shown a second, which is 0.1 core-seconds a frame). + +| Case (70 s, 10 not counted) | Shown fps | CPU, process | CPU % per fps shown | Load | 0.8.0's | +|---|---|---|---|---|---| +| static 2560x1440 (repaints) | 22.7 | 259 % (llvmpipe 250) | 11.4 | 71 / 76 | 11.7 (727 % at 62 fps) | +| raw 2560x1440, 60 fps source | 13.4 | 174 % (llvmpipe 149, main 13.7, converter 8.0) | 13.0 | 76 / 64 | 12.5 to 13.1 (525 % at 41.9; 642 % at 49.0) | + + The raw case's memory stays flat (493.8 MiB at the start of the steady part, + 473.3 at its end), so `cx.drop_image` keeps the atlas flat on 0.8.1 too; the + negative control without it (`nodrop-1440p`, 12 s: 2.7 pictures shown a + second at this load) grew by 408 MiB in its 10 s steady part, a 14 MiB + picture for each one shown, where 0.8.0 grew by 1.9 GiB at 13.9 shown a + second. The windows case with both windows open (`windows-both`, 45 s; the + other two cases were not run) took 123 % of a core, showed the preview 14.4 + times of 15 a second, and its memory stayed flat. What the machine's load + hid is the absolute frame rate: the busy machine's table above does not + reproduce the 0.8.0 figures (62 fps static, 42 to 49 raw), only the cost per + frame. The review of the foundation ran the two cases again on a quiet + machine (load average 8 to 12, llvmpipe): **static 2560x1440 showed 61 fps + and raw 2560x1440 59.1 fps**, so the 1440p60 figures hold on 0.8.1 in + software (the raw case above 0.8.0's range); the first GPU run, in the + viewer slice, still measures the rates on a real device. +- Nothing in the spikes needed a patch for 0.8.1. The one-line emoji patch + (below) is still where it was: `load_family` is unchanged in gpui-pre-wgpu + 0.3.10. + +**Rust 1.95 or newer.** No `gpui-kit` release builds on the Rust 1.94 the +client used before 5ce5c0d: every `gpui-pre` 0.3.x (0.3.0 to 0.3.10, which every `gpui-kit` from 0.6.0 to 0.8.1 pins) calls `std::hint::cold_path`, stable since 1.95.0: ```text @@ -407,9 +476,40 @@ the raw source's `for n in 0u64..` in `spikes/gpui/video/src/main.rs`, now (X11 capture and hotkeys only). **Step 3 must move the client's ashpd use to `async-io`** before `voelin-ui` can depend on gpui-kit with PipeWire capture and the portal hotkey; zbus with `async-io` runs its own I/O - thread, so it does not need GPUI's executor. -- **Size and compile time.** The spikes' lock has 1,069 packages; the - release binaries are 390 to 480 MB with line tables. A full debug build + thread, so it does not need GPUI's executor. *Done:* voelin-media's + `pipewire` and voelin-platform's `portal` features ask ashpd for `async-io`, + and `voelin-gpui` holds both (it depends on `voelin-core` with + `media-desktop`, which brings PipeWire, and on `voelin-platform` with its + portal feature). What zbus 5.19 does with the features (read in its + source): with `async-io` and `tokio` both compiled in it picks an executor + once per connection, tokio when a tokio runtime is current on the thread that + builds it and `async-io` with an I/O thread of its own otherwise. ashpd keeps + one session connection for the whole process (a static in its `proxy.rs`), so + the first ashpd caller decides the executor of every later portal call: when + a tokio caller builds it first, a later `Proxy::new` from a thread with no + runtime (a GPUI foreground task) panics with "there is no reactor running" + (`get_property("version")` sets up zbus's property cache, which calls + `tokio::task::spawn`). The move of e325b65 left both compiled in + (voelin-platform's notify-rust asked zbus for `tokio`, `z-with-tokio`), and + the merged binary was safe only because GPUI's colour-scheme call builds the + connection before the engine's portal calls do. *Fixed* (the Opus gate's + option a): notify-rust asks for `z` (`async-io`), so zbus is compiled with + `async-io` alone in every binary, the Slint app's included, and every + connection has an I/O thread of its own whoever builds it first + (`cargo tree -e features -i zbus` names `tokio` nowhere; voelin-platform's + own test dependency on zbus is `async-io` as well, since a test binary with + both features shows the panic again). Two tests in voelin-platform + (`tests/proxy.rs`, each on a private D-Bus bus) call ashpd from a thread + with no tokio runtime and get the answer, the second after a tokio caller + built the connection; that one fails with the panic above on the tree + before the change. +- **Size and compile time.** In the root workspace, which already carries + Slint's and the codecs' dependencies, the foundation adds 292 entries to + `Cargo.lock` (218 new names; 279 from gpui-kit, 13 from its `test-support` + dev-dependency, which ships in no binary; gpui-kit's are about 195 packages + on Linux), and cargo deny needed two licences it had not allowed, 0BSD and + CC0-1.0. The spikes' lock has 1,069 packages; the release binaries are 390 + to 480 MB with line tables. A full debug build of the workspace with a toolchain it had not built with before (nightly) took 3 min 14 s on the 32 threads at a load average around 90. @@ -527,6 +627,19 @@ and size tokens. Not in it: video (slice 6) needs the decision of spike 1's "What a real GPU changes"; emoji need the patch above before the chat slice (4). +Items 1, 2, 3, 4 and 6 are done on `phase5/gpui-foundation` (2026-10-27), a +commit each (item 1 as two, item 2 as two: the spikes rebuilt on 0.8.1, then +the crate; item 4 with one small follow-up): Rust 1.95.0 and the seven lints +it adds; ashpd on `async-io`; `crates/voelin-gpui` +on `gpui-kit = "=0.8.1"`; the root `Entity` with the engine's events, +the one-second tick and `Later`; `VoelinTheme`, Inter and the client's Lucide +set; the meter as `VOELIN_METER=1`. The crate is named `voelin-gpui` (binary +`voelin-gpui`), the choices below stayed as the report leaves them except +those named in docs/ui.md ("The GPUI front end"): the theme's second layer is +written as a `ThemeColor` mapping (a table there), and the client's Lucide set +is served under gpui-component's `icons/` paths. Item 5, the shell, is the +next task. + ### The risks of plan section 6, against what was seen | Risk (plan) | Seen | @@ -539,7 +652,7 @@ changes"; emoji need the patch above before the chat slice (4). | New: ashpd features | GPUI and the client's portals cannot share a binary until the client uses `async-io`. | | New: short clicks on links | `InteractiveText` loses a click shorter than a frame. | | New: video upload cost | Every new picture is a new atlas texture plus two copies (spike 1); a persistent texture needs a GPUI change. | -| New: Rust 1.95 | gpui-kit needs it; the client is on 1.94. | +| New: Rust 1.95 | gpui-kit needs it; the client moved to 1.95.0 in 5ce5c0d (seven lints fixed). | ### Open choices for step 3 diff --git a/docs/media.md b/docs/media.md index c9cc6fc..eb4d3e8 100644 --- a/docs/media.md +++ b/docs/media.md @@ -869,9 +869,12 @@ Notes: covered by other windows may be stale. MIT-SHM needs a local server with MIT-SHM 1.2; otherwise GetImage is used. The only `unsafe` here is mapping our memfd (`capture/x11/shm.rs`). -- Portal: `start` needs a tokio runtime (zbus runs on it) and may show the - desktop's picker. Choices persist with `PersistMode::ExplicitlyRevoked`: store - `PortalCapture::restore_token()` (e.g. in `voelin-store` settings) and pass it to +- Portal: `start` runs on any executor (ashpd uses zbus's `async-io`, with an + I/O thread of its own, in every binary of the workspace) and may show the + desktop's picker; `stop` closes the portal session only inside a tokio + runtime (elsewhere the session closes with the connection). Choices persist + with `PersistMode::ExplicitlyRevoked`: store `PortalCapture::restore_token()` + (e.g. in `voelin-store` settings) and pass it to `PortalCapture::with_restore_token` next time. The cursor is embedded when the portal supports it. Buffers: DMA-BUFs are offered first (a mandatory modifier property we fixate: the sink's tiled modifiers, best diff --git a/docs/ui.md b/docs/ui.md index 6d6d041..4146590 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -6,7 +6,9 @@ renderer, the Inter font, Lucide icons and Twemoji; the look follows the design mockups (deep navy panels, a blue accent, a server rail, a top bar, a sidebar with the user card, an optional right panel). What its screens show is made by `crates/voelin-ui-vm`, which knows no UI toolkit ([Two -crates](#two-crates)). +crates](#two-crates)). `crates/voelin-gpui` is the second front end, on GPUI, +under construction and built on the same view models and the same engine; the +Slint one stays the app until it reaches parity. ![Server page](screenshots/desktop-server.png) @@ -46,6 +48,10 @@ crates/voelin-ui-vm/ view models and state, no UI toolkit the audio settings page (devices, form, microphone test, push to talk), the crash notice and the volume dialog of a client bbcode.rs emoji.rs chat formatting; the Twemoji archive, text → runs of text and emoji +crates/voelin-gpui/ the GPUI front end, under construction (binary voelin-gpui; gpui-kit + pinned exactly); it uses voelin-ui-vm and the engine, not voelin-ui: + the root state, the theme, Inter and Lucide, the swatch page, the + cost meter ([The GPUI front end](#the-gpui-front-end)) crates/voelin-ui/ the Slint front end ui/ app.slint MainWindow: picks the shell, puts the page's screens in it, dialogs @@ -943,6 +949,278 @@ renderer; the phone layouts are desktop renders, not Android device tests. | ![Light chat and channel banners](screenshots/banners-desktop-light.png) | ![Light server list](screenshots/banners-mobile-servers.png) | | ![Banner in the desktop voice header](screenshots/banners-desktop-voice.png) | ![Banner in the mobile voice header](screenshots/banners-mobile-voice.png) | +## The GPUI front end + +`crates/voelin-gpui` (binary `voelin-gpui`) is the second front end, on GPUI +(`gpui-kit`, pinned exactly at `=0.8.1`: GPUI, gpui-component and their assets +behind one pre-1.0 dependency). Plan section 6 step 3 builds it slice by +slice next to the Slint front end, which stays the app: both are `[[bin]]`s of +one workspace on the same engine and the same `voelin-ui-vm` state until the +GPUI one reaches parity. It does not depend on `voelin-ui` (that would bring +Slint in), so the few lines of the Slint crate's `HostedEngine` are repeated +in `engine.rs`. The measured case for the migration, and the versions and +conditions it settled, are in [design/gpui-spikes.md](design/gpui-spikes.md). + +### What exists + +``` +crates/voelin-gpui/ + build.rs the client's 147 Lucide icons as a table of include_bytes! + src/ + main.rs lib.rs `run()`: logging, the engine's runtime, the window; closing it + tells the engine to close the sessions, ends the app and, when + there were sessions, waits 500 ms for the engine to send the + closes before the runtime goes (as the Slint front end does) + engine.rs HostedEngine: Engine::start on a tokio runtime, its events + forwarded into a channel the window reads + app.rs AppState, the root Entity: the voelin-ui-vm state and Social, + the three loops (events, tick, Later), the one line of state + view.rs MainView: the status line, the shell's page (empty), the swatch + swatch.rs the swatch page (every token, widgets, icons) + theme/ VoelinTheme: tokens.rs, components.rs, slint_parity.rs (test) + fonts.rs Inter, from crates/voelin-ui/ui/assets/fonts + assets.rs icons/.svg: the client's set before gpui-kit-assets' + dev.rs the development switches + meter.rs the cost meter +``` + +- **The root state.** `AppState` (an `Entity`) holds `voelin_ui_vm::state::AppState>` + and `Social`; `events::handle` is its one dispatch, as in the Slint front end, + and the `Update` it returns is carried out as far as this front end has the + parts: the engine's commands go out, the warnings are logged, the rest + (what to redraw, what to keep, the streams' capture and decoder) is for the + slices that have those parts. Three loops start with it and end when the + entity is released: **the engine's events** (a foreground task awaits the + tokio receiver, `this.update(cx, ...)`, `cx.notify()`; a tokio channel needs + no reactor, so GPUI's executor polls it); **the tick**, once a second, a loop + of `background_executor().timer`; and **`Later`**: GPUI's `AsyncApp` is not + `Send`, so a hotkey, camera or decoder thread holds a `Later` and calls + `later.run(|app, cx| ...)`, a queue a third foreground task drains with the + entity, as `later(|app| ...)` does in Slint. The window shows one line: + the version, the voice connections up, the engine events handled, the seconds + up; each part moves by one of the loops. The window's start shows no store: + the shell slice opens it with the settings and the bookmarks. +- **Tests**: the unit tests need no display (GPUI's test platform, `#[gpui::test]`, with + `gpui-pre`'s `test-support` as a dev-dependency beside gpui-kit's own pin: its + `test-support` feature would make Cargo lock the unused `gpui-fast` backend and + pin taffy 0.15.0): an injected engine event, a real engine's event, the tick + and a job from another thread reach the entity; the theme reaches + gpui-component, follows the window's appearance and the text size; the + Slint file's tokens equal the Rust ones (below); the icons and fonts load. + `tests/launch_failure.rs` starts the built binary where its window cannot + open (below): one of its two cases needs the test display of + `VOELIN_X11_TEST_DISPLAY` and is skipped without it, as the X11 tests of + the other crates are. `cargo test -p voelin-gpui`. + +### Running it + +```sh +cargo run -p voelin-gpui --release # the window and its one line of state +VOELIN_OPEN=swatch VOELIN_DEV_THEME=light cargo run -p voelin-gpui --release +``` + +GPUI draws through wgpu: it needs a Vulkan driver (Mesa's RADV, ANV or NVK, +NVIDIA's) or OpenGL at run time; in a virtual machine, a remote desktop or +CI, Mesa's lavapipe (`mesa-vulkan-drivers`) draws in software. The binary +links `libxcb` and `libxkbcommon-x11` (the build needs `libxkbcommon-x11-dev` +and `libxcb1-dev`, which the package lists before it did not name) and opens +`libwayland-client`, `libvulkan.so.1` and `libEGL.so.1` by name. Which device a +run took is in the log ("Selected GPU adapter: ..."; the default filter shows +GPUI's adapter lines: `VOELIN_LOG` or `RUST_LOG` change it). On Wayland and +on X11 (a window manager is needed there for fullscreen and close requests). + +A window that cannot open ends the app with the reason and exit status 1; it +does not stay up without a window. With no usable driver (none installed, or +`VK_DRIVER_FILES` pointing nowhere) the message is + +``` +Error: cannot open the main window + +Caused by: + Failed to create surface: Failed to create surface for any enabled backend: {} +``` + +and above it the log has the Vulkan loader's own lines (`vkCreateInstance: +Found no drivers!`); install a driver or lavapipe. With no display server +(neither `DISPLAY` nor `WAYLAND_DISPLAY` set, over ssh for one) it is `cannot +open the main window`, caused by `no display: neither DISPLAY nor +WAYLAND_DISPLAY names a display server`; GPUI alone would start its headless +platform there, which opens windows that draw nothing and runs until it is +stopped. `tests/launch_failure.rs` starts the binary both ways (the driver one +needs the test display of `VOELIN_X11_TEST_DISPLAY`; it hides the drivers +through `VK_DRIVER_FILES`, `__EGL_VENDOR_LIBRARY_DIRS` and +`LIBGL_DRIVERS_PATH`, and is skipped where the machine's driver is found +anyway). + +| Switch | Does | +|---|---| +| `VOELIN_OPEN=swatch` | the swatch page in place of the shell; the Slint front end's other pages are not here yet and are named in a warning | +| `VOELIN_DEV_THEME=dark\|light\|system` | the theme mode (the settings' `ui.theme` will give it) | +| `VOELIN_FONT_SCALE=1.25` | the text size factor (`ui.font_scale`) | +| `VOELIN_WINDOW_SIZE=1440x960` | the window's size | +| `VOELIN_METER=1` | the cost meter: once a second a log line (`voelin_gpui::meter`) with the process's CPU, the CPU of each group of threads (`llvmpipe` is the software renderer, work a GPU takes over; `voelin-gpui` is GPUI's thread), the resident memory, the app's own counters per second (engine events, ticks, renders, `Later` jobs) and the voice connections up | + +Screenshots are made headless, the way `scripts/shots.sh` makes the Slint +ones: `scripts/gpui-shot.sh out.png swatch 1440x960` runs the binary under +`xvfb-run`, takes the window with `xwd`, closes it with Alt+F4 when a window +manager is there (else TERM) and says how the app ended. On NixOS, with the +spikes' environment (a headless X display with openbox, lavapipe as the only +Vulkan driver, the XDG directories and the D-Bus bus private): + +```sh +GPUI_SHOT_HEADLESS=1 DELAY=4 VOELIN_DEV_THEME=dark spikes/gpui/shell.sh \ + spikes/gpui/headless.sh -- scripts/gpui-shot.sh docs/ui/gpui-swatch-dark.png swatch 1440x960 +``` + +Wayland, the desktop's session bus and its portals are out of the environment, +and the state directories are temporary ones: a run never touches the desktop +or `~/.local/state/voelin`. `docs/ui/gpui-swatch-dark.png` and +`gpui-swatch-light.png` are two such pictures (truecolour: a reduction to 256 +colours would change the tokens' values). + +![The swatch page, dark](ui/gpui-swatch-dark.png) +![The swatch page, light](ui/gpui-swatch-light.png) + +### The theme + +Two layers (docs/design/gpui-spikes.md, "The theme against Theme tokens"): + +1. **`VoelinTheme`**, a GPUI global with every token of + `crates/voelin-ui/ui/theme.slint` (the source of truth while Slint lives): + the 43 colours for light and dark, the backdrop gradient, the radii, the + spacing, the eight type sizes and four weights, the control, row and shell + sizes (the sidebar's `264 * max(1, scale)`, the top bar's `max(44, control + + 8)`), the two durations, at the text size factor. The shell's own elements + (the server rail, presence, meters) read it. `theme/slint_parity.rs` reads + `theme.slint` at test time and compares every declaration of its `Theme` + global with `theme/tokens.rs` by name, with the file's own arithmetic, at + four text sizes; a colour, length, weight or duration on one side only, a + changed value or a kind of declaration it does not know fails the test, and + so does a brush other than `backdrop` or a string other than `mode` and + `font-family` in the Slint file (those three it compares by name against + the one gradient and the one family of `tokens.rs`, which it cannot + enumerate: a second brush or string only on the Rust side is not seen). +2. **gpui-component's `ThemeColor`**, which its widgets read, written from the + first on every change (`theme/components.rs`): the registered theme of the + mode first, then the mapped colours over it, the font (Inter, `font-body`), + the radii and the base size. + +| Voelin token | gpui-component (`ThemeColor` field) | +|---|---| +| `bg-app`, `text` | `background`, `foreground`; `caret`; `window_border` is `border` | +| `surface` | `sidebar`, `title_bar`, `status_bar`, `list`, `list_even`, `table`, `table_even`, `tab_bar` | +| `surface-2` | `secondary`, `muted`, `group_box`, `list_head`, `table_head`, `tab_active`, `accordion` | +| `surface-3` | `accent` (gpui-component's "accent" is a hover background, not the brand colour), `popover`, `list_hover`, `table_hover`, `secondary_hover`, `skeleton` | +| `surface-4` | `secondary_active`, `switch` | +| `scrim` | `overlay` | +| `border`, `border-strong` | `border`, `sidebar_border`, `title_bar_border`; `input`, `scrollbar_thumb` | +| `glow` | `ring` | +| `accent`, `accent-hover`, `accent-pressed`, `on-accent` | `primary`, `primary_hover`, `primary_active`, `primary_foreground` (`accent` also `sidebar_primary`, `slider_bar`, `progress_bar`, `drag_border`, `list_active_border`; `on-accent` also `slider_thumb`, `switch_thumb`) | +| `accent-soft` | `list_active`, `table_active`, `selection`, `drop_target` | +| `accent-text` | `link`, `link_hover`, `link_active` (one colour for the three) | +| `danger`, `success`, `warning`, `info` | the same names with `_hover` and `_active` (mixed 14 % toward white in dark, black in light; 18 % toward black) and `_foreground`: white or the window's ink, whichever contrasts more | +| `text-secondary`, `text-muted` | `table_head_foreground`, `tab_foreground`; `muted_foreground`, `scrollbar_thumb_hover` | +| `danger`, `success`, `warning`, `info` with `danger-soft`, `success-soft`, `warning-soft`, `accent-soft` | also the base palette `red`, `green`, `yellow`, `blue` and their `_light` variants; `chart_1` to `chart_5` are `accent`, `success`, `warning`, `danger`, `info` | +| the `button_*` fields | written from `secondary`, `primary`, `danger`, `success`, `warning` and `info` (a theme file leaves them to fall back to these; without it they would keep the default theme's blue) | +| not mapped | `bg-rail`, the backdrop gradient, `scrim-light`, `border-popup`, `live`, `live-soft`, `idle`, `dnd`, `offline`, `gold`, `meter-*`, `text-disabled`, `icon`, `name-text`: read from `VoelinTheme` by the shell. GPUI's gradient has two colour stops and the Slint backdrop three, so `Backdrop::to_gpui` draws the first and the last | + +The mode (`Choice`) is `ui.theme`: `system` follows the window's appearance +and its changes (`observe_window_appearance`), `light` and `dark` do not. +Where the platform draws the window's frame (macOS) the mode sets its +appearance; elsewhere that is a no-op. **Inter** (the five files the Slint +front end bundles) goes into GPUI's text system with `add_fonts` and is used by +family name. **Lucide:** `build.rs` embeds the client's 147 icons (Lucide +1.48) and `assets.rs` serves them as gpui-component's `icons/.svg` paths +before gpui-kit-assets' Lucide 1.43 catalogue (1,830 icons), so every widget +draws the icons the client draws and the rest of the catalogue still answers. + +### What is next + +The slices of plan section 6 step 3, in order, with what each takes from the +Slint `Bridge` (`ui/bridge.slint:801-1206`; properties / callbacks): + +1. the **desktop shell**: the server rail, the sidebar, the top bar, the empty + main area, window state (about 13 / 11, `bind/servers.rs`), the store and the + settings opened as in Slint's `run()`; +2. the channel tree and the members (about 13 / 6); +3. the voice page and the call bar (6 / 6); +4. chat, the composer and emoji (about 19 / 18, and the `Emoji` global 3 / 3): + first the two open choices of the report that it touches + (design/gpui-spikes.md, "Open choices for step 3"): emoji (the one-line + `gpui-pre-wgpu` patch for colour emoji, or Noto Color Emoji bundled with a + font setup that leaves out DejaVu's emoji range) and links (an `on_click` + per link, or a fix of `InteractiveText`); and a check of Wayland's preedit; +5. the settings pages (about 62 / 53), page by page; +6. the stream viewer and the share dialog (30 / 13): its first step is a run on + a GPU (design/gpui-spikes.md, "What a real GPU changes"), which decides `img()` + against a persistent texture; +7. home, friends, messages, events, the bell and the search (25 / 32, + `bind/social.rs`); +8. the Stream Studio (19 / 36) and its second window; +9. dialogs and overlays. + +Phone layouts are dropped (decision 2). Around the slices: system-font emoji +and the removal of `twemoji.bin`; `tr!()` over the gettext catalogue (1,255 +entries); the in-window keys as GPUI key bindings and the global ones through +`voelin-platform`, which now holds the portals and GPUI in one binary (ashpd on +`async-io`); and last the removal of Slint (`build.rs`, `ui/`, +`voelin-android`, `LicenseRef-Slint` of `deny.toml` and `about.toml`). + +### For the next slices + +What the foundation's review and the Opus gate (2026-10-27) found and left to +the slices that meet it; none of it is a defect of what exists today. + +- **The engine-event task drains its channel without yielding** (`app.rs`, + `while let Some(event) = events.recv().await`): a burst of events (a server's + first sync) keeps the receiver ready, so the loop handles them back to back + without returning to GPUI's executor (a tokio receiver is cooperative only + inside a tokio runtime), and the window waits for the whole burst. The shell + slice takes what is queued in one go (`try_recv` after the first event, one + `update`, one `cx.notify()`) or yields between events. +- **The tick notifies the root every second** (`AppState::tick`), which draws + the window once a second whether or not anything changed. Notify only on a + change once the shell shows more than the uptime (the line of state moves + with it today, and it is how the loop is seen to run). +- **The hotkey portal calls `tokio::spawn`** (`voelin-platform`, + `hotkey/portal.rs`, `PortalBackend::new`): it panics where no tokio runtime + is current, and a GPUI foreground task has none. The GPUI front end starts + the hotkey task on the engine's runtime (`runtime.spawn(...)`), as the Slint + front end's `GlobalPtt::start(runtime, ...)` does, not from a foreground task. +- **`PortalCapture::stop` closes the portal session only inside a tokio + runtime** (`voelin-media`, `capture/portal.rs`: `Handle::try_current()`; + elsewhere the session closes only with the connection). Stop a capture inside + the engine's runtime, not on GPUI's thread. +- **gpui-component's `ThemeRegistry` observer overwrites `VoelinTheme`'s + mapping:** any change of the registry (loading JSON themes, `watch_dir`) runs + `Theme::change(mode, None, cx)` on the active theme, which puts the registered + theme's colours over the `ThemeColor` the second layer wrote. A slice that + offers JSON themes or watches a theme directory re-applies `VoelinTheme` + after the registry changed. +- **The parity test and `build.rs` read `crates/voelin-ui/ui`** (`theme.slint` + through `include_str!`, the icons directory), and `fonts.rs` the Inter files + there: they move with step 9, when Slint goes (the icons and fonts to this + crate, `tokens.rs` as the source of truth, the parity test removed). +- **System mode's first frame is Light** until the colour-scheme portal answers + (`cx.window_appearance()` before the window exists; `set_system_appearance` + follows the answer): a dark desktop sees a light frame at start. The shell + slice, which reads the settings, can start from the last resolved mode. +- **The gate's deviations from the mapping table** of the report ("The theme + against Theme tokens"): `bg-rail` is not mapped (the report has it with + `surface` on `sidebar.background`; the sidebar takes `surface` and the shell + reads `bg-rail` from `VoelinTheme`), one scrim stands for three (`scrim`, + `scrim-light` and `overlay` are three values in `theme.slint`; gpui-component's + `overlay` gets `scrim`), and gpui-base's non-colour tokens (radii, spacing, + type, shadows, motion) are not written: gpui-base 0.8.1 has no storage to + write them to, so those live in `VoelinTheme::metrics` only. +- **The close grace is not seen end to end** until a slice opens sessions: + `run()` waits `CLOSE_GRACE` (500 ms) for the engine to send the closes only + when the window's close found sessions to close, and the binary opens none + yet (the unit test counts the closes `shutdown` sends, and the engine ignores + a close for a session it never opened). The first slice that opens a session + checks against a server that no ghost client stays behind after the window is + closed. + ## Limits - No drop shadows or blur (the software renderer draws none): glows are diff --git a/docs/ui/gpui-swatch-dark.png b/docs/ui/gpui-swatch-dark.png new file mode 100644 index 0000000..aff180e Binary files /dev/null and b/docs/ui/gpui-swatch-dark.png differ diff --git a/docs/ui/gpui-swatch-light.png b/docs/ui/gpui-swatch-light.png new file mode 100644 index 0000000..b55539b Binary files /dev/null and b/docs/ui/gpui-swatch-light.png differ diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 082d590..a7795bb 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.94" +channel = "1.95" components = ["rustfmt", "clippy"] diff --git a/scripts/gpui-shot.sh b/scripts/gpui-shot.sh new file mode 100755 index 0000000..89d5505 --- /dev/null +++ b/scripts/gpui-shot.sh @@ -0,0 +1,99 @@ +#!/bin/sh +# Take a screenshot of the GPUI front end with development switches set, +# headless, and close its window the way a user would (docs/ui.md, "The GPUI +# front end"): the equivalent of scripts/shots.sh for `voelin-gpui`. +# +# scripts/gpui-shot.sh [ [x]] +# +# The window opens on a display of its own, never the desktop's: the script +# runs itself again under `xvfb-run` (Debian, Ubuntu, the CI image) unless +# GPUI_SHOT_HEADLESS=1 says the caller already did that, as on NixOS: +# +# GPUI_SHOT_HEADLESS=1 spikes/gpui/shell.sh spikes/gpui/headless.sh -- \ +# scripts/gpui-shot.sh docs/ui/gpui-swatch-dark.png swatch 1440x960 +# +# Needs xdotool, xwd (x11-apps) and ImageMagick. +# +# Wayland is taken out of the environment (GPUI prefers it, so the window +# would open on the desktop), and so are the desktop's session bus and its +# portals; the app's state and the XDG directories are a temporary one. +# GPUI needs a Vulkan driver or OpenGL at run time: on a machine without a +# GPU, Mesa's lavapipe (`mesa-vulkan-drivers`) draws in software. Without a +# window manager (xvfb-run alone) the window is stopped with TERM, with one +# (openbox, as headless.sh starts) it gets a close request, which is what the +# last line says. +# +# VOELIN_BIN: the binary (default target/release/voelin-gpui, else +# target/debug); DELAY: seconds the window is shown before the picture +# (default 4). VOELIN_DEV_THEME, VOELIN_FONT_SCALE and the other switches of +# `src/dev.rs` are passed on as set. +set -eu +out=${1:?usage: gpui-shot.sh [ [x]]} +open=${2:-} +size=${3:-1440x960} +w=${size%x*} +h=${size#*x} +if [ "${GPUI_SHOT_HEADLESS:-}" != 1 ]; then + command -v xvfb-run >/dev/null || { + echo "gpui-shot.sh: no xvfb-run; start a display of your own and set GPUI_SHOT_HEADLESS=1" >&2 + exit 2 + } + GPUI_SHOT_HEADLESS=1 exec xvfb-run -a -s "-screen 0 $((w * 2))x$((h * 2))x24" "$0" "$@" +fi +[ -n "${DISPLAY:-}" ] || { echo "gpui-shot.sh: no DISPLAY" >&2; exit 2; } +# ImageMagick 7 has `magick`; the 6 of Debian and Ubuntu has `convert` and `identify`. +if command -v magick >/dev/null 2>&1; then + to_png() { magick xwd:- "png:$1"; } + size_of() { magick identify -format '%wx%h' "$1"; } +else + to_png() { convert xwd:- "png:$1"; } + size_of() { identify -format '%wx%h' "$1"; } +fi +root=$(cd "$(dirname "$0")/.." && pwd) +bin=${VOELIN_BIN:-} +if [ -z "$bin" ]; then + target=${CARGO_TARGET_DIR:-$root/target} + for kind in release debug; do + [ -x "$target/$kind/voelin-gpui" ] && { bin=$target/$kind/voelin-gpui; break; } + done +fi +[ -x "$bin" ] || { echo "gpui-shot.sh: no voelin-gpui binary (cargo build -p voelin-gpui --release)" >&2; exit 2; } +work=$(mktemp -d) +trap 'kill ${pid:-} 2>/dev/null || true; rm -rf "$work"' EXIT INT TERM +mkdir -p "$work/runtime" +chmod 700 "$work/runtime" +env -u WAYLAND_DISPLAY -u WAYLAND_SOCKET -u XDG_SESSION_TYPE -u DBUS_SESSION_BUS_ADDRESS \ + XDG_RUNTIME_DIR="$work/runtime" XDG_CONFIG_HOME="$work/config" XDG_DATA_HOME="$work/data" \ + XDG_CACHE_HOME="$work/cache" XDG_STATE_HOME="$work/state" VOELIN_DATA_DIR="$work/data/voelin" \ + GPUI_X11_SCALE_FACTOR=1 VOELIN_FFMPEG=0 \ + VOELIN_OPEN="$open" VOELIN_WINDOW_SIZE="$size" \ + "$bin" >"$work/app.log" 2>&1 & +pid=$! +i=0 +until win=$(xdotool search --name '^Voelin$' 2>/dev/null | head -1) && [ -n "$win" ]; do + i=$((i + 1)) + kill -0 "$pid" 2>/dev/null || { echo "gpui-shot.sh: the app ended before its window:" >&2; tail -20 "$work/app.log" >&2; exit 1; } + [ $i -lt 300 ] || { echo "gpui-shot.sh: no window after 30 s:" >&2; tail -20 "$work/app.log" >&2; exit 1; } + sleep 0.1 +done +sleep "${DELAY:-4}" +xwd -id "$win" -silent | to_png "$out" +echo "$out: $(size_of "$out")" +# Close it as a user does; with no window manager, ask the process to end. +xdotool windowactivate --sync "$win" 2>/dev/null || true +xdotool key alt+F4 2>/dev/null || true +i=0 +while kill -0 "$pid" 2>/dev/null; do + i=$((i + 1)) + if [ $i -ge 30 ]; then + kill -TERM "$pid" 2>/dev/null || true + wait "$pid" 2>/dev/null || true + echo "stopped with TERM (no window manager closed it)" + exit 0 + fi + sleep 0.1 +done +status=0 +wait "$pid" || status=$? +echo "closed by the window manager, exit code $status" +exit "$status" diff --git a/spikes/gpui/Cargo.lock b/spikes/gpui/Cargo.lock index ff3925f..69cdc84 100644 --- a/spikes/gpui/Cargo.lock +++ b/spikes/gpui/Cargo.lock @@ -810,9 +810,9 @@ dependencies = [ [[package]] name = "bit-set" -version = "0.9.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd" +checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d" dependencies = [ "bit-vec 0.9.1", ] @@ -1213,7 +1213,7 @@ checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c" dependencies = [ "bitflags 1.3.2", "block", - "cocoa-foundation 0.1.2", + "cocoa-foundation", "core-foundation 0.9.4", "core-graphics 0.23.2", "foreign-types", @@ -1221,22 +1221,6 @@ dependencies = [ "objc", ] -[[package]] -name = "cocoa" -version = "0.26.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad36507aeb7e16159dfe68db81ccc27571c3ccd4b76fb2fb72fc59e7a4b1b64c" -dependencies = [ - "bitflags 2.13.2", - "block", - "cocoa-foundation 0.2.1", - "core-foundation 0.10.1", - "core-graphics 0.24.0", - "foreign-types", - "libc", - "objc", -] - [[package]] name = "cocoa-foundation" version = "0.1.2" @@ -1251,19 +1235,6 @@ dependencies = [ "objc", ] -[[package]] -name = "cocoa-foundation" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81411967c50ee9a1fc11365f8c585f863a22a9697c89239c452292c40ba79b0d" -dependencies = [ - "bitflags 2.13.2", - "block", - "core-foundation 0.10.1", - "core-graphics-types 0.2.0", - "objc", -] - [[package]] name = "codespan-reporting" version = "0.13.1" @@ -2599,12 +2570,6 @@ 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" @@ -3023,31 +2988,11 @@ dependencies = [ "windows 0.62.2", ] -[[package]] -name = "gpu-descriptor" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca" -dependencies = [ - "bitflags 2.13.2", - "gpu-descriptor-types", - "hashbrown 0.15.5", -] - -[[package]] -name = "gpu-descriptor-types" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91" -dependencies = [ - "bitflags 2.13.2", -] - [[package]] name = "gpui-base" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5cd7de73d5b2d3d18b94a928abf343922091fa77bc472f77b7d2e7e8b1823a7" +checksum = "d862bc8f2e27710039013d075ac4995892e9687ff207fa530f880cbcd513936f" dependencies = [ "aho-corasick", "anyhow", @@ -3086,9 +3031,9 @@ dependencies = [ [[package]] name = "gpui-component" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4097e161cc81e86323b439664be0cdd4f7c56148e867ed6f67fd72b966b6c2d1" +checksum = "46ce53430332e30f303364eaabfa10ed2aa23dfaf2a147e04370e0e9c423578b" dependencies = [ "anyhow", "chrono", @@ -3133,9 +3078,9 @@ dependencies = [ [[package]] name = "gpui-component-macros" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b98496748463b60ad69eab80cd91fc9b3807fed9a0e01ab4d5c159c949fd814" +checksum = "a512c830553e7dddc43c3f8faffc2d2d7bd24db21fe3dc1326dde9c470013768" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -3145,9 +3090,9 @@ dependencies = [ [[package]] name = "gpui-kit" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cdcb78553bef8785669e572e79759b0eab47fdd9d318fe0cce1def798189432" +checksum = "25210f6e59ea9ffac3a033dbce9edafe5ff0dd2900f894fd1316f54da2fe2b89" dependencies = [ "gpui-base", "gpui-component", @@ -3160,9 +3105,9 @@ dependencies = [ [[package]] name = "gpui-kit-assets" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b037e2fa43d53a567a8aa5be6b1a8931f416cbd010ceee8d4a3727a71e9b1d05" +checksum = "c214017b45e5654665f18faa551f58a2c2c8d25efe6632b1a443ba8edf365e96" dependencies = [ "anyhow", "gpui-pre", @@ -3175,9 +3120,9 @@ dependencies = [ [[package]] name = "gpui-pre" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34f61c1cfd36fc9c436af09308c963822ae27a45a84feb21a77ba5c9e051f1c0" +checksum = "df4b5f8d0c278308df2f11e0bfe0212dd77d7848ce1bdc4b9d513334414396f6" dependencies = [ "accesskit", "anyhow", @@ -3240,9 +3185,9 @@ dependencies = [ [[package]] name = "gpui-pre-apple" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b52f58893fe1a0836464428dfad2b5eaf42c9c303a9638f4c2aced5a69072a15" +checksum = "e97cd068d8134b4e073321b946491760aa1e4511e486084a92e73b9174bff78a" dependencies = [ "anyhow", "async-task", @@ -3282,9 +3227,9 @@ dependencies = [ [[package]] name = "gpui-pre-collections" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "920c2f5b2f1a7813114d89f4841f26f6060d9c35d7c8a852a4205d1a767a7ce0" +checksum = "8f89bf8941a7437dd761161c552543fb8268b9633fe74e29eafbe0014cd2164b" dependencies = [ "gpui-pre-util", "indexmap", @@ -3293,9 +3238,9 @@ dependencies = [ [[package]] name = "gpui-pre-derive-refineable" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "947395f26228296c0c79fb889d3687b205e552c25bbcdece216fb2394ea9bcd1" +checksum = "2998b1cebbaa0fa004fe4939a513bbf4103c7fb69ae2e84ee73634554e3f7edc" dependencies = [ "proc-macro2", "quote", @@ -3304,9 +3249,9 @@ dependencies = [ [[package]] name = "gpui-pre-http-client" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c56cdaa3f1a271162b7fede1d4557879eedb056e293cedbb82743600650b755e" +checksum = "e516820ee56ac357a87ff97b1a2c5f22c8d5dcd2a50cdd15c16949f24464d98e" dependencies = [ "anyhow", "bytes", @@ -3322,10 +3267,32 @@ dependencies = [ ] [[package]] -name = "gpui-pre-linux" -version = "0.3.9" +name = "gpui-pre-ios" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28213c3fde6f13e91ba0b74b90cbaadec9373e36a031eda98561d31059870f3" +checksum = "5773a1e3a399df64f3ecc5538727fd0575279bd190959cf97a9e2b698c0310b8" +dependencies = [ + "anyhow", + "block2 0.6.2", + "futures", + "gpui-pre", + "gpui-pre-apple", + "log", + "objc2 0.6.4", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "objc2-ui-kit", + "parking_lot", + "raw-window-handle", + "uuid", +] + +[[package]] +name = "gpui-pre-linux" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c6ffd2dce7b75cce0bb3382994912f84c2a05389a4a236bb8bd72cb098fc083" dependencies = [ "accesskit", "accesskit_unix", @@ -3368,15 +3335,14 @@ dependencies = [ [[package]] name = "gpui-pre-macos" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7c988b7e49775cc8542dbe48d5a10e073d8e898a023ef3ff3d24f33363e9863" +checksum = "7e07a5e5c84f0b2160c194a1c852cc89d1942db66867938ceabcd7f763cb4386" dependencies = [ "accesskit", "accesskit_macos", "anyhow", "block2 0.6.2", - "cocoa 0.26.1", "core-foundation 0.10.1", "core-foundation-sys", "core-graphics 0.24.0", @@ -3392,9 +3358,9 @@ dependencies = [ "image", "itertools 0.14.0", "log", - "objc", "objc2 0.6.4", "objc2-app-kit 0.3.2", + "objc2-core-graphics", "objc2-core-video", "objc2-foundation 0.3.2", "objc2-user-notifications", @@ -3408,9 +3374,9 @@ dependencies = [ [[package]] name = "gpui-pre-macros" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bb80dac5e1f6b8cde1d2740389e77dfc0071bfcc81fba5526d5dc90f68171cc" +checksum = "9c95d70a9fe10701533606c6135f9a1d4cd96e87e4e6062b3d426eb57b415daf" dependencies = [ "heck 0.5.0", "proc-macro-crate", @@ -3421,13 +3387,14 @@ dependencies = [ [[package]] name = "gpui-pre-platform" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbdbdac421178313fed8929fe95b42634a266a735079fcf03ff231bc2ccb2c5e" +checksum = "e8a7f07a15187e82ec76491492c7e3245db1b59633d3bedb00b828ffaf67c4b8" dependencies = [ "anyhow", "console_error_panic_hook", "gpui-pre", + "gpui-pre-ios", "gpui-pre-linux", "gpui-pre-macos", "gpui-pre-web", @@ -3436,9 +3403,9 @@ dependencies = [ [[package]] name = "gpui-pre-refineable" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "237703b3b219d11adb50dd33bb0fcca3d34fc001623b3143e72cb051d0fb3777" +checksum = "4ce7e83592bc6c1ead2affd91b333f11b60c3eb7d06cae1605dd56f149fe8674" dependencies = [ "gpui-pre-derive-refineable", ] @@ -3495,9 +3462,9 @@ dependencies = [ [[package]] name = "gpui-pre-scheduler" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83f342555282a59ed8dd58dd7e0a920524fa8ef6aa8c8f30e2edb7019a8f72cb" +checksum = "87c2c6b0fabcd20e6773a0be30afa1f25637c53a06201bb80ab24a21fe198865" dependencies = [ "async-task", "backtrace", @@ -3512,9 +3479,9 @@ dependencies = [ [[package]] name = "gpui-pre-shared-string" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71f488bf4780735f6b2dad24f8db1e3d9e2593de0ec298e3574c788f571b81c4" +checksum = "8068f94355f173558a51998a32985a434af54cc6c7262a060fffc369a505998f" dependencies = [ "schemars", "serde", @@ -3523,9 +3490,9 @@ dependencies = [ [[package]] name = "gpui-pre-sum-tree" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aadb3bd3da22617e2158b1842f5a9c29c1626c926ad0686163ced1a009963ff3" +checksum = "c1ce66c57e9b5fd6c7a90fa9f9de2f9bb342127d670ca3c8fe5885270079eefa" dependencies = [ "gpui-pre-ztracing", "heapless", @@ -3535,9 +3502,9 @@ dependencies = [ [[package]] name = "gpui-pre-util" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a04ec9abd7a87ac05a221f4629403831c44c17123bc33cb5d271a6303259b340" +checksum = "162dc29b2d2c0223ee4bb4e9f5e913eab4f62cad0943eb0c1122a74ac82b0768" dependencies = [ "anyhow", "log", @@ -3546,9 +3513,9 @@ dependencies = [ [[package]] name = "gpui-pre-web" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedd55b99dc77e28df8202b0ea868aa5c90fda4aefff539ea21087d7c2ff4bfb" +checksum = "1acd86af2347f0dd8b63c441a5dbd43b3fcd7dac69b340827c3497da5a13d6fb" dependencies = [ "anyhow", "async-channel", @@ -3576,9 +3543,9 @@ dependencies = [ [[package]] name = "gpui-pre-wgpu" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b1cdb26c1503bf9662ee8fbc5ab0b44b2deeee4b5c12dc67491ba6fb5fc544b" +checksum = "ce693915768aae38bf788f245af75aae78e3e1179245860fc80ce831d0a8f74e" dependencies = [ "anyhow", "bytemuck", @@ -3603,9 +3570,9 @@ dependencies = [ [[package]] name = "gpui-pre-windows" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "513d4f0fc7d596d3bdef2a73a524ffb83dabc95bf484f2855a698e7f431290a9" +checksum = "80670f987b920fba019917b2e222ecf2b377f2a6d77872010c7d284c235837b3" dependencies = [ "accesskit", "accesskit_windows", @@ -3633,9 +3600,9 @@ dependencies = [ [[package]] name = "gpui-pre-ztracing" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f17bfd6bd1f77ba5c58181fa6f82fc7a63015a1c58bef94a76e5acb9f8e42572" +checksum = "814cc08c526961c88703806a68ba4cf216a1d988ffbbdc673304f4dd25858952" dependencies = [ "gpui-pre-ztracing-macro", "tracing", @@ -3643,9 +3610,9 @@ dependencies = [ [[package]] name = "gpui-pre-ztracing-macro" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b0d73e1bc02eef886a5947f41b8512708792e9e5d3053d181843311a487f96f" +checksum = "e0f9dae92b9bc15baa6e530c90bdd4c689d3710bd4d18c3566deb1d6ae182daf" [[package]] name = "granit-parser" @@ -3738,15 +3705,6 @@ 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" @@ -3755,7 +3713,7 @@ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" dependencies = [ "allocator-api2", "equivalent", - "foldhash 0.2.0", + "foldhash", ] [[package]] @@ -3764,7 +3722,7 @@ version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" dependencies = [ - "foldhash 0.2.0", + "foldhash", ] [[package]] @@ -3816,12 +3774,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1" -[[package]] -name = "hexf-parse" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" - [[package]] name = "hickory-net" version = "0.26.3" @@ -5105,9 +5057,9 @@ checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" [[package]] name = "naga" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2bf919621e7975acb27d881bae2fb993e0d45c8e0446e85e6272971e00dc8df" +checksum = "a616d2fb8c89516ac2723a581f69d6c18576046bed761bd6b305e5618e6ae130" dependencies = [ "arrayvec", "bit-set", @@ -5116,11 +5068,11 @@ dependencies = [ "cfg_aliases", "codespan-reporting", "half", - "hashbrown 0.16.1", - "hexf-parse", + "hashbrown 0.17.1", "indexmap", "libm", "log", + "naga-types", "num-traits", "once_cell", "rustc-hash 1.1.0", @@ -5129,6 +5081,18 @@ dependencies = [ "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 = "ndk" version = "0.9.0" @@ -5552,7 +5516,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" dependencies = [ "bitflags 2.13.2", + "block2 0.6.2", "dispatch2", + "libc", "objc2 0.6.4", ] @@ -5715,6 +5681,7 @@ dependencies = [ "bitflags 2.13.2", "objc2 0.6.4", "objc2-core-foundation", + "objc2-core-graphics", "objc2-foundation 0.3.2", "objc2-metal 0.3.2", ] @@ -5728,6 +5695,20 @@ dependencies = [ "objc2-core-foundation", ] +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.4", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + [[package]] name = "objc2-user-notifications" version = "0.3.2" @@ -6545,7 +6526,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf" dependencies = [ "anyhow", - "itertools 0.13.0", + "itertools 0.14.0", "proc-macro2", "quote", "syn 2.0.119", @@ -7404,7 +7385,7 @@ checksum = "e806c2a9701cbd6043992cd935c30cb1fdb128fa15e7b506f3b46f97045737c0" dependencies = [ "arc-swap", "base62", - "foldhash 0.2.0", + "foldhash", "globwalk", "itertools 0.11.0", "normpath", @@ -7818,7 +7799,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8050abb251097357e24aff63ba2c52a6309ecb7d23a5474023df960a02694d8" dependencies = [ "annotate-snippets", - "base64 0.22.1", + "base64 0.23.1", "encoding_rs_io", "granit-parser", "nohash-hasher", @@ -8756,11 +8737,10 @@ dependencies = [ [[package]] name = "taffy" -version = "0.13.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c034e05f6ee85a12daa63863c2245797715075c70649947aa0da54f3f2ab1d0f" +checksum = "31f7bd2d97198df05186f93a3a3c306845f40e8b3c22bf9279cdd7e5cf5fea7d" dependencies = [ - "arrayvec", "serde", "slotmap", "smallvec", @@ -8808,7 +8788,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", "rustix", "windows-sys 0.61.2", @@ -10185,9 +10165,9 @@ checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" [[package]] name = "wgpu" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76e8840e1ba2881d4cbb18d2147627a56af426ff064c0401eb0c8410c6325d07" +checksum = "527ccdf43dd5b2e8676eed9984ce00e2bbb0a1b85b70c1969dcb6cd2eb55ab9e" dependencies = [ "arrayvec", "bitflags 2.13.2", @@ -10195,7 +10175,7 @@ dependencies = [ "cfg-if", "cfg_aliases", "document-features", - "hashbrown 0.16.1", + "hashbrown 0.17.1", "js-sys", "log", "naga", @@ -10215,9 +10195,9 @@ dependencies = [ [[package]] name = "wgpu-core" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f519832254e56965a9940c4af57dcb75f702b6f6fa4a0b172f685395843a4d7" +checksum = "14c018fce9b6270aa203c2fdd56f3cce996713534bd757e4ea58c8560b121f14" dependencies = [ "arrayvec", "bit-set", @@ -10226,10 +10206,11 @@ dependencies = [ "bytemuck", "cfg_aliases", "document-features", - "hashbrown 0.16.1", + "hashbrown 0.17.1", "indexmap", "log", "naga", + "naga-types", "once_cell", "parking_lot", "portable-atomic", @@ -10249,45 +10230,45 @@ dependencies = [ [[package]] name = "wgpu-core-deps-apple" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5e39e26c4c0e07589e67d18546cf79ff45383659fc72fca4dd293358a0347f3" +checksum = "061f3d319a40d39d00b1ecc2c33b89fe21d4e6fe01859df3500a3a8ecccd6b68" dependencies = [ "wgpu-hal", ] [[package]] name = "wgpu-core-deps-emscripten" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01e09be551dc939498bdd5f6b2c66e55ab275dad25825267a08605a80fc9f0af" +checksum = "d98b86cf4abf524a902dd35f18ca6a3f08fc2ae9847c8f10b48e30491b1f0b86" dependencies = [ "wgpu-hal", ] [[package]] name = "wgpu-core-deps-wasm" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af1fb1798be2a912497d4c224f72d39bb0cb34af50e8bcc29865bc339c943059" +checksum = "d260ca2ca8adc654f513a869bf3cac0b47f5b8d3f87803d6942015f8de597aae" dependencies = [ "wgpu-hal", ] [[package]] name = "wgpu-core-deps-windows-linux-android" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e592c1bbef6ad047647ae6e666ebd8cee7a32bb4544d9700ec96cbf73230257" +checksum = "7586165fd5f6d881cb9ce4bb71f40d6caab2c0f1837e3fc1d9788a197fb6004f" dependencies = [ "wgpu-hal", ] [[package]] name = "wgpu-hal" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97ace1c17727311c22a46e4e3faf56ea6de81af99dcc839bdfb54857b94d448d" +checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58" dependencies = [ "android_system_properties", "arrayvec", @@ -10301,17 +10282,18 @@ dependencies = [ "glow", "glutin_wgl_sys", "gpu-allocator", - "gpu-descriptor", - "hashbrown 0.16.1", + "hashbrown 0.17.1", "js-sys", "khronos-egl", "libc", "libloading", "log", "naga", + "naga-types", "ndk-sys", "objc2 0.6.4", "objc2-core-foundation", + "objc2-core-graphics", "objc2-foundation 0.3.2", "objc2-metal 0.3.2", "objc2-quartz-core 0.3.2", @@ -10326,6 +10308,7 @@ dependencies = [ "raw-window-metal", "renderdoc-sys", "smallvec", + "static_assertions", "thiserror 2.0.21", "wasm-bindgen", "wayland-sys", @@ -10339,9 +10322,9 @@ dependencies = [ [[package]] name = "wgpu-naga-bridge" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95226013f547544b223281cd16a4fb549aa9dcb562adbda0faae4c73ffbbc161" +checksum = "d2f62e73117bb7a62bfd9c5a5841438a823f6566c6442a808ee269d2d055c081" dependencies = [ "naga", "wgpu-types", @@ -10349,15 +10332,17 @@ dependencies = [ [[package]] name = "wgpu-types" -version = "29.0.4" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84bf84cd9ca8ca45e2b223a3868f1adf9bfc0c66aeac212e76ee7e40fdadf8f5" +checksum = "99dad6f1fbdbbdb4c278a6508b059d44688f5cebddf78d005a46a31340269286" dependencies = [ "bitflags 2.13.2", "bytemuck", "js-sys", "log", + "naga-types", "raw-window-handle", + "static_assertions", "web-sys", ] @@ -10408,7 +10393,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.61.2", ] [[package]] @@ -11433,7 +11418,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6b338d705ae33a43ca00287c11129303a7a0aa57b101b72a1c08c863f698ac8" dependencies = [ "anyhow", - "cocoa 0.25.0", + "cocoa", "core-graphics-helmer-fork", "log", "objc", diff --git a/spikes/gpui/Cargo.toml b/spikes/gpui/Cargo.toml index 80f4061..2a17413 100644 --- a/spikes/gpui/Cargo.toml +++ b/spikes/gpui/Cargo.toml @@ -16,7 +16,7 @@ publish = false [workspace.dependencies] # GPUI, gpui-component and their assets, pinned exactly (pre-1.0). -gpui-kit = "=0.8.0" +gpui-kit = "=0.8.1" spike-common = { path = "common" } # The client's crates, read only. voelin-core brings LocalPreview (the test # pattern through the real encoder and decoder). diff --git a/spikes/gpui/README.md b/spikes/gpui/README.md index 81cb7c6..b56c9f9 100644 --- a/spikes/gpui/README.md +++ b/spikes/gpui/README.md @@ -19,9 +19,11 @@ read only, by path (`voelin-core`, `voelin-media`, `voelin-platform`, ## Toolchain -`gpui-kit` 0.8.0 is pinned exactly. No `gpui-kit` release builds with the -repository's Rust 1.94: every `gpui-pre` 0.3.x (the GPUI snapshot under all -of them) calls `std::hint::cold_path`, stable since 1.95.0 (E0658 on 1.94). +`gpui-kit` 0.8.1 is pinned exactly (`gpui-pre` 0.3.10; the report's figures are +0.8.0's, and its "The version to pin" tells what the rebuild on 0.8.1 found). +No `gpui-kit` release builds with the Rust 1.94 the repository used before +5ce5c0d: every `gpui-pre` 0.3.x (the GPUI snapshot under all of them) calls +`std::hint::cold_path`, stable since 1.95.0 (E0658 on 1.94). The workspace says `rust-version = "1.95"`; the spikes build with 1.95.0 (the default of `shell.sh`) and nightly 2026-10-24 (`TOOLCHAIN=nightly`, rustc 1.101.0-nightly of 2026-10-23), both from one pinned fenix; clippy diff --git a/tools/voelinctl/src/engine.rs b/tools/voelinctl/src/engine.rs index d2d20fe..ff483a4 100644 --- a/tools/voelinctl/src/engine.rs +++ b/tools/voelinctl/src/engine.rs @@ -434,7 +434,8 @@ impl Roundtrip { GatewayUpdate::Reaction { message_id, added: true, .. } if self.step == Step::React && *message_id == self.remote => { - if self.reacted_row { + let reacted = self.reacted_row; + if reacted { self.next(engine, Step::Topic); } } diff --git a/tools/voelinctl/src/session.rs b/tools/voelinctl/src/session.rs index 6b627f4..fe346af 100644 --- a/tools/voelinctl/src/session.rs +++ b/tools/voelinctl/src/session.rs @@ -324,7 +324,8 @@ async fn listen( let end = pump(con, deadline, |con, item| { match item { StreamItem::BookEvents(events) => { - if print_events(con.get_state()?, &events, json, expect)? { + let done = print_events(con.get_state()?, &events, json, expect)?; + if done { return Ok(Flow::Stop); } }