feat: wayland feature

This commit is contained in:
Nova
2022-11-09 11:13:07 -05:00
parent 6b578fe044
commit 41e76c9d0a
5 changed files with 22 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ send_wrapper = "0.6.0"
prisma = "0.1.1"
slog = "2.7.0"
slog-stdlog = "4.1.1"
xkbcommon = { version = "0.5.0", default-features = false }
xkbcommon = { version = "0.5.0", default-features = false, optional = true }
stardust-xr = "0.7.1"
directories = "4.0.1"
serde = { version = "1.0.145", features = ["derive"] }
@@ -46,3 +46,8 @@ git = "https://github.com/Smithay/smithay.git"
default-features = false
features = ["desktop", "renderer_gl", "wayland_frontend"]
version = "*"
optional = true
[features]
default = ["wayland"]
wayland = ["dep:smithay", "dep:xkbcommon"]