Implement time module for wasm-bindgen backend in iced_futures

This commit is contained in:
Héctor Ramón Jiménez 2022-01-28 18:43:20 +07:00
parent 167be45a7d
commit e730d97f61
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 61 additions and 21 deletions

View file

@ -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;

View file

@ -1,2 +1,4 @@
//! Listen and react to time.
pub use iced_core::time::{Duration, Instant};
pub use iced_futures::backend::default::time::*;