From 9607d213a1998931787f42abce98e9cb4e19a5e5 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 19 Dec 2022 15:42:10 -0700 Subject: [PATCH] Use iced_softbuffer in cosmic example --- Cargo.toml | 6 +++++- examples/cosmic/Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index edc03a5..01ca803 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ name = "cosmic" [features] default = ["wayland"] debug = ["iced/debug"] +softbuffer = ["iced/softbuffer", "iced_softbuffer"] wayland = ["iced/wayland", "iced_glow"] wgpu = ["iced/wgpu", "iced_wgpu"] tokio = ["iced/tokio"] @@ -41,6 +42,10 @@ path = "iced/lazy" [dependencies.iced_native] path = "iced/native" +[dependencies.iced_softbuffer] +path = "iced/softbuffer" +optional = true + [dependencies.iced_style] path = "iced/style" @@ -63,4 +68,3 @@ members = [ exclude = [ "iced", ] - diff --git a/examples/cosmic/Cargo.toml b/examples/cosmic/Cargo.toml index 53bf385..4fa3b35 100644 --- a/examples/cosmic/Cargo.toml +++ b/examples/cosmic/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" publish = false [dependencies] -libcosmic = { path = "../..", default-features = false, features = ["debug", "wgpu", "winit"] } +libcosmic = { path = "../..", default-features = false, features = ["debug", "softbuffer", "winit"] }