From 09328ec2eb5dd1b3a74f0fabecb4db59d61e5d92 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Wed, 27 May 2020 21:05:53 -0700 Subject: [PATCH 1/2] Make libx11 optional --- wgpu-core/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index 5a8cd3261f..6b04500106 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -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" } From 5daef9acc29777d16cd827e6cc0ffcd94ea72718 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Fri, 29 May 2020 05:25:03 -0700 Subject: [PATCH 2/2] Remove unnecessary features --- wgpu-core/Cargo.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/wgpu-core/Cargo.toml b/wgpu-core/Cargo.toml index 6b04500106..afd7cc3ef5 100644 --- a/wgpu-core/Cargo.toml +++ b/wgpu-core/Cargo.toml @@ -18,8 +18,6 @@ license = "MPL-2.0" 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"]