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