Skip to content

Commit 532e172

Browse files
morr0nenotgull
authored andcommitted
Make wayland-sys depedency optional
1 parent ef60557 commit 532e172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ harness = false
1919
[features]
2020
default = ["kms", "x11", "x11-dlopen", "wayland", "wayland-dlopen"]
2121
kms = ["bytemuck", "drm", "rustix"]
22-
wayland = ["wayland-backend", "wayland-client", "memmap2", "rustix", "fastrand"]
22+
wayland = ["wayland-backend", "wayland-client", "wayland-sys", "memmap2", "rustix", "fastrand"]
2323
wayland-dlopen = ["wayland-sys/dlopen"]
2424
x11 = ["as-raw-xcb-connection", "bytemuck", "fastrand", "rustix", "tiny-xlib", "x11rb"]
2525
x11-dlopen = ["tiny-xlib/dlopen", "x11rb/dl-libxcb"]
@@ -38,7 +38,7 @@ rustix = { version = "0.38.19", features = ["fs", "mm", "shm", "std"], default-f
3838
tiny-xlib = { version = "0.2.1", optional = true }
3939
wayland-backend = { version = "0.3.0", features = ["client_system"], optional = true }
4040
wayland-client = { version = "0.31.0", optional = true }
41-
wayland-sys = "0.31.0"
41+
wayland-sys = { version = "0.31.0", optional = true }
4242
x11rb = { version = "0.13.0", features = ["allow-unsafe-code", "shm"], optional = true }
4343

4444
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]

0 commit comments

Comments
 (0)