From cd19bbf37aa23954bb3dbd8599543bf705aa41a1 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 18 Jan 2023 15:13:03 -0800 Subject: [PATCH] Re-export `iced_sctk` when build with `wayland` feature --- Cargo.toml | 6 +++++- src/lib.rs | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index db233a5a..e9aed0cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ name = "cosmic" default = ["softbuffer", "winit", "tokio"] debug = ["iced/debug"] softbuffer = ["iced/softbuffer", "iced_softbuffer"] -wayland = ["iced/wayland", "iced/glow"] +wayland = ["iced/wayland", "iced/glow", "iced_sctk"] wgpu = ["iced/wgpu", "iced_wgpu"] tokio = ["dep:tokio", "iced/tokio"] winit = ["iced/winit", "iced_winit"] @@ -52,6 +52,10 @@ optional = true [dependencies.iced_style] path = "iced/style" +[dependencies.iced_sctk] +path = "iced/sctk" +optional = true + [dependencies.iced_winit] path = "iced/winit" optional = true diff --git a/src/lib.rs b/src/lib.rs index fa454d44..b9c450dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,8 @@ pub use iced; pub use iced_lazy; pub use iced_native; +#[cfg(feature = "wayland")] +pub use iced_sctk; pub use iced_style; #[cfg(feature = "winit")] pub use iced_winit;