diff --git a/.cargo/config.toml b/.cargo/config.toml index 3e0254845..86194a99a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -9,3 +9,6 @@ rustflags = ["-C", "target-feature=+crt-static"] [env] MACOSX_DEPLOYMENT_TARGET = "27.0" IPHONEOS_DEPLOYMENT_TARGET = "27.0" +# GPUI lays out and paints the element tree recursively. The app does it on its +# 8 MiB main thread (crates/app/build.rs); a test's thread gets the same. +RUST_MIN_STACK = "8388608" diff --git a/Cargo.lock b/Cargo.lock index 757f459d9..039ed7501 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,7 +104,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" dependencies = [ "crypto-common 0.1.7", - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -119,9 +119,9 @@ dependencies = [ [[package]] name = "aegis" -version = "0.9.21" +version = "0.9.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e54130cc3201c8718b8905611cfe303b84eb6d95bd3a64825b321b78993e439" +checksum = "1d92f5fc1add24bcc452c34386fa93af450dbdce30e6fb1260b69cce6fc07502" dependencies = [ "cc", "softaes", @@ -196,7 +196,7 @@ dependencies = [ "sha2 0.11.1", "shell-words", "smol", - "toml 1.2.1+spec-1.1.0", + "toml 1.2.2+spec-1.1.0", "turso", "ureq", "uuid", @@ -205,9 +205,9 @@ dependencies = [ [[package]] name = "agent-client-protocol" -version = "5.3.0" +version = "5.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "956559bd2dfddb5c8bc86792b1669bd2611fb4bd2c31865e4b8165ab6ea63109" +checksum = "6720bf8b44f96762eaeb8e5869468a1b6aaec9b679b0862a22d07574ea2d8cb0" dependencies = [ "agent-client-protocol-derive", "agent-client-protocol-schema", @@ -223,9 +223,9 @@ dependencies = [ [[package]] name = "agent-client-protocol-derive" -version = "5.3.0" +version = "5.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4956a27f160f7ff73b17822066d1cb57d415ef9f442d3bcebb8074d2c8f24ec3" +checksum = "cd38e8caca867056f167b830b2d4093efeb620c59648744c8cae23be39975fe1" dependencies = [ "quote", "syn 3.0.10", @@ -233,12 +233,13 @@ dependencies = [ [[package]] name = "agent-client-protocol-schema" -version = "1.18.0" +version = "1.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5128cd57704892e3978c85bfce0d532ef3162f585739f44726fa80d464c1782f" +checksum = "86bf185eeeb1eb20edcbd01bce65c4c2ed40c2f962e23ed9565db582cde1cc90" dependencies = [ "anyhow", "derive_more 2.1.1", + "indexmap 2.14.2", "serde", "serde_json", "serde_with", @@ -464,9 +465,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902" [[package]] name = "appendlist" @@ -888,18 +889,6 @@ dependencies = [ "zbus 5.19.0", ] -[[package]] -name = "attohttpc" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16e2cdb6d5ed835199484bb92bb8b3edd526effe995c61732580439c1a67e2e9" -dependencies = [ - "base64 0.22.1", - "http", - "log", - "url", -] - [[package]] name = "autocfg" version = "1.5.1" @@ -1264,7 +1253,7 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -1283,7 +1272,7 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93" dependencies = [ - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -1380,9 +1369,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.13.1" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bb31b46c14244e20ee9984b11bf5c992b91fb6939fea616e3512c8baecdbe5f" +checksum = "a680398c10c7bc0488067c4612226ea905a85f607134b69f3068d505d58c4214" dependencies = [ "memchr", "regex-automata", @@ -1435,9 +1424,9 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.12.1" +version = "1.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c" [[package]] name = "c-enum" @@ -1538,9 +1527,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.11.2" +version = "1.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" +checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69" dependencies = [ "find-msvc-tools", "jobserver", @@ -1697,9 +1686,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +checksum = "844c5c0b65be192cb68d570cca1b21a6444431d24e39c084dc0336177015337c" dependencies = [ "clap_builder", "clap_derive", @@ -1719,9 +1708,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.6.7" +version = "4.6.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0" +checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -1731,9 +1720,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" +checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79" [[package]] name = "cmake" @@ -1946,9 +1935,9 @@ dependencies = [ [[package]] name = "cookie" -version = "0.18.2" +version = "0.18.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +checksum = "d55f2d6c30eeec7d5c6f98bd4395d4abb1895629eab97ee6522d340623615f8a" dependencies = [ "time", "version_check", @@ -2331,7 +2320,7 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" dependencies = [ - "generic-array 0.14.7", + "generic-array", "rand_core 0.6.4", "typenum", ] @@ -2897,7 +2886,7 @@ dependencies = [ "cc", "memchr", "rustc_version", - "toml 1.2.1+spec-1.1.0", + "toml 1.2.2+spec-1.1.0", "vswhom", "winreg 0.56.0", ] @@ -3030,9 +3019,9 @@ dependencies = [ [[package]] name = "env_filter" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "900d271a03799a1ee8d1ca9b19893b48ca674a9284fefcfb85f05e74ed314217" +checksum = "288efae2d67fb0418d01f837feb55c7a9cdc4c5db38d3dee91324a1c7ec6fd31" dependencies = [ "log", "regex", @@ -3040,14 +3029,14 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.11" +version = "0.11.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de671bd27a75a797dc9ae289ba1e77276e75e2026408aab65185384e2d5cd3f6" +checksum = "82bdfc6e01c305a3ea46ed815b06ac0b379d7c5eac588fa4464048d731c4dcdf" dependencies = [ "anstream", "anstyle", - "env_filter 2.0.0", - "jiff", + "env_filter 2.1.0", + "jiff 1.0.2", "log", ] @@ -3230,9 +3219,9 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.29" +version = "0.2.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759" +checksum = "e1255e7a9f1902190d4c10a75f2f7f495d3d3ce13e9ba26e6c48683a0f4dbed7" dependencies = [ "cfg-if", "libc", @@ -3273,12 +3262,6 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ce81f49ae8a0482e4c55ea62ebbd7e5a686af544c00b9d090bba3ff9be97b3d" -[[package]] -name = "float_next_after" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf7cc16383c4b8d58b9905a8509f02926ce3058053c056376248d958c9df1e8" - [[package]] name = "fluent-uri" version = "0.1.4" @@ -3408,9 +3391,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -3709,16 +3692,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "generic-array" -version = "1.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "337d46834ee672ab3e48caca2cb0c78cc174fb12b3a68d0d88f99a0519a5e36e" -dependencies = [ - "rustversion", - "typenum", -] - [[package]] name = "gethostname" version = "1.1.0" @@ -3925,9 +3898,9 @@ checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" [[package]] name = "globset" -version = "0.4.21" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98b0d85522dc0a824cfebbc9594ff4a9b289c568bea0370319dfbdf20ccdd2d" +checksum = "71217a07f20b48b4938c14203b77b610f8a7fa6762c3f75394a10c5f31e5aee0" dependencies = [ "aho-corasick", "bstr", @@ -4040,15 +4013,14 @@ dependencies = [ [[package]] name = "gpui-base" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f4e5aff50636223b268a687ad5788ec54fa77c8e57ca9e53d158f19e0425d95" +checksum = "604d277dd339c63d13a3016d22a84622cc7511fdfd8e88573c0709088ede3500" dependencies = [ "aho-corasick", "anyhow", "ashpd", "async-channel", - "chrono", "data-url", "futures", "gpui-fast", @@ -4058,6 +4030,7 @@ dependencies = [ "html5ever 0.27.0", "instant", "itertools 0.13.0", + "jiff 1.0.2", "lsp-types", "markdown", "markup5ever_rcdom", @@ -4075,6 +4048,7 @@ dependencies = [ "smol", "sys-locale", "tracing", + "unicode-bidi", "unicode-linebreak", "unicode-segmentation", "web-time", @@ -4083,12 +4057,11 @@ dependencies = [ [[package]] name = "gpui-component" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "607c90f6985ac2b96e54102338994eaea143aff521375c6f9e7fc7ecb3ba3646" +checksum = "cdfec0424e4d9d78dcec4b4410e310b43ac1c4ef3efb971cfb63f5855754798b" dependencies = [ "anyhow", - "chrono", "core-text 21.0.0", "enum-iterator", "gpui-base", @@ -4100,6 +4073,7 @@ dependencies = [ "gpui-pre-sum-tree", "instant", "itertools 0.13.0", + "jiff 1.0.2", "log", "lsp-types", "markdown", @@ -4131,9 +4105,9 @@ dependencies = [ [[package]] name = "gpui-component-macros" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "510a438db463e4fcaec876a0cf76c3bfd900bc407207b0bc8c6076f91c09591b" +checksum = "4b7cd4c54d1521c9453a0d45a8101a642773f78774961fc54d9e8b62a2bdd66d" dependencies = [ "proc-macro-crate 3.5.0", "proc-macro2", @@ -4143,9 +4117,9 @@ dependencies = [ [[package]] name = "gpui-fast" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f156153ed82b67b45c6b5ed5d833da14b27eb68ae7828741f64b52691e254d0" +checksum = "4c5e62370ab67c28a7fcb865fa3521cc8dbcfbd52ed7bb38fa81e75db4ee4c30" dependencies = [ "accesskit", "anyhow", @@ -4153,7 +4127,6 @@ dependencies = [ "async-task", "backtrace", "bitflags 2.13.2", - "chrono", "derive_more 2.1.1", "embed-resource", "etagere", @@ -4161,11 +4134,11 @@ dependencies = [ "futures-concurrency", "getrandom 0.3.4", "gpui-fast-macros", + "gpui-fast-scheduler", "gpui-pre-bench-metrics", "gpui-pre-collections", "gpui-pre-http-client", "gpui-pre-refineable", - "gpui-pre-scheduler", "gpui-pre-shared-string", "gpui-pre-sum-tree", "gpui-pre-util", @@ -4174,9 +4147,10 @@ dependencies = [ "image", "inventory", "itertools 0.14.0", + "jiff 1.0.2", "libc", "log", - "lyon", + "lyon_path", "num_cpus", "objc2-core-foundation", "objc2-core-video", @@ -4201,6 +4175,7 @@ dependencies = [ "strum 0.28.0", "taffy", "thiserror 2.0.21", + "tiny-skia-path", "ttf-parser", "unicode-segmentation", "url", @@ -4214,9 +4189,9 @@ dependencies = [ [[package]] name = "gpui-fast-apple" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52c8337a6ca2fcbaf574e3e78495b29ff92a06932523c1e7e005f0fb37c6ce48" +checksum = "3688b6fbeaf1c0d06f7f1aad62a9f8014d65f83e9f88f47ff5fbd3d08a2657a2" dependencies = [ "anyhow", "async-task", @@ -4254,9 +4229,9 @@ dependencies = [ [[package]] name = "gpui-fast-linux" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "442fb7af8c998c77749ed68d64fccc019ebc9938f42d55e6ebc86ac7f9ef6bec" +checksum = "071e92b9ec4553a13d9b5b623cb133ee8b1fa1d301ba2101844e2d2aa641f9c6" dependencies = [ "accesskit", "accesskit_unix", @@ -4299,9 +4274,9 @@ dependencies = [ [[package]] name = "gpui-fast-macos" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcc07eff9d26477dad2c75809c083bda8ab0fa61a8fee60b46cc28c48b5a7a1d" +checksum = "fdd942d0efb252055a70d7ee8117e28e4327a58997b41899c8fac6ce46e757e4" dependencies = [ "accesskit", "accesskit_macos", @@ -4316,8 +4291,8 @@ dependencies = [ "futures", "gpui-fast", "gpui-fast-apple", + "gpui-fast-scheduler", "gpui-pre-collections", - "gpui-pre-scheduler", "gpui-pre-util", "image", "itertools 0.14.0", @@ -4341,9 +4316,9 @@ dependencies = [ [[package]] name = "gpui-fast-macros" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a926cfbda4204e849bb17a09872298d92838157088a7a3c32d9b31324ccaac8a" +checksum = "16cfa16e2c6ccbd380a63404fb13c121e6251e5de66b53917c02b295394725e2" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -4353,9 +4328,9 @@ dependencies = [ [[package]] name = "gpui-fast-platform" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f635166b148a1d4097d75d41620b5bc477be2e17ca122b56b1ff8a82330f993a" +checksum = "e2f21198a335e1a5825a3d07ac0bd777bdd05096e2dc029a239cd3131de99c68" dependencies = [ "anyhow", "console_error_panic_hook", @@ -4367,20 +4342,36 @@ dependencies = [ "gpui-pre-ios", ] +[[package]] +name = "gpui-fast-scheduler" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b9561e0dab2b98333fc0ff54836d90e147268d451f9f8aea87962dcb476b030" +dependencies = [ + "async-task", + "backtrace", + "flume 0.12.0", + "futures", + "parking_lot", + "rand 0.9.5", + "wasm_thread", + "web-time", +] + [[package]] name = "gpui-fast-web" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0a5719c2ca90add59e8639886fadbcdebad658e750e8e99ec87b22eaf0ad24c" +checksum = "fd71748f4b0cf9f882c39ec6acfb1088f035f176255e1e01a16ce94d290d9505" dependencies = [ "anyhow", "async-channel", "console_error_panic_hook", "futures", "gpui-fast", + "gpui-fast-scheduler", "gpui-fast-wgpu", "gpui-pre-http-client", - "gpui-pre-scheduler", "js-sys", "log", "parking_lot", @@ -4399,9 +4390,9 @@ dependencies = [ [[package]] name = "gpui-fast-wgpu" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "846b898f14d55f6e107521fde8ec045a971af6225d6a51410c5514bc2f8bf334" +checksum = "4ae3cf1a515694f25b13f55472239a98f5a8986034887841e54e3a9e350e2669" dependencies = [ "anyhow", "bytemuck", @@ -4411,6 +4402,7 @@ dependencies = [ "gpui-pre-collections", "gpui-pre-util", "itertools 0.14.0", + "js-sys", "log", "parking_lot", "profiling", @@ -4426,9 +4418,9 @@ dependencies = [ [[package]] name = "gpui-fast-windows" -version = "0.1.16" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eefc0adacde37f6d5291225177d5ba90e5cf51274b0d9a4ef4201e0a801e8aa9" +checksum = "8051f3079f399692b4cddbcd413f08610a0bd30732e051ce5f9d0de331e3a9a5" dependencies = [ "accesskit", "accesskit_windows", @@ -4437,8 +4429,8 @@ dependencies = [ "etagere", "futures", "gpui-fast", + "gpui-fast-scheduler", "gpui-pre-collections", - "gpui-pre-scheduler", "gpui-pre-util", "image", "itertools 0.14.0", @@ -4484,9 +4476,9 @@ dependencies = [ [[package]] name = "gpui-kit" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "228cc61c0a71c4908af2e903807a81d2deabc03ec0be7f22189d43cf552af098" +checksum = "60c0655c4af9fe268693531ebfe6d322809e7771e8a5cd5faceca358d479dd90" dependencies = [ "gpui-base", "gpui-component", @@ -4502,9 +4494,9 @@ dependencies = [ [[package]] name = "gpui-kit-assets" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "655474e0a0069db561d7d4029f84de59e41c0f1afff2301b23e00329968d3148" +checksum = "003d6a55cfa4fff4f44247a162443a48a949faaa19e8687c51c4fe5ed793a539" dependencies = [ "anyhow", "gpui-fast", @@ -4529,9 +4521,9 @@ dependencies = [ [[package]] name = "gpui-pre" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29db89613527079737f53752eab27fb65c9a7dd94979256c65a0e590c9fd34d8" +checksum = "ab22c23c1304a0b3f34f64568f59a4ce2abbfab3727273a90c66b37924d31089" dependencies = [ "accesskit", "anyhow", @@ -4560,7 +4552,7 @@ dependencies = [ "itertools 0.14.0", "libc", "log", - "lyon", + "lyon_path", "num_cpus", "objc2-core-foundation", "objc2-core-video", @@ -4583,6 +4575,7 @@ dependencies = [ "strum 0.28.0", "taffy", "thiserror 2.0.21", + "tiny-skia-path", "ttf-parser", "unicode-segmentation", "url", @@ -4595,9 +4588,9 @@ dependencies = [ [[package]] name = "gpui-pre-apple" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a460605ec4e8cbcc9b213462a84b1d6cc3efe4ed8f0e18669659f07b2d5c6aec" +checksum = "1f1a823038fb3da6b9661135f5f8a5d8954c6ab1bda0670185485a13291087aa" dependencies = [ "anyhow", "async-task", @@ -4635,9 +4628,9 @@ dependencies = [ [[package]] name = "gpui-pre-bench-metrics" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db6a8ff719fdc3da4f5f497b5d39c5545634424073f94943b003c818fc95e1d5" +checksum = "424dbf6d5d2351ba8372aa5625d745425a0e2add5fe4ed6c90da7b2c8cfcf5b2" dependencies = [ "anyhow", "criterion", @@ -4647,9 +4640,9 @@ dependencies = [ [[package]] name = "gpui-pre-collections" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb60ece401b399fd5ec13911915b407b0c6efa1f6c9a9f66201aaac56c7ec39d" +checksum = "b18fcff56173d6930f2dce25e5b1243865809a362f2e2b7e25095cd0f101f9a1" dependencies = [ "gpui-pre-util", "indexmap 2.14.2", @@ -4658,9 +4651,9 @@ dependencies = [ [[package]] name = "gpui-pre-derive-refineable" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aeb2a3f5e6c9f300f432ae7989a81b262953ccfb3f9385be51cdc3303aef8858" +checksum = "bf8fc665c9a323de64cc96e1137830c840599622de0aa261c5e1fbf527dc0e95" dependencies = [ "proc-macro2", "quote", @@ -4669,9 +4662,9 @@ dependencies = [ [[package]] name = "gpui-pre-http-client" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55245de7e3b6e219596fd98bb29555d6e3fe44c055d025960affeb11b894c048" +checksum = "440eb71f2d746612f6527b08f9606b1688b39307b84b6a6dc9996f39ccd0a24d" dependencies = [ "anyhow", "bytes", @@ -4688,9 +4681,9 @@ dependencies = [ [[package]] name = "gpui-pre-http-client-tls" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8198d884ff64f2ae87bce95dfee1d9deeca11f3b8201803e56111015d47b2455" +checksum = "2aec285c608baac7151e1850ea7a347fb9b94d59bfbf65df635450fdd24577a9" dependencies = [ "log", "rustls", @@ -4700,9 +4693,9 @@ dependencies = [ [[package]] name = "gpui-pre-ios" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10656f6db4bbedb60bd7fcbb8a70f7c7eeee45bc4582fb8933ca807d2ddf52ad" +checksum = "d1b945651b37ab5e3a9d91073aa60c58f2dc7b8c8006655a1c1f1717e015e26d" dependencies = [ "anyhow", "block2 0.6.2", @@ -4722,9 +4715,9 @@ dependencies = [ [[package]] name = "gpui-pre-linux" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54bab418d0b7c027af9495f278619b46887362b3bd6446e246c87c5b0fa167df" +checksum = "9515d52d8378c5dda95b3b2536d3d05ea2431bc25d1d8bb4cdeb32f21090f4a1" dependencies = [ "accesskit", "accesskit_unix", @@ -4767,9 +4760,9 @@ dependencies = [ [[package]] name = "gpui-pre-macos" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2de7d3f4ad51ac387e822495db363fcc1188d349793365731d054444c4cb06ee" +checksum = "23eeb64494000782e17b0ae0ec2c402ba7d76e5918a6af4759e60094fc8d6dcf" dependencies = [ "accesskit", "accesskit_macos", @@ -4801,6 +4794,7 @@ dependencies = [ "parking_lot", "raw-window-handle", "semver", + "serde_json", "smallvec", "strum 0.28.0", "uuid", @@ -4808,9 +4802,9 @@ dependencies = [ [[package]] name = "gpui-pre-macros" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c7f67904eced61ed42ae3320a9b4b388aed893f8547fffe9161ec425ad162eb" +checksum = "280f44b036dea7d3bcdb6bd89ab8dc3d8a568fa760c4e699d2aeecf8a9646efc" dependencies = [ "heck 0.5.0", "proc-macro-crate 3.5.0", @@ -4821,9 +4815,9 @@ dependencies = [ [[package]] name = "gpui-pre-platform" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b785bdcbd229f762096aebf4f9ae913bdaa9db49794907cabaf516eb55227b" +checksum = "86a2a4a341e905e5dfd6f128ff829509a4053f75e29aa34fa58537a0a3a03ed5" dependencies = [ "anyhow", "console_error_panic_hook", @@ -4837,9 +4831,9 @@ dependencies = [ [[package]] name = "gpui-pre-refineable" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d197569e3b1fd84170f574bb866e95ecbc2625e7ae9443c877150eaf7d53374" +checksum = "8a7ec93fa721adb2e500db837eccf752e96e463f9c370625a808b889f81ef929" dependencies = [ "gpui-pre-derive-refineable", ] @@ -4897,9 +4891,9 @@ dependencies = [ [[package]] name = "gpui-pre-reqwest-client" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86152c439d502ac61cf3c42483bd41093bdaf9c1240b42367517218d47481866" +checksum = "94d67f70841f259671164be9fe6f5a3fdc32ec627485b70c935fb4d3596737e3" dependencies = [ "anyhow", "bytes", @@ -4915,9 +4909,9 @@ dependencies = [ [[package]] name = "gpui-pre-scheduler" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d3fa97eeb4ea233635b756684affe96db9e29fc2af8cdc269268bd7ff649fc" +checksum = "0efd46985e7c1179a0a3f8c62db2fceceefb99e08cb1dd8d66cc80ca9db564dd" dependencies = [ "async-task", "backtrace", @@ -4932,9 +4926,9 @@ dependencies = [ [[package]] name = "gpui-pre-shared-string" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63c2ed1e44195079d4461b83a99845aa9a52ce8fcf1516410816670a03d32d94" +checksum = "8d53b8090312d9191fd6c237eb65a7f0f18deef537ba624aae31e8ec22840963" dependencies = [ "schemars 1.2.3", "serde", @@ -4943,9 +4937,9 @@ dependencies = [ [[package]] name = "gpui-pre-sum-tree" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6085e61458366decd21491396b0b90b3adf928f2ec27e170c4d3c9fba455d536" +checksum = "df9e1b9875f0d1e73a51740ec5c29704a726e37677323b40573b5bcb2e82f319" dependencies = [ "gpui-pre-ztracing", "heapless", @@ -4955,9 +4949,9 @@ dependencies = [ [[package]] name = "gpui-pre-util" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52ead57ff96b5a34e71d64758080347066d667e0c4bd4ff71e85f3a50643fa3e" +checksum = "27c41cd20c86d5bcc8e8c86efd075f1c3727b2b2f14c01e2d0f11d8bc11a5c0a" dependencies = [ "anyhow", "log", @@ -4966,9 +4960,9 @@ dependencies = [ [[package]] name = "gpui-pre-web" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a85e775c6874257c63f9cf51d99f0aba13b3bc615ed8d47e7d5338e3b5941f6a" +checksum = "4c07064ebec2ae4aad179c3255fe71a5b0f83b9a757d6c767ec7b9c290f4183d" dependencies = [ "anyhow", "async-channel", @@ -4996,9 +4990,9 @@ dependencies = [ [[package]] name = "gpui-pre-wgpu" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc76608d385f6d0dcbad44504b1bf669dac3b7d7ffa2885acdb7c1c358caf852" +checksum = "2bbfee2ae183cf4bf5b1ee3a73f2b8fd726f0b78861b0c950308f6e9d0a33f2c" dependencies = [ "anyhow", "bytemuck", @@ -5008,6 +5002,7 @@ dependencies = [ "gpui-pre-collections", "gpui-pre-util", "itertools 0.14.0", + "js-sys", "log", "parking_lot", "profiling", @@ -5023,9 +5018,9 @@ dependencies = [ [[package]] name = "gpui-pre-windows" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7201762420222d5b5ce5bdf0056996199212a3349bfb2457a3a0238c688681f3" +checksum = "8badbaa4129a88e4d2fdaa1615fc61b2a59d4ebb2ac36e5de51f75598f0dd992" dependencies = [ "accesskit", "accesskit_windows", @@ -5053,9 +5048,9 @@ dependencies = [ [[package]] name = "gpui-pre-ztracing" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1043bbe8d711baf03e774b03bae6521155f017450b866dcaa987a07d978d660a" +checksum = "aa2a81eaf17ae3c81b118d45ce173e25cd621062c111561b1957660d678d4d4c" dependencies = [ "gpui-pre-ztracing-macro", "tracing", @@ -5063,15 +5058,15 @@ dependencies = [ [[package]] name = "gpui-pre-ztracing-macro" -version = "0.3.12" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85701631a9bbecf47e6d19f145e85e57767e7c50f7192d5b1bf65b5ef43cb373" +checksum = "f0de0aaa67d6974e0983f6d4ded918b73547db6cb82b61ac2de88576a45b0e81" [[package]] name = "gpui-webview" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0c54dee72b31d792eb048197c646b031f859a683e78617f6ab9faf9af73128c" +checksum = "5742b361279f316a8d35fbe8e961c677583cd150aff7635ce70813e814809ba7" dependencies = [ "anyhow", "gdkx11", @@ -5082,6 +5077,7 @@ dependencies = [ "objc2 0.6.5", "objc2-app-kit 0.3.2", "objc2-foundation 0.3.2", + "windows 0.61.3", "x11", ] @@ -5254,18 +5250,18 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.17.1" +version = "0.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc" dependencies = [ "foldhash 0.2.0", ] [[package]] name = "heapless" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25ba4bd83f9415b58b4ed8dc5714c76e626a105be4646c02630ad730ad3b5aa4" +checksum = "411fdef4df93751117bd9ef8caa0e7f99c65dafec5bd84313eb8e2fdd75e32f2" dependencies = [ "hash32", "stable_deref_trait", @@ -5739,11 +5735,10 @@ dependencies = [ [[package]] name = "igd-next" -version = "0.17.1" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de7238d487a9aff61f81b5ab41c0a841532a115a398b5fa92a2fadd0885e2581" +checksum = "c71312255fdc5364bff7eec0adf68146bc4e72aba85075261af40d234c11be99" dependencies = [ - "attohttpc", "bytes", "futures", "http", @@ -5752,16 +5747,18 @@ dependencies = [ "hyper-util", "log", "rand 0.10.4", + "thiserror 2.0.21", "tokio", "url", + "xml-rs", "xmltree", ] [[package]] name = "ignore" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "484be5657551d7868d67587df967fb4fcbe9d266a761cc855aaa148fda0b3cc7" +checksum = "df0a7d5f105e76bda602bed0a44af048542d3c9af12ec35aaf16f106c6f34270" dependencies = [ "crossbeam-deque", "globset", @@ -5852,7 +5849,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" dependencies = [ "equivalent", - "hashbrown 0.17.1", + "hashbrown 0.17.2", "serde", "serde_core", ] @@ -5884,7 +5881,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ "block-padding 0.3.3", - "generic-array 0.14.7", + "generic-array", ] [[package]] @@ -5973,9 +5970,9 @@ dependencies = [ [[package]] name = "iroh" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3689cab508af9bcef7816c1201b403595ec6aa20e7d15e1f9683bb4be4a5b17" +checksum = "40ac5d8330439176254581b6db4bc6f1d947d7cc741fda4e04b96d758addf1db" dependencies = [ "backon", "blake3", @@ -6023,9 +6020,9 @@ dependencies = [ [[package]] name = "iroh-base" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43b72366b16001af3a51574233df88ca6d62da0215807549a769e7de887da803" +checksum = "eff8f9146946feac461ef2e5fcf7b4b795eff44958ef6faa85cba3cecea62ab3" dependencies = [ "curve25519-dalek", "data-encoding", @@ -6036,15 +6033,16 @@ dependencies = [ "n0-error", "rand 0.10.4", "serde", + "tracing", "url", "zeroize", ] [[package]] name = "iroh-dns" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7481d0792dde1035a2b06ec06ed3cf6d01fcb1a494e6931b489e32073382048d" +checksum = "2cf4ac424ab7e13357c7bff7b6320b865e6ffc2320d726b58d1c8162f52a1406" dependencies = [ "arc-swap", "cfg_aliases 0.2.2", @@ -6065,9 +6063,9 @@ dependencies = [ [[package]] name = "iroh-metrics" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ede55536349842337f7cdc63012ec33dc637945f3259c98a0763aac364cdf09" +checksum = "e136dab0f56d67ae1e8e4de75f84e271b6b2ccf0cdbed1be79936783247c1590" dependencies = [ "http-body-util", "hyper", @@ -6100,9 +6098,9 @@ dependencies = [ [[package]] name = "iroh-relay" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e5589e7c1475700686603a970275687f760df853bc6525c7eb1347aa31d7230" +checksum = "aef6e9c979c78b0dadf6a2aac4ff629c4ffb91ec34586275673524248dc72f55" dependencies = [ "blake3", "bytes", @@ -6119,7 +6117,7 @@ dependencies = [ "iroh-base", "iroh-dns", "iroh-metrics", - "lru", + "lru 0.19.2", "n0-error", "n0-future", "noq", @@ -6148,7 +6146,7 @@ dependencies = [ "tokio-rustls-acme", "tokio-util", "tokio-websockets", - "toml 1.2.1+spec-1.1.0", + "toml 1.2.2+spec-1.1.0", "tracing", "tracing-subscriber", "url", @@ -6261,13 +6259,31 @@ version = "0.2.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "175dc66334db3b9ab9985bf8b61cfed50dc16d20964bb47f9e479adcae984a7f" dependencies = [ - "jiff-core", - "jiff-static", - "jiff-tzdb-platform", + "jiff-core 0.1.8", + "jiff-static 0.2.46", + "jiff-tzdb-platform 0.1.3", + "log", + "portable-atomic", + "portable-atomic-util", + "serde_core", + "windows-link 0.2.1", +] + +[[package]] +name = "jiff" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e77cbfb9fff4798e283c2d69dff39fc2c45e7da017e5ce95b654e46ea41236" +dependencies = [ + "jiff-core 1.0.1", + "jiff-static 1.0.2", + "jiff-tzdb-platform 1.0.0", + "js-sys", "log", "portable-atomic", "portable-atomic-util", "serde_core", + "wasm-bindgen", "windows-link 0.2.1", ] @@ -6280,31 +6296,67 @@ dependencies = [ "log", ] +[[package]] +name = "jiff-core" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b46a105a9874634dd96231021526bf24ca04955a5998c59a9c7666e634b7b8" +dependencies = [ + "log", +] + [[package]] name = "jiff-static" version = "0.2.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7b1af7547d47354bc438d797e3854601bde8f8d185780c5ba4ab27afa54f1ba" dependencies = [ - "jiff-core", + "jiff-core 0.1.8", "proc-macro2", "quote", "syn 2.0.119", ] +[[package]] +name = "jiff-static" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9067a0b23e5be3147d56b2dcf652b18e6b1364caca93fb157653b6fbcab23a9" +dependencies = [ + "jiff-core 1.0.1", + "proc-macro2", + "quote", + "syn 3.0.10", +] + [[package]] name = "jiff-tzdb" version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0980fca2cc272465bd60e82397607ba9f33add9e48defd77923301bbd03808f2" +[[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 = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8" dependencies = [ - "jiff-tzdb", + "jiff-tzdb 0.1.10", +] + +[[package]] +name = "jiff-tzdb-platform" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc65b284afcfa8f6cf189c7274c805505314a7ab975c60e1f548bff56525420e" +dependencies = [ + "jiff-tzdb 1.0.0", ] [[package]] @@ -6410,9 +6462,9 @@ dependencies = [ [[package]] name = "json5" -version = "1.3.7" +version = "1.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0348cde6df2b507ba3c3753beba226baba8567af588d6568cdb9877f02c75b60" +checksum = "6c1d229cedc4e210dd2e2a6cdc59e36ce28e7338fb69367d0d2566e26de7d599" dependencies = [ "serde", "ucd-trie", @@ -6738,7 +6790,16 @@ version = "0.18.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef9ac18847474e638e3702b76c65d4eb93428471a74778ef0f1be711717f89b5" dependencies = [ - "hashbrown 0.17.1", + "hashbrown 0.17.2", +] + +[[package]] +name = "lru" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e2a1b977b42ee8b53a2a4adbd1183431c493f1d1960b7ccd893e2f0b9407ba" +dependencies = [ + "hashbrown 0.17.2", ] [[package]] @@ -6760,26 +6821,6 @@ dependencies = [ "serde_repr", ] -[[package]] -name = "lyon" -version = "1.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd0578bdecb7d6d88987b8b2b1e3a4e2f81df9d0ece1078623324a567904e7b7" -dependencies = [ - "lyon_algorithms", - "lyon_tessellation", -] - -[[package]] -name = "lyon_algorithms" -version = "1.0.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" @@ -6801,17 +6842,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" version = "0.1.1" @@ -6975,9 +7005,9 @@ checksum = "7ebb8d8732c6a6df3d8f032a82911cfc747e00efb95cc46e8d0acd5b5b88570c" [[package]] name = "mdns-sd" -version = "0.21.7" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6743ed743ff2bada2b8651ef298d3f98addb0b74844f19cdd57137d8bd0219e" +checksum = "9aaf7ecb589a3bb5e9642c3e5f79e1e54a8ea8c1c48bc9975c39d77fa640764c" dependencies = [ "fastrand", "flume 0.12.0", @@ -7189,14 +7219,14 @@ checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" [[package]] name = "n0-dns-resolver" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "535c99c9a786bee714155d2ee4fc2477405c2c43536e1bc6a51de09a0d1448f7" +checksum = "0381996935dc55768ae8b13e7db69d3a90f13afb51dde80f870484027968bcd2" dependencies = [ "derive_more 2.1.1", "ipconfig", "jni 0.22.4", - "lru", + "lru 0.18.5", "n0-error", "n0-future", "ndk-context", @@ -7279,7 +7309,7 @@ dependencies = [ "cfg_aliases 0.2.2", "codespan-reporting", "half", - "hashbrown 0.17.1", + "hashbrown 0.17.2", "indexmap 2.14.2", "libm", "log", @@ -7298,7 +7328,7 @@ version = "30.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "14474170feb673cfb18b3565111a9869797cc1d290fb9ec969c53f5e1e231c6d" dependencies = [ - "hashbrown 0.17.1", + "hashbrown 0.17.2", "indexmap 2.14.2", "rustc-hash 1.1.0", "thiserror 2.0.21", @@ -7345,36 +7375,9 @@ dependencies = [ [[package]] name = "netdev" -version = "0.45.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "096c44b66a9b09b99b4dd36b1c295ff3a492039ccecaf55466bd6ddcdba59968" -dependencies = [ - "block2 0.6.2", - "dispatch2", - "dlopen2", - "ipnet", - "jni 0.21.1", - "libc", - "mac-addr", - "ndk-context", - "netlink-packet-core 0.8.2", - "netlink-packet-route 0.31.0", - "netlink-sys 0.8.8", - "objc2 0.6.5", - "objc2-core-foundation", - "objc2-core-wlan", - "objc2-foundation 0.3.2", - "objc2-system-configuration", - "once_cell", - "plist", - "windows-sys 0.61.2", -] - -[[package]] -name = "netdev" -version = "0.46.3" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3c52c2584961c68f5a6e3356797344061f818c93b8acc9cd6d7e284795e563e" +checksum = "98a4d13f8061600697d721c5fd45262aba533a7d4a7670e7c64fd02d68e4a9fb" dependencies = [ "block2 0.6.2", "dispatch2", @@ -7384,9 +7387,9 @@ dependencies = [ "libc", "mac-addr", "ndk-context", - "netlink-packet-core 0.9.0", - "netlink-packet-route 0.33.0", - "netlink-sys 0.9.0", + "netlink-packet-core", + "netlink-packet-route", + "netlink-sys", "objc2-core-foundation", "objc2-system-configuration", "once_cell", @@ -7394,33 +7397,12 @@ dependencies = [ "windows-sys 0.61.2", ] -[[package]] -name = "netlink-packet-core" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b897d7bd4f0af82e68d40d0344cf37e97f9c97ddf74a098de3e4da05e96ca395" -dependencies = [ - "paste", -] - [[package]] name = "netlink-packet-core" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d6e2daf9a8c2e21302714706860a0e6be02e03d17294ecc66b354ea7d4059dd" -[[package]] -name = "netlink-packet-route" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2288fcb784eb3defd5fb16f4c4160d5f477de192eac730f43e1d11c24d9a007" -dependencies = [ - "bitflags 2.13.2", - "libc", - "log", - "netlink-packet-core 0.8.2", -] - [[package]] name = "netlink-packet-route" version = "0.33.0" @@ -7430,38 +7412,25 @@ dependencies = [ "bitflags 2.13.2", "libc", "log", - "netlink-packet-core 0.9.0", + "netlink-packet-core", "zerocopy", ] [[package]] name = "netlink-proto" -version = "0.12.2" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93af8261786086024cd5e96e0a991dd65ced07bbf7c233a487bbc96b971d5539" +checksum = "97e03ae6247c6cdb499e8f14e98c72b83954d85822b687056e3a21150b438f2b" dependencies = [ "bytes", "futures-channel", "futures-util", "log", - "netlink-packet-core 0.8.2", - "netlink-sys 0.8.8", + "netlink-packet-core", + "netlink-sys", "thiserror 2.0.21", ] -[[package]] -name = "netlink-sys" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd6c30ed10fa69cc491d491b85cc971f6bdeb8e7367b7cde2ee6cc878d583fae" -dependencies = [ - "bytes", - "futures-util", - "libc", - "log", - "tokio", -] - [[package]] name = "netlink-sys" version = "0.9.0" @@ -7469,19 +7438,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c99d38e00b420df49e940fe0826e667c3dad82ac68eb4c2bbf754c1c14a83a10" dependencies = [ "bytes", + "futures-util", "libc", "log", + "tokio", ] [[package]] name = "netwatch" -version = "0.19.3" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39da9cad5f23aa43401f09497d3b280e51b5feba115d9ffbf38ca35d6ff95e96" +checksum = "2acf7a1ca9205d7c1fc9a1595193a8cbaa7537b4a07dca93c6ae3de7c8d0e597" dependencies = [ "atomic-waker", "bytes", "cfg_aliases 0.2.2", + "chrono", "derive_more 2.1.1", "ipnet", "js-sys", @@ -7489,19 +7461,17 @@ dependencies = [ "n0-error", "n0-future", "n0-watcher", - "netdev 0.45.1", - "netdev 0.46.3", - "netlink-packet-core 0.8.2", - "netlink-packet-route 0.31.0", + "netdev", + "netlink-packet-core", + "netlink-packet-route", "netlink-proto", - "netlink-sys 0.8.8", + "netlink-sys", "noq-udp", "objc2-core-foundation", "objc2-system-configuration", "pin-project-lite", "serde", "socket2", - "time", "tokio", "tokio-util", "tracing", @@ -7531,9 +7501,9 @@ dependencies = [ [[package]] name = "nix" -version = "0.31.3" +version = "0.31.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +checksum = "2bc81ce8148d3b4f3274da811f11cdd824ae661ee4ef732cdb229825cf5be7f7" dependencies = [ "bitflags 2.13.2", "cfg-if", @@ -7601,9 +7571,9 @@ checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" [[package]] name = "noq" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6249a065adc1edbc1704a95436f38dd60476064dbc3b7c47cf279e02d1590eb5" +checksum = "0c2cf8bf3b78c2684a8485782c3357344416f264050f8d08a06c45c4642d87a2" dependencies = [ "bytes", "cfg_aliases 0.2.2", @@ -7623,9 +7593,9 @@ dependencies = [ [[package]] name = "noq-proto" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c01a35be3ed37558c8db69554419f24eff8a63599b54f711bbe3863ec727c47d" +checksum = "afb15c81d1f9b529d0c1f5095ee2e799eca9f361aa5f712424e758ce90f825d3" dependencies = [ "aes-gcm 0.10.3", "bytes", @@ -7635,7 +7605,7 @@ dependencies = [ "identity-hash", "lru-slab", "rand 0.10.4", - "rand_pcg 0.10.2", + "rand_pcg 0.10.3", "ring", "rustc-hash 2.1.3", "rustls", @@ -7651,9 +7621,9 @@ dependencies = [ [[package]] name = "noq-udp" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d0160422832eea1cc11c34be04ee6d5a046452b0b46cfb14695d55a1f24c954" +checksum = "716df6621d528211d75608903c0dd54bee78745444cdcbb791bcfbc55717a29f" dependencies = [ "cfg_aliases 0.2.2", "libc", @@ -7701,7 +7671,7 @@ dependencies = [ "mac-notification-sys", "serde", "tauri-winrt-notification", - "zbus 6.3.0", + "zbus 6.5.0", ] [[package]] @@ -8146,20 +8116,6 @@ dependencies = [ "objc2-metal 0.3.2", ] -[[package]] -name = "objc2-core-wlan" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c71e34919aba0d701380d911702455038a8a3587467fe0141d6a71501e7ffe48" -dependencies = [ - "bitflags 2.13.2", - "objc2 0.6.5", - "objc2-core-foundation", - "objc2-foundation 0.3.2", - "objc2-security", - "objc2-security-foundation", -] - [[package]] name = "objc2-encode" version = "4.1.0" @@ -8296,16 +8252,6 @@ dependencies = [ "objc2-core-foundation", ] -[[package]] -name = "objc2-security-foundation" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef76382e9cedd18123099f17638715cc3d81dba3637d4c0d39ab69df2ef345a5" -dependencies = [ - "objc2 0.6.5", - "objc2-foundation 0.3.2", -] - [[package]] name = "objc2-speech" version = "0.3.2" @@ -8745,16 +8691,6 @@ dependencies = [ "hmac 0.13.0", ] -[[package]] -name = "pem" -version = "3.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" -dependencies = [ - "base64 0.22.1", - "serde_core", -] - [[package]] name = "pem" version = "4.0.0" @@ -9016,29 +8952,29 @@ checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" [[package]] name = "pin-project" -version = "1.1.13" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +checksum = "a6c2123f4708bbd422630a6dae7c03f678b1ce1f1c99e4c4b3beac69c8174cc9" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.13" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +checksum = "358938fd6df944c1e44bb328b60fb275f13c804aac47ba26a1165d45a3f87756" dependencies = [ "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.10", ] [[package]] name = "pin-project-lite" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +checksum = "c938015719552d665fd0553b90d96cd7ff58e83e4c061ca99e6bb78865a72752" [[package]] name = "piper" @@ -9088,9 +9024,9 @@ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" [[package]] name = "plist" -version = "1.10.3" +version = "1.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327a4cb2ad49dc48adfdc9da89e22c64d488b508c67a044d71ba729e4521a285" +checksum = "d86a77b7d9cdebd9643c180c158748db7d894b24a3935ed4b5843e698ae086eb" dependencies = [ "base64 0.23.1", "indexmap 2.14.2", @@ -9264,11 +9200,10 @@ dependencies = [ [[package]] name = "portmapper" -version = "0.19.3" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca97242f016e090a25330613bc2382aab65eb22f9149dbe84d8f8e711d49a530" +checksum = "d36ce759df600731dd2511cd2d640bd551086b2f7b68bceb9bbcfd8c7ff86053" dependencies = [ - "base64 0.22.1", "bytes", "derive_more 2.1.1", "hyper-util", @@ -9283,10 +9218,8 @@ dependencies = [ "serde", "smallvec", "socket2", - "time", "tokio", "tokio-util", - "tower-layer", "tracing", "url", ] @@ -9308,9 +9241,9 @@ dependencies = [ [[package]] name = "postcard" -version = "1.1.3" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24" +checksum = "5431b3dcfdf6d1985c87d11f267a171c0dec0a8cd544c6727b747d36365f1fca" dependencies = [ "cobs", "embedded-io 0.4.0", @@ -9321,9 +9254,9 @@ dependencies = [ [[package]] name = "postcard-derive" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0232bd009a197ceec9cc881ba46f727fcd8060a2d8d6a9dde7a69030a6fe2bb" +checksum = "81eb7aa11a5014b132321e6abc20e2e39fb32ee149890042019f08ecfb0e17ef" dependencies = [ "proc-macro2", "quote", @@ -9446,7 +9379,7 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" dependencies = [ - "toml_edit 0.25.19+spec-1.1.0", + "toml_edit 0.25.20+spec-1.1.0", ] [[package]] @@ -9594,9 +9527,9 @@ dependencies = [ [[package]] name = "qrcode" -version = "0.14.1" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec" +checksum = "ace1a365f55004297f2cf24acfd96d02966246ca423385273b58a7dc873ee14d" [[package]] name = "quick-error" @@ -9658,7 +9591,7 @@ dependencies = [ "getrandom 0.4.3", "lru-slab", "rand 0.10.4", - "rand_pcg 0.10.2", + "rand_pcg 0.10.3", "ring", "rustc-hash 2.1.3", "rustls", @@ -9849,9 +9782,9 @@ dependencies = [ [[package]] name = "rand_pcg" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" +checksum = "eb95882a1e14462c69aea9984bb261293ccfe6022ef8de0eda18bd5afb0052df" dependencies = [ "rand_core 0.10.1", ] @@ -9980,7 +9913,7 @@ version = "0.14.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8774e05a7d0de114588e6a28fe7e71694b82614ed569d86d8b389dfbc98b8ad8" dependencies = [ - "pem 4.0.0", + "pem", "ring", "rustls-pki-types", "time", @@ -10022,9 +9955,9 @@ dependencies = [ [[package]] name = "redb" -version = "4.6.0" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "096b1dd5ec053c9c2a5a26a93aafeadf73ebcb710ea54dc3151f17a8e20535ef" +checksum = "11175cc688ba1b9d3cec4fe582fd82cb97e2a82e28ccc8101b7b8030a8003280" dependencies = [ "libc", ] @@ -10081,9 +10014,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857" dependencies = [ "aho-corasick", "memchr", @@ -10093,9 +10026,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.18" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158" dependencies = [ "aho-corasick", "memchr", @@ -10104,9 +10037,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.11" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" +checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6" [[package]] name = "reloadable-core" @@ -10295,9 +10228,9 @@ dependencies = [ [[package]] name = "rmcp" -version = "3.10.0" +version = "3.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5949e504d5ab9944a168259afc0c39ac0230627b6ec5367ace194c59bcbe163" +checksum = "391f153431ab68664d946513ea0cb3edbca78eaf99c5a983036cacab6220d85b" dependencies = [ "async-trait", "base64 0.23.1", @@ -10310,6 +10243,7 @@ dependencies = [ "indexmap 2.14.2", "libc", "pastey 0.2.3", + "percent-encoding", "pin-project-lite", "rand 0.10.4", "rmcp-macros", @@ -10324,14 +10258,16 @@ dependencies = [ "tokio-util", "tower-service", "tracing", + "unicode-general-category", + "unicode-normalization", "uuid", ] [[package]] name = "rmcp-macros" -version = "3.10.0" +version = "3.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b98a686693ee91b665c6f89f182fca6e141c8a63dc113b11b38c1bf3491606b7" +checksum = "3598e3f36f4af2b5219b133baf7d97a2197039225adc3d4acf3dd8805b5a2aef" dependencies = [ "darling", "proc-macro2", @@ -10376,9 +10312,9 @@ dependencies = [ [[package]] name = "rushdown" -version = "0.18.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57358ca9b61ea373ec6bf1c9e916f521f19a919587d9179624d47c40da2ffc5d" +checksum = "f5ffdc5468c3c6870a9d3a05d9b0e703291b40477ef6f1d1df97f2ce0133ae81" dependencies = [ "bitflags 2.13.2", "memchr", @@ -10388,9 +10324,9 @@ dependencies = [ [[package]] name = "russh" -version = "0.65.1" +version = "0.65.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94be3d86c71b9ed220a675c405e35c7a02565a009bf8da2e9cc13a700320a5c5" +checksum = "569d8c45e20c123af2fc5ecb4803fde0a98572449ba4c24ed97741d7b02fedf7" dependencies = [ "aes 0.9.4", "bitflags 2.13.2", @@ -10411,7 +10347,6 @@ dependencies = [ "elliptic-curve", "enum_dispatch", "futures", - "generic-array 1.4.5", "getrandom 0.4.3", "ghash 0.6.0", "hex-literal", @@ -10461,22 +10396,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3aec6cb630dbe85d72ffd7bcd95f07e1bd69f9f270ee8adfa1afe443a6331438" dependencies = [ "log", - "nix 0.31.3", + "nix 0.31.4", "ssh-encoding", "windows-sys 0.61.2", ] [[package]] name = "russh-sftp" -version = "3.0.1" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb17f72aba4314656b359ffba72c68dcbd70ed9e97497898b75498fe7198042" +checksum = "5b8067d56cde438de09db20be974be92118b85d671c7f50ea3b37cf9011760f0" dependencies = [ "bitflags 2.13.2", "bytes", - "chrono", "dashmap", "gloo-timers 0.4.1", + "jiff 1.0.2", "log", "serde", "serde_bytes", @@ -11157,9 +11092,9 @@ dependencies = [ [[package]] name = "serde_with" -version = "3.24.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df9adc193c780ef8f159aee8b61e2d5801aaa555e6eb0947fe45530ec506296f" +checksum = "56cb1ca7c93ae63d6439b5250f6b6b040f7e121f32e5dd2f5d523dd4149b3204" dependencies = [ "base64 0.23.1", "bs58", @@ -11167,7 +11102,8 @@ dependencies = [ "hex", "indexmap 1.9.3", "indexmap 2.14.2", - "jiff", + "jiff 0.2.46", + "jiff 1.0.2", "schemars 0.9.0", "schemars 1.2.3", "serde_core", @@ -11178,9 +11114,9 @@ dependencies = [ [[package]] name = "serde_with_macros" -version = "3.24.0" +version = "3.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e17bbc68e28663bbbb90df47e058aa7eda4fb445b89fe70457bb94fbccf6e49" +checksum = "cff15a7c864bbec77d9586ca6822bc7c369bdf19e9243134a62b0b51ce26b31f" dependencies = [ "darling", "proc-macro2", @@ -11439,9 +11375,9 @@ dependencies = [ [[package]] name = "simple-dns" -version = "0.12.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b6f884fa9a8d48101774bfbd3aeb81e968dd22cffd19a372da69f183db22c1a" +checksum = "8aea2b78df6bbe38fb98d2c8140ada65fb63a314246a0c38626140dd21c69ff7" dependencies = [ "bitflags 2.13.2", ] @@ -11523,9 +11459,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.16.5" +version = "1.16.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" +checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" [[package]] name = "smithay" @@ -11745,9 +11681,9 @@ dependencies = [ [[package]] name = "ssh-key" -version = "0.7.0-rc.11" +version = "0.7.0-rc.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a32fae177b74a22aa9c5b01bf7e68b33545be32d9e381e248058d2adc15ce3" +checksum = "0701b552e6bd8f13a6e07bde25307c32d7daad80a79b65832d110c0416e7b638" dependencies = [ "argon2", "bcrypt-pbkdf", @@ -12285,7 +12221,6 @@ dependencies = [ "chrono", "computer-use-mcp", "control-mcp", - "filetime", "libc", "log", "mcp-host", @@ -12402,7 +12337,7 @@ dependencies = [ "tokio", "tokio-rustls", "tokio-rustls-acme", - "toml 1.2.1+spec-1.1.0", + "toml 1.2.2+spec-1.1.0", "tower", "tracing", "tracing-subscriber", @@ -12441,7 +12376,6 @@ dependencies = [ "latex-rust", "lb-wry", "log", - "lyon", "mermaid-rs-renderer", "objc2 0.6.5", "objc2-app-kit 0.3.2", @@ -12757,17 +12691,16 @@ dependencies = [ [[package]] name = "tokio-rustls-acme" -version = "0.9.1" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1af8573b15fdad8d66da116198cd8fd8d87ff62a67c1c6c3df7f62da1170793f" +checksum = "14303ebe76ff697adc251341c800c56e7a6a15c53dcd6e45986dbc291e2ae9a4" dependencies = [ "async-trait", - "base64 0.22.1", - "chrono", + "base64 0.23.1", "futures", "log", "num-bigint 0.4.8", - "pem 3.0.6", + "pem", "proc-macro2", "rcgen", "reqwest", @@ -12871,9 +12804,9 @@ dependencies = [ [[package]] name = "toml" -version = "1.2.1+spec-1.1.0" +version = "1.2.2+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7" +checksum = "5426cb1b964690d913f6c5c1a1ae0b42f428ec506bb4d452876d7a209c9bca3b" dependencies = [ "indexmap 2.14.2", "serde_core", @@ -12940,9 +12873,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.25.19+spec-1.1.0" +version = "0.25.20+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218" +checksum = "e76360e201d6dbd6583e17795ba71a88f47365a9139c8450a7979c32303b8e73" dependencies = [ "indexmap 2.14.2", "toml_datetime 1.1.3+spec-1.1.0", @@ -12952,9 +12885,9 @@ dependencies = [ [[package]] name = "toml_parser" -version = "1.1.5+spec-1.1.0" +version = "1.1.6+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +checksum = "e6769c452d71ba30696c6b37770c439a9cc9110f47f7d5cdbeda79840ef5ea31" dependencies = [ "winnow 1.0.5", ] @@ -13136,9 +13069,9 @@ dependencies = [ [[package]] name = "turso" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1cf9c519a3a971e845a42c870930557cb53c2368c5737d4c78f8fbfd0444e98" +checksum = "b2132e5db79a10266c0f9d76ca89433c4b417848c7a0935ae50c613f68118c85" dependencies = [ "thiserror 2.0.21", "tracing", @@ -13150,9 +13083,9 @@ dependencies = [ [[package]] name = "turso_core" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "810ee7b139fd6aa9304cb2fa278c1be0bb964c92457e2a24c1d384196ce5e217" +checksum = "3786ce9ed03037eb79100e9927779b6dd004c26193ea4a6e075845f95a68191f" dependencies = [ "aegis", "aes 0.8.4", @@ -13223,9 +13156,9 @@ dependencies = [ [[package]] name = "turso_ext" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5003ed7e98f082fe4114627c8d7c7ab569c27766e9bd350a0c09af06ad3fd46" +checksum = "8f2365cdf9792e6587fb2a555374a5690dd2f0cd0b3dca63352002722917978e" dependencies = [ "chrono", "getrandom 0.4.3", @@ -13234,9 +13167,9 @@ dependencies = [ [[package]] name = "turso_macros" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74770c0d0c8b272b479b5343f19dbd2f8f2677d85a4d6222fc214dcac2882beb" +checksum = "1f68286413cd9988629ec370a9bcc5bd4ba2acdd4f6862b1f6d4184a9ab7cb3e" dependencies = [ "proc-macro2", "quote", @@ -13245,9 +13178,9 @@ dependencies = [ [[package]] name = "turso_parser" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a69bb856ec8306ad7ed1c13fc61de6a79452bf646ca53d99bb4cc646d5bfc4ff" +checksum = "a4aa81f07bff1d2b0dda0358118577a1dc7bc0a3ba40fcdc7cb4cb6acd1751dc" dependencies = [ "bitflags 2.13.2", "memchr", @@ -13260,9 +13193,9 @@ dependencies = [ [[package]] name = "turso_sdk_kit" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819a17926d04dbeb5b03f00cdab6ed7351bbb6778d00840364b9af62bca02914" +checksum = "e700f313160eca7ef55dc4e5170c1cf6103c1ec8f2644e2e6c8fe2a0157f68b6" dependencies = [ "bindgen", "env_logger", @@ -13277,9 +13210,9 @@ dependencies = [ [[package]] name = "turso_sdk_kit_macros" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f315d7f8c5bba49d1c7ca000664a455085cb95f0fa8031c6dc1f67d6d0f28e1" +checksum = "573463dc41251ac587bf1f54eb927df1460a96f13deede059dc3741766223873" dependencies = [ "proc-macro2", "quote", @@ -13288,9 +13221,9 @@ dependencies = [ [[package]] name = "turso_sync_engine" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8d37dca9e05cc090ca3d73083f82fc63b0d11c33550308ca5d93668a8441b71" +checksum = "6ed815a3d4033669144913ec71761ec1999301f1c137c30a7673ba813914b12c" dependencies = [ "base64 0.22.1", "bytes", @@ -13311,9 +13244,9 @@ dependencies = [ [[package]] name = "turso_sync_sdk_kit" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fe4b961c9cc90f6339447dabfe83ed13a498721e41378932ab7eaf8ddd6976" +checksum = "14dd072a4d3dd5355413a225aa2a55f9d6588aecf63b0193a628ed004f92228a" dependencies = [ "bindgen", "env_logger", @@ -13351,9 +13284,9 @@ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" [[package]] name = "ucd-trie" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" +checksum = "8f20bdbfc9915686faa18fb5bbe8b4552778505defbf9f12289beefbc44092a6" [[package]] name = "uds_windows" @@ -13368,11 +13301,10 @@ dependencies = [ [[package]] name = "uiautomation" -version = "0.25.1" +version = "0.25.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa2eacf9390a8491bc949b04230f40c12520c6423a2962a6087eea1ef14373af" +checksum = "4915ae07066ba748456eea8551a89b1f8b9bae7abf7de4a4ce26e80e9604aacb" dependencies = [ - "chrono", "png 0.18.1", "uiautomation_derive", "windows 0.62.2", @@ -13381,9 +13313,9 @@ dependencies = [ [[package]] name = "uiautomation_derive" -version = "0.7.9" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c893ec96e05c3c81ba46f838f3190549ec185ef377d582ab3d44202b2dfacbd" +checksum = "8baf05e7430496612b91bca9ccf94a26898bef3500d0488efe0e9543327f928e" dependencies = [ "proc-macro2", "quote", @@ -13429,6 +13361,12 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e" +[[package]] +name = "unicode-general-category" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f" + [[package]] name = "unicode-id" version = "0.3.7" @@ -13447,6 +13385,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" +[[package]] +name = "unicode-normalization" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d" +dependencies = [ + "tinyvec", +] + [[package]] name = "unicode-properties" version = "0.1.5" @@ -13546,9 +13493,9 @@ dependencies = [ [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -13655,9 +13602,9 @@ checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" [[package]] name = "uuid" -version = "1.29.2" +version = "1.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c" +checksum = "3c14b15dffa2f4bd712103e857140aa04a4f2ff6e955c77d7eb8e53ee02a3b64" dependencies = [ "getrandom 0.4.3", "js-sys", @@ -13744,9 +13691,9 @@ checksum = "317211a0dc0ceedd78fb2ca9a44aed3d7b9b26f81870d485c07122b4350673b7" [[package]] name = "walkdir" -version = "2.5.0" +version = "2.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +checksum = "b42e295b7452c4604982280d8586001fcad9b8b201cac67bca9771e7a7475403" dependencies = [ "same-file", "winapi-util", @@ -14170,7 +14117,7 @@ dependencies = [ "cfg-if", "cfg_aliases 0.2.2", "document-features", - "hashbrown 0.17.1", + "hashbrown 0.17.2", "js-sys", "log", "naga", @@ -14201,7 +14148,7 @@ dependencies = [ "bytemuck", "cfg_aliases 0.2.2", "document-features", - "hashbrown 0.17.1", + "hashbrown 0.17.2", "indexmap 2.14.2", "log", "naga", @@ -14277,7 +14224,7 @@ dependencies = [ "glow", "glutin_wgl_sys", "gpu-allocator", - "hashbrown 0.17.1", + "hashbrown 0.17.2", "js-sys", "khronos-egl", "libc", @@ -15506,9 +15453,9 @@ dependencies = [ [[package]] name = "zbus" -version = "6.3.0" +version = "6.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b4aae740b23927ceabed962431abab2cdefb9f7f885e5bbab062da09bf580e4" +checksum = "9a7f9f5dd97fa527c1202ba1cb35d48e07f77d4de8542317c854f7aef22b0668" dependencies = [ "async-trait", "bitflags 2.13.2", @@ -15525,7 +15472,7 @@ dependencies = [ "uuid", "windows-sys 0.61.2", "winnow 1.0.5", - "zbus_macros 6.3.0", + "zbus_macros 6.5.0", "zbus_utils", "zcheapstr", "zruntime", @@ -15572,9 +15519,9 @@ dependencies = [ [[package]] name = "zbus_macros" -version = "6.3.0" +version = "6.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37c9dd4beaf145c16fcb2902862f50da86e54aed13dd368ddf64a1d17e6b8529" +checksum = "2f5aa7f2c4ea81b7ccfb26bafefdb4d1a44dd9d4f82c8426173a3727311743e4" dependencies = [ "proc-macro2", "quote", @@ -15620,9 +15567,9 @@ dependencies = [ [[package]] name = "zcheapstr" -version = "1.2.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "939f186d9ecebe044315a5cb6d6f78568bbc21152adc954d5a0c2f58bdbc9920" +checksum = "2da34e7164b75d803c3197b86e6cf61b874106fbd472c5082575a8bc5fbd0907" dependencies = [ "serde", ] @@ -15696,18 +15643,18 @@ checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" [[package]] name = "zerocopy" -version = "0.8.63" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +checksum = "ed43f3060383c64b000f3c630550aebdfa9d3b76d48de32390483dd2cc7e0865" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.63" +version = "0.8.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +checksum = "a5cbd820fe3e35fb38c83b6dc7e6b1618bc46e0cd10073ae94e8d52dc468d8b9" dependencies = [ "proc-macro2", "quote", @@ -15737,9 +15684,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" +checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa" dependencies = [ "zeroize_derive", ] @@ -15792,9 +15739,9 @@ dependencies = [ [[package]] name = "zip" -version = "9.6.0" +version = "9.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80cc68510ea7553c30a69c732de5278e94183f68765af6c642dbccefd6ec777e" +checksum = "2d8dbe089cf6b0448b78f5fc50139ab5aaa40d08ac07cdc1baf2c13add35fcce" dependencies = [ "constant_time_eq 0.6.1", "crc32fast", @@ -15823,9 +15770,9 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" [[package]] name = "zruntime" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6a55d4f521760475a30f7b96779508fe8c40dc834478709454dd1d5f0ebc72" +checksum = "ac67096b97c00742108c4674db6bb6178adb78c4b66a506b0e4a7a9593aa5d9e" dependencies = [ "futures-core", "futures-io", diff --git a/crates/agent/Cargo.toml b/crates/agent/Cargo.toml index 445116f2d..778381c67 100644 --- a/crates/agent/Cargo.toml +++ b/crates/agent/Cargo.toml @@ -20,7 +20,7 @@ process = [ ] [dependencies] -agent-client-protocol = { version = "5.3", optional = true, features = [ +agent-client-protocol = { version = "5.5", optional = true, features = [ "unstable_end_turn_token_usage", ] } log = "0.4" @@ -34,7 +34,7 @@ sha2 = { version = "0.11", optional = true } smol = { version = "2", optional = true } toml = { version = "1.1", optional = true } # The version the store in `tcode-services` pins: one Turso in the build. -turso = { version = "=0.8.3", default-features = false, optional = true } +turso = { version = "=0.8.4", default-features = false, optional = true } ureq = { version = "3", default-features = false, features = ["rustls", "gzip"], optional = true } uuid = { version = "1", features = ["v4"], optional = true } diff --git a/crates/agent/tests/acp_settings.rs b/crates/agent/tests/acp_settings.rs index e434f82c4..0d8b16ed9 100644 --- a/crates/agent/tests/acp_settings.rs +++ b/crates/agent/tests/acp_settings.rs @@ -1,19 +1,17 @@ -//! Wire-level ACP catalog probe, model/option setup and live `ApplySettings` +//! Wire-level ACP model/option setup and live `ApplySettings` //! tests using this `harness = false` binary as the subprocess agent so //! `libtest` writes nothing to its JSON-RPC stdout. use std::io::{BufRead as _, BufReader, Write as _}; use agent::{ - ACP_MODE_OPTION_ID, AcpAgent, AcpCatalog, AcpLaunch, AgentEvent, EFFORT_OPTION_ID, LaunchEnv, + ACP_MODE_OPTION_ID, AcpAgent, AcpLaunch, AgentEvent, EFFORT_OPTION_ID, LaunchEnv, OptionDescriptor, OptionRole, OptionSelection, ProviderKind, SessionCommand, SessionOptions, SessionProcesses, start_session, }; use serde_json::{Value, json}; const ROLE: &str = "TCODE_TEST_SETTINGS_ACP_AGENT"; -/// Set, the fake agent answers `session/new` that it needs signing in. -const SIGNED_OUT: &str = "TCODE_TEST_SETTINGS_ACP_SIGNED_OUT"; fn main() { if let Ok(port) = std::env::var(ROLE) { @@ -25,10 +23,6 @@ fn main() { "establish_applies_model_and_options_and_leaves_the_model_to_the_model_picker", establish_applies_model_and_options_and_leaves_the_model_to_the_model_picker, ), - ( - "probe_of_a_signed_out_agent_fails_without_signing_in", - probe_of_a_signed_out_agent_fails_without_signing_in, - ), ( "stale_model_at_establish_warns_and_carries_on", stale_model_at_establish_warns_and_carries_on, @@ -147,15 +141,9 @@ fn run_fake_agent(port: u16) { "id": id, "result": { "protocolVersion": 1, - "agentCapabilities": {}, - "authMethods": [{ "id": "browser", "name": "Sign in with a browser" }] + "agentCapabilities": {} } }), - "session/new" if std::env::var_os(SIGNED_OUT).is_some() => json!({ - "jsonrpc": "2.0", - "id": id, - "error": { "code": -32000, "message": "Authentication required" } - }), "session/new" => json!({ "jsonrpc": "2.0", "id": id, @@ -387,55 +375,6 @@ fn establish_applies_model_and_options_and_leaves_the_model_to_the_model_picker( drop(handle); } -/// Probe the fake agent, launched with `env`: what the probe returned and -/// every request the agent was sent, read once the agent is gone. -fn probe(env: &[&str]) -> (Result, Vec) { - let listener = std::net::TcpListener::bind(("127.0.0.1", 0)).unwrap(); - let port = listener.local_addr().unwrap().port(); - let mut env: Vec<(String, String)> = env - .iter() - .map(|name| ((*name).to_owned(), "1".to_owned())) - .collect(); - env.push((ROLE.into(), port.to_string())); - let agent = AcpAgent { - id: "fake-settings".into(), - name: "Fake Settings".into(), - launch: AcpLaunch::Binary { - command: std::env::current_exe().unwrap(), - args: Vec::new(), - env, - }, - }; - let processes = SessionProcesses::default(); - let probed = smol::spawn(async move { - agent::acp::probe_catalog(agent, Vec::new(), LaunchEnv::default(), &processes).await - }); - let (stream, _) = listener.accept().unwrap(); - let probed = smol::block_on(probed); - let requests = BufReader::new(stream) - .lines() - .map(|line| serde_json::from_str(&line.unwrap()).unwrap()) - .collect(); - (probed, requests) -} - -/// Signing in is the agent's interactive flow, which a thread the user -/// starts runs; a probe in the background never begins it. An agent that -/// cannot close sessions is not asked to. -fn probe_of_a_signed_out_agent_fails_without_signing_in() { - let (probed, requests) = probe(&[SIGNED_OUT]); - let error = probed.expect_err("a signed-out agent lists nothing"); - assert!( - error.to_string().contains("requires authentication"), - "{error}" - ); - let methods: Vec<&str> = requests - .iter() - .map(|request| request["method"].as_str().unwrap()) - .collect(); - assert_eq!(methods, ["initialize", "session/new"]); -} - /// A stale or rejected model at establish warns and carries on instead of /// failing session startup, and still restores the remaining options. fn stale_model_at_establish_warns_and_carries_on() { diff --git a/crates/android/Cargo.toml b/crates/android/Cargo.toml index 64d0a3015..3710ca1fd 100644 --- a/crates/android/Cargo.toml +++ b/crates/android/Cargo.toml @@ -9,7 +9,7 @@ name = "tcode_android" crate-type = ["cdylib", "rlib"] [dependencies] -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } gpui-android = { path = "../platform/gpui-android" } log = "0.4" tcode-client = { path = "../client" } diff --git a/crates/app/Cargo.toml b/crates/app/Cargo.toml index e379e341a..1363f735c 100644 --- a/crates/app/Cargo.toml +++ b/crates/app/Cargo.toml @@ -20,8 +20,8 @@ tcode-traverse = { path = "../traverse", features = ["native", "ssh"] } tcode-runtime = { path = "../runtime" } tcode-ui = { path = "../ui" } computer-use-mcp = { path = "../computer-use-mcp" } -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } -gpui_platform = { package = "gpui-fast-platform", version = "0.1.16", features = ["font-kit", "x11", "wayland", "runtime_shaders"] } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } +gpui_platform = { package = "gpui-fast-platform", version = "0.1.19", features = ["font-kit", "x11", "wayland", "runtime_shaders"] } env_logger = "0.11" log = "0.4" smol = "2" diff --git a/crates/headless/Cargo.toml b/crates/headless/Cargo.toml index bcd5458de..173e5eee7 100644 --- a/crates/headless/Cargo.toml +++ b/crates/headless/Cargo.toml @@ -14,7 +14,7 @@ web = [] [dependencies] agent = { path = "../agent", default-features = false } env_logger = "0.11" -qrcode = { version = "0.14", default-features = false } +qrcode = { version = "0.15", default-features = false } serde = { version = "1", features = ["derive"] } serde_json = "1" tcode-client = { path = "../client" } diff --git a/crates/ios/Cargo.toml b/crates/ios/Cargo.toml index 4497f9216..07b4db747 100644 --- a/crates/ios/Cargo.toml +++ b/crates/ios/Cargo.toml @@ -9,7 +9,7 @@ name = "tcode_ios" crate-type = ["staticlib", "rlib"] [dependencies] -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } gpui-ios = { path = "../platform/gpui-ios" } log = "0.4" tcode-client = { path = "../client" } diff --git a/crates/ios/host/project.yml b/crates/ios/host/project.yml index fdcb5a459..e2aee63b0 100644 --- a/crates/ios/host/project.yml +++ b/crates/ios/host/project.yml @@ -65,10 +65,11 @@ targets: - Security - "-framework" - Network - # netdev and system-configuration read DNS and proxy settings from - # SCDynamicStore. + # system-configuration reads proxy settings from SCDynamicStore. - "-framework" - SystemConfiguration + # netdev reads DNS settings through libresolv. + - "-lresolv" - "-lc++" schemes: diff --git a/crates/platform/gpui-android/Cargo.toml b/crates/platform/gpui-android/Cargo.toml index 7101e6568..6a80791b2 100644 --- a/crates/platform/gpui-android/Cargo.toml +++ b/crates/platform/gpui-android/Cargo.toml @@ -9,8 +9,8 @@ description = "Android platform backend for gpui-fast (Vulkan via gpui_wgpu)" [dependencies] gpui-mobile-pacing = { path = "../frame-pacing" } gpui-mobile-touch = { path = "../touch" } -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } -gpui_wgpu = { package = "gpui-fast-wgpu", version = "0.1.16" } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } +gpui_wgpu = { package = "gpui-fast-wgpu", version = "0.1.19" } anyhow = "1" log = "0.4" parking_lot = "0.12" diff --git a/crates/platform/gpui-ios/Cargo.toml b/crates/platform/gpui-ios/Cargo.toml index ebf6298b7..201f4486e 100644 --- a/crates/platform/gpui-ios/Cargo.toml +++ b/crates/platform/gpui-ios/Cargo.toml @@ -9,7 +9,7 @@ description = "iOS platform backend for gpui-fast (Metal via gpui_apple)" [dependencies] gpui-mobile-pacing = { path = "../frame-pacing" } gpui-mobile-touch = { path = "../touch" } -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } anyhow = "1" log = "0.4" parking_lot = "0.12" @@ -19,8 +19,8 @@ smallvec = "1" unicode-segmentation = "1" [dev-dependencies] -gpui = { package = "gpui-fast", version = "0.1.16", features = ["test-support"], default-features = false } -gpui-base = { version = "0.10.0", features = ["gpui-fast"] } +gpui = { package = "gpui-fast", version = "0.1.19", features = ["test-support"], default-features = false } +gpui-base = { version = "0.11.0", features = ["gpui-fast"] } [target.'cfg(target_os = "ios")'.dependencies] core-foundation = "0.10" @@ -29,7 +29,7 @@ core-text = "22" font-kit = { package = "zed-font-kit", version = "0.14.1-zed" } # As the desktop builds do: shaders compile on the device, so a build needs no # Metal toolchain. -gpui_apple = { package = "gpui-fast-apple", version = "0.1.16", features = ["runtime_shaders"] } +gpui_apple = { package = "gpui-fast-apple", version = "0.1.19", features = ["runtime_shaders"] } # libc 0.2.190 gates dyld bindings and in6_ifreq to macOS; backtrace 0.3.76 # and netdev 0.46.3 require them on iOS (#668). libc = ">=0.2, <0.2.190" diff --git a/crates/platform/gpui-ios/src/ios/ffi.rs b/crates/platform/gpui-ios/src/ios/ffi.rs index 61aa87f0c..a82d0ab51 100644 --- a/crates/platform/gpui-ios/src/ios/ffi.rs +++ b/crates/platform/gpui-ios/src/ios/ffi.rs @@ -618,7 +618,7 @@ pub extern "C" fn gpui_ios_text_range(kind: u32) -> TextRange { .selected_text_range(true) .map(|selection| selection.range), 1 => handler.marked_text_range(), - _ => text_input::text_length(handler).map(|length| 0..length), + _ => handler.text_length_utf16().map(|length| 0..length), }) .flatten(); }); @@ -699,7 +699,7 @@ pub extern "C" fn gpui_ios_select_text(range: TextRange) { pub extern "C" fn gpui_ios_unmark_text() { with_window(|window| { window.input_activity(); - window.with_stored_input_handler(text_input::commit_marked_text); + window.with_stored_input_handler(gpui::PlatformInputHandler::unmark_text); }); } diff --git a/crates/platform/gpui-ios/src/text_input.rs b/crates/platform/gpui-ios/src/text_input.rs index 09f1b20a8..26bf10de3 100644 --- a/crates/platform/gpui-ios/src/text_input.rs +++ b/crates/platform/gpui-ios/src/text_input.rs @@ -48,15 +48,6 @@ pub fn utf16_slice(text: &str, range: Range) -> Option<&str> { text.get(byte_offset(text, range.start)?..byte_offset(text, range.end)?) } -pub fn text_length(handler: &mut PlatformInputHandler) -> Option { - handler.text_length_utf16().or_else(|| { - // gpui-base has no length query and clamps oversized reads to the document. - handler - .text_for_range(0..usize::MAX / 2, &mut None) - .map(|text| text.encode_utf16().count()) - }) -} - pub fn read_text(handler: &mut PlatformInputHandler, range: Range) -> Option { let mut adjusted = None; let text = handler.text_for_range(range.clone(), &mut adjusted)?; @@ -66,33 +57,18 @@ pub fn read_text(handler: &mut PlatformInputHandler, range: Range) -> Opt utf16_slice(&text, start..end).map(str::to_owned) } -pub fn commit_marked_text(handler: &mut PlatformInputHandler) { - // gpui-base leaves the mark/undo transaction open on blur, and - // unmark_text emits no Change. Replacing the preedit commits and emits it. - if let Some(marked) = handler.marked_text_range() - && let Some(text) = read_text(handler, marked.clone()) - { - let selection = handler.selected_text_range(true); - handler.replace_text_in_range(Some(marked), &text); - if let Some(selection) = selection { - handler.set_selected_text_range(selection.range); - } - } -} - /// The caret offset nearest `target`, walking one grapheme at a time from the /// caret at `from`. /// -/// gpui-base's `character_index_for_point` tests the point against every -/// line as if that line began at the top of the input, so it finds no index -/// below the first line, and none past a line's last glyph. Caret bounds are -/// right for every visible offset, so the walk follows those. +/// gpui-base's `character_index_for_point` finds no index past a line's last +/// glyph. Caret bounds are right for every visible offset, so the walk follows +/// those. pub fn caret_toward( handler: &mut PlatformInputHandler, from: usize, target: Point, ) -> Option { - let length = text_length(handler)?; + let length = handler.text_length_utf16()?; let text = read_text(handler, 0..length)?; let mut stops = vec![0]; stops.extend(text.graphemes(true).scan(0, |end, grapheme| { @@ -165,7 +141,7 @@ mod tests { let (_, cx, mut handler) = textarea(cx); cx.simulate_input("前😀e\u{301}后"); cx.update(|window, cx| window.draw(cx).clear(cx)); - assert_eq!(text_length(&mut handler), Some(6)); + assert_eq!(handler.text_length_utf16(), Some(6)); assert_eq!(read_text(&mut handler, 1..3).as_deref(), Some("😀")); assert_eq!(read_text(&mut handler, 1..2), None); } @@ -183,7 +159,7 @@ mod tests { }) }); handler.replace_and_mark_text_in_range(None, "你好", Some(0..0)); - commit_marked_text(&mut handler); + handler.unmark_text(); assert_eq!(handler.marked_text_range(), None); assert_eq!(handler.selected_text_range(true).unwrap().range, 0..0); assert_eq!( @@ -197,7 +173,7 @@ mod tests { window.blur(cx); window.draw(cx).clear(cx); }); - commit_marked_text(&mut handler); + handler.unmark_text(); assert_eq!(handler.marked_text_range(), None); assert_eq!(changes.get(), 2); cx.update(|window, cx| { diff --git a/crates/platform/touch/Cargo.toml b/crates/platform/touch/Cargo.toml index 7d808ed42..c61bef956 100644 --- a/crates/platform/touch/Cargo.toml +++ b/crates/platform/touch/Cargo.toml @@ -6,4 +6,4 @@ publish = false license = "Apache-2.0" [dependencies] -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } diff --git a/crates/runtime/Cargo.toml b/crates/runtime/Cargo.toml index 639899ea7..a0254952d 100644 --- a/crates/runtime/Cargo.toml +++ b/crates/runtime/Cargo.toml @@ -30,7 +30,6 @@ visualize-mcp = { path = "../visualize-mcp" } [dev-dependencies] ureq = { version = "3", default-features = false, features = ["rustls"] } -filetime = "0.2" tcode-traverse = { path = "../traverse", default-features = false } [target.'cfg(unix)'.dev-dependencies] diff --git a/crates/runtime/src/app/tests/handoff.rs b/crates/runtime/src/app/tests/handoff.rs index 043b9d88b..d1d1c839a 100644 --- a/crates/runtime/src/app/tests/handoff.rs +++ b/crates/runtime/src/app/tests/handoff.rs @@ -1046,248 +1046,3 @@ fn an_account_switch_relays_when_the_copy_does_not_resume() { assert!(text.ends_with("try again\n"), "{text}"); assert_eq!(switch.relays(), [Some(text)]); } - -/// One finished turn of a harness with no rewind of its own, as its adapter reports it: the -/// restore point is Tcode's own, and what the turn reported writing is in the thread's -/// journal. -fn relayed_turn( - cx: &mut TestAppContext, - launches: &Launches, - launch: usize, - (turn, checkpoint, answer): (&str, &str, &str), - write: Option<(&Path, &Path, &[u8])>, -) -> String { - let (delivery_id, text, events) = next_turn(cx, launches, launch); - if let Some((journal, file, content)) = write { - // As the adapter journals the whole-file diff the agent reports. - let before = std::fs::read(file).ok(); - std::fs::write(file, content).unwrap(); - agent::write_journal::WriteJournal::open(journal.to_path_buf()) - .record_write(checkpoint, file, before.as_deref(), content) - .unwrap(); - } - for event in [ - AgentEvent::SessionStarted { - provider_session_id: format!("native-{launch}"), - resume: agent::ResumeCursor(serde_json::json!({ "session_id": launch })), - model: None, - }, - AgentEvent::TurnAccepted { delivery_id }, - AgentEvent::TurnStarted { - turn_id: turn.into(), - }, - AgentEvent::TurnCheckpoint { - turn_id: turn.into(), - checkpoint_id: checkpoint.into(), - }, - AgentEvent::ItemCompleted(ThreadItem { - id: format!("answer-{checkpoint}"), - parent_item_id: None, - content: ItemContent::AssistantMessage { - text: answer.into(), - summarized: false, - }, - }), - AgentEvent::TurnCompleted { - turn_id: turn.into(), - status: TurnStatus::Completed, - usage: None, - }, - ] { - events.try_send(event).unwrap(); - } - text -} - -/// Antigravity, maintained natively though it has only what standard ACP carries, is asked -/// for no rewind and no fork: Tcode makes them. A rewind puts back the files the thread's -/// sessions reported writing from the turn on and cuts the log; the next message starts a session anew and hands it -/// what the cut left, which the thread shows. The turns before stay targets of a later -/// rewind, and a fork is a copy of the log that its first message hands to a session of -/// its own. -#[test] -fn a_harness_with_no_rewind_or_fork_is_rewound_and_forked_by_tcode() { - let cx = &mut TestAppContext::default(); - let test_store = TestStore::new("tcode-relayed-history"); - let cwd = test_store.root().join("project"); - let note = cwd.join("note.txt"); - let session_id = "agy-thread".to_string(); - stored_thread( - &test_store, - &session_id, - ProviderKind::Antigravity, - &cwd, - |_| {}, - ); - std::fs::write(¬e, b"mine\r\n").unwrap(); - let (launcher, launches) = recording_launcher(); - let state = cx.new_entity({ - let mut state = TestClientState::new((*test_store).clone()); - state.set_provider_launcher(launcher); - state - }); - state.subscribe(cx, Topic::Index); - state.open(cx, &session_id); - let send = |cx: &mut TestAppContext, id: u64, thread: &str, text: &str| { - acked( - &state, - cx, - id, - Command::SendTurn { - session_id: thread.into(), - text: text.into(), - attachment_paths: Vec::new(), - }, - ) - .unwrap(); - }; - let answered = |cx: &mut TestAppContext, thread: &str, checkpoint: &str| { - let answer = format!("answer-{checkpoint}"); - cx.run_until_seen(|view| { - view.timeline(thread) - .entries - .iter() - .any(|entry| entry.id == answer) - && view.status(thread).running_turn.is_none() - }); - }; - // The cut takes the turn's answer out of the thread and leaves its divider. - let rewound = |cx: &mut TestAppContext, checkpoint: &str| { - let answer = format!("answer-{checkpoint}"); - cx.run_until_seen(|view| { - let entries = view.timeline(&session_id).entries; - entries - .iter() - .any(|entry| matches!(entry.content, EntryContent::Rewound(_))) - && !entries.iter().any(|entry| entry.id == answer) - }); - }; - let rewind = |cx: &mut TestAppContext, id: u64, turn: usize, mode: RewindMode| { - acked( - &state, - cx, - id, - Command::RewindTurn { - session_id: session_id.clone(), - turn, - steer: None, - checkpoint_id: None, - mode, - client_id: None, - }, - ) - }; - - send(cx, 1, &session_id, "write the note"); - let journal = { - let launches = launches.lock().unwrap(); - launches[0].0.write_journal.clone().unwrap() - }; - assert!( - journal.starts_with(test_store.root()) && !journal.starts_with(&cwd), - "the journal is in Tcode's data, not the workspace: {}", - journal.display() - ); - relayed_turn( - cx, - &launches, - 0, - ("turn-1", "restore-1", "The note says one."), - Some((&journal, ¬e, b"one\n")), - ); - answered(cx, &session_id, "restore-1"); - send(cx, 2, &session_id, "now change it"); - relayed_turn( - cx, - &launches, - 0, - ("turn-2", "restore-2", "The note says two."), - Some((&journal, ¬e, b"two\n")), - ); - answered(cx, &session_id, "restore-2"); - - // The fork is of the whole thread as it stands, made before anything is rewound. - let Ok(CommandResponse::SessionId(Some(fork_id))) = acked( - &state, - cx, - 3, - Command::ForkThread { - id: session_id.clone(), - at: None, - }, - ) else { - panic!("the thread was not forked"); - }; - - rewind(cx, 4, 1, RewindMode::FilesAndConversation).unwrap(); - rewound(cx, "restore-2"); - assert_eq!(std::fs::read(¬e).unwrap(), b"one\n"); - { - let launches = launches.lock().unwrap(); - let mut asked = Vec::new(); - while let Ok(command) = next_command(&launches[0].1) { - asked.push(command); - } - assert!( - matches!(asked.as_slice(), [SessionCommand::Shutdown]), - "the harness is asked for no rewind, and its session is left: {asked:?}" - ); - } - let meta = cx.seen().session(&session_id).unwrap(); - assert_eq!(meta.resume_cursor, None); - - send(cx, 5, &session_id, "say it another way"); - let text = relayed_turn( - cx, - &launches, - 1, - ("turn-1", "restore-3", "The note still says one."), - None, - ); - assert_eq!( - launches.lock().unwrap()[1].0.resume, - None, - "a session started anew" - ); - assert!( - text.starts_with(tcode_core::relay::RELAY_PREAMBLE), - "{text}" - ); - assert!(text.contains("The note says one."), "{text}"); - assert!(!text.contains("The note says two."), "{text}"); - assert!( - text.ends_with("say it another way\n"), - "{text}" - ); - answered(cx, &session_id, "restore-3"); - let handed = cx - .seen() - .timeline(&session_id) - .entries - .iter() - .find_map(|entry| match &entry.content { - EntryContent::ProviderRelay { prompt, .. } => prompt.clone(), - _ => None, - }); - assert_eq!(handed, Some(text), "what the session was handed is shown"); - - // The first turn ran in a session the thread has since left twice over. - rewind(cx, 6, 0, RewindMode::FilesAndConversation).unwrap(); - rewound(cx, "restore-1"); - assert_eq!(std::fs::read(¬e).unwrap(), b"mine\r\n"); - - let fork = cx.seen().session(&fork_id).unwrap(); - assert_eq!((&fork.resume_cursor, &fork.pending_fork), (&None, &None)); - state.open(cx, &fork_id); - send(cx, 7, &fork_id, "go on from here"); - let (_, text, _) = next_turn(cx, &launches, 2); - { - let launches = launches.lock().unwrap(); - assert_eq!((&launches[2].0.resume, &launches[2].0.fork), (&None, &None)); - } - assert!(text.contains("The note says two."), "{text}"); - assert!( - text.ends_with("go on from here\n"), - "{text}" - ); -} diff --git a/crates/runtime/src/app/tests/worktrees.rs b/crates/runtime/src/app/tests/worktrees.rs index 420e22dce..d04fc951e 100644 --- a/crates/runtime/src/app/tests/worktrees.rs +++ b/crates/runtime/src/app/tests/worktrees.rs @@ -273,11 +273,10 @@ fn orphan_sweep_leaves_worktrees_a_thread_works_in_or_the_user_kept() { cx.run_until_parked(); assert!(source.cwd.exists(), "the fork still works in it"); // The next start is past the age that marks a worktree as abandoned. - let abandoned = filetime::FileTime::from_system_time( - std::time::SystemTime::now() - Duration::from_secs(2 * 60 * 60), - ); + let abandoned = std::fs::FileTimes::new() + .set_modified(std::time::SystemTime::now() - Duration::from_secs(2 * 60 * 60)); for path in [&source.cwd, &kept.cwd, &orphan, &away.cwd] { - filetime::set_file_mtime(path, abandoned).unwrap(); + std::fs::set_times(path, abandoned).unwrap(); } let summary = cleanup_orphans(&store, std::time::SystemTime::now()).unwrap(); diff --git a/crates/services/Cargo.toml b/crates/services/Cargo.toml index d4dd77324..87da99e75 100644 --- a/crates/services/Cargo.toml +++ b/crates/services/Cargo.toml @@ -25,7 +25,7 @@ smol = "2" tar = "0.4" # Default features add a global allocator (mimalloc) and full-text search # (tantivy, zstd); the store needs neither. -turso = { version = "=0.8.3", default-features = false } +turso = { version = "=0.8.4", default-features = false } ureq = { version = "3", default-features = false, features = ["rustls", "gzip"] } url = "2" uuid = { version = "1", features = ["v4"] } diff --git a/crates/traverse-server/Cargo.toml b/crates/traverse-server/Cargo.toml index db76a8de9..afe3eff2f 100644 --- a/crates/traverse-server/Cargo.toml +++ b/crates/traverse-server/Cargo.toml @@ -17,17 +17,17 @@ http = "1" hyper = { version = "1", features = ["server", "http1"] } hyper-util = { version = "0.1", features = ["tokio"] } ipnet = { version = "2", features = ["serde"] } -iroh-base = { version = "1.2", default-features = false, features = ["key"] } -iroh-dns = "1.3" +iroh-base = { version = "1.5", default-features = false, features = ["key"] } +iroh-dns = "1.5" iroh-metrics = { version = "1", features = ["service"] } -iroh-relay = { version = "1.2", default-features = false, features = ["server"] } -redb = "4" +iroh-relay = { version = "1.5", default-features = false, features = ["server"] } +redb = "5" rustls = { version = "0.23", default-features = false, features = ["ring", "std"] } serde = { version = "1", features = ["derive"] } serde_json = "1" tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "time", "sync", "signal"] } tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] } -tokio-rustls-acme = "0.9" +tokio-rustls-acme = "0.10" toml = "1.1" tower = { version = "0.5", features = ["util"] } tracing = "0.1" @@ -35,5 +35,5 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } url = { version = "2", features = ["serde"] } [dev-dependencies] -iroh = { version = "1.2", default-features = false, features = ["tls-ring"] } +iroh = { version = "1.5", default-features = false, features = ["tls-ring"] } reqwest = { version = "0.13", default-features = false } diff --git a/crates/traverse-server/src/http.rs b/crates/traverse-server/src/http.rs index 9d3982d0e..d0d87fdc5 100644 --- a/crates/traverse-server/src/http.rs +++ b/crates/traverse-server/src/http.rs @@ -17,7 +17,7 @@ use axum::{ use hyper::{body::Incoming, server::conn::http1, service::Service}; use hyper_util::rt::{TokioIo, TokioTimer}; use iroh_relay::{ - http::{RELAY_PATH, RELAY_PROBE_PATH}, + http::{RELAY_PROBE_RELATIVE_PATH, RELAY_RELATIVE_PATH}, server::{ RelayService, http_server::{HyperError, RelayServiceWithNotify}, @@ -29,8 +29,9 @@ use tower::ServiceExt as _; use crate::{pkarr::PeerAddr, tls::Tls}; -/// Bounds the TLS handshake and each request's header read (which, on a -/// keep-alive connection, is also the idle time). +/// Bounds the TLS handshake, each request's header read (which, on a +/// keep-alive connection, is also the idle time) and a relay connection's +/// authentication. const HANDSHAKE_TIMEOUT: Duration = Duration::from_secs(30); #[derive(Clone)] @@ -65,9 +66,13 @@ impl Service> for Dispatch { fn call(&self, request: Request) -> Self::Future { if let Some(relay) = &self.relay && request.method() == http::Method::GET - && request.uri().path() == RELAY_PATH + && request.uri().path().strip_prefix('/') == Some(RELAY_RELATIVE_PATH) { - let relay = RelayServiceWithNotify::new(relay.clone(), Arc::new(Notify::new())); + let relay = RelayServiceWithNotify::with_timeout( + relay.clone(), + Arc::new(Notify::new()), + HANDSHAKE_TIMEOUT, + ); let response = relay.call(request); return Box::pin(async move { response.await.map(|response| response.map(Body::new)) }); } @@ -153,7 +158,7 @@ pub fn base_router(manifest_json: Arc) -> Router { ) .route("/healthz", get(|| async { "ok" })) .route( - RELAY_PROBE_PATH, + &format!("/{RELAY_PROBE_RELATIVE_PATH}"), get(|| async { [(header::ACCESS_CONTROL_ALLOW_ORIGIN, "*")] }), ) .route("/generate_204", get(no_content)) diff --git a/crates/traverse/Cargo.toml b/crates/traverse/Cargo.toml index 56d34a490..ee81dfc4b 100644 --- a/crates/traverse/Cargo.toml +++ b/crates/traverse/Cargo.toml @@ -45,13 +45,12 @@ base64 = { version = "0.23", optional = true } futures-lite = "2" futures-util = { version = "0.3", default-features = false, features = ["sink"], optional = true } getrandom = "0.4" -iroh = { version = "1.2", default-features = false, features = ["metrics", "portmapper", "tls-ring", "unstable-net-report"] } +iroh = { version = "1.5", default-features = false, features = ["metrics", "portmapper", "tls-ring", "unstable-net-report"] } log = "0.4" -mdns-sd = { version = "0.21", default-features = false, features = ["async", "logging"] } +mdns-sd = { version = "0.22", default-features = false, features = ["async", "logging"] } pbkdf2 = { version = "0.13", optional = true } russh = { version = "0.65", default-features = false, features = ["ring"], optional = true } -# 3.x needs a newer wasm-bindgen-futures than the one crates/web pins. -russh-sftp = { version = "3.0", optional = true } +russh-sftp = { version = "4.0", features = ["raw-string"], optional = true } serde = { version = "1", features = ["derive"] } serde_json = "1" sha2 = { version = "0.11", optional = true } diff --git a/crates/traverse/src/ssh/sftp.rs b/crates/traverse/src/ssh/sftp.rs index c2e47aab1..3d3ad1bce 100644 --- a/crates/traverse/src/ssh/sftp.rs +++ b/crates/traverse/src/ssh/sftp.rs @@ -3,13 +3,15 @@ //! a path reads `/C:/Users/...`, as Win32-OpenSSH writes it. use std::{ collections::HashMap, + ffi::OsString, io, path::{Component, Path, PathBuf}, }; use russh_sftp::{ protocol::{ - Attrs, Data, File, FileAttributes, Handle, Name, OpenFlags, Status, StatusCode, Version, + Attrs, Data, File, FileAttributes, Handle, Name, OpenFlags, SftpHandle, SftpString, Status, + StatusCode, Version, }, server::StatusReply, }; @@ -17,7 +19,7 @@ use tokio::io::{AsyncReadExt as _, AsyncSeekExt as _, AsyncWriteExt as _}; pub(super) struct Sftp { home: PathBuf, - handles: HashMap, + handles: HashMap, next_handle: u64, } @@ -43,23 +45,26 @@ impl Sftp { } } - fn local(&self, path: &str) -> PathBuf { + fn local(&self, path: &SftpString) -> PathBuf { #[cfg(windows)] - let path = match path.as_bytes() { - [b'/', drive, b':', ..] if drive.is_ascii_alphabetic() => &path[1..], - _ => path, + let path = { + let path = path.to_string_lossy(); + match path.as_bytes() { + [b'/', drive, b':', ..] if drive.is_ascii_alphabetic() => path[1..].to_owned(), + _ => path.into_owned(), + } }; normalize(&self.home.join(path)) } - fn insert(&mut self, open: Open) -> String { + fn insert(&mut self, open: Open) -> SftpHandle { self.next_handle += 1; - let handle = self.next_handle.to_string(); + let handle = SftpHandle::from(self.next_handle.to_string()); self.handles.insert(handle.clone(), open); handle } - fn file(&mut self, handle: &str) -> Result<&mut tokio::fs::File, StatusReply> { + fn file(&mut self, handle: &SftpHandle) -> Result<&mut tokio::fs::File, StatusReply> { match self.handles.get_mut(handle) { Some(Open::File(file)) => Ok(file), _ => Err(StatusCode::Failure.with_message("no such handle")), @@ -84,14 +89,26 @@ fn normalize(path: &Path) -> PathBuf { normal } -fn remote(path: &Path) -> String { +/// A name as the machine has it: its bytes on Unix, where it need not be UTF-8. +fn name(name: OsString) -> SftpString { + #[cfg(unix)] + { + name.into() + } + #[cfg(not(unix))] + { + name.to_string_lossy().into_owned().into() + } +} + +fn remote(path: PathBuf) -> SftpString { #[cfg(windows)] { - format!("/{}", path.to_string_lossy().replace('\\', "/")) + format!("/{}", path.to_string_lossy().replace('\\', "/")).into() } #[cfg(not(windows))] { - path.to_string_lossy().into_owned() + name(path.into_os_string()) } } @@ -167,7 +184,7 @@ impl russh_sftp::server::Handler for Sftp { async fn open( &mut self, id: u32, - filename: String, + filename: SftpString, pflags: OpenFlags, attrs: FileAttributes, ) -> Result { @@ -199,7 +216,7 @@ impl russh_sftp::server::Handler for Sftp { }) } - async fn close(&mut self, id: u32, handle: String) -> Result { + async fn close(&mut self, id: u32, handle: SftpHandle) -> Result { match self.handles.remove(&handle) { Some(Open::File(mut file)) => file.flush().await.map_err(failure)?, Some(Open::Dir { .. }) => {} @@ -211,7 +228,7 @@ impl russh_sftp::server::Handler for Sftp { async fn read( &mut self, id: u32, - handle: String, + handle: SftpHandle, offset: u64, len: u32, ) -> Result { @@ -231,7 +248,7 @@ impl russh_sftp::server::Handler for Sftp { async fn write( &mut self, id: u32, - handle: String, + handle: SftpHandle, offset: u64, data: Vec, ) -> Result { @@ -243,7 +260,7 @@ impl russh_sftp::server::Handler for Sftp { Ok(ok(id)) } - async fn lstat(&mut self, id: u32, path: String) -> Result { + async fn lstat(&mut self, id: u32, path: SftpString) -> Result { let metadata = tokio::fs::symlink_metadata(self.local(&path)) .await .map_err(failure)?; @@ -253,7 +270,7 @@ impl russh_sftp::server::Handler for Sftp { }) } - async fn stat(&mut self, id: u32, path: String) -> Result { + async fn stat(&mut self, id: u32, path: SftpString) -> Result { let metadata = tokio::fs::metadata(self.local(&path)) .await .map_err(failure)?; @@ -263,7 +280,7 @@ impl russh_sftp::server::Handler for Sftp { }) } - async fn fstat(&mut self, id: u32, handle: String) -> Result { + async fn fstat(&mut self, id: u32, handle: SftpHandle) -> Result { let metadata = match self.handles.get(&handle) { Some(Open::File(file)) => file.metadata().await, Some(Open::Dir { path, .. }) => tokio::fs::metadata(path).await, @@ -279,7 +296,7 @@ impl russh_sftp::server::Handler for Sftp { async fn setstat( &mut self, id: u32, - path: String, + path: SftpString, attrs: FileAttributes, ) -> Result { apply(&self.local(&path), &attrs).await.map_err(failure)?; @@ -289,7 +306,7 @@ impl russh_sftp::server::Handler for Sftp { async fn fsetstat( &mut self, id: u32, - handle: String, + handle: SftpHandle, attrs: FileAttributes, ) -> Result { let file = self.file(&handle)?; @@ -319,7 +336,7 @@ impl russh_sftp::server::Handler for Sftp { Ok(ok(id)) } - async fn opendir(&mut self, id: u32, path: String) -> Result { + async fn opendir(&mut self, id: u32, path: SftpString) -> Result { let path = self.local(&path); let metadata = tokio::fs::metadata(&path).await.map_err(failure)?; if !metadata.is_dir() { @@ -334,7 +351,7 @@ impl russh_sftp::server::Handler for Sftp { }) } - async fn readdir(&mut self, id: u32, handle: String) -> Result { + async fn readdir(&mut self, id: u32, handle: SftpHandle) -> Result { let Some(Open::Dir { path, entries }) = self.handles.get_mut(&handle) else { return Err(StatusCode::Failure.with_message("no such handle")); }; @@ -346,7 +363,7 @@ impl russh_sftp::server::Handler for Sftp { continue; }; read.push_back(File::new( - entry.file_name().to_string_lossy(), + name(entry.file_name()), FileAttributes::from(&metadata), )); } @@ -363,7 +380,7 @@ impl russh_sftp::server::Handler for Sftp { }) } - async fn remove(&mut self, id: u32, filename: String) -> Result { + async fn remove(&mut self, id: u32, filename: SftpString) -> Result { tokio::fs::remove_file(self.local(&filename)) .await .map_err(failure)?; @@ -373,7 +390,7 @@ impl russh_sftp::server::Handler for Sftp { async fn mkdir( &mut self, id: u32, - path: String, + path: SftpString, attrs: FileAttributes, ) -> Result { let path = self.local(&path); @@ -390,25 +407,25 @@ impl russh_sftp::server::Handler for Sftp { Ok(ok(id)) } - async fn rmdir(&mut self, id: u32, path: String) -> Result { + async fn rmdir(&mut self, id: u32, path: SftpString) -> Result { tokio::fs::remove_dir(self.local(&path)) .await .map_err(failure)?; Ok(ok(id)) } - async fn realpath(&mut self, id: u32, path: String) -> Result { + async fn realpath(&mut self, id: u32, path: SftpString) -> Result { Ok(Name { id, - files: vec![File::dummy(remote(&self.local(&path)))], + files: vec![File::dummy(remote(self.local(&path)))], }) } async fn rename( &mut self, id: u32, - oldpath: String, - newpath: String, + oldpath: SftpString, + newpath: SftpString, ) -> Result { tokio::fs::rename(self.local(&oldpath), self.local(&newpath)) .await @@ -416,13 +433,13 @@ impl russh_sftp::server::Handler for Sftp { Ok(ok(id)) } - async fn readlink(&mut self, id: u32, path: String) -> Result { + async fn readlink(&mut self, id: u32, path: SftpString) -> Result { let target = tokio::fs::read_link(self.local(&path)) .await .map_err(failure)?; Ok(Name { id, - files: vec![File::dummy(target.to_string_lossy())], + files: vec![File::dummy(name(target.into_os_string()))], }) } } diff --git a/crates/ui/Cargo.toml b/crates/ui/Cargo.toml index a682f4ae5..d7bdf4df8 100644 --- a/crates/ui/Cargo.toml +++ b/crates/ui/Cargo.toml @@ -76,11 +76,9 @@ agent = { path = "../agent", default-features = false } tcode-client = { path = "../client" } tcode-core = { path = "../core", default-features = false } tcode-protocol = { path = "../protocol", default-features = false } -qrcode = { version = "0.14", default-features = false, features = ["svg"] } -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } -gpui-base = { version = "0.10.0", features = ["gpui-fast"] } -# The stroke cap and join styles of GPUI's `PathBuilder`, which GPUI does not re-export. -lyon = "1.0" +qrcode = { version = "0.15", default-features = false, features = ["svg"] } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } +gpui-base = { version = "0.11.0", features = ["gpui-fast"] } image = { version = "0.25.10", default-features = false, features = ["png", "jpeg", "gif", "webp", "bmp", "tiff"] } base64 = "0.23" async-channel = "2" @@ -89,7 +87,7 @@ log = "0.4" serde = { version = "1", features = ["derive"] } serde_json = "1" futures-lite = "2" -rushdown = "0.18.0" +rushdown = "0.19.0" # Pure-Rust Mermaid layout; the SVG it emits goes through GPUI's own image pipeline. mermaid-rs-renderer = { version = "0.3.1", default-features = false } rust-i18n = "4" @@ -111,7 +109,7 @@ web-time = "1" # iOS off), so it is left to the composition roots. [target.'cfg(not(target_family = "wasm"))'.dependencies] tcode-traverse = { path = "../traverse", default-features = false, optional = true } -reqwest-client = { package = "gpui-pre-reqwest-client", version = "=0.3.12" } +reqwest-client = { package = "gpui-pre-reqwest-client", version = "=0.3.14" } # Android apps do not have the Unix certificate files used by native-roots discovery. reqwest = { package = "gpui-pre-reqwest", version = "=0.12.15", default-features = false, features = ["rustls-tls-webpki-roots"] } @@ -119,8 +117,8 @@ reqwest = { package = "gpui-pre-reqwest", version = "=0.12.15", default-features # the GPUI window, so its whole dependency set is target-scoped. Windows drives # WebView2 itself (`preview_panel::webview2`). [target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "ios"))'.dependencies] -gpui-kit = { version = "0.10.0", default-features = false, features = ["gpui-fast"], optional = true } -gpui-webview = { version = "0.10.0", features = ["gpui-fast"], optional = true } +gpui-kit = { version = "0.11.0", default-features = false, features = ["gpui-fast"], optional = true } +gpui-webview = { version = "0.11.0", features = ["gpui-fast"], optional = true } wry = { version = "0.53.3", package = "lb-wry", features = ["mac-proxy"], optional = true } [target.'cfg(any(target_os = "macos", target_os = "windows", target_os = "linux", target_os = "ios"))'.dependencies] @@ -194,8 +192,8 @@ gpui-windows-core = { package = "windows-core", version = "0.62", optional = tru [dev-dependencies] criterion = "0.8" -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false, features = ["test-support"] } -gpui_platform = { package = "gpui-fast-platform", version = "0.1.16", features = ["font-kit", "x11", "wayland", "runtime_shaders"] } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false, features = ["test-support"] } +gpui_platform = { package = "gpui-fast-platform", version = "0.1.19", features = ["font-kit", "x11", "wayland", "runtime_shaders"] } smol = "2" tcode-runtime = { path = "../runtime", features = ["test-support"] } # dump-create is only needed by examples/sanitize_syntaxes.rs and the syntax-set diff --git a/crates/ui/src/attention.rs b/crates/ui/src/attention.rs index 790f8a2a9..5f8a9980a 100644 --- a/crates/ui/src/attention.rs +++ b/crates/ui/src/attention.rs @@ -96,7 +96,7 @@ impl Notices { .is_some_and(|posted| posted.0.contains_key(&tag)) { cx.global_mut::().0.remove(&tag); - cx.dismiss_system_notification(&tag); + cx.dismiss_system_notification(&tag).detach(); } } diff --git a/crates/ui/src/markdown/math_parse.rs b/crates/ui/src/markdown/math_parse.rs index c08cbe614..1aadfb6b4 100644 --- a/crates/ui/src/markdown/math_parse.rs +++ b/crates/ui/src/markdown/math_parse.rs @@ -1,6 +1,6 @@ use rushdown::{ as_type_data_mut, - ast::{Arena, KindData, NodeKind, NodeRef, NodeType, PrettyPrint}, + ast::{Arena, InlineChars, KindData, NodeKind, NodeRef, NodeType, PrettyPrint}, parser::{BlockParser, Context, InlineParser, NoParserOptions, Parser, ParserExtension, State}, text::{BasicReader, BlockReader, Reader}, }; @@ -27,6 +27,8 @@ impl NodeKind for MathSpan { } } +impl InlineChars for MathSpan {} + impl PrettyPrint for MathSpan { fn pretty_print(&self, w: &mut dyn std::fmt::Write, _: &str, _: usize) -> std::fmt::Result { w.write_str(&self.source) @@ -122,6 +124,8 @@ impl NodeKind for MathBlock { } } +impl InlineChars for MathBlock {} + impl PrettyPrint for MathBlock { fn pretty_print(&self, _: &mut dyn std::fmt::Write, _: &str, _: usize) -> std::fmt::Result { Ok(()) diff --git a/crates/ui/src/markdown/mermaid.rs b/crates/ui/src/markdown/mermaid.rs index 5a28fd14c..1587eb16b 100644 --- a/crates/ui/src/markdown/mermaid.rs +++ b/crates/ui/src/markdown/mermaid.rs @@ -61,8 +61,11 @@ use crate::{ widgets::copy::{action_button, copy_button}, }; +/// Never in a browser, where the fence shows its code: mermaid-rs-renderer +/// 0.3.1 times every layout by `std::time::Instant`, which panics on wasm and +/// takes the page with it. pub(super) fn is_mermaid(lang: Option<&str>) -> bool { - lang.is_some_and(|lang| lang.eq_ignore_ascii_case("mermaid")) + !cfg!(target_family = "wasm") && lang.is_some_and(|lang| lang.eq_ignore_ascii_case("mermaid")) } /// How long a new picture rests before the next may replace it. A growing diff --git a/crates/ui/src/markdown/parse.rs b/crates/ui/src/markdown/parse.rs index 00c42a5b6..d7c9aad20 100644 --- a/crates/ui/src/markdown/parse.rs +++ b/crates/ui/src/markdown/parse.rs @@ -1,5 +1,4 @@ use rushdown::parser::ParserExtension as _; -use std::borrow::Cow; use rushdown::ast::{ Arena, CodeBlockKind, KindData, NodeRef, TableCellAlignment, Task, TextQualifier, @@ -52,8 +51,7 @@ fn parse_document_inner(source: &str) -> ParsedDocument { .and(super::math_parse::MathParser) .and(super::math_parse::MathBlockParser), ); - let mut reader = rushdown::text::BasicReader::new(source); - let (arena, doc_ref) = parser.parse(&mut reader); + let (arena, doc_ref) = parser.parse(source, rushdown::parser::ParseOptions::default()); let mut root_starts = Vec::new(); let mut positions_available = true; let children = arena[doc_ref] @@ -126,10 +124,9 @@ fn block_node( let value = code.value().iter(source).collect::(); let fenced = matches!(code.code_block_kind(), CodeBlockKind::Fenced); let lang = fenced - .then(|| code.language_str(source)) - .flatten() + .then(|| code.language(source)) .filter(|lang| !lang.is_empty()) - .map(Into::into); + .map(|lang| lang.value(source).into_owned().into()); let (closed, open_line) = node .pos() .filter(|_| fenced) @@ -345,7 +342,7 @@ fn parse_inline( math.source.clone() } KindData::Text(text) => { - let mut value = decode_entities(text.str(source)); + let mut value = text.value().value(source).into_owned(); if text.has_qualifiers(TextQualifier::SOFT_LINE_BREAK) || text.has_qualifiers(TextQualifier::HARD_LINE_BREAK) { @@ -355,7 +352,7 @@ fn parse_inline( value } KindData::CodeSpan(code) => { - let value = code.str(source).into_owned(); + let value = code.value().value(source).into_owned(); paragraph .children .push(marked_inline(value.clone(), TextMark::default().code())); @@ -388,19 +385,21 @@ fn parse_inline( node_ref, source, TextMark::default().link(LinkMark { - url: link.destination_str(source).into(), + url: destination(link.destination(), source).into(), title: link - .title_str(source) - .map(|title| title.into_owned().into()), + .title() + .as_option() + .map(|title| title.value(source).into_owned().into()), }), ), KindData::Image(image) => { let alt = descendant_text(arena, node_ref, source); paragraph.children.push(InlineNode::image(ImageNode { - url: image.destination_str(source).to_string().into(), + url: destination(image.destination(), source).into(), title: image - .title_str(source) - .map(|title| title.into_owned().into()), + .title() + .as_option() + .map(|title| title.value(source).into_owned().into()), alt: Some(alt.into()), ..Default::default() })); @@ -495,84 +494,18 @@ fn descendant_text(arena: &Arena, parent: NodeRef, source: &str) -> String { let mut result = String::new(); for child in arena[parent].children(arena) { match arena[child].kind_data() { - KindData::Text(text) => result.push_str(&decode_entities(text.str(source))), - KindData::CodeSpan(code) => result.push_str(&code.str(source)), + KindData::Text(text) => result.push_str(&text.value().value(source)), + KindData::CodeSpan(code) => result.push_str(&code.value().value(source)), _ => result.push_str(&descendant_text(arena, child, source)), } } result } -/// Decode backslash escapes and entity references in one left-to-right pass, -/// mirroring rushdown's HTML renderer (src/renderer/html.rs): a `\` before -/// ASCII punctuation emits the punctuation literally (per CommonMark; `\` -/// elsewhere is kept), and the emitted character is final — it is NOT -/// re-scanned, so `\&` renders as `&`, not `&`. Unescaped entity -/// references (` `, ` `, `&`) decode normally. -fn decode_entities(text: &str) -> String { - let bytes = text.as_bytes(); - let mut out = String::with_capacity(text.len()); - let mut i = 0; - while i < bytes.len() { - match bytes[i] { - b'\\' if i + 1 < bytes.len() && bytes[i + 1].is_ascii_punctuation() => { - out.push(bytes[i + 1] as char); - i += 2; - } - b'&' => match decode_entity_at(&bytes[i..]) { - Some((decoded, consumed)) => { - out.push_str(&decoded); - i += consumed; - } - None => { - out.push('&'); - i += 1; - } - }, - _ => { - let len = utf8_len(bytes[i]); - out.push_str(&text[i..i + len]); - i += len; - } - } - } - out -} - -/// Resolve a single entity reference at the start of `bytes` (`&` included). -/// Returns the decoded text and the reference's byte length, or `None` when -/// the text is not a valid reference. -fn decode_entity_at(bytes: &[u8]) -> Option<(String, usize)> { - // Longest named reference is ~32 chars; cap the scan. - let end = bytes - .iter() - .take(35) - .position(|b| *b == b';')? - .checked_add(1)?; - if end < 3 { - return None; - } - let fragment = &bytes[..end]; - // A valid reference resolves to different (shorter) bytes; an invalid - // fragment is returned unchanged by the resolvers. - let numeric = rushdown::util::resolve_numeric_references(Cow::Borrowed(fragment)); - if numeric.as_ref() != fragment { - return Some((String::from_utf8_lossy(&numeric).into_owned(), end)); - } - let named = rushdown::util::resolve_entity_references(Cow::Borrowed(fragment)); - if named.as_ref() != fragment { - return Some((String::from_utf8_lossy(&named).into_owned(), end)); - } - None -} - -fn utf8_len(first: u8) -> usize { - match first { - 0x00..=0x7f => 1, - 0xc0..=0xdf => 2, - 0xe0..=0xef => 3, - _ => 4, - } +/// A link's or image's destination as it was written: decoding its backslash escapes would +/// take separators out of a Windows path (`C:\Users\me\.claude`). +fn destination(value: &rushdown::text::Value, source: &str) -> String { + value.str(source).into_owned() } #[cfg(test)] diff --git a/crates/ui/src/scroll/autoscroll.rs b/crates/ui/src/scroll/autoscroll.rs index fa2df7021..a31771075 100644 --- a/crates/ui/src/scroll/autoscroll.rs +++ b/crates/ui/src/scroll/autoscroll.rs @@ -35,9 +35,8 @@ use gpui::{ ScrollHandle, ScrollSource, Stateful, StatefulInteractiveElement, Styled as _, TouchPhase, Window, anchored, canvas, deferred, div, point, px, }; -use gpui::{PathBuilder, PathStyle, StrokeOptions}; +use gpui::{LineCap, LineJoin, PathBuilder, PathStyle, StrokeOptions}; use gpui_base::ScrollbarHandle; -use lyon::tessellation::{LineCap, LineJoin}; use crate::theme::ActiveTheme as _; @@ -447,13 +446,14 @@ fn marker(anchor: Point, room: Axes, cx: &App) -> impl IntoElement { let reach = px((edge + MARKER_DOT / 2. + MARKER_ARROW_DEPTH) / 2.); let (half, depth) = (px(MARKER_ARROW_HALF), px(MARKER_ARROW_DEPTH)); let mut chevron = |tip: Point, back: Point, side: Point| { - let mut path = - PathBuilder::stroke(px(MARKER_STROKE)).with_style(PathStyle::Stroke( - StrokeOptions::default() - .with_line_width(MARKER_STROKE) - .with_line_cap(LineCap::Round) - .with_line_join(LineJoin::Round), - )); + let mut path = PathBuilder::stroke(px(MARKER_STROKE)).with_style( + PathStyle::Stroke(StrokeOptions { + line_width: MARKER_STROKE, + line_cap: LineCap::Round, + line_join: LineJoin::Round, + ..Default::default() + }), + ); path.move_to(back + side); path.line_to(tip); path.line_to(back - side); diff --git a/crates/ui/src/time.rs b/crates/ui/src/time.rs index d655be4b8..66cceb6ea 100644 --- a/crates/ui/src/time.rs +++ b/crates/ui/src/time.rs @@ -1,20 +1,26 @@ +use std::time::Duration; +#[cfg(not(target_family = "wasm"))] +use std::time::UNIX_EPOCH; +#[cfg(target_family = "wasm")] +use web_time::UNIX_EPOCH; + use gpui::{App, BackgroundExecutor}; -/// Now, in unix milliseconds, by the clock the executor's timers run on: +/// Now, since the unix epoch, by the clock the executor's timers run on: /// the system's in the app, the one a test advances in a test. -pub(crate) fn executor_millis(executor: &BackgroundExecutor) -> u64 { +fn since_epoch(executor: &BackgroundExecutor) -> Duration { let now = executor.scheduler_executor().scheduler().clock().utc_now(); - u64::try_from(now.timestamp_millis()).unwrap_or(0) + now.duration_since(UNIX_EPOCH).unwrap_or_default() +} + +/// Now, in unix milliseconds, by the executor's clock. +pub(crate) fn executor_millis(executor: &BackgroundExecutor) -> u64 { + since_epoch(executor).as_millis() as u64 } /// Now, on the local time zone's wall clock, by the executor's clock. pub(crate) fn now_local(cx: &App) -> chrono::DateTime { - cx.background_executor() - .scheduler_executor() - .scheduler() - .clock() - .utc_now() - .with_timezone(&chrono::Local) + (std::time::UNIX_EPOCH + since_epoch(cx.background_executor())).into() } /// Now, in unix milliseconds, by the executor's clock. diff --git a/crates/ui/src/widgets/input.rs b/crates/ui/src/widgets/input.rs index 16af57569..10655e7a1 100644 --- a/crates/ui/src/widgets/input.rs +++ b/crates/ui/src/widgets/input.rs @@ -49,15 +49,9 @@ pub(crate) fn commit_marked_text( cx: &mut gpui::Context>, ) { use gpui::EntityInputHandler as _; - // gpui-base leaves the mark and undo transaction open on blur; - // its unmark_text also omits Change, so commit through replacement. - if let Some(marked) = state.marked_text_range(window, cx) - && let Some(text) = state.text_for_range(marked.clone(), &mut None, window, cx) - { - let selection = state.selected_range(); - let reversed = state.is_selection_reversed(); - state.replace_text_in_range(Some(marked), &text, window, cx); - state.set_selected_range_with_direction(selection, reversed, cx); + // gpui-base leaves the mark and undo transaction open on blur. + if state.marked_text_range(window, cx).is_some() { + state.unmark_text(window, cx); } } diff --git a/crates/ui/src/widgets/ring.rs b/crates/ui/src/widgets/ring.rs index 88e8564df..cbcf96f93 100644 --- a/crates/ui/src/widgets/ring.rs +++ b/crates/ui/src/widgets/ring.rs @@ -32,7 +32,7 @@ fn stroked_arc( start_deg: f32, end_deg: f32, width: Pixels, -) -> Option> { +) -> Option { let mut builder = PathBuilder::stroke(width); let steps = 48; for i in 0..=steps { diff --git a/crates/web/Cargo.toml b/crates/web/Cargo.toml index 5cdc28f38..4140664c3 100644 --- a/crates/web/Cargo.toml +++ b/crates/web/Cargo.toml @@ -12,10 +12,10 @@ default = [] debug-exports = [] [target.'cfg(target_family = "wasm")'.dependencies] -gpui = { package = "gpui-fast", version = "0.1.16", default-features = false } +gpui = { package = "gpui-fast", version = "0.1.19", default-features = false } # The browser constructs its own platform (gpui::Application::with_platform) # rather than enabling the web backend's multithreaded default. -gpui_web = { package = "gpui-fast-web", version = "0.1.16", default-features = false } +gpui_web = { package = "gpui-fast-web", version = "0.1.19", default-features = false } console_error_panic_hook = "0.1" tcode-protocol = { path = "../protocol", default-features = false } tcode-client = { path = "../client" }