Use instant::Instant with wasm-bindgen feature (#591)

This commit is contained in:
Tomasz Sterna 2020-09-27 21:55:06 +02:00 committed by GitHub
parent 74ad1c3752
commit 408114269b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -29,4 +29,4 @@ serde = { version = "1.0", features = ["derive"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2" }
web-sys = { version = "0.3", features = [ "Window" ] }
instant = "0.1.6"
instant = { version = "0.1", features = ["wasm-bindgen"] }

View file

@ -31,4 +31,4 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.2.1" }
log = { version = "0.4", features = ["release_max_level_info"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = "0.1.6"
instant = { version = "0.1", features = ["wasm-bindgen"] }

View file

@ -27,4 +27,4 @@ uuid = { version = "0.8", features = ["v4", "serde"] }
parking_lot = "0.11.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
instant = "0.1.6"
instant = { version = "0.1", features = ["wasm-bindgen"] }