From 56b80415278834b35774aed13230d2940613de89 Mon Sep 17 00:00:00 2001 From: tison Date: Sat, 8 Feb 2025 09:52:58 +0800 Subject: [PATCH] tmp hack for easy development Signed-off-by: tison --- fastimer-tokio/Cargo.toml | 8 ++------ fastimer-tokio/src/lib.rs | 4 ---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/fastimer-tokio/Cargo.toml b/fastimer-tokio/Cargo.toml index ff461f0..6e05a5b 100644 --- a/fastimer-tokio/Cargo.toml +++ b/fastimer-tokio/Cargo.toml @@ -29,13 +29,9 @@ version.workspace = true all-features = true rustdoc-args = ["--cfg", "docsrs"] -[features] -spawn = ["dep:fastimer", "dep:tokio", "tokio/rt"] -time = ["dep:fastimer", "dep:tokio", "tokio/time"] - [dependencies] -fastimer = { workspace = true, optional = true } -tokio = { workspace = true, optional = true } +fastimer = { workspace = true } +tokio = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["full"] } diff --git a/fastimer-tokio/src/lib.rs b/fastimer-tokio/src/lib.rs index cf4cbe1..48cd487 100644 --- a/fastimer-tokio/src/lib.rs +++ b/fastimer-tokio/src/lib.rs @@ -17,10 +17,8 @@ //! [`tokio`] runtime support for [`fastimer`]'s traits. -#[cfg(feature = "time")] pub use delay::*; -#[cfg(feature = "time")] mod delay { use std::time::Duration; use std::time::Instant; @@ -44,10 +42,8 @@ mod delay { } } -#[cfg(feature = "spawn")] pub use spawn::*; -#[cfg(feature = "spawn")] mod spawn { use std::future::Future;