Move webgl feature selection for wgpu into iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2023-03-05 06:40:20 +01:00
parent 1c36446115
commit 06bbcc310e
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ publish = false
[dependencies]
iced_winit = { path = "../../winit" }
iced_wgpu = { path = "../../wgpu", features = ["webgl"] }
iced_wgpu = { path = "../../wgpu" }
iced_widget = { path = "../../widget" }
env_logger = "0.8"

View file

@ -17,12 +17,10 @@ thiserror = "1"
version = "0.7"
path = "../graphics"
[dependencies.iced_wgpu]
version = "0.9"
path = "../wgpu"
[dependencies.iced_tiny_skia]
version = "0.1"
path = "../tiny_skia"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
iced_wgpu = { version = "0.9", path = "../wgpu" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
iced_wgpu = { version = "0.9", path = "../wgpu", features = ["webgl"] }

View file

@ -23,7 +23,6 @@ dds = ["iced_graphics/dds"]
farbfeld = ["iced_graphics/farbfeld"]
geometry = ["iced_graphics/geometry", "lyon"]
spirv = ["wgpu/spirv"]
webgl = ["wgpu/webgl"]
[dependencies]
wgpu = "0.14"
@ -36,6 +35,9 @@ once_cell = "1.0"
rustc-hash = "1.1"
ouroboros = "0.15"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wgpu = { version = "0.14", features = ["webgl"] }
[dependencies.twox-hash]
version = "1.6"
default-features = false