From 86feecfcae7d04a37417b44b79d411d152e3c2c4 Mon Sep 17 00:00:00 2001 From: Lionel DARNIS Date: Mon, 25 May 2026 11:34:38 +0200 Subject: [PATCH] chore: use local cosmic-text checkout --- Cargo.lock | 42 +++++++++--------------------------------- Cargo.toml | 5 ++++- 2 files changed, 13 insertions(+), 34 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f83dc0a..0c3768a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1349,7 +1349,7 @@ version = "1.0.14" dependencies = [ "cosmic-files", "cosmic-syntax-theme", - "cosmic-text 0.19.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cosmic-text", "dirs 6.0.0", "env_logger", "fork 0.2.0", @@ -1480,31 +1480,6 @@ dependencies = [ [[package]] name = "cosmic-text" version = "0.19.0" -dependencies = [ - "bitflags 2.11.1", - "fontdb", - "harfrust", - "linebender_resource_handle", - "log", - "rangemap", - "rustc-hash 2.1.2", - "self_cell", - "skrifa", - "smol_str", - "swash", - "sys-locale", - "unicode-bidi", - "unicode-linebreak", - "unicode-script", - "unicode-segmentation", - "unicode-width", -] - -[[package]] -name = "cosmic-text" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be17b688510d934ce13f48a2beba700e11583e281e0fda99c22bb256a14eda73" dependencies = [ "bitflags 2.11.1", "cosmic_undo_2", @@ -1525,6 +1500,7 @@ dependencies = [ "unicode-linebreak", "unicode-script", "unicode-segmentation", + "unicode-width", ] [[package]] @@ -1631,7 +1607,7 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" name = "cryoglyph" version = "0.1.0" dependencies = [ - "cosmic-text 0.19.0", + "cosmic-text", "etagere", "lru", "rustc-hash 2.1.2", @@ -3133,7 +3109,7 @@ version = "0.14.0" dependencies = [ "bitflags 2.11.1", "bytemuck", - "cosmic-text 0.19.0", + "cosmic-text", "half", "iced_core", "iced_futures", @@ -3185,7 +3161,7 @@ name = "iced_tiny_skia" version = "0.14.0" dependencies = [ "bytemuck", - "cosmic-text 0.19.0", + "cosmic-text", "iced_debug", "iced_graphics", "kurbo 0.10.4", @@ -9340,11 +9316,11 @@ dependencies = [ "winnow 1.0.3", ] -[[patch.unused]] -name = "winit-x11" -version = "0.31.0-beta.2" - [[patch.unused]] name = "onig" version = "7.0.0" source = "git+https://github.com/rust-onig/rust-onig.git?branch=main#73e63eb3eea6d93d24a4aadf7fea580287750c7d" + +[[patch.unused]] +name = "winit-x11" +version = "0.31.0-beta.2" diff --git a/Cargo.toml b/Cargo.toml index 4322091..46ef935 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ default-features = false git = "https://github.com/pop-os/cosmic-syntax-theme.git" [dependencies.cosmic-text] -version = "0.19" +path = "../cosmic-text" features = ["syntect", "vi"] # Yoda fork. @@ -77,3 +77,6 @@ onig_sys = { git = "https://github.com/rust-onig/rust-onig.git", branch = "main" window_clipboard = { path = "/home/lionel/Projets/COSMIC/window_clipboard" } dnd = { path = "/home/lionel/Projets/COSMIC/window_clipboard/dnd" } mime = { path = "/home/lionel/Projets/COSMIC/window_clipboard/mime" } + +[patch.'https://github.com/pop-os/cosmic-text.git'] +cosmic-text = { path = "../cosmic-text" }