Skip to content

Commit 38616cc

Browse files
only include windows when required
1 parent 4ca44fb commit 38616cc

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,17 @@ ash = { version = "0.38", default-features = false, optional = true }
2121
libloading = { version = "0.8", default-features = false }
2222

2323
[target.'cfg(windows)'.dependencies]
24-
windows = { version = "0.62", default-features = false, features = [
25-
"Win32_Graphics_Dxgi_Common",
26-
], optional = true }
24+
windows = { version = "0.62", default-features = false, optional = true }
2725

2826
[build-dependencies]
2927
bindgen = { version = "0.72", optional = true }
3028

3129
[features]
3230
default = ["vk", "dx12", "xess"]
3331
generate-bindings = ["dep:bindgen"]
34-
dx11 = ["windows/Win32_Graphics_Direct3D11"]
35-
dx12 = ["windows/Win32_Graphics_Direct3D12"]
32+
dx11 = []
33+
dx12 = []
3634
vk = ["dep:ash"]
3735
xell = []
3836
xess = []
39-
xefg_swapchain = []
37+
xefg_swapchain = ["windows/Win32_Graphics_Dxgi_Common", "windows/Win32_Graphics_Direct3D12"]

0 commit comments

Comments
 (0)