Add webgl feature for web examples
This commit is contained in:
parent
89d9c45d25
commit
9c2ad457d8
4 changed files with 14 additions and 0 deletions
|
|
@ -7,3 +7,7 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
iced.workspace = true
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
iced.workspace = true
|
||||
iced.features = ["webgl"]
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ iced_widget.workspace = true
|
|||
tracing-subscriber = "0.3"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
iced_wgpu.workspace = true
|
||||
iced_wgpu.features = ["webgl"]
|
||||
|
||||
console_error_panic_hook = "0.1"
|
||||
console_log = "1.0"
|
||||
log.workspace = true
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ async-std.workspace = true
|
|||
directories-next = "2.0"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
iced.workspace = true
|
||||
iced.features = ["debug", "webgl"]
|
||||
|
||||
web-sys = { workspace = true, features = ["Window", "Storage"] }
|
||||
wasm-timer.workspace = true
|
||||
|
||||
|
|
|
|||
|
|
@ -10,3 +10,7 @@ iced.workspace = true
|
|||
iced.features = ["image", "debug"]
|
||||
|
||||
tracing-subscriber = "0.3"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
iced.workspace = true
|
||||
iced.features = ["image", "debug", "webgl"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue