From 408114269b36cbc088dc9b3a0a58ba8acba21acf Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Sun, 27 Sep 2020 21:55:06 +0200 Subject: [PATCH] Use instant::Instant with wasm-bindgen feature (#591) --- crates/bevy_app/Cargo.toml | 2 +- crates/bevy_core/Cargo.toml | 2 +- crates/bevy_diagnostic/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_app/Cargo.toml b/crates/bevy_app/Cargo.toml index 4906610001..2b7e6443de 100644 --- a/crates/bevy_app/Cargo.toml +++ b/crates/bevy_app/Cargo.toml @@ -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"] } diff --git a/crates/bevy_core/Cargo.toml b/crates/bevy_core/Cargo.toml index 79f9b0a332..23eeff107e 100644 --- a/crates/bevy_core/Cargo.toml +++ b/crates/bevy_core/Cargo.toml @@ -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"] } diff --git a/crates/bevy_diagnostic/Cargo.toml b/crates/bevy_diagnostic/Cargo.toml index fdc41b032c..adcd6fe72d 100644 --- a/crates/bevy_diagnostic/Cargo.toml +++ b/crates/bevy_diagnostic/Cargo.toml @@ -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"] }