feat: init function, & refactor for features

This commit is contained in:
Ashley Wulber 2022-08-16 12:32:21 -04:00
parent 851449c3ef
commit 6589eed954
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
5 changed files with 73 additions and 26 deletions

View file

@ -6,20 +6,24 @@ edition = "2021"
[dependencies]
cascade = "1.0.0"
derivative = { version = "2", optional = true }
gtk4 = { git = "https://github.com/gtk-rs/gtk4-rs", features = ["v4_4"] }
gdk4 = { git = "https://github.com/gtk-rs/gtk4-rs" }
gtk4 = { git = "https://github.com/gtk-rs/gtk4-rs", features = ["v4_6"] }
adw = { git = "https://gitlab.gnome.org/World/Rust/libadwaita-rs", package = "libadwaita"}
adw-user-colors-lib = { git = "https://github.com/pop-os/user-color-editor" }
gdk4-wayland = { git = "https://github.com/gtk-rs/gtk4-rs", features = ["wayland_crate"], optional = true }
gdk4-x11 = { git = "https://github.com/gtk-rs/gtk4-rs", features = ["xlib"] }
gio = { git = "https://github.com/gtk-rs/gtk-rs-core" }
gobject-sys = { git = "https://github.com/gtk-rs/gtk-rs-core" }
gdk4-x11 = { git = "https://github.com/gtk-rs/gtk4-rs", features = ["xlib"], optional = true }
x11 = { version = "2.19.1", features = ["xlib"], optional = true }
gobject-sys = { git = "https://github.com/gtk-rs/gtk-rs-core", optional = true }
wayland-client = { version = "0.29.4", optional = true }
wayland-protocols = { version = "0.29.4", features = ["client", "unstable_protocols"], optional = true }
x11 = { version = "2.19.1", features = ["xlib"] }
once_cell = "1.9.0"
libcosmic-widgets = { path = "widgets" }
once_cell = "1.13.0"
libcosmic-widgets = { path = "widgets", optional = true }
xdg = "2.4.1"
[features]
layer-shell = ["derivative", "gdk4-wayland", "wayland-client", "wayland-protocols"]
default = ["layer-shell", "x", "widgets"]
layer-shell = ["derivative", "gdk4-wayland", "wayland-client", "wayland-protocols", "gobject-sys"]
x = ["x11", "gdk4-x11"]
widgets = ["libcosmic-widgets"]
[workspace]
members = ["widgets"]