1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Use instant crate in egui-winit for WebAssembly support (#1023)

* Replace `std::time::Instant` with wasm-compatible `instant::Instant`

* Change version requirement for instant to be compatible to winit

* Enable wasm-bindgen feature for instant

* Update lockfile

* Update changelog

* sort dependencies

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
Niklas Korz
2022-01-03 22:13:53 +01:00
committed by GitHub
parent b1fd6a44e8
commit 01015ac94c
5 changed files with 10 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ all-features = true
[dependencies]
egui = { version = "0.16.0", path = "../egui", default-features = false, features = ["single_threaded"] }
instant = { version = "0.1", features = ["wasm-bindgen"] }
winit = "0.26"
epi = { version = "0.16.0", path = "../epi", optional = true }