From 59370b0817ef3415f112951835bd9e135371a0d8 Mon Sep 17 00:00:00 2001 From: Noel Jackson Date: Tue, 3 Feb 2026 23:07:41 +0100 Subject: [PATCH] fix: upgrade core-graphics to 0.25 for core-text 21.1.0 compatibility core-text 21.1.0 (released 2026-01-15) upgraded its core-graphics dependency from 0.24 to 0.25. This caused build failures when font-kit was used as a dependency because it still specified core-graphics 0.24, resulting in two incompatible versions of core-graphics in the dependency tree. The symptom was type mismatches like: expected `core_graphics::font::CGFont`, found a different `core_graphics::font::CGFont` This commit upgrades core-graphics to 0.25 to match core-text's requirement. Fixes: https://github.com/zed-industries/zed/issues/47168 --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 531e8e9..4c37300 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,8 +53,9 @@ features = ["dwrite", "minwindef", "sysinfoapi", "winbase", "winnt"] [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies] core-foundation = "0.10" -core-graphics = "0.24" -core-text = "21.0.0" +# Upgraded to 0.25 to match core-text 21.1.0 which requires core-graphics 0.25 +core-graphics = "0.25" +core-text = "21" [target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios")))'.dependencies] freetype-sys = "0.20"