Skip to content

Visual Studio Code, rebuilt in Rust

Rust

build(port): build GPUI from gpui-fast instead of Wu

rokartur91367bfc1441
diff --git a/native/Cargo.lock b/native/Cargo.lock
index 359642b878e..6125fcc345b 100644
--- a/native/Cargo.lock
+++ b/native/Cargo.lock
@@ -14,38 +14,18 @@ dependencies = [
[[package]]
name = "accesskit_atspi_common"
-version = "0.18.1"
+version = "0.19.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e8c61bee90b42a772d39d06a740207dc71a4e780004ace1db8d99fb1baaa954"
+checksum = "023da0e5097f46df7092d5280b02efb9bbf8d93298daeced42652463e357d636"
dependencies = [
"accesskit",
- "accesskit_consumer 0.36.0",
+ "accesskit_consumer",
"atspi-common",
"phf",
"serde",
"zvariant",
]
-[[package]]
-name = "accesskit_consumer"
-version = "0.36.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25e0d7e25d06f4dc21d1774d67146e9e80d6789216cbd4d1e88185b0095dba60"
-dependencies = [
- "accesskit",
- "hashbrown 0.16.1",
-]
-
-[[package]]
-name = "accesskit_consumer"
-version = "0.37.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f950720ce064757a1b629caad3a408e8d2c63bb01f29b8a3ff8daa331053ffeb"
-dependencies = [
- "accesskit",
- "hashbrown 0.16.1",
-]
-
[[package]]
name = "accesskit_consumer"
version = "0.38.0"
@@ -63,7 +43,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce02dc63b43f0c9296af9ac946312a2dc8814427d7a64d2d600971dac55b6076"
dependencies = [
"accesskit",
- "accesskit_consumer 0.38.0",
+ "accesskit_consumer",
"hashbrown 0.16.1",
"objc2 0.5.3",
"objc2-app-kit 0.2.2",
@@ -72,9 +52,9 @@ dependencies = [
[[package]]
name = "accesskit_unix"
-version = "0.21.1"
+version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b016ca8db0ea0ea2ceff29a9d6240391492d960716aa471967c00e8cc8cb197c"
+checksum = "03e156ed3802e35eefe894ef2671bc6c889303d8a7e110b5e1b48f504b91362f"
dependencies = [
"accesskit",
"accesskit_atspi_common",
@@ -90,12 +70,12 @@ dependencies = [
[[package]]
name = "accesskit_windows"
-version = "0.33.1"
+version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "36e93ac7bf50b964f1cbb75f741629a4e950571baa1ef1274457ab5a80d9bcc2"
+checksum = "106c2b961215864d1c2e703ee63269c25c4e80a577ffb2c1017b9c17dcdf83a1"
dependencies = [
"accesskit",
- "accesskit_consumer 0.37.0",
+ "accesskit_consumer",
"hashbrown 0.16.1",
"static_assertions",
"windows 0.62.2",
@@ -125,7 +105,7 @@ checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"
dependencies = [
"cfg-if",
"cipher",
- "cpufeatures",
+ "cpufeatures 0.2.17",
"zeroize",
]
@@ -177,6 +157,15 @@ version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a"
+[[package]]
+name = "alloca"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5a7d05ea6aea7e9e64d25b9156ba2fee3fdd659e34e41063cd2fc7cd020d7f4"
+dependencies = [
+ "cc",
+]
+
[[package]]
name = "allocator-api2"
version = "0.2.21"
@@ -192,6 +181,18 @@ dependencies = [
"libc",
]
+[[package]]
+name = "anes"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
+
+[[package]]
+name = "anstyle"
+version = "1.0.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
+
[[package]]
name = "anyhow"
version = "1.0.105"
@@ -209,7 +210,7 @@ dependencies = [
"block2 0.6.2",
"chrono",
"config",
- "core-foundation",
+ "core-foundation 0.10.1",
"diff",
"exthost",
"files",
@@ -392,18 +393,6 @@ dependencies = [
"pin-project-lite",
]
-[[package]]
-name = "async-compression"
-version = "0.4.52"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ad47a740fb906fffdd891e8b6d5fde2511600f7bfaebd68939fa08a14999459"
-dependencies = [
- "compression-codecs",
- "compression-core",
- "futures-io",
- "pin-project-lite",
-]
-
[[package]]
name = "async-executor"
version = "1.14.1"
@@ -635,7 +624,7 @@ dependencies = [
"log",
"num-rational",
"num-traits",
- "pastey",
+ "pastey 0.1.1",
"rayon",
"thiserror 2.0.21",
"v_frame",
@@ -699,55 +688,41 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
[[package]]
-name = "bindgen"
-version = "0.71.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3"
+name = "bench_metrics"
+version = "0.1.0"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
- "bitflags 2.13.2",
- "cexpr",
- "clang-sys",
- "itertools 0.13.0",
- "log",
- "prettyplease",
- "proc-macro2",
- "quote",
- "regex",
- "rustc-hash 2.1.3",
- "shlex 1.3.0",
- "syn 2.0.119",
+ "anyhow",
+ "criterion",
+ "libc",
+ "perf-event2",
]
[[package]]
name = "bit-set"
-version = "0.8.0"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
+checksum = "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c"
dependencies = [
- "bit-vec 0.8.0",
+ "bit-vec 0.10.2",
]
[[package]]
-name = "bit-set"
+name = "bit-vec"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34ddef2995421ab6a5c779542c81ee77c115206f4ad9d5a8e05f4ff49716a3dd"
+checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
dependencies = [
- "bit-vec 0.9.1",
+ "serde",
]
[[package]]
name = "bit-vec"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
-
-[[package]]
-name = "bit-vec"
-version = "0.9.1"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"
+checksum = "72503af1e72be411d74ca45cd6b309878fcb35354e252fc2a3a8bda3a97082a0"
dependencies = [
+ "borsh",
"serde",
]
@@ -839,10 +814,24 @@ version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "553c5d846a6ba5150c65e3b1b8ec073bcf1abc20f9b7220de384a4443ea4e20a"
dependencies = [
+ "borsh-derive",
"bytes",
"cfg_aliases",
]
+[[package]]
+name = "borsh-derive"
+version = "1.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12cdfe656708a01f89b451a7d36466e6fe6c414de0aa18fc54f864f6f9ca9f56"
+dependencies = [
+ "once_cell",
+ "proc-macro-crate 3.5.0",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.10",
+]
+
[[package]]
name = "brotli-decompressor"
version = "6.4.0"
@@ -903,13 +892,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c"
[[package]]
-name = "bzip2"
-version = "0.6.1"
+name = "c-enum"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3a53fac24f34a81bc9954b5d6cfce0c21e18ec6959f44f56e8e90e4bb7c346c"
-dependencies = [
- "libbz2-rs-sys",
-]
+checksum = "cd17eb909a8c6a894926bfcc3400a4bb0e732f5a57d37b1f14e8b29e329bace8"
[[package]]
name = "cairo-rs"
@@ -960,6 +946,12 @@ dependencies = [
"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"
@@ -996,16 +988,7 @@ dependencies = [
"find-msvc-tools",
"jobserver",
"libc",
- "shlex 2.0.1",
-]
-
-[[package]]
-name = "cexpr"
-version = "0.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
-dependencies = [
- "nom 7.1.3",
+ "shlex",
]
[[package]]
@@ -1031,12 +1014,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
[[package]]
-name = "cgl"
-version = "0.3.2"
+name = "chacha20"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff"
+checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
dependencies = [
- "libc",
+ "cfg-if",
+ "cpufeatures 0.3.1",
+ "rand_core 0.10.1",
]
[[package]]
@@ -1046,13 +1031,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
dependencies = [
"iana-time-zone",
- "js-sys",
"num-traits",
- "serde",
- "wasm-bindgen",
"windows-link 0.2.1",
]
+[[package]]
+name = "ciborium"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
+dependencies = [
+ "ciborium-io",
+ "ciborium-ll",
+ "serde",
+]
+
+[[package]]
+name = "ciborium-io"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
+
+[[package]]
+name = "ciborium-ll"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
+dependencies = [
+ "ciborium-io",
+ "half",
+]
+
[[package]]
name = "cipher"
version = "0.4.4"
@@ -1065,27 +1074,41 @@ dependencies = [
]
[[package]]
-name = "clang-sys"
-version = "1.9.1"
+name = "clap"
+version = "4.6.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
+checksum = "50066ca966813ca8957ee15361752f19424a8ff620dbe9c8993d9f99d99b04b3"
dependencies = [
- "glob",
- "libc",
- "libloading",
+ "clap_builder",
+]
+
+[[package]]
+name = "clap_builder"
+version = "4.6.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0ed97c96ef4efb3cc84e09fa388df4463e7cc3224ec38d7b1d9e45749333590"
+dependencies = [
+ "anstyle",
+ "clap_lex",
]
+[[package]]
+name = "clap_lex"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79"
+
[[package]]
name = "cocoa"
-version = "0.26.0"
+version = "0.25.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f79398230a6e2c08f5c9760610eb6924b52aa9e7950a619602baba59dcbbdbb2"
+checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags 1.3.2",
"block",
"cocoa-foundation",
- "core-foundation",
- "core-graphics",
+ "core-foundation 0.9.4",
+ "core-graphics 0.23.2",
"foreign-types 0.5.0",
"libc",
"objc",
@@ -1093,14 +1116,15 @@ dependencies = [
[[package]]
name = "cocoa-foundation"
-version = "0.2.1"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81411967c50ee9a1fc11365f8c585f863a22a9697c89239c452292c40ba79b0d"
+checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7"
dependencies = [
- "bitflags 2.13.2",
+ "bitflags 1.3.2",
"block",
- "core-foundation",
- "core-graphics-types",
+ "core-foundation 0.9.4",
+ "core-graphics-types 0.1.3",
+ "libc",
"objc",
]
@@ -1118,7 +1142,7 @@ dependencies = [
[[package]]
name = "collections"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"gpui_util",
"indexmap",
@@ -1131,24 +1155,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
-[[package]]
-name = "compression-codecs"
-version = "0.4.48"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e41632c2efd201c62f1432f7cbee121b97878eab579da9d85676573d1fd33b9"
-dependencies = [
- "bzip2",
- "compression-core",
- "flate2",
- "memchr",
-]
-
-[[package]]
-name = "compression-core"
-version = "0.4.34"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2ebdda89edc534bf8d5dd2857562633b6495557e5846552ade994b99ed13c36a"
-
[[package]]
name = "concurrent-queue"
version = "2.5.0"
@@ -1219,6 +1225,16 @@ dependencies = [
"unicode-segmentation",
]
+[[package]]
+name = "core-foundation"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
[[package]]
name = "core-foundation"
version = "0.10.1"
@@ -1235,6 +1251,19 @@ version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+[[package]]
+name = "core-graphics"
+version = "0.23.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
+dependencies = [
+ "bitflags 1.3.2",
+ "core-foundation 0.9.4",
+ "core-graphics-types 0.1.3",
+ "foreign-types 0.5.0",
+ "libc",
+]
+
[[package]]
name = "core-graphics"
version = "0.24.0"
@@ -1242,60 +1271,57 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
dependencies = [
"bitflags 2.13.2",
- "core-foundation",
- "core-graphics-types",
+ "core-foundation 0.10.1",
+ "core-graphics-types 0.2.0",
"foreign-types 0.5.0",
"libc",
]
[[package]]
-name = "core-graphics-types"
-version = "0.2.0"
+name = "core-graphics-helmer-fork"
+version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
+checksum = "32eb7c354ae9f6d437a6039099ce7ecd049337a8109b23d73e48e8ffba8e9cd5"
dependencies = [
"bitflags 2.13.2",
- "core-foundation",
+ "core-foundation 0.9.4",
+ "core-graphics-types 0.1.3",
+ "foreign-types 0.5.0",
"libc",
]
[[package]]
-name = "core-graphics2"
-version = "0.5.2"
+name = "core-graphics-types"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4416167a69126e617f8d0a214af0e3c1dbdeffcb100ddf72dcd1a1ac9893c146"
+checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"
dependencies = [
- "bitflags 2.13.2",
- "block",
- "cfg-if",
- "core-foundation",
+ "bitflags 1.3.2",
+ "core-foundation 0.9.4",
"libc",
]
[[package]]
-name = "core-text"
-version = "21.0.0"
+name = "core-graphics-types"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a593227b66cbd4007b2a050dfdd9e1d1318311409c8d600dc82ba1b15ca9c130"
+checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
dependencies = [
- "core-foundation",
- "core-graphics",
- "foreign-types 0.5.0",
+ "bitflags 2.13.2",
+ "core-foundation 0.10.1",
"libc",
]
[[package]]
-name = "core-video"
-version = "0.5.2"
+name = "core-text"
+version = "21.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "139679cc63eb9504bdbe37e37874b0247136177655f0008588781e90863afa62"
+checksum = "a593227b66cbd4007b2a050dfdd9e1d1318311409c8d600dc82ba1b15ca9c130"
dependencies = [
- "block",
- "core-foundation",
- "core-graphics2",
- "io-surface",
+ "core-foundation 0.10.1",
+ "core-graphics 0.24.0",
+ "foreign-types 0.5.0",
"libc",
- "metal",
]
[[package]]
@@ -1320,8 +1346,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "be17b688510d934ce13f48a2beba700e11583e281e0fda99c22bb256a14eda73"
dependencies = [
"bitflags 2.13.2",
- "fontdb",
- "harfrust",
+ "fontdb 0.23.0",
+ "harfrust 0.5.2",
"linebender_resource_handle",
"log",
"rangemap",
@@ -1346,6 +1372,15 @@ dependencies = [
"libc",
]
+[[package]]
+name = "cpufeatures"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "crc32fast"
version = "1.5.5"
@@ -1355,6 +1390,41 @@ dependencies = [
"cfg-if",
]
+[[package]]
+name = "criterion"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "950046b2aa2492f9a536f5f4f9a3de7b9e2476e575e05bd6c333371add4d98f3"
+dependencies = [
+ "alloca",
+ "anes",
+ "cast",
+ "ciborium",
+ "clap",
+ "criterion-plot",
+ "itertools 0.13.0",
+ "num-traits",
+ "oorandom",
+ "page_size",
+ "plotters",
+ "rayon",
+ "regex",
+ "serde",
+ "serde_json",
+ "tinytemplate",
+ "walkdir",
+]
+
+[[package]]
+name = "criterion-plot"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8d80a2f4f5b554395e47b5d8305bc3d27813bacb73493eb1001e8f76dae29ea"
+dependencies = [
+ "cast",
+ "itertools 0.13.0",
+]
+
[[package]]
name = "crossbeam-deque"
version = "0.8.8"
@@ -1422,7 +1492,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
dependencies = [
"cfg-if",
- "cpufeatures",
+ "cpufeatures 0.2.17",
"curve25519-dalek-derive",
"digest",
"fiat-crypto",
@@ -1504,13 +1574,12 @@ dependencies = [
"quote",
"rustc_version",
"syn 2.0.119",
- "unicode-xid",
]
[[package]]
name = "derive_refineable"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"proc-macro2",
"quote",
@@ -1556,6 +1625,12 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "dispatch"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
+
[[package]]
name = "dispatch2"
version = "0.3.1"
@@ -1564,7 +1639,6 @@ checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"
dependencies = [
"bitflags 2.13.2",
"block2 0.6.2",
- "libc",
"objc2 0.6.5",
]
@@ -1749,17 +1823,6 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
-[[package]]
-name = "erased-serde"
-version = "0.4.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e59b668157f32d3459d4bd634861a06ffa2503a461ca5f0916b9f0252605e66"
-dependencies = [
- "serde",
- "serde_core",
- "typeid",
-]
-
[[package]]
name = "errno"
version = "0.3.15"
@@ -1870,9 +1933,6 @@ name = "fastrand"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
-dependencies = [
- "getrandom 0.4.3",
-]
[[package]]
name = "fax"
@@ -1964,19 +2024,12 @@ 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 = "flume"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e139bc46ca777eb5efaf62df0ab8cc5fd400866427e56c68b22e414e53bd3be"
dependencies = [
- "fastrand",
"futures-core",
"futures-sink",
"spin 0.9.9",
@@ -2041,6 +2094,19 @@ dependencies = [
"ttf-parser",
]
+[[package]]
+name = "fontdb"
+version = "0.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2660c5e9157bf76d2db1294e4a9feba604ef610819a3b591088d0d8392a3290f"
+dependencies = [
+ "fontconfig-parser",
+ "log",
+ "memmap2",
+ "slotmap",
+ "tinyvec",
+]
+
[[package]]
name = "foreign-types"
version = "0.3.2"
@@ -2357,6 +2423,7 @@ dependencies = [
"js-sys",
"libc",
"r-efi 6.0.0",
+ "rand_core 0.10.1",
"wasm-bindgen",
]
@@ -2473,17 +2540,11 @@ dependencies = [
"system-deps",
]
-[[package]]
-name = "glob"
-version = "0.3.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
-
[[package]]
name = "glow"
-version = "0.17.0"
+version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5"
+checksum = "263218b0ba2b0715c3370fb04674f5f8aa331594b521c94ff0a8e4a8472d1386"
dependencies = [
"js-sys",
"slotmap",
@@ -2525,26 +2586,6 @@ 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"
version = "0.2.2"
@@ -2554,12 +2595,9 @@ dependencies = [
"async-channel",
"async-task",
"backtrace",
- "bindgen",
+ "bench_metrics",
"bitflags 2.13.2",
- "chrono",
"collections",
- "core-video",
- "ctor",
"derive_more",
"embed-resource",
"etagere",
@@ -2571,12 +2609,17 @@ dependencies = [
"gpui_util",
"heapless",
"http_client",
+ "icu_segmenter",
"image",
"inventory",
"itertools 0.14.0",
+ "jiff",
+ "libc",
"log",
- "lyon",
+ "lyon_path",
"num_cpus",
+ "objc2-core-foundation",
+ "objc2-core-video",
"parking",
"parking_lot",
"pin-project",
@@ -2584,7 +2627,7 @@ dependencies = [
"postage",
"profiling",
"proptest",
- "rand",
+ "rand 0.9.5",
"raw-window-handle",
"refineable",
"regex",
@@ -2601,17 +2644,16 @@ dependencies = [
"sum_tree",
"taffy",
"thiserror 2.0.21",
- "tracing",
+ "tiny-skia-path",
"ttf-parser",
+ "unicode-segmentation",
"url",
"usvg",
- "util_macros",
"uuid",
"waker-fn",
"web-time",
- "windows 0.61.3",
- "zed-font-kit",
- "ztracing",
+ "windows 0.62.2",
+ "zed-scap",
]
[[package]]
@@ -2619,34 +2661,70 @@ name = "gpui_apple"
version = "0.1.0"
dependencies = [
"anyhow",
- "block",
+ "async-task",
+ "block2 0.6.2",
"cbindgen",
- "cocoa",
"collections",
- "core-foundation",
- "core-video",
- "derive_more",
+ "core-foundation 0.10.1",
+ "core-foundation-sys",
+ "core-graphics 0.24.0",
+ "core-text",
+ "dispatch2",
"etagere",
- "foreign-types 0.5.0",
+ "futures",
"gpui",
+ "gpui_util",
"image",
+ "libc",
"log",
- "metal",
- "objc",
+ "mach2",
+ "objc2 0.6.5",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "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_ios"
+version = "0.1.0"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
+dependencies = [
+ "anyhow",
+ "block2 0.6.2",
+ "futures",
+ "gpui",
+ "gpui_apple",
+ "log",
+ "objc2 0.6.5",
+ "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_linux"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"accesskit",
"accesskit_unix",
"anyhow",
"as-raw-xcb-connection",
"ashpd",
- "bitflags 2.13.2",
"bytemuck",
"calloop",
"calloop-wayland-source",
@@ -2657,7 +2735,6 @@ dependencies = [
"gpui_util",
"gpui_wgpu",
"http_client",
- "i18n",
"libc",
"log",
"notify-rust",
@@ -2676,29 +2753,25 @@ dependencies = [
"wayland-protocols",
"wayland-protocols-plasma",
"wayland-protocols-wlr",
- "x11-clipboard",
"x11rb",
"xkbcommon",
+ "zed-scap",
"zed-xim",
]
[[package]]
name = "gpui_macos"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"accesskit",
"accesskit_macos",
"anyhow",
- "async-task",
- "block",
"block2 0.6.2",
- "cocoa",
"collections",
- "core-foundation",
+ "core-foundation 0.10.1",
"core-foundation-sys",
- "core-graphics",
- "core-text",
+ "core-graphics 0.24.0",
"ctor",
"dispatch2",
"foreign-types 0.5.0",
@@ -2708,29 +2781,28 @@ dependencies = [
"gpui_util",
"image",
"itertools 0.14.0",
- "libc",
"log",
- "mach2",
- "metal",
- "objc",
"objc2 0.6.5",
"objc2-app-kit 0.3.2",
+ "objc2-core-graphics",
+ "objc2-core-video",
"objc2-foundation 0.3.2",
+ "objc2-uniform-type-identifiers",
"objc2-user-notifications",
"parking_lot",
- "pathfinder_geometry",
"raw-window-handle",
+ "scheduler",
"semver",
+ "serde_json",
"smallvec",
"strum",
"uuid",
- "zed-font-kit",
]
[[package]]
name = "gpui_macros"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"heck 0.5.0",
"proc-macro2",
@@ -2741,20 +2813,23 @@ dependencies = [
[[package]]
name = "gpui_platform"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
+ "anyhow",
"console_error_panic_hook",
"gpui",
+ "gpui_ios",
"gpui_linux",
"gpui_macos",
"gpui_web",
+ "gpui_wgpu",
"gpui_windows",
]
[[package]]
name = "gpui_shared_string"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"schemars",
"serde",
@@ -2764,7 +2839,7 @@ dependencies = [
[[package]]
name = "gpui_util"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"anyhow",
"log",
@@ -2774,9 +2849,10 @@ dependencies = [
[[package]]
name = "gpui_web"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"anyhow",
+ "async-channel",
"console_error_panic_hook",
"futures",
"gpui",
@@ -2787,6 +2863,10 @@ dependencies = [
"parking_lot",
"raw-window-handle",
"scheduler",
+ "smallvec",
+ "unicode-properties",
+ "unicode-script",
+ "unicode-segmentation",
"uuid",
"wasm-bindgen",
"wasm-bindgen-futures",
@@ -2798,7 +2878,7 @@ dependencies = [
[[package]]
name = "gpui_wgpu"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"anyhow",
"bytemuck",
@@ -2807,13 +2887,17 @@ dependencies = [
"etagere",
"gpui",
"gpui_util",
+ "image",
"itertools 0.14.0",
+ "js-sys",
"log",
"parking_lot",
"profiling",
"raw-window-handle",
+ "skrifa 0.40.0",
"smallvec",
"swash",
+ "tiny-skia",
"unicode-bidi",
"unicode-segmentation",
"web-sys",
@@ -2834,18 +2918,18 @@ dependencies = [
"futures",
"gpui",
"gpui_util",
- "i18n",
"image",
"itertools 0.14.0",
"log",
"parking_lot",
- "rand",
+ "rand 0.9.5",
"raw-window-handle",
+ "scheduler",
"smallvec",
"uuid",
- "windows 0.61.3",
- "windows-core 0.61.2",
- "windows-numerics 0.2.0",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
+ "windows-numerics 0.3.1",
"windows-registry",
]
@@ -2926,6 +3010,18 @@ dependencies = [
"smallvec",
]
+[[package]]
+name = "harfrust"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c03d949a14aa089bbb282f7dd76a498a7f684428e4257202efc119ec010376f9"
+dependencies = [
+ "bitflags 2.13.2",
+ "bytemuck",
+ "read-fonts 0.41.0",
+ "smallvec",
+]
+
[[package]]
name = "hash32"
version = "0.3.1"
@@ -2966,6 +3062,9 @@ name = "hashbrown"
version = "0.17.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc"
+dependencies = [
+ "foldhash 0.2.0",
+]
[[package]]
name = "hashlink"
@@ -3010,12 +3109,6 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
-[[package]]
-name = "hexf-parse"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
-
[[package]]
name = "hkdf"
version = "0.12.4"
@@ -3057,12 +3150,10 @@ dependencies = [
[[package]]
name = "http_client"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"anyhow",
- "async-compression",
"bytes",
- "derive_more",
"futures",
"http",
"http-body",
@@ -3074,19 +3165,6 @@ dependencies = [
"url",
]
-[[package]]
-name = "i18n"
-version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
-dependencies = [
- "core-foundation",
- "core-foundation-sys",
- "gpui_shared_string",
- "serde",
- "serde_json",
- "sys-locale",
-]
-
[[package]]
name = "iana-time-zone"
version = "0.1.65"
@@ -3304,7 +3382,7 @@ dependencies = [
"image-webp",
"moxcms",
"num-traits",
- "png 0.18.1",
+ "png",
"qoi",
"ravif",
"rayon",
@@ -3325,9 +3403,9 @@ dependencies = [
[[package]]
name = "imagesize"
-version = "0.14.0"
+version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09e54e57b4c48b40f7aec75635392b12b3421fa26fe8b4332e63138ed278459c"
+checksum = "65b27460c2c92b037f3f94c538ed9a3342f3fdf923606781629ccb35f82d042a"
[[package]]
name = "imgref"
@@ -3409,18 +3487,6 @@ dependencies = [
"rustversion",
]
-[[package]]
-name = "io-surface"
-version = "0.16.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "554b8c5d64ec09a3a520fe58e4d48a73e00ff32899cdcbe32a4877afd4968b8e"
-dependencies = [
- "cgl",
- "core-foundation",
- "core-foundation-sys",
- "leaky-cow",
-]
-
[[package]]
name = "is-docker"
version = "0.2.0"
@@ -3495,10 +3561,13 @@ checksum = "107f2e89536b6818514025f6787b0d94d819e54fe3b40365275fc753de485b3f"
dependencies = [
"jiff-core",
"jiff-static",
+ "jiff-tzdb-platform",
+ "js-sys",
"log",
"portable-atomic",
"portable-atomic-util",
"serde_core",
+ "wasm-bindgen",
"windows-link 0.2.1",
]
@@ -3523,6 +3592,21 @@ dependencies = [
"syn 3.0.10",
]
+[[package]]
+name = "jiff-tzdb"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "12e71a1b68a875a44a33bb7a1dd84392cb77145a3367a552a3cfe6a4f5cf3afc"
+
+[[package]]
+name = "jiff-tzdb-platform"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc65b284afcfa8f6cf189c7274c805505314a7ab975c60e1f548bff56525420e"
+dependencies = [
+ "jiff-tzdb",
+]
+
[[package]]
name = "jni-sys"
version = "0.3.1"
@@ -3627,33 +3711,12 @@ version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
-[[package]]
-name = "leak"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd100e01f1154f2908dfa7d02219aeab25d0b9c7fa955164192e3245255a0c73"
-
-[[package]]
-name = "leaky-cow"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40a8225d44241fd324a8af2806ba635fc7c8a7e9a7de4d5cf3ef54e71f5926fc"
-dependencies = [
- "leak",
-]
-
[[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.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5314d1d545fce0307c770d791adf20d997e0b63b64e1ffeed8a920e290eabe4"
-
[[package]]
name = "libc"
version = "0.2.191"
@@ -3773,7 +3836,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
dependencies = [
"serde_core",
- "value-bag",
]
[[package]]
@@ -3785,26 +3847,6 @@ dependencies = [
"imgref",
]
-[[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.22"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3a6b9d4e8b48acd531fbf1241ad9b270df6e60b6b92bdea1469f4f40899d805"
-dependencies = [
- "lyon_path",
- "num-traits",
-]
-
[[package]]
name = "lyon_geom"
version = "1.0.20"
@@ -3826,17 +3868,6 @@ 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-notification-sys"
version = "0.6.15"
@@ -3853,13 +3884,26 @@ dependencies = [
[[package]]
name = "mach2"
-version = "0.5.0"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dae608c151f68243f2b000364e1f7b186d9c29845f7d2d85bd31b9ad77ad552b"
+
+[[package]]
+name = "macro_rules_attribute"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6a1b95cd5421ec55b445b5ae102f5ea0e768de1f82bd3001e11f426c269c3aea"
+checksum = "b3ae8f6d608c795738406608304d30a2dfbdc8e58e44f7ba43236da5208ded3c"
dependencies = [
- "libc",
+ "macro_rules_attribute-proc_macro",
+ "pastey 0.2.3",
]
+[[package]]
+name = "macro_rules_attribute-proc_macro"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc04a4c58212d57930a24bf47d3fa87485264a3a054e9c10e042eb373573ad3c"
+
[[package]]
name = "malloc_buf"
version = "0.0.6"
@@ -3913,21 +3957,6 @@ 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",
- "foreign-types 0.5.0",
- "log",
- "objc",
- "paste",
-]
-
[[package]]
name = "minimal-lexical"
version = "0.2.1"
@@ -4006,22 +4035,21 @@ checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"
[[package]]
name = "naga"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b2bf919621e7975acb27d881bae2fb993e0d45c8e0446e85e6272971e00dc8df"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"arrayvec",
- "bit-set 0.9.1",
+ "bit-set",
"bitflags 2.13.2",
"cfg-if",
"cfg_aliases",
"codespan-reporting",
"half",
- "hashbrown 0.16.1",
- "hexf-parse",
+ "hashbrown 0.17.2",
"indexmap",
"libm",
"log",
+ "naga-types",
"num-traits",
"once_cell",
"rustc-hash 1.1.0",
@@ -4030,6 +4058,17 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "naga-types"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
+dependencies = [
+ "hashbrown 0.17.2",
+ "indexmap",
+ "rustc-hash 1.1.0",
+ "thiserror 2.0.21",
+]
+
[[package]]
name = "ndk-sys"
version = "0.6.0+11769913"
@@ -4122,12 +4161,12 @@ dependencies = [
]
[[package]]
-name = "nu-ansi-term"
-version = "0.50.3"
+name = "ntapi"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
+checksum = "c3b335231dfd352ffb0f8017f3b6027a4917f7df785ea2143d8af2adc66980ae"
dependencies = [
- "windows-sys 0.61.2",
+ "winapi",
]
[[package]]
@@ -4165,7 +4204,7 @@ dependencies = [
"num-iter",
"num-traits",
"once_cell",
- "rand",
+ "rand 0.9.5",
"serde",
"smallvec",
"zeroize",
@@ -4254,6 +4293,18 @@ 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]]
@@ -4308,6 +4359,8 @@ dependencies = [
"objc2 0.6.5",
"objc2-core-foundation",
"objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+ "objc2-uniform-type-identifiers",
]
[[package]]
@@ -4329,10 +4382,25 @@ 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.5",
]
+[[package]]
+name = "objc2-core-graphics"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
+dependencies = [
+ "bitflags 2.13.2",
+ "dispatch2",
+ "objc2 0.6.5",
+ "objc2-core-foundation",
+ "objc2-io-surface",
+]
+
[[package]]
name = "objc2-core-image"
version = "0.2.2"
@@ -4346,25 +4414,39 @@ dependencies = [
]
[[package]]
-name = "objc2-core-location"
+name = "objc2-core-services"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"
+checksum = "583300ad934cba24ff5292aee751ecc070f7ca6b39a574cc21b7b5e588e06a0b"
dependencies = [
- "objc2 0.6.5",
- "objc2-foundation 0.3.2",
+ "libc",
+ "objc2-core-foundation",
]
[[package]]
-name = "objc2-core-services"
+name = "objc2-core-text"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "583300ad934cba24ff5292aee751ecc070f7ca6b39a574cc21b7b5e588e06a0b"
+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"
dependencies = [
- "libc",
+ "bitflags 2.13.2",
"objc2-core-foundation",
]
+[[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.5",
+ "objc2-core-foundation",
+ "objc2-core-graphics",
+ "objc2-io-surface",
+ "objc2-metal 0.3.2",
+]
+
[[package]]
name = "objc2-encode"
version = "4.1.0"
@@ -4390,8 +4472,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
dependencies = [
"bitflags 2.13.2",
- "block2 0.6.2",
- "libc",
+ "block2 0.6.2",
+ "libc",
+ "objc2 0.6.5",
+ "objc2-core-foundation",
+]
+
+[[package]]
+name = "objc2-io-surface"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"
+dependencies = [
+ "bitflags 2.13.2",
"objc2 0.6.5",
"objc2-core-foundation",
]
@@ -4416,6 +4509,7 @@ checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794"
dependencies = [
"bitflags 2.13.2",
"block2 0.6.2",
+ "dispatch2",
"objc2 0.6.5",
"objc2-foundation 0.3.2",
]
@@ -4442,10 +4536,44 @@ dependencies = [
"bitflags 2.13.2",
"objc2 0.6.5",
"objc2-core-foundation",
+ "objc2-core-graphics",
"objc2-foundation 0.3.2",
"objc2-metal 0.3.2",
]
+[[package]]
+name = "objc2-security"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "709fe137109bd1e8b5a99390f77a7d8b2961dafc1a1c5db8f2e60329ad6d895a"
+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.5",
+ "objc2-core-foundation",
+ "objc2-foundation 0.3.2",
+ "objc2-quartz-core 0.3.2",
+]
+
+[[package]]
+name = "objc2-uniform-type-identifiers"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7902ac02859fc1f7045f8b598c63f1ae0cc7efeaa06a9bc9f3d9a3c955974fa4"
+dependencies = [
+ "objc2 0.6.5",
+ "objc2-foundation 0.3.2",
+]
+
[[package]]
name = "objc2-user-notifications"
version = "0.3.2"
@@ -4455,7 +4583,6 @@ dependencies = [
"bitflags 2.13.2",
"block2 0.6.2",
"objc2 0.6.5",
- "objc2-core-location",
"objc2-foundation 0.3.2",
]
@@ -4473,6 +4600,24 @@ dependencies = [
"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.40.0"
@@ -4554,6 +4699,12 @@ dependencies = [
"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"
@@ -4626,6 +4777,16 @@ dependencies = [
"pin-project-lite",
]
+[[package]]
+name = "page_size"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da"
+dependencies = [
+ "libc",
+ "winapi",
+]
+
[[package]]
name = "pango"
version = "0.18.3"
@@ -4692,6 +4853,12 @@ 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"
@@ -4738,13 +4905,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
[[package]]
-name = "perf"
-version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+name = "perf-event-data"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "575828d9d7d205188048eb1508560607a03d21eafdbba47b8cade1736c1c28e1"
dependencies = [
- "collections",
- "serde",
- "serde_json",
+ "bitflags 2.13.2",
+ "c-enum",
+ "perf-event-open-sys2",
+]
+
+[[package]]
+name = "perf-event-open-sys2"
+version = "5.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c25955321465255e437600b54296983fab1feac2cd0c38958adeb26dbae49e"
+dependencies = [
+ "libc",
+ "memoffset",
+]
+
+[[package]]
+name = "perf-event2"
+version = "0.7.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0939b8fad77dfaeb29ebbd35faaeaadbf833167f30975f1b8993bbba09ea0a0f"
+dependencies = [
+ "bitflags 2.13.2",
+ "c-enum",
+ "libc",
+ "memmap2",
+ "perf-event-data",
+ "perf-event-open-sys2",
]
[[package]]
@@ -4858,16 +5050,31 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
[[package]]
-name = "png"
-version = "0.17.16"
+name = "plotters"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
+checksum = "5aeb6f403d7a4911efb1e33402027fc44f29b5bf6def3effcc22d7bb75f2b747"
dependencies = [
- "bitflags 1.3.2",
- "crc32fast",
- "fdeflate",
- "flate2",
- "miniz_oxide 0.8.9",
+ "num-traits",
+ "plotters-backend",
+ "plotters-svg",
+ "wasm-bindgen",
+ "web-sys",
+]
+
+[[package]]
+name = "plotters-backend"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a"
+
+[[package]]
+name = "plotters-svg"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51bae2ac328883f7acdfea3d66a7c35751187f870bc81f94563733a154d7a670"
+dependencies = [
+ "plotters-backend",
]
[[package]]
@@ -4941,8 +5148,6 @@ checksum = "af3fb618632874fb76937c2361a7f22afd393c982a2165595407edc75b06d3c1"
dependencies = [
"atomic",
"crossbeam-queue",
- "futures",
- "log",
"parking_lot",
"pin-project",
"pollster 0.2.5",
@@ -4982,16 +5187,6 @@ version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
-[[package]]
-name = "prettyplease"
-version = "0.2.37"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
-dependencies = [
- "proc-macro2",
- "syn 2.0.119",
-]
-
[[package]]
name = "proc-macro-crate"
version = "1.3.1"
@@ -5085,16 +5280,18 @@ dependencies = [
[[package]]
name = "proptest"
-version = "1.10.0"
-source = "git+https://github.com/proptest-rs/proptest?rev=3dca198a8fef1b32e3a66f1e1897c955b4dc5b5b#3dca198a8fef1b32e3a66f1e1897c955b4dc5b5b"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8530004ccb15eae51c7e40009fbe317f341f804db54dc033eec1c50be28cfa0"
dependencies = [
- "bit-set 0.8.0",
- "bit-vec 0.8.0",
+ "bit-set",
+ "bit-vec 0.10.2",
"bitflags 2.13.2",
+ "chacha20",
+ "core_detect",
"num-traits",
"proptest-macro",
- "rand",
- "rand_chacha",
+ "rand 0.10.4",
"rand_xorshift",
"regex-syntax",
"rusty-fork",
@@ -5104,13 +5301,14 @@ dependencies = [
[[package]]
name = "proptest-macro"
-version = "0.5.0"
-source = "git+https://github.com/proptest-rs/proptest?rev=3dca198a8fef1b32e3a66f1e1897c955b4dc5b5b#3dca198a8fef1b32e3a66f1e1897c955b4dc5b5b"
+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 2.0.119",
+ "syn 3.0.10",
]
[[package]]
@@ -5188,16 +5386,47 @@ version = "6.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+[[package]]
+name = "rand"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c"
+dependencies = [
+ "libc",
+ "rand_chacha 0.3.1",
+ "rand_core 0.6.4",
+]
+
[[package]]
name = "rand"
version = "0.9.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
dependencies = [
- "rand_chacha",
+ "rand_chacha 0.9.0",
"rand_core 0.9.5",
]
+[[package]]
+name = "rand"
+version = "0.10.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f6fa277c67e6ea590466f04c3fe82cb509f0864fe470643e5570de9514a9b11"
+dependencies = [
+ "getrandom 0.4.3",
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.6.4",
+]
+
[[package]]
name = "rand_chacha"
version = "0.9.0"
@@ -5226,13 +5455,19 @@ dependencies = [
"getrandom 0.3.4",
]
+[[package]]
+name = "rand_core"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
+
[[package]]
name = "rand_xorshift"
-version = "0.4.0"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"
+checksum = "60aa6af80be32871323012e02e6e65f8a7cc7890931ae421d217ad8fe0df2ccf"
dependencies = [
- "rand_core 0.9.5",
+ "rand_core 0.10.1",
]
[[package]]
@@ -5274,8 +5509,8 @@ dependencies = [
"num-traits",
"paste",
"profiling",
- "rand",
- "rand_chacha",
+ "rand 0.9.5",
+ "rand_chacha 0.9.0",
"simd_helpers",
"thiserror 2.0.21",
"v_frame",
@@ -5413,7 +5648,7 @@ dependencies = [
[[package]]
name = "refineable"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"derive_refineable",
]
@@ -5455,10 +5690,11 @@ checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
[[package]]
name = "resvg"
-version = "0.46.0"
+version = "0.49.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b563218631706d614e23059436526d005b50ab5f2d506b55a17eb65c5eb83419"
+checksum = "1572844b6727a1bf842190e9947641a68ac44bed83f50afb4bd1407a2564bee8"
dependencies = [
+ "bytemuck",
"gif",
"image-webp",
"log",
@@ -5598,24 +5834,6 @@ dependencies = [
"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"
@@ -5634,15 +5852,14 @@ dependencies = [
[[package]]
name = "scheduler"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"async-task",
"backtrace",
- "chrono",
"flume",
"futures",
"parking_lot",
- "rand",
+ "rand 0.9.5",
"wasm_thread",
"web-time",
]
@@ -5685,6 +5902,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 = "seahash"
version = "4.1.0"
@@ -5708,7 +5948,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
dependencies = [
"bitflags 2.13.2",
- "core-foundation",
+ "core-foundation 0.10.1",
"core-foundation-sys",
"libc",
"security-framework-sys",
@@ -5791,15 +6031,6 @@ dependencies = [
"syn 3.0.10",
]
-[[package]]
-name = "serde_fmt"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e497af288b3b95d067a23a4f749f2861121ffcb2f6d8379310dcda040c345ed"
-dependencies = [
- "serde_core",
-]
-
[[package]]
name = "serde_json"
version = "1.0.154"
@@ -5869,25 +6100,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
dependencies = [
"cfg-if",
- "cpufeatures",
+ "cpufeatures 0.2.17",
"digest",
]
-[[package]]
-name = "sharded-slab"
-version = "0.1.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
-dependencies = [
- "lazy_static",
-]
-
-[[package]]
-name = "shlex"
-version = "1.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
-
[[package]]
name = "shlex"
version = "2.0.1"
@@ -6013,7 +6229,6 @@ version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eeb7109d23f319619d4cc0de5464613c8b7b1a09db2774a58101459cf6be2f10"
dependencies = [
- "borsh",
"serde_core",
]
@@ -6138,105 +6353,25 @@ checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664"
dependencies = [
"heck 0.5.0",
"proc-macro2",
- "quote",
- "syn 2.0.119",
-]
-
-[[package]]
-name = "subtle"
-version = "2.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
-
-[[package]]
-name = "sum_tree"
-version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
-dependencies = [
- "heapless",
- "log",
- "rayon",
- "tracing",
- "ztracing",
-]
-
-[[package]]
-name = "sval"
-version = "2.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b81b254da21fe1fcc4e3a74fe39b46e25e3a863078f8b71c954d47f84889dbc6"
-
-[[package]]
-name = "sval_buffer"
-version = "2.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "50be352d2822ffafb59e3e2ddac9d5ee60f2eeadbb7b5a2a951b9f3651e87a6f"
-dependencies = [
- "sval",
- "sval_ref",
- "zerocopy",
-]
-
-[[package]]
-name = "sval_dynamic"
-version = "2.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b048ca293b998d9a45659159f94a64063791e74cdc670164943dbb434405573d"
-dependencies = [
- "sval",
-]
-
-[[package]]
-name = "sval_fmt"
-version = "2.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6b5888e40f80568733217f27b7317b845f463400ced36c424b1a804730e53b2"
-dependencies = [
- "itoa",
- "ryu",
- "sval",
-]
-
-[[package]]
-name = "sval_json"
-version = "2.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e17664d6bb6b74947afaab9d7c991caa9bf5638d4dee16fcbef637f440796049"
-dependencies = [
- "itoa",
- "ryu",
- "sval",
-]
-
-[[package]]
-name = "sval_nested"
-version = "2.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07c059969ca5ca163ea7fef6c9661758973d17691aba92abdcf5c428f4ec122c"
-dependencies = [
- "sval",
- "sval_buffer",
- "sval_ref",
+ "quote",
+ "syn 2.0.119",
]
[[package]]
-name = "sval_ref"
-version = "2.22.0"
+name = "subtle"
+version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42d6b29ff568c85c87561807f51d2adfff4b6016c6363133f7cd1652a12548f3"
-dependencies = [
- "sval",
-]
+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
-name = "sval_serde"
-version = "2.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f33ec9edc42b12764d5c90ca0a1d84189c6bde81ed27507f1e661c6e4e05853"
+name = "sum_tree"
+version = "0.1.0"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
- "serde_core",
- "sval",
- "sval_nested",
+ "heapless",
+ "rayon",
+ "tracing",
+ "ztracing",
]
[[package]]
@@ -6329,6 +6464,20 @@ dependencies = [
"libc",
]
+[[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-deps"
version = "6.2.2"
@@ -6344,16 +6493,27 @@ dependencies = [
[[package]]
name = "taffy"
-version = "0.13.0"
+version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c034e05f6ee85a12daa63863c2245797715075c70649947aa0da54f3f2ab1d0f"
+checksum = "3c8480887e8803986d96a7173729565520d4bbb721ad6b7ad6941a22897207aa"
dependencies = [
- "arrayvec",
"serde",
"slotmap",
"smallvec",
]
+[[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 = "target-features"
version = "0.1.6"
@@ -6447,15 +6607,6 @@ dependencies = [
"syn 3.0.10",
]
-[[package]]
-name = "thread_local"
-version = "1.1.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
-dependencies = [
- "cfg-if",
-]
-
[[package]]
name = "tiff"
version = "0.11.3"
@@ -6511,24 +6662,24 @@ dependencies = [
[[package]]
name = "tiny-skia"
-version = "0.11.4"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab"
+checksum = "47ffee5eaaf5527f630fb0e356b90ebdec84d5d18d937c5e440350f88c5a91ea"
dependencies = [
"arrayref",
"arrayvec",
"bytemuck",
"cfg-if",
"log",
- "png 0.17.16",
+ "png",
"tiny-skia-path",
]
[[package]]
name = "tiny-skia-path"
-version = "0.11.4"
+version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93"
+checksum = "edca365c3faccca67d06593c5980fa6c57687de727a03131735bb85f01fdeeb9"
dependencies = [
"arrayref",
"bytemuck",
@@ -6546,6 +6697,16 @@ dependencies = [
"zerovec",
]
+[[package]]
+name = "tinytemplate"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc"
+dependencies = [
+ "serde",
+ "serde_json",
+]
+
[[package]]
name = "tinyvec"
version = "1.13.3"
@@ -6705,32 +6866,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
dependencies = [
"once_cell",
- "valuable",
-]
-
-[[package]]
-name = "tracing-log"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
-dependencies = [
- "log",
- "once_cell",
- "tracing-core",
-]
-
-[[package]]
-name = "tracing-subscriber"
-version = "0.3.23"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
-dependencies = [
- "nu-ansi-term",
- "sharded-slab",
- "smallvec",
- "thread_local",
- "tracing-core",
- "tracing-log",
]
[[package]]
@@ -6761,12 +6896,6 @@ dependencies = [
"core_maths",
]
-[[package]]
-name = "typeid"
-version = "1.0.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
-
[[package]]
name = "typenum"
version = "1.20.1"
@@ -6802,18 +6931,6 @@ 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-ident"
version = "1.0.27"
@@ -6837,9 +6954,9 @@ dependencies = [
[[package]]
name = "unicode-properties"
-version = "0.1.5"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "993ad287eb20e8ba755312801cfe1413e0f25d604075863acaddca10b04c1833"
+checksum = "e70f2a8b45122e719eb623c01822704c4e0907e7e426a05927e1a1cfff5b75d0"
[[package]]
name = "unicode-script"
@@ -6865,12 +6982,6 @@ version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557"
-[[package]]
-name = "unicode-xid"
-version = "0.2.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
-
[[package]]
name = "untrusted"
version = "0.9.0"
@@ -6897,22 +7008,23 @@ checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
[[package]]
name = "usvg"
-version = "0.46.0"
+version = "0.49.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e419dff010bb12512b0ae9e3d2f318dfbdf0167fde7eb05465134d4e8756076f"
+checksum = "d09b73ee83641d390ad7ffd9000f347b16eb128e437675b6ff277ea5c7fcf22c"
dependencies = [
- "base64 0.22.1",
+ "base64 0.23.1",
"data-url",
"flate2",
- "fontdb",
+ "fontdb 0.24.0",
+ "harfrust 0.12.0",
"imagesize",
"kurbo",
"log",
"pico-args",
"roxmltree 0.21.2",
- "rustybuzz",
"simplecss",
"siphasher",
+ "skrifa 0.44.0",
"strict-num",
"svgtypes",
"tiny-skia-path",
@@ -6946,16 +7058,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
-[[package]]
-name = "util_macros"
-version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
-dependencies = [
- "perf",
- "quote",
- "syn 2.0.119",
-]
-
[[package]]
name = "uuid"
version = "1.29.3"
@@ -6980,48 +7082,6 @@ dependencies = [
"wasm-bindgen",
]
-[[package]]
-name = "valuable"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
-
-[[package]]
-name = "value-bag"
-version = "1.14.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2799ffb329a792ecfd902b71306c8a815a6ef1c0470fa9953a6aa4d4cecbe511"
-dependencies = [
- "value-bag-serde1",
- "value-bag-sval2",
-]
-
-[[package]]
-name = "value-bag-serde1"
-version = "1.14.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0941feceafbe7a8f59ea1096d45b97002884a41306315ad797b3684b63a81d8c"
-dependencies = [
- "erased-serde",
- "serde_core",
- "serde_fmt",
-]
-
-[[package]]
-name = "value-bag-sval2"
-version = "1.14.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "839752af8179287d27eb2b94164641b1ede9e60ab7424163388dc21ebd0508cd"
-dependencies = [
- "sval",
- "sval_buffer",
- "sval_dynamic",
- "sval_fmt",
- "sval_json",
- "sval_ref",
- "sval_serde",
-]
-
[[package]]
name = "vcpkg"
version = "0.2.15"
@@ -7339,8 +7399,8 @@ dependencies = [
"webview2-com-sys",
"windows 0.61.3",
"windows-core 0.61.2",
- "windows-implement",
- "windows-interface",
+ "windows-implement 0.60.2",
+ "windows-interface 0.59.3",
]
[[package]]
@@ -7373,9 +7433,8 @@ checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
[[package]]
name = "wgpu"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76e8840e1ba2881d4cbb18d2147627a56af426ff064c0401eb0c8410c6325d07"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"arrayvec",
"bitflags 2.13.2",
@@ -7383,12 +7442,10 @@ dependencies = [
"cfg-if",
"cfg_aliases",
"document-features",
- "hashbrown 0.16.1",
+ "hashbrown 0.17.2",
"js-sys",
"log",
"naga",
- "parking_lot",
- "portable-atomic",
"profiling",
"raw-window-handle",
"smallvec",
@@ -7398,89 +7455,94 @@ dependencies = [
"web-sys",
"wgpu-core",
"wgpu-hal",
+ "wgpu-sync",
"wgpu-types",
]
[[package]]
name = "wgpu-core"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f519832254e56965a9940c4af57dcb75f702b6f6fa4a0b172f685395843a4d7"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"arrayvec",
- "bit-set 0.9.1",
- "bit-vec 0.9.1",
+ "bit-set",
+ "bit-vec 0.10.2",
"bitflags 2.13.2",
"bytemuck",
"cfg_aliases",
"document-features",
- "hashbrown 0.16.1",
+ "hashbrown 0.17.2",
"indexmap",
"log",
"naga",
- "once_cell",
- "parking_lot",
- "portable-atomic",
+ "naga-types",
+ "num-traits",
"profiling",
"raw-window-handle",
"rustc-hash 1.1.0",
+ "scopeguard",
"smallvec",
"thiserror 2.0.21",
"wgpu-core-deps-apple",
"wgpu-core-deps-emscripten",
+ "wgpu-core-deps-linux-android-bsd",
"wgpu-core-deps-wasm",
- "wgpu-core-deps-windows-linux-android",
+ "wgpu-core-deps-windows",
"wgpu-hal",
"wgpu-naga-bridge",
+ "wgpu-sync",
"wgpu-types",
]
[[package]]
name = "wgpu-core-deps-apple"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f5e39e26c4c0e07589e67d18546cf79ff45383659fc72fca4dd293358a0347f3"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"wgpu-hal",
]
[[package]]
name = "wgpu-core-deps-emscripten"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01e09be551dc939498bdd5f6b2c66e55ab275dad25825267a08605a80fc9f0af"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
+dependencies = [
+ "wgpu-hal",
+]
+
+[[package]]
+name = "wgpu-core-deps-linux-android-bsd"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"wgpu-hal",
]
[[package]]
name = "wgpu-core-deps-wasm"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af1fb1798be2a912497d4c224f72d39bb0cb34af50e8bcc29865bc339c943059"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"wgpu-hal",
]
[[package]]
-name = "wgpu-core-deps-windows-linux-android"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e592c1bbef6ad047647ae6e666ebd8cee7a32bb4544d9700ec96cbf73230257"
+name = "wgpu-core-deps-windows"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"wgpu-hal",
]
[[package]]
name = "wgpu-hal"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97ace1c17727311c22a46e4e3faf56ea6de81af99dcc839bdfb54857b94d448d"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"android_system_properties",
"arrayvec",
"ash",
- "bit-set 0.9.1",
+ "bit-set",
"bitflags 2.13.2",
"block2 0.6.2",
"bytemuck",
@@ -7489,36 +7551,35 @@ dependencies = [
"glow",
"glutin_wgl_sys",
"gpu-allocator",
- "gpu-descriptor",
- "hashbrown 0.16.1",
+ "hashbrown 0.17.2",
"js-sys",
"khronos-egl",
"libc",
"libloading",
"log",
"naga",
+ "naga-types",
"ndk-sys",
"objc2 0.6.5",
"objc2-core-foundation",
+ "objc2-core-graphics",
"objc2-foundation 0.3.2",
"objc2-metal 0.3.2",
"objc2-quartz-core 0.3.2",
- "once_cell",
"ordered-float",
- "parking_lot",
- "portable-atomic",
- "portable-atomic-util",
"profiling",
"range-alloc",
"raw-window-handle",
"raw-window-metal",
"renderdoc-sys",
"smallvec",
+ "static_assertions",
"thiserror 2.0.21",
"wasm-bindgen",
"wayland-sys",
"web-sys",
"wgpu-naga-bridge",
+ "wgpu-sync",
"wgpu-types",
"windows 0.62.2",
"windows-core 0.62.2",
@@ -7527,25 +7588,39 @@ dependencies = [
[[package]]
name = "wgpu-naga-bridge"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95226013f547544b223281cd16a4fb549aa9dcb562adbda0faae4c73ffbbc161"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"naga",
"wgpu-types",
]
+[[package]]
+name = "wgpu-sync"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
+dependencies = [
+ "cfg-if",
+ "lock_api",
+ "once_cell",
+ "parking_lot",
+ "portable-atomic",
+ "portable-atomic-util",
+]
+
[[package]]
name = "wgpu-types"
-version = "29.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "84bf84cd9ca8ca45e2b223a3868f1adf9bfc0c66aeac212e76ee7e40fdadf8f5"
+version = "30.0.0"
+source = "git+https://github.com/gfx-rs/wgpu?rev=cddb2f5d80dc0009b2ef6767635140cacf90a007#cddb2f5d80dc0009b2ef6767635140cacf90a007"
dependencies = [
"bitflags 2.13.2",
"bytemuck",
"js-sys",
"log",
+ "macro_rules_attribute",
+ "naga-types",
"raw-window-handle",
+ "static_assertions",
"web-sys",
]
@@ -7589,6 +7664,16 @@ version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
+[[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",
+]
+
[[package]]
name = "windows"
version = "0.61.3"
@@ -7614,6 +7699,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-collections"
version = "0.2.0"
@@ -7632,14 +7730,26 @@ 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",
+]
+
[[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",
@@ -7651,8 +7761,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",
@@ -7680,6 +7790,17 @@ 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.60.2"
@@ -7691,6 +7812,17 @@ 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.59.3"
@@ -7736,13 +7868,22 @@ dependencies = [
[[package]]
name = "windows-registry"
-version = "0.5.3"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b8a9ed28765efc97bbc954883f4e6796c33a06546ebafacbabee9696967499e"
+checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
dependencies = [
- "windows-link 0.1.3",
- "windows-result 0.3.4",
- "windows-strings 0.4.2",
+ "windows-link 0.2.1",
+ "windows-result 0.4.1",
+ "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",
]
[[package]]
@@ -7975,16 +8116,6 @@ dependencies = [
"pkg-config",
]
-[[package]]
-name = "x11-clipboard"
-version = "0.9.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "662d74b3d77e396b8e5beb00b9cad6a9eccf40b2ef68cc858784b14c41d535a3"
-dependencies = [
- "libc",
- "x11rb",
-]
-
[[package]]
name = "x11rb"
version = "0.13.2"
@@ -8023,6 +8154,18 @@ dependencies = [
"time",
]
+[[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"
@@ -8296,8 +8439,8 @@ source = "git+https://github.com/zed-industries/font-kit?rev=94b0f28166665e8fd2f
dependencies = [
"bitflags 2.13.2",
"byteorder",
- "core-foundation",
- "core-graphics",
+ "core-foundation 0.10.1",
+ "core-graphics 0.24.0",
"core-text",
"dirs",
"dwrote",
@@ -8313,6 +8456,27 @@ dependencies = [
"yeslogic-fontconfig-sys",
]
+[[package]]
+name = "zed-scap"
+version = "0.0.8-zed"
+source = "git+https://github.com/zed-industries/scap?rev=4afea48c3b002197176fb19cd0f9b180dd36eaac#4afea48c3b002197176fb19cd0f9b180dd36eaac"
+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",
+ "x11",
+ "xcb",
+]
+
[[package]]
name = "zed-xim"
version = "0.4.0-zed"
@@ -8434,17 +8598,6 @@ version = "0.6.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
-[[package]]
-name = "zlog"
-version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
-dependencies = [
- "anyhow",
- "chrono",
- "collections",
- "log",
-]
-
[[package]]
name = "zmij"
version = "1.0.23"
@@ -8467,18 +8620,16 @@ dependencies = [
[[package]]
name = "ztracing"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
dependencies = [
"tracing",
- "tracing-subscriber",
- "zlog",
"ztracing_macro",
]
[[package]]
name = "ztracing_macro"
version = "0.1.0"
-source = "git+https://github.com/dstrml/wu?rev=a3ced2864abd933055b0d0afc5821e6cd9b0db2a#a3ced2864abd933055b0d0afc5821e6cd9b0db2a"
+source = "git+https://github.com/longbridge/gpui-fast?rev=f0a91cf952678e4d205da1ec189b6d134e975bcd#f0a91cf952678e4d205da1ec189b6d134e975bcd"
[[package]]
name = "zune-core"
diff --git a/native/Cargo.toml b/native/Cargo.toml
index 164edf50ce9..445b3f18655 100644
--- a/native/Cargo.toml
+++ b/native/Cargo.toml
@@ -1,7 +1,7 @@
[workspace]
resolver = "3"
members = ["crates/*"]
-# vendor/wu is its own small workspace the vendored GPUI crates inherit from.
+# vendor/gpui-fast is its own small workspace the vendored GPUI crates inherit from.
exclude = ["vendor"]
[workspace.package]
@@ -20,15 +20,15 @@ undocumented_unsafe_blocks = "deny"
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
-# GPUI from Wu at the commit the performance bar is measured against; each crate used is Apache-2.0 (port/tools/check-licenses).
-gpui = { git = "https://github.com/dstrml/wu", rev = "a3ced2864abd933055b0d0afc5821e6cd9b0db2a" }
-gpui_platform = { git = "https://github.com/dstrml/wu", rev = "a3ced2864abd933055b0d0afc5821e6cd9b0db2a" }
+# GPUI from gpui-fast, a Zed GPUI fork with Retained Mode (port/notes.md "GPUI on gpui-fast"); each crate used is Apache-2.0 (port/tools/check-licenses).
+gpui = { git = "https://github.com/longbridge/gpui-fast", rev = "f0a91cf952678e4d205da1ec189b6d134e975bcd" }
+gpui_platform = { git = "https://github.com/longbridge/gpui-fast", rev = "f0a91cf952678e4d205da1ec189b6d134e975bcd" }
-# The GPUI crates the port changes, copied from that commit (vendor/README.md); every wu crate uses them.
-[patch."https://github.com/dstrml/wu"]
-gpui = { path = "vendor/wu/crates/gpui" }
-gpui_apple = { path = "vendor/wu/crates/gpui_apple" }
-gpui_windows = { path = "vendor/wu/crates/gpui_windows" }
+# The GPUI crates the port changes, copied from that commit (vendor/README.md); every gpui-fast crate uses them.
+[patch."https://github.com/longbridge/gpui-fast"]
+gpui = { path = "vendor/gpui-fast/crates/gpui" }
+gpui_apple = { path = "vendor/gpui-fast/crates/gpui_apple" }
+gpui_windows = { path = "vendor/gpui-fast/crates/gpui_windows" }
# Dependencies (GPUI included) at opt-level 1, the port's crates at 0: settings_editor tests 21.5 s -> 4.3 s (port/notes.md "Build speed").
[profile.dev.package."*"]
diff --git a/native/crates/app/src/corner_lab.rs b/native/crates/app/src/corner_lab.rs
index 80e3e1b0c00..22f33180619 100644
--- a/native/crates/app/src/corner_lab.rs
+++ b/native/crates/app/src/corner_lab.rs
@@ -64,12 +64,13 @@ fn lab_box(index: usize, case: &Value) -> Div {
}]);
}
// frostedGlass.css's `::before`, as Workbench::frosted_glass paints it.
- if let Some(blur) = backdrop {
+ if backdrop.is_some() {
let fill = color(&case["bg"]);
let radii = gpui::Corners::all(px(radii[0] - borders[0]));
element = element.child(
gpui::canvas(|_, _, _| (), move |bounds, _, window, _| {
- window.paint_backdrop_blur(bounds, radii, px(blur), fill);
+ // shortcut: gpui-fast has no backdrop blur yet, the tint alone; the backdrop cases fail until it is ported.
+ window.paint_quad(gpui::fill(bounds, fill).corner_radii(radii));
})
.absolute()
.inset_0(),
diff --git a/native/crates/app/src/file_icons.rs b/native/crates/app/src/file_icons.rs
index 1dffe91fae9..edc87522958 100644
--- a/native/crates/app/src/file_icons.rs
+++ b/native/crates/app/src/file_icons.rs
@@ -10,7 +10,7 @@ use anyhow::Context as _;
use exthost::scan::ScannedExtension;
use gpui::{
AnyElement, App, Bounds, Div, Edges, ElementId, GlobalElementId, InspectorElementId, LayoutId, Pixels, Position, Rgba, Style, TransformationMatrix,
- Window, chromium_baseline, div, img, prelude::*, px, size, svg,
+ Window, div, img, prelude::*, px, size, svg,
};
use serde_json::Value;
@@ -300,14 +300,6 @@ struct Glyph {
color: Rgba,
}
-impl IntoElement for Glyph {
- type Element = Self;
-
- fn into_element(self) -> Self {
- self
- }
-}
-
impl Element for Glyph {
type RequestLayoutState = LayoutId;
type PrepaintState = ();
@@ -333,11 +325,13 @@ impl Element for Glyph {
fn prepaint(&mut self, _: Option<&GlobalElementId>, _: Option<&InspectorElementId>, _: Bounds<Pixels>, _: &mut LayoutId, _: &mut Window, _: &mut App) {}
- fn paint(&mut self, _: Option<&GlobalElementId>, _: Option<&InspectorElementId>, bounds: Bounds<Pixels>, layout_id: &mut LayoutId, _: &mut (), window: &mut Window, cx: &mut App) {
+ fn paint(&mut self, _: Option<&GlobalElementId>, _: Option<&InspectorElementId>, bounds: Bounds<Pixels>, _: &mut LayoutId, _: &mut (), window: &mut Window, cx: &mut App) {
let Glyph { outline, scale, glyph_size, line_height, width, color } = &*self;
- let x = window.layout_subpixel_x(*layout_id).as_f32();
+ // shortcut: gpui-fast has no `layout_subpixel_x` (our Wu patch 189efc4c454), so the glyph sits on the snapped origin, up to
+ // half a device pixel left of Chromium's; port it with the Chromium layout patches.
+ let x = 0.;
// An icon font's ascent is 1em, its descent 0.
- let baseline = chromium_baseline(px(*line_height), px(*glyph_size), px(0.), window.scale_factor()).as_f32();
+ let baseline = chromium_baseline(*line_height, *glyph_size, window.scale_factor());
let svg_text = format!(
r#"<svg xmlns="http://www.w3.org/2000/svg" width="{width}" height="{line_height}" viewBox="0 0 {width} {line_height}"><path transform="translate({x} {baseline}) scale({scale} -{scale})" d="{outline}"/></svg>"#
);
@@ -350,6 +344,12 @@ impl Element for Glyph {
}
}
+/// Wu's `chromium_baseline` for a font with no descent: the ascent on a device-px baseline centered in the line.
+fn chromium_baseline(line_height: f32, ascent: f32, scale_factor: f32) -> f32 {
+ let ascent = (ascent * scale_factor).round();
+ (((line_height * scale_factor - ascent) / 2.).floor() + ascent) / scale_factor
+}
+
pub(crate) fn glyph_outline(face: &ttf_parser::Face, character: char) -> Option<(String, f32)> {
struct SvgPath(String);
impl ttf_parser::OutlineBuilder for SvgPath {
@@ -409,10 +409,10 @@ mod tests {
/// the half leading floored in device px (rounding in px put it 1 device px low in 22px and 24px lines).
#[test]
fn a_glyph_s_baseline_is_laid_out_in_device_pixels() {
- let baseline = |line_height, scale_factor| chromium_baseline(px(line_height), px(19.5), px(0.), scale_factor);
- assert_eq!(baseline(22., 2.), px(20.5));
- assert_eq!(baseline(24., 2.), px(21.5));
- assert_eq!(baseline(22., 1.), px(21.));
+ let baseline = |line_height, scale_factor| chromium_baseline(line_height, 19.5, scale_factor);
+ assert_eq!(baseline(22., 2.), 20.5);
+ assert_eq!(baseline(24., 2.), 21.5);
+ assert_eq!(baseline(22., 1.), 21.);
}
#[test]
diff --git a/native/crates/app/src/main.rs b/native/crates/app/src/main.rs
index 33bf70848c5..43415eeafd2 100644
--- a/native/crates/app/src/main.rs
+++ b/native/crates/app/src/main.rs
@@ -228,7 +228,7 @@ fn main() -> anyhow::Result<()> {
let screenshot = flag_value("--screenshot").map(PathBuf::from);
let screenshot_input = flag_value("--screenshot-input").unwrap_or_default();
// Typed before the capture, as port/tools/ref-screenshot types KEYS into the reference.
- let screenshot_keys: Vec<Keystroke> = flag_value("--screenshot-keys").unwrap_or_default().split_whitespace().map(Keystroke::parse).collect::<Result<_, _>>()?;
+ let screenshot_keys: Vec<Keystroke> = flag_value("--screenshot-keys").unwrap_or_default().split_whitespace().map(parse_keystroke).collect::<Result<_, _>>()?;
// argvHelper.ts `parseMainProcessArgv`: an invalid `--goto` ends the start.
let parsed = match argv::parse_and_validate(&args[1..]) {
Ok((parsed, _)) => parsed,
@@ -854,6 +854,20 @@ const ACTIVATED_PREFIX: &str = "eager extensions activated: ";
const HANDSHAKE_PREFIX: &str = "handshake done, pid ";
const EXITED_LINE: &str = "extension host exited";
+/// The OS whose key conventions gpui-fast's keystroke parsing and printing take, before an `App` exists.
+fn host_os() -> gpui::OperatingSystem {
+ match () {
+ _ if cfg!(target_os = "macos") => gpui::OperatingSystem::Mac,
+ _ if cfg!(target_os = "windows") => gpui::OperatingSystem::Windows,
+ _ => gpui::OperatingSystem::Linux,
+ }
+}
+
+/// Wu's `Keystroke::parse`, which took `secondary-` as cmd on macOS and ctrl elsewhere.
+fn parse_keystroke(source: &str) -> Result<Keystroke, gpui::InvalidKeystrokeError> {
+ Keystroke::parse_with_os(source, host_os())
+}
+
/// A step of `--screenshot-input`: `right X Y` (a right click), `move X Y` or `key KEYSTROKE`, in window points.
fn screenshot_step(step: &str) -> anyhow::Result<gpui::PlatformInput> {
let parts: Vec<&str> = step.split_whitespace().collect();
@@ -862,7 +876,7 @@ fn screenshot_step(step: &str) -> anyhow::Result<gpui::PlatformInput> {
Ok(match parts[0] {
"right" => gpui::PlatformInput::MouseDown(gpui::MouseDownEvent { button: gpui::MouseButton::Right, position: position()?, modifiers, click_count: 1, first_mouse: false }),
"move" => gpui::PlatformInput::MouseMove(gpui::MouseMoveEvent { position: position()?, pressed_button: None, modifiers }),
- "key" => gpui::PlatformInput::KeyDown(gpui::KeyDownEvent { keystroke: gpui::Keystroke::parse(parts.get(1).context("no key")?)?, is_held: false, prefer_character_input: false }),
+ "key" => gpui::PlatformInput::KeyDown(gpui::KeyDownEvent { keystroke: parse_keystroke(parts.get(1).context("no key")?)?, is_held: false, prefer_character_input: false }),
other => anyhow::bail!("unknown step {other}"),
})
}
diff --git a/native/crates/app/src/terminal/keys.rs b/native/crates/app/src/terminal/keys.rs
index 629ac16f90c..e91d51dba6e 100644
--- a/native/crates/app/src/terminal/keys.rs
+++ b/native/crates/app/src/terminal/keys.rs
@@ -162,7 +162,7 @@ mod tests {
use super::*;
fn key(text: &str) -> KeyResult {
- let mut keystroke = Keystroke::parse(text).unwrap();
+ let mut keystroke = crate::parse_keystroke(text).unwrap();
if keystroke.key_char.is_none() && keystroke.key.chars().count() == 1 && !keystroke.modifiers.control && !keystroke.modifiers.platform {
let character = if keystroke.modifiers.shift { keystroke.key.to_uppercase() } else { keystroke.key.clone() };
keystroke.key_char = Some(character);
diff --git a/native/crates/app/src/workbench/icon_label.rs b/native/crates/app/src/workbench/icon_label.rs
index 4cb37a1f7c1..9bc2496ae86 100644
--- a/native/crates/app/src/workbench/icon_label.rs
+++ b/native/crates/app/src/workbench/icon_label.rs
@@ -3,9 +3,9 @@ use gpui::{Div, div, prelude::*, px};
/// iconlabel.css `.label-description` after a 13px name: `font-size: 0.9em`, `margin-left: 0.5em` of its own size.
/// It is an inline span, so the name's 13px strut sets its line box and baseline.
pub(super) fn label_description() -> Div {
- let mut description = div().ml(px(5.85)).text_size(px(11.7));
- description.text_style().strut_size = Some(px(13.).into());
- description
+ // shortcut: gpui-fast has no `strut_size` (our Wu patch 189efc4c454), so the line box follows the 11.7px text, not
+ // the name's 13px strut; port the strut with the Chromium text patches.
+ div().ml(px(5.85)).text_size(px(11.7))
}
#[cfg(test)]
diff --git a/native/crates/app/src/workbench/icon_select_box/tests.rs b/native/crates/app/src/workbench/icon_select_box/tests.rs
index ece3c5b5005..c4f28090fdf 100644
--- a/native/crates/app/src/workbench/icon_select_box/tests.rs
+++ b/native/crates/app/src/workbench/icon_select_box/tests.rs
@@ -1,8 +1,7 @@
use super::{GLYPH_SIZE, ICONS, IconSelectBox, IconTarget, KeyAction, profile_icon_file};
-use gpui::Keystroke;
fn key(picker: &IconSelectBox, key: &str) -> Option<KeyAction> {
- picker.key_action(&Keystroke::parse(key).unwrap())
+ picker.key_action(&crate::parse_keystroke(key).unwrap())
}
#[test]
diff --git a/native/crates/app/src/workbench/keyboard/tests.rs b/native/crates/app/src/workbench/keyboard/tests.rs
index 7846a4dd5d8..5fd434d5a90 100644
--- a/native/crates/app/src/workbench/keyboard/tests.rs
+++ b/native/crates/app/src/workbench/keyboard/tests.rs
@@ -6,7 +6,7 @@ use std::cell::RefCell;
use std::path::Path;
use std::rc::Rc;
-use gpui::{Entity, Keystroke, TestAppContext, VisualTestContext};
+use gpui::{Entity, TestAppContext, VisualTestContext};
use serde_json::Value;
use crate::commands::Outcome;
@@ -47,7 +47,7 @@ fn workbench_with(items: Vec<Item>, cx: &mut TestAppContext) -> (Entity<Workbenc
/// Presses `key` and returns the commands it ran, the chord status and the status bar message after it.
fn press(workbench: &Entity<Workbench>, key: &str, cx: &mut VisualTestContext, calls: &Calls) -> (Vec<String>, Option<String>, Option<String>) {
- workbench.update_in(cx, |workbench, window, cx| workbench.dispatch_key(&Keystroke::parse(key).unwrap(), window, cx));
+ workbench.update_in(cx, |workbench, window, cx| workbench.dispatch_key(&crate::parse_keystroke(key).unwrap(), window, cx));
cx.run_until_parked();
let ran = calls.borrow_mut().drain(..).map(|(id, _)| id).collect();
workbench.read_with(cx, |workbench, _| (ran, workbench.chord_status(), workbench.status_message.as_ref().map(|(message, _)| message.clone())))
diff --git a/native/crates/app/src/workbench/menubar.rs b/native/crates/app/src/workbench/menubar.rs
index 15cb094ac33..c4b88ec0cf2 100644
--- a/native/crates/app/src/workbench/menubar.rs
+++ b/native/crates/app/src/workbench/menubar.rs
@@ -10,7 +10,7 @@ use std::cell::Cell;
use std::rc::Rc;
use gpui::{
- Action, AnyWindowHandle, App, Bounds, Context, Div, InteractiveElement, KeyBinding, Menu, MenuItem, MouseButton, OsAction, ParentElement, Pixels, Rgba, SharedString, Styled, SystemMenuType, Window, WindowControlArea, actions, div, px,
+ Action, AnyWindowHandle, App, Bounds, Context, Div, InteractiveElement, KeyBinding, KeyBindingContextPredicate, Menu, MenuItem, MouseButton, OsAction, ParentElement, Pixels, Rgba, SharedString, Styled, SystemMenuType, Window, WindowControlArea, actions, div, px,
};
#[cfg(target_os = "macos")]
use objc2::{MainThreadMarker, sel};
@@ -190,7 +190,7 @@ impl Workbench {
if self.installed_menubar.as_ref() == Some(&menubar) {
return;
}
- let (menus, key_equivalents) = native_menus(&menubar);
+ let (menus, key_equivalents) = native_menus(&menubar, cx);
cx.clear_key_bindings();
cx.bind_keys(key_equivalents);
cx.set_menus(menus);
@@ -317,19 +317,19 @@ fn collect_command_ids(actions: &[MenuAction], ids: &mut Vec<String>) {
}
/// `Menubar.install`: the app menu, the workbench's menus, then the Window menu before Help.
-fn native_menus(menubar: &Menubar) -> (Vec<Menu>, Vec<KeyBinding>) {
+fn native_menus(menubar: &Menubar, cx: &App) -> (Vec<Menu>, Vec<KeyBinding>) {
let mut key_equivalents = vec![
KeyBinding::new("cmd-h", Hide, Some(MENU_KEY_EQUIVALENT)),
KeyBinding::new("alt-cmd-h", HideOthers, Some(MENU_KEY_EQUIVALENT)),
];
let name = crate::product::name_long();
- let mut app_items = vec![native_command("workbench.action.showAboutDialog", &main_label("mAbout", "About {0}").replace("{0}", name), true, false, menubar, &mut key_equivalents)];
+ let mut app_items = vec![native_command("workbench.action.showAboutDialog", &main_label("mAbout", "About {0}").replace("{0}", name), true, false, menubar, &mut key_equivalents, cx)];
if let Some((title, id, enabled)) = &menubar.update_item {
- app_items.push(native_command(id, title, *enabled, false, menubar, &mut key_equivalents));
+ app_items.push(native_command(id, title, *enabled, false, menubar, &mut key_equivalents, cx));
}
if let Some((_, preferences)) = menubar.menus.iter().find(|(title, _)| title == "Preferences") {
app_items.push(MenuItem::separator());
- app_items.push(MenuItem::submenu(Menu::new(native_label(&main_label("miPreferences", "&&Preferences"))).items(native_items(preferences, menubar, &mut key_equivalents))));
+ app_items.push(MenuItem::submenu(Menu::new(native_label(&main_label("miPreferences", "&&Preferences"))).items(native_items(preferences, menubar, &mut key_equivalents, cx))));
app_items.push(MenuItem::separator());
}
app_items.extend([
@@ -339,15 +339,17 @@ fn native_menus(menubar: &Menubar) -> (Vec<Menu>, Vec<KeyBinding>) {
MenuItem::action(main_label("mHideOthers", "Hide Others"), HideOthers),
MenuItem::action(main_label("mShowAll", "Show All"), ShowAll),
MenuItem::separator(),
- native_command("workbench.action.quit", &main_label("miQuit", "Quit {0}").replace("{0}", name), true, false, menubar, &mut key_equivalents),
+ native_command("workbench.action.quit", &main_label("miQuit", "Quit {0}").replace("{0}", name), true, false, menubar, &mut key_equivalents, cx),
]);
let mut menus = vec![Menu::new(name).items(app_items)];
// menubar.ts `setMacWindowMenu`: fix_up_app_kit_menus adds the AppKit role items around these.
+ // shortcut: gpui-fast's gpui_macos makes the menu titled "Window" the windows menu (Wu took `Menu::window_menu`), so a
+ // translated title loses the open-window list; flag it in gpui_macos when a language pack is verified.
let window_menu = |key_equivalents: &mut Vec<KeyBinding>| {
- Menu::new(main_label("mWindow", "Window")).window_menu(true).items([
- native_command("workbench.action.toggleWindowAlwaysOnTop", &main_label("mAlwaysOnTop", "Always on Top"), true, menubar.always_on_top, menubar, key_equivalents),
+ Menu::new(main_label("mWindow", "Window")).items([
+ native_command("workbench.action.toggleWindowAlwaysOnTop", &main_label("mAlwaysOnTop", "Always on Top"), true, menubar.always_on_top, menubar, key_equivalents, cx),
MenuItem::separator(),
- native_command("workbench.action.switchWindow", &main_label("miSwitchWindow", "Switch &&Window..."), true, false, menubar, key_equivalents),
+ native_command("workbench.action.switchWindow", &main_label("miSwitchWindow", "Switch &&Window..."), true, false, menubar, key_equivalents, cx),
])
};
for (title, actions) in &menubar.menus {
@@ -356,7 +358,7 @@ fn native_menus(menubar: &Menubar) -> (Vec<Menu>, Vec<KeyBinding>) {
"Help" => menus.push(window_menu(&mut key_equivalents)),
_ => {}
}
- menus.push(Menu::new(top_level_label(title)).items(native_items(actions, menubar, &mut key_equivalents)));
+ menus.push(Menu::new(top_level_label(title)).items(native_items(actions, menubar, &mut key_equivalents, cx)));
}
if !menubar.menus.iter().any(|(title, _)| title == "Help") {
menus.push(window_menu(&mut key_equivalents));
@@ -364,7 +366,7 @@ fn native_menus(menubar: &Menubar) -> (Vec<Menu>, Vec<KeyBinding>) {
(menus, key_equivalents)
}
-fn native_items(actions: &[MenuAction], menubar: &Menubar, key_equivalents: &mut Vec<KeyBinding>) -> Vec<MenuItem> {
+fn native_items(actions: &[MenuAction], menubar: &Menubar, key_equivalents: &mut Vec<KeyBinding>, cx: &App) -> Vec<MenuItem> {
let mut items = Vec::new();
for action in actions {
// menubarControl.ts `insertActionsBefore`: the recent entries come before Open Recent's "More...".
@@ -380,8 +382,8 @@ fn native_items(actions: &[MenuAction], menubar: &Menubar, key_equivalents: &mut
}
}
items.push(match action {
- MenuAction::Command { id, title, enabled, checked, .. } => native_command(id, title, *enabled, *checked, menubar, key_equivalents),
- MenuAction::Submenu { title, actions, .. } => MenuItem::submenu(Menu::new(native_label(title)).items(native_items(actions, menubar, key_equivalents))),
+ MenuAction::Command { id, title, enabled, checked, .. } => native_command(id, title, *enabled, *checked, menubar, key_equivalents, cx),
+ MenuAction::Submenu { title, actions, .. } => MenuItem::submenu(Menu::new(native_label(title)).items(native_items(actions, menubar, key_equivalents, cx))),
MenuAction::Separator => MenuItem::separator(),
});
}
@@ -390,7 +392,7 @@ fn native_items(actions: &[MenuAction], menubar: &Menubar, key_equivalents: &mut
/// menubar.ts `createMenuItem` with `withKeybinding`: a keybinding of one chord is the item's key equivalent; one
/// AppKit cannot show, such as a chord sequence, is appended to the label in brackets.
-fn native_command(id: &str, title: &str, enabled: bool, checked: bool, menubar: &Menubar, key_equivalents: &mut Vec<KeyBinding>) -> MenuItem {
+fn native_command(id: &str, title: &str, enabled: bool, checked: bool, menubar: &Menubar, key_equivalents: &mut Vec<KeyBinding>, cx: &App) -> MenuItem {
let mut label = native_label(title);
let chords = menubar.keybindings.get(id);
let key_equivalent = match chords.map(Vec::as_slice) {
@@ -409,8 +411,8 @@ fn native_command(id: &str, title: &str, enabled: bool, checked: bool, menubar:
_ => None,
};
let item = match enabled {
- true => action_item(label, RunMenuCommand { id: id.to_string() }, os_action, key_equivalent, key_equivalents),
- false => action_item(label, DisabledMenuCommand { id: id.to_string() }, os_action, key_equivalent, key_equivalents),
+ true => action_item(label, RunMenuCommand { id: id.to_string() }, os_action, key_equivalent, key_equivalents, cx),
+ false => action_item(label, DisabledMenuCommand { id: id.to_string() }, os_action, key_equivalent, key_equivalents, cx),
};
item.checked(checked)
}
@@ -452,9 +454,10 @@ fn main_label(key: &str, english: &str) -> String {
crate::nls::localize_key(Some(&format!("vs/platform/menubar/electron-main/menubar#{key}")), english).into_owned()
}
-fn action_item<A: Action + Clone>(label: String, action: A, os_action: Option<OsAction>, key_equivalent: Option<String>, key_equivalents: &mut Vec<KeyBinding>) -> MenuItem {
+fn action_item<A: Action + Clone>(label: String, action: A, os_action: Option<OsAction>, key_equivalent: Option<String>, key_equivalents: &mut Vec<KeyBinding>, cx: &App) -> MenuItem {
if let Some(keystroke) = key_equivalent {
- key_equivalents.push(KeyBinding::new(&keystroke, action.clone(), Some(MENU_KEY_EQUIVALENT)));
+ let context = KeyBindingContextPredicate::parse(MENU_KEY_EQUIVALENT).unwrap();
+ key_equivalents.push(KeyBinding::load(&keystroke, Box::new(action.clone()), Some(context.into()), false, None, cx).unwrap());
}
match os_action {
Some(os_action) => MenuItem::os_action(label, action, os_action),
diff --git a/native/crates/app/src/workbench/menubar/tests.rs b/native/crates/app/src/workbench/menubar/tests.rs
index 899123acad0..c968c6b3de9 100644
--- a/native/crates/app/src/workbench/menubar/tests.rs
+++ b/native/crates/app/src/workbench/menubar/tests.rs
@@ -111,7 +111,7 @@ fn the_selection_menu_names_the_multi_cursor_modifier_it_switches_to(cx: &mut Te
fn native_menus_show_keybindings_as_key_equivalents_or_in_the_label(cx: &mut TestAppContext) {
let (workbench, cx) = workbench(None, cx);
let menubar = cx.update(|window, cx| workbench.read(cx).menubar(window));
- let (menus, key_equivalents) = native_menus(&menubar);
+ let (menus, key_equivalents) = cx.update(|_, cx| native_menus(&menubar, cx));
let names: Vec<&str> = menus.iter().map(|menu| menu.name.as_ref()).collect();
assert_eq!(names, ["VSRustium", "File", "Edit", "Selection", "View", "Go", "Window", "Help"]);
let MenuItem::Action { name, .. } = &menus[0].items[0] else { panic!("About first") };
@@ -133,7 +133,7 @@ fn native_menus_show_keybindings_as_key_equivalents_or_in_the_label(cx: &mut Tes
assert_eq!(name.as_ref(), "Color Theme [⌘K ⌘T]");
let MenuItem::Action { name, .. } = &menus[4].items[0] else { panic!("Command Palette") };
assert_eq!(name.as_ref(), "Command Palette…");
- let keystrokes: Vec<String> = key_equivalents.iter().map(|binding| binding.keystrokes().iter().map(|keystroke| keystroke.unparse()).collect()).collect();
+ let keystrokes: Vec<String> = key_equivalents.iter().map(|binding| binding.keystrokes().iter().map(|keystroke| keystroke.unparse(crate::host_os())).collect()).collect();
for keystroke in ["cmd-q", "cmd-s", "alt-cmd-s", "cmd-z", "cmd-shift-z", "cmd-a", "cmd-shift-p", "cmd-p"] {
assert!(keystrokes.iter().any(|found| found == keystroke), "{keystroke} in {keystrokes:?}");
}
@@ -146,7 +146,7 @@ fn the_app_menu_shows_the_update_state_after_about(cx: &mut TestAppContext) {
let item = |state: crate::update::State, cx: &mut gpui::VisualTestContext| {
workbench.update(cx, |workbench, _| workbench.update_state = state);
let menubar = cx.update(|window, cx| workbench.read(cx).menubar(window));
- let (menus, _) = native_menus(&menubar);
+ let (menus, _) = cx.update(|_, cx| native_menus(&menubar, cx));
match &menus[0].items[1] {
MenuItem::Action { name, .. } => name.to_string(),
_ => "-".into(),
@@ -204,7 +204,7 @@ fn the_window_menu_has_always_on_top_and_switch_window(cx: &mut TestAppContext)
let (workbench, cx) = workbench(None, cx);
let mut menubar = cx.update(|window, cx| workbench.read(cx).menubar(window));
menubar.always_on_top = true;
- let (menus, _) = native_menus(&menubar);
+ let (menus, _) = cx.update(|_, cx| native_menus(&menubar, cx));
let window_menu = menus.iter().find(|menu| menu.name.as_ref() == "Window").unwrap();
let items: Vec<(String, bool)> = window_menu
.items
@@ -236,7 +236,7 @@ fn open_recent_lists_folders_then_files_before_more(cx: &mut TestAppContext) {
let (folder, file) = (crate::uri::Uri::file("/tmp/a&b").fs_path(), crate::uri::Uri::file("/tmp/one.txt").fs_path());
assert_eq!(menubar.recent.iter().map(|(label, _)| label.as_str()).collect::<Vec<_>>(), [folder.as_str(), file.as_str()]);
assert_eq!(menubar.recent_workspaces, 1);
- let (menus, _) = native_menus(&menubar);
+ let (menus, _) = cx.update(|_, cx| native_menus(&menubar, cx));
let MenuItem::Submenu(recent) = menus[1].items.iter().find(|item| matches!(item, MenuItem::Submenu(menu) if menu.name.as_ref() == "Open Recent")).unwrap() else { unreachable!() };
let names: Vec<String> = recent.items.iter().map(|item| match item {
MenuItem::Action { name, .. } => name.to_string(),
diff --git a/native/crates/app/src/workbench/quick_input_view.rs b/native/crates/app/src/workbench/quick_input_view.rs
index 3c26e1f65d0..14af4309b8b 100644
--- a/native/crates/app/src/workbench/quick_input_view.rs
+++ b/native/crates/app/src/workbench/quick_input_view.rs
@@ -434,8 +434,7 @@ impl Workbench {
/// is behind it, inside a 1px border with `radius` corners. Without glass the solid surface color.
pub(super) fn frosted_glass(&self, surface: &str, radius: f32) -> impl IntoElement {
let mut color = self.color(surface);
- let glass = self.frosted_glass_enabled();
- if glass {
+ if self.frosted_glass_enabled() {
color.a *= self.frosted_glass_opacity();
}
canvas(
@@ -443,10 +442,9 @@ impl Workbench {
move |bounds, _, window, _| {
// Inside the 1px border, so the corners follow the padding box.
let radii = gpui::Corners::all(px(radius - 1.));
- match glass {
- true => window.paint_backdrop_blur(bounds, radii, px(12.), color),
- false => window.paint_quad(gpui::fill(bounds, color).corner_radii(radii)),
- }
+ // shortcut: gpui-fast has no backdrop blur (Wu's `paint_backdrop_blur`), so the glass tint paints over an
+ // unblurred backdrop; port the blur to restore it (port/notes.md "GPUI on gpui-fast").
+ window.paint_quad(gpui::fill(bounds, color).corner_radii(radii));
},
)
.absolute()
diff --git a/native/crates/app/src/workbench/scroll_frame_time.rs b/native/crates/app/src/workbench/scroll_frame_time.rs
index 01e39ab30b8..e2b1fc3fc4e 100644
--- a/native/crates/app/src/workbench/scroll_frame_time.rs
+++ b/native/crates/app/src/workbench/scroll_frame_time.rs
@@ -76,7 +76,7 @@ impl Fixture {
.update_window(self.window.into(), |_, window, cx| {
let start = Instant::now();
if let Some(position) = scroll {
- let event = ScrollWheelEvent { position, delta: ScrollDelta::Pixels(point(px(0.), px(-30.))), modifiers: Modifiers::none(), touch_phase: TouchPhase::Moved };
+ let event = ScrollWheelEvent { position, delta: ScrollDelta::Pixels(point(px(0.), px(-30.))), modifiers: Modifiers::none(), touch_phase: TouchPhase::Moved, source: gpui::ScrollSource::Pointer };
window.dispatch_event(event.to_platform_input(), cx);
}
window.draw(cx).clear(cx);
diff --git a/native/crates/app/src/workbench/settings_editor_view.rs b/native/crates/app/src/workbench/settings_editor_view.rs
index d37168e989c..0822268ca51 100644
--- a/native/crates/app/src/workbench/settings_editor_view.rs
+++ b/native/crates/app/src/workbench/settings_editor_view.rs
@@ -149,7 +149,9 @@ impl SettingsEditor {
toc_focus: cx.focus_handle(),
modal_focus: cx.focus_handle(),
// settingsTree.ts rows have dynamic heights: listView.ts `probeDynamicHeight` reads their `offsetHeight`.
- tree: ListState::new(0, ListAlignment::Top, px(400.)).with_whole_pixel_item_heights(),
+ // shortcut: gpui-fast has no `with_whole_pixel_item_heights` (our Wu patch 40f47558cba), so rows advance by
+ // fractional heights; port the patch to round them again.
+ tree: ListState::new(0, ListAlignment::Top, px(400.)),
toc_list: ListState::new(0, ListAlignment::Top, px(200.)),
split: None,
sash_hovered: false,
diff --git a/native/crates/app/src/workbench/terminal_view/grid.rs b/native/crates/app/src/workbench/terminal_view/grid.rs
index 11974ca06d8..81194b1fad3 100644
--- a/native/crates/app/src/workbench/terminal_view/grid.rs
+++ b/native/crates/app/src/workbench/terminal_view/grid.rs
@@ -264,7 +264,7 @@ pub fn paint_sticky_scroll(bounds: Bounds<Pixels>, instance: &TerminalInstance,
let overlay = sticky_scroll_bounds(bounds, instance, sticky, metrics, look.scrollbar_width);
if let Some(shadow) = sticky_look.shadow {
let shadow = BoxShadow { color: Hsla::from(shadow), offset: point(px(0.), px(3.)), blur_radius: px(2.), spread_radius: px(-2.), inset: false };
- window.paint_drop_shadows(overlay, Corners::default(), &[shadow], false);
+ window.paint_drop_shadows(overlay, Corners::default(), &[shadow]);
}
let background = sticky_look.hover.unwrap_or(sticky_look.background);
window.paint_quad(fill(overlay, background));
diff --git a/native/crates/app/src/workbench/webview_panels.rs b/native/crates/app/src/workbench/webview_panels.rs
index a8c1c1c3fe5..864c5fe9121 100644
--- a/native/crates/app/src/workbench/webview_panels.rs
+++ b/native/crates/app/src/workbench/webview_panels.rs
@@ -921,7 +921,7 @@ mod tests {
#[test]
fn maps_forwarded_key_events_to_keystrokes() {
let event = |key: &str, code: &str, meta: bool, shift: bool| json!({ "key": key, "code": code, "metaKey": meta, "shiftKey": shift });
- let parsed = |data: Value| keystroke(&data).map(|keystroke| keystroke.unparse());
+ let parsed = |data: Value| keystroke(&data).map(|keystroke| keystroke.unparse(crate::host_os()));
#[cfg(target_os = "macos")]
assert_eq!(parsed(event("P", "KeyP", true, true)), Some("cmd-shift-p".into()));
#[cfg(target_os = "linux")]
diff --git a/native/rust-toolchain.toml b/native/rust-toolchain.toml
new file mode 100644
index 00000000000..d79bbcf73cc
--- /dev/null
+++ b/native/rust-toolchain.toml
@@ -0,0 +1,5 @@
+[toolchain]
+# gpui-fast f0a91cf pins 1.100.0: gpui_macros uses `trim_prefix`, stable from 1.100.
+channel = "1.100.0"
+profile = "minimal"
+components = ["rustfmt", "clippy"]