diff --git a/docs/design/gpui-spikes.md b/docs/design/gpui-spikes.md index a85b15e..c396c2c 100644 --- a/docs/design/gpui-spikes.md +++ b/docs/design/gpui-spikes.md @@ -14,8 +14,11 @@ 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. | Spike | The plan's no-go | Seen (software rendering, see Setup) | Verdict | |---|---|---|---| @@ -36,7 +39,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,13 +365,60 @@ 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. + +**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 1440p60 figures above (42 to 49 fps + raw) were not reproduced on 0.8.1**, only the cost per frame was; the first + GPU run, in the viewer slice, measures the rates. +- 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 client's Rust 1.94: every `gpui-pre` 0.3.x (0.3.0 to 0.3.10, which every `gpui-kit` from 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..be86483 100644 --- a/spikes/gpui/README.md +++ b/spikes/gpui/README.md @@ -19,7 +19,8 @@ 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 +`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 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). The workspace says `rust-version = "1.95"`; the spikes build with 1.95.0