summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 18:43:20 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:17 +0700
commite730d97f61bc2edc77d2f061b6a763c4d0a948df (patch)
tree8966e2ad3b093c83295b3ad0c5b8d1c460a1c158 /src
parent167be45a7db7c1f60a79116766bdf38300429c6a (diff)
downloadiced-e730d97f61bc2edc77d2f061b6a763c4d0a948df.tar.gz
iced-e730d97f61bc2edc77d2f061b6a763c4d0a948df.tar.bz2
iced-e730d97f61bc2edc77d2f061b6a763c4d0a948df.zip
Implement `time` module for `wasm-bindgen` backend in `iced_futures`
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs15
-rw-r--r--src/time.rs2
2 files changed, 3 insertions, 14 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 41fb3a8b..c8047d7f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -191,23 +191,10 @@ pub mod executor;
pub mod keyboard;
pub mod mouse;
pub mod settings;
+pub mod time;
pub mod widget;
pub mod window;
-#[cfg(all(
- any(feature = "tokio", feature = "async-std", feature = "smol"),
- not(target_arch = "wasm32")
-))]
-#[cfg_attr(
- docsrs,
- doc(cfg(any(
- feature = "tokio",
- feature = "async-std"
- feature = "smol"
- )))
-)]
-pub mod time;
-
#[cfg(all(not(feature = "glow"), feature = "wgpu"))]
use iced_winit as runtime;
diff --git a/src/time.rs b/src/time.rs
index 4f831171..37d454ed 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -1,2 +1,4 @@
//! Listen and react to time.
+pub use iced_core::time::{Duration, Instant};
+
pub use iced_futures::backend::default::time::*;