Make libx11 optional
@@ -19,6 +19,7 @@ default = []
trace = ["ron", "serde", "wgt/trace"]
replay = ["serde", "wgt/replay"]
metal-auto-capture = ["gfx-backend-metal/auto-capture"]
+x11 = ["gfx-backend-vulkan/x11"]
#NOTE: glutin feature is not stable, use at your own risk
#glutin = ["gfx-backend-gl/glutin"]
@@ -56,7 +57,7 @@ gfx-backend-metal = { version = "0.5" }
gfx-backend-vulkan = { version = "0.5", optional = true }
[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "macos")))'.dependencies]
-gfx-backend-vulkan = { version = "0.5", features = ["x11"] }
+gfx-backend-vulkan = { version = "0.5" }
[target.'cfg(windows)'.dependencies]
gfx-backend-dx12 = { version = "0.5" }
