Enable WebGPU backend in wgpu by default instead of WebGL

Instead, we expose a new `webgl` feature.
This commit is contained in:
Héctor Ramón Jiménez 2023-09-04 03:28:45 +02:00
parent 2c51e3478b
commit bb49a22996
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 4 additions and 3 deletions

View file

@ -12,6 +12,7 @@ geometry = ["iced_graphics/geometry", "lyon"]
image = ["iced_graphics/image"]
svg = ["resvg"]
web-colors = ["iced_graphics/web-colors"]
webgl = ["wgpu/webgl"]
[dependencies]
wgpu = "0.17"
@ -24,9 +25,6 @@ once_cell = "1.0"
rustc-hash = "1.1"
log = "0.4"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wgpu = { version = "0.17", features = ["webgl"] }
[dependencies.twox-hash]
version = "1.6"
default-features = false