diff --git a/Cargo.toml b/Cargo.toml index 616f1a13e..992cc1e3b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,24 +16,26 @@ all-features = true [lib] [features] -default = [] +default = ["cross"] trace = ["serde", "wgc/trace"] replay = ["serde", "wgc/replay"] # Make Vulkan backend available on platforms where it is by default not, e.g. macOS vulkan-portability = ["wgc/gfx-backend-vulkan"] webgl = ["wgc"] +# Enable SPIRV-Cross +cross = ["wgc/cross"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" rev = "c831c5512ac528775d983c747b78535cc585b9e0" -features = ["raw-window-handle", "cross"] +features = ["raw-window-handle"] [target.'cfg(target_arch = "wasm32")'.dependencies.wgc] package = "wgpu-core" git = "https://github.com/gfx-rs/wgpu" rev = "c831c5512ac528775d983c747b78535cc585b9e0" -features = ["raw-window-handle", "cross"] +features = ["raw-window-handle"] optional = true [dependencies.wgt]