diff options
author | 2023-09-09 23:24:54 +0200 | |
---|---|---|
committer | 2023-09-09 23:24:54 +0200 | |
commit | a3489e4af960388e9f73988b88df361022a654a4 (patch) | |
tree | f5bb9754aa08c4e2f27a025cf570c2f40d369d2e /examples/tour/Cargo.toml | |
parent | e3aa8f71e6d27135ddc3bddf2a141fe42375b3f9 (diff) | |
parent | fbc9ef74c406b2a58bb2a093262323e346faf485 (diff) | |
download | iced-a3489e4af960388e9f73988b88df361022a654a4.tar.gz iced-a3489e4af960388e9f73988b88df361022a654a4.tar.bz2 iced-a3489e4af960388e9f73988b88df361022a654a4.zip |
Merge pull request #2076 from Nisatru/run-web
Get web examples running again
Diffstat (limited to 'examples/tour/Cargo.toml')
-rw-r--r-- | examples/tour/Cargo.toml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/tour/Cargo.toml b/examples/tour/Cargo.toml index 21206ecb..9e984ad1 100644 --- a/examples/tour/Cargo.toml +++ b/examples/tour/Cargo.toml @@ -9,4 +9,12 @@ publish = false iced.workspace = true iced.features = ["image", "debug"] +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] tracing-subscriber = "0.3" + +[target.'cfg(target_arch = "wasm32")'.dependencies] +iced.workspace = true +iced.features = ["image", "debug", "webgl"] + +console_error_panic_hook = "0.1" +console_log = "1.0" |