Skip to content

Commit

Permalink
tmp hack for easy development
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Feb 8, 2025
1 parent a49b2e0 commit 56b8041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 2 additions & 6 deletions fastimer-tokio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 0 additions & 4 deletions fastimer-tokio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -44,10 +42,8 @@ mod delay {
}
}

#[cfg(feature = "spawn")]
pub use spawn::*;

#[cfg(feature = "spawn")]
mod spawn {
use std::future::Future;

Expand Down

0 comments on commit 56b8041

Please sign in to comment.