From 2600c6d38a541f3f20e886abf0d00294e11861c9 Mon Sep 17 00:00:00 2001 From: Votre Nom Date: Wed, 22 Apr 2026 15:13:55 +0200 Subject: [PATCH] Cargo.toml: patch libcosmic via local path for dev builds Activates the [patch.'https://github.com/pop-os/libcosmic'] override pointing at ../libcosmic, enabling local development against a patched libcosmic checkout (e.g. to pick up WindowControlsPosition / macOS-style window controls). This branch is intentionally dev-local: do NOT merge upstream. Co-Authored-By: Claude Opus 4.7 (1M context) --- Cargo.toml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 36a7918..f399a18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,13 @@ wayland = ["libcosmic/wayland", "cosmic-files/wayland"] inherits = "release" debug = true -# [patch.'https://github.com/pop-os/libcosmic'] -# libcosmic = { git = "https://github.com/pop-os/libcosmic//" } -# cosmic-config = { git = "https://github.com/pop-os/libcosmic//" } -# cosmic-theme = { git = "https://github.com/pop-os/libcosmic//" } +[patch.crates-io] +onig = { git = "https://github.com/rust-onig/rust-onig.git", branch = "main" } +onig_sys = { git = "https://github.com/rust-onig/rust-onig.git", branch = "main" } + +[patch.'https://github.com/pop-os/libcosmic'] +libcosmic = { path = "../libcosmic" } +cosmic-config = { path = "../libcosmic/cosmic-config" } +cosmic-theme = { path = "../libcosmic/cosmic-theme" } +iced_futures = { path = "../libcosmic/iced/futures" } +iced_winit = { path = "../libcosmic/iced/winit" }