mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Enable egui-winit to support wasm target (#2949)
This commit is contained in:
@@ -58,6 +58,7 @@ egui = { version = "0.21.0", path = "../egui", default-features = false, feature
|
|||||||
] }
|
] }
|
||||||
log = { version = "0.4", features = ["std"] }
|
log = { version = "0.4", features = ["std"] }
|
||||||
winit = { version = "0.28", default-features = false }
|
winit = { version = "0.28", default-features = false }
|
||||||
|
raw-window-handle = "0.5.0"
|
||||||
|
|
||||||
#! ### Optional dependencies
|
#! ### Optional dependencies
|
||||||
|
|
||||||
@@ -74,7 +75,6 @@ webbrowser = { version = "0.8.3", optional = true }
|
|||||||
|
|
||||||
[target.'cfg(not(target_arch="wasm32"))'.dependencies]
|
[target.'cfg(not(target_arch="wasm32"))'.dependencies]
|
||||||
instant = { version = "0.1" }
|
instant = { version = "0.1" }
|
||||||
raw-window-handle = "0.5.0"
|
|
||||||
|
|
||||||
[target.'cfg(target_arch="wasm32")'.dependencies]
|
[target.'cfg(target_arch="wasm32")'.dependencies]
|
||||||
instant = { version = "0.1", features = [
|
instant = { version = "0.1", features = [
|
||||||
|
|||||||
Reference in New Issue
Block a user