Skip to content

Commit b6463fb

Browse files
Rename feature tokio-time -> tokio
1 parent 003ef96 commit b6463fb

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["asynchronous", "data-structures"]
1010
exclude = ["/tests"]
1111

1212
[features]
13-
tokio-time = ["dep:tokio"]
13+
tokio = ["dep:tokio"]
1414

1515
[dependencies]
1616
futures = "0.3.31"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub mod sealed;
22
pub mod shared;
3-
#[cfg(feature = "tokio-time")]
3+
#[cfg(feature = "tokio")]
44
pub mod split;
55
pub mod stopwatch;
66
pub mod sync;
@@ -14,7 +14,7 @@ pub mod prelude {
1414
pub use crate::sync::condvar as local_condvar;
1515
pub use crate::sync::error as local_sync_error;
1616
pub use crate::sync::oneshot as local_oneshot;
17-
#[cfg(feature = "tokio-time")]
17+
#[cfg(feature = "tokio")]
1818
pub use crate::sync::pipe as local_pipe;
1919
pub use crate::sync::semaphore as local_semaphore;
2020
pub use crate::sync::unbounded as local_unbounded;

src/stopwatch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
use std::fmt;
44
use std::time::Instant;
55

6-
#[cfg(feature = "tokio-time")]
6+
#[cfg(feature = "tokio")]
77
use tokio::time::Duration;
88

9-
#[cfg(not(feature = "tokio-time"))]
9+
#[cfg(not(feature = "tokio"))]
1010
use std::time::Duration;
1111

1212
/// Utility for measuring the duration of an operation. When dropped, it will log the time elapsed since its creation.

src/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub mod bounded;
44
pub mod condvar;
55
pub mod error;
66
pub mod oneshot;
7-
#[cfg(feature = "tokio-time")]
7+
#[cfg(feature = "tokio")]
88
pub mod pipe;
99
pub mod semaphore;
1010
mod shared_state;

0 commit comments

Comments
 (0)