Make libx11 optional

This commit is contained in:
Jay Oster
2020-05-27 21:05:53 -07:00
parent 4c136418ff
commit 09328ec2eb

View File

@@ -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" }