From 83c649b574d90667d23c8430baaebcd0ef933055 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Jan 2022 17:20:40 +0700 Subject: Move `time` module from `iced_native` to `iced_core` --- core/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/Cargo.toml') 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"] -- cgit From e730d97f61bc2edc77d2f061b6a763c4d0a948df Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Jan 2022 18:43:20 +0700 Subject: Implement `time` module for `wasm-bindgen` backend in `iced_futures` --- core/Cargo.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/Cargo.toml') diff --git a/core/Cargo.toml b/core/Cargo.toml index 83458ac0..dde34326 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -14,6 +14,5 @@ bitflags = "1.2" version = "0.5" optional = true -[target.'cfg(target_arch = "wasm32")'.dependencies.instant] -version = "0.1" -features = ["wasm-bindgen"] +[target.'cfg(target_arch = "wasm32")'.dependencies] +wasm-timer = { version = "0.2" } -- cgit