From f5f36d2fad47debe85c7cf044754a2b0ecdd3b5b Mon Sep 17 00:00:00 2001
From: Adam Whitehurst <adam.whitehurst@live.com>
Date: Mon, 16 Jan 2023 10:03:40 -0800
Subject: [PATCH] add `instant` dependency for time in wasm build

---
 Cargo.toml              | 1 +
 src/widgets/text_box.rs | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml
index af9d7c8..f39ff22 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,6 +28,7 @@ log = "0.4"
 bitflags = "1.3.2"
 reorder = "2.1"
 resources = "1.1"
+instant = "0.1"
 
 [dev-dependencies]
 fastrand = "1.8"
diff --git a/src/widgets/text_box.rs b/src/widgets/text_box.rs
index e45cc09..c0426e4 100644
--- a/src/widgets/text_box.rs
+++ b/src/widgets/text_box.rs
@@ -1,4 +1,4 @@
-use std::time::Instant;
+use instant::Instant;
 
 use bevy::prelude::*;
 use kayak_font::{KayakFont, TextProperties};
-- 
GitLab