summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 17:20:40 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:16 +0700
commit83c649b574d90667d23c8430baaebcd0ef933055 (patch)
tree7fdb5868ff5cb8af51f1efdad7a9f177207348c3 /native
parent87b3e03d187237f665b376018ea5af0cc5f05814 (diff)
downloadiced-83c649b574d90667d23c8430baaebcd0ef933055.tar.gz
iced-83c649b574d90667d23c8430baaebcd0ef933055.tar.bz2
iced-83c649b574d90667d23c8430baaebcd0ef933055.zip
Move `time` module from `iced_native` to `iced_core`
Diffstat (limited to 'native')
-rw-r--r--native/Cargo.toml4
-rw-r--r--native/src/lib.rs2
-rw-r--r--native/src/time.rs7
3 files changed, 1 insertions, 12 deletions
diff --git a/native/Cargo.toml b/native/Cargo.toml
index 499ad29e..8f0aea6a 100644
--- a/native/Cargo.toml
+++ b/native/Cargo.toml
@@ -27,7 +27,3 @@ features = ["thread-pool"]
[dependencies.iced_style]
version = "0.3"
path = "../style"
-
-[target.'cfg(target_arch = "wasm32")'.dependencies.instant]
-version = "0.1"
-features = ["wasm-bindgen"]
diff --git a/native/src/lib.rs b/native/src/lib.rs
index bd50c6b2..6d98f7d1 100644
--- a/native/src/lib.rs
+++ b/native/src/lib.rs
@@ -49,7 +49,6 @@ pub mod renderer;
pub mod subscription;
pub mod svg;
pub mod text;
-pub mod time;
pub mod touch;
pub mod user_interface;
pub mod widget;
@@ -70,6 +69,7 @@ mod debug;
mod debug;
pub use iced_core::alignment;
+pub use iced_core::time;
pub use iced_core::{
Alignment, Background, Color, Font, Length, Padding, Point, Rectangle,
Size, Vector,
diff --git a/native/src/time.rs b/native/src/time.rs
deleted file mode 100644
index 5f95ee86..00000000
--- a/native/src/time.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-//! Keep track of time, both in native and web platforms!
-
-#[cfg(target_arch = "wasm32")]
-pub use instant::{Duration, Instant};
-
-#[cfg(not(target_arch = "wasm32"))]
-pub use std::time::{Duration, Instant};