summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/counter/Cargo.toml4
-rw-r--r--examples/integration/Cargo.toml3
-rw-r--r--examples/todos/Cargo.toml3
-rw-r--r--examples/tour/Cargo.toml4
4 files changed, 14 insertions, 0 deletions
diff --git a/examples/counter/Cargo.toml b/examples/counter/Cargo.toml
index 1e9bba6b..22f86064 100644
--- a/examples/counter/Cargo.toml
+++ b/examples/counter/Cargo.toml
@@ -7,3 +7,7 @@ publish = false
[dependencies]
iced.workspace = true
+
+[target.'cfg(target_arch = "wasm32")'.dependencies]
+iced.workspace = true
+iced.features = ["webgl"]
diff --git a/examples/integration/Cargo.toml b/examples/integration/Cargo.toml
index 032cc75e..bf70a619 100644
--- a/examples/integration/Cargo.toml
+++ b/examples/integration/Cargo.toml
@@ -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
diff --git a/examples/todos/Cargo.toml b/examples/todos/Cargo.toml
index fea20375..3334d84f 100644
--- a/examples/todos/Cargo.toml
+++ b/examples/todos/Cargo.toml
@@ -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
diff --git a/examples/tour/Cargo.toml b/examples/tour/Cargo.toml
index 21206ecb..9de017ce 100644
--- a/examples/tour/Cargo.toml
+++ b/examples/tour/Cargo.toml
@@ -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"]