From 09e1569bf3c0cfa25d2d8f39e024ffe7784c974a Mon Sep 17 00:00:00 2001 From: Jinlei Li Date: Mon, 24 Apr 2023 15:16:50 +0800 Subject: [PATCH] Enable egui-winit to support wasm target (#2949) --- crates/egui-winit/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui-winit/Cargo.toml b/crates/egui-winit/Cargo.toml index 386f34f1..62343486 100644 --- a/crates/egui-winit/Cargo.toml +++ b/crates/egui-winit/Cargo.toml @@ -58,6 +58,7 @@ egui = { version = "0.21.0", path = "../egui", default-features = false, feature ] } log = { version = "0.4", features = ["std"] } winit = { version = "0.28", default-features = false } +raw-window-handle = "0.5.0" #! ### Optional dependencies @@ -74,7 +75,6 @@ webbrowser = { version = "0.8.3", optional = true } [target.'cfg(not(target_arch="wasm32"))'.dependencies] instant = { version = "0.1" } -raw-window-handle = "0.5.0" [target.'cfg(target_arch="wasm32")'.dependencies] instant = { version = "0.1", features = [