summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--core/Cargo.toml4
-rw-r--r--core/src/lib.rs1
-rw-r--r--core/src/time.rs (renamed from native/src/time.rs)0
3 files changed, 5 insertions, 0 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml
index ca28c308..83458ac0 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -13,3 +13,7 @@ bitflags = "1.2"
[dependencies.palette]
version = "0.5"
optional = true
+
+[target.'cfg(target_arch = "wasm32")'.dependencies.instant]
+version = "0.1"
+features = ["wasm-bindgen"]
diff --git a/core/src/lib.rs b/core/src/lib.rs
index b76c6d20..2a4e6158 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -17,6 +17,7 @@
pub mod alignment;
pub mod keyboard;
pub mod mouse;
+pub mod time;
mod background;
mod color;
diff --git a/native/src/time.rs b/core/src/time.rs
index 5f95ee86..5f95ee86 100644
--- a/native/src/time.rs
+++ b/core/src/time.rs