Use iced_softbuffer in cosmic example

This commit is contained in:
Jeremy Soller 2022-12-19 15:42:10 -07:00 committed by Michael Murphy
parent 07f07109b7
commit 9607d213a1
2 changed files with 6 additions and 2 deletions

View file

@ -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",
]

View file

@ -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"] }