Make notify support optional, update libcosmic

This commit is contained in:
Jeremy Soller 2024-08-26 13:31:01 -06:00
parent 80783f6cd1
commit f51e4f5016
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
3 changed files with 149 additions and 123 deletions

View file

@ -25,7 +25,7 @@ libc = "0.2"
log = "0.4"
mime_guess = "2"
notify-debouncer-full = "0.3"
notify-rust = "4"
notify-rust = { version = "4", optional = true }
once_cell = "1.19"
open = "5.0.2"
paste = "1.0"
@ -59,9 +59,10 @@ version = "0.2.1"
features = ["serde"]
[features]
default = ["desktop", "gvfs", "winit", "wgpu"]
default = ["desktop", "gvfs", "notify", "winit", "wgpu"]
desktop = ["libcosmic/desktop", "dep:freedesktop_entry_parser", "dep:xdg"]
gvfs = ["dep:gio"]
notify = ["dep:notify-rust"]
wayland = ["libcosmic/wayland"]
winit = ["libcosmic/winit"]
wgpu = ["libcosmic/wgpu"]