Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Commit 4f19f13

Browse files
committed
Add feature flags to for X11 and Wayland dependencies on Linux
Add 'glx' and 'wayland' feature flags so that we can choose to disable the dependencies if they are not enabled on gstreamer.
1 parent e55a9c6 commit 4f19f13

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

backends/gstreamer/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ license = "MPL-2.0"
99
name = "servo_media_gstreamer"
1010
path = "lib.rs"
1111

12+
[features]
13+
glx = ["servo-media-gstreamer-render-unix/gl-x11"]
14+
wayland = ["servo-media-gstreamer-render-unix/gl-wayland"]
15+
1216
[dependencies]
1317
byte-slice-cast = "1"
1418
glib = { workspace = true }
@@ -38,7 +42,6 @@ url = "2.0"
3842
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
3943
servo-media-gstreamer-render-unix = { path = "render-unix", features = [
4044
"gl-egl",
41-
"gl-x11",
4245
] }
4346

4447
[target.'cfg(target_os = "android")'.dependencies]

0 commit comments

Comments
 (0)