From bdca20fc4a3e8f6bd8ffb59de75e6ca0f8a94b6a Mon Sep 17 00:00:00 2001 From: Vladyslav Nikonov Date: Thu, 21 Oct 2021 22:42:14 +0300 Subject: Experimental wgpu WebGL backend support - Added missing `draw_cache_align_4x4` call for `brush_glyph` on wasm32 target - Added WebGL support to `integratio_wgpu` example - Fixed test.yml CI workflow - Removed spir-v shader in `integration_wgpu`; Fixed formatting - Removed redundant `BoxStream` typedef --- winit/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winit/Cargo.toml') diff --git a/winit/Cargo.toml b/winit/Cargo.toml index bfcfacbc..e0581b00 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -14,7 +14,6 @@ categories = ["gui"] debug = ["iced_native/debug"] [dependencies] -window_clipboard = "0.2" log = "0.4" thiserror = "1.0" @@ -37,3 +36,6 @@ path = "../futures" [target.'cfg(target_os = "windows")'.dependencies.winapi] version = "0.3.6" + +[target.'cfg(not(target_arch = "wasm32"))'.dependencies.window_clipboard] +version = "0.2" -- cgit From 908259663de60ae62723a73c3e93159c4bd22586 Mon Sep 17 00:00:00 2001 From: Kai Mast Date: Thu, 27 Jan 2022 11:27:12 -0600 Subject: Remove wasm-specific clipboard --- winit/Cargo.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'winit/Cargo.toml') diff --git a/winit/Cargo.toml b/winit/Cargo.toml index e0581b00..984a9316 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -16,6 +16,7 @@ debug = ["iced_native/debug"] [dependencies] log = "0.4" thiserror = "1.0" +window_clipboard = "0.2" [dependencies.winit] version = "0.26" @@ -36,6 +37,3 @@ path = "../futures" [target.'cfg(target_os = "windows")'.dependencies.winapi] version = "0.3.6" - -[target.'cfg(not(target_arch = "wasm32"))'.dependencies.window_clipboard] -version = "0.2" -- cgit From 1e3feee3a36f25d7e2eda231c3e6b895858952c5 Mon Sep 17 00:00:00 2001 From: Kai Mast Date: Thu, 27 Jan 2022 14:56:28 -0600 Subject: Reduce diff --- winit/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winit/Cargo.toml') diff --git a/winit/Cargo.toml b/winit/Cargo.toml index 984a9316..bfcfacbc 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -14,9 +14,9 @@ categories = ["gui"] debug = ["iced_native/debug"] [dependencies] +window_clipboard = "0.2" log = "0.4" thiserror = "1.0" -window_clipboard = "0.2" [dependencies.winit] version = "0.26" -- cgit From 26d95fdc4b7b6a66431d45f49edd0cc3ef19823f Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Jan 2022 16:55:16 +0700 Subject: Append `Canvas` to `` when targetting Wasm in `iced_winit` --- winit/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'winit/Cargo.toml') diff --git a/winit/Cargo.toml b/winit/Cargo.toml index bfcfacbc..46f0cdb1 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -37,3 +37,7 @@ path = "../futures" [target.'cfg(target_os = "windows")'.dependencies.winapi] version = "0.3.6" + +[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] +version = "0.3" +features = ["Document", "Window"] -- cgit