Skip to content

Commit c52df99

Browse files
author
Stjepan Glavina
committed
Remove crossbeam-channel and futures-timer from std
1 parent b0a03eb commit c52df99

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
2424
default = [
2525
"std",
2626
"async-task",
27+
"crossbeam-channel",
2728
"crossbeam-deque",
2829
"futures-timer",
2930
"kv-log-macro",
@@ -37,11 +38,9 @@ docs = ["unstable"]
3738
unstable = ["default", "broadcaster"]
3839
std = [
3940
"async-macros",
40-
"crossbeam-channel",
4141
"crossbeam-utils",
4242
"futures-core",
4343
"futures-io",
44-
"futures-timer",
4544
"memchr",
4645
"once_cell",
4746
"pin-project-lite",

src/future/future/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ extension_trait! {
144144
/// dbg!(a.await);
145145
/// # })
146146
/// ```
147+
#[cfg(all(feature = "std", feature = "unstable"))]
147148
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
148-
#[cfg(any(feature = "unstable", feature = "docs"))]
149149
fn delay(self, dur: Duration) -> impl Future<Output = Self::Output> [DelayFuture<Self>]
150150
where
151151
Self: Future + Sized
@@ -167,8 +167,8 @@ extension_trait! {
167167
/// assert_eq!(future.await, 1);
168168
/// # })
169169
/// ```
170+
#[cfg(feature = "unstable")]
170171
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
171-
#[cfg(any(feature = "unstable", feature = "docs"))]
172172
fn flatten(self) -> impl Future<Output = <<Self as Future>::Output as IntoFuture>::Output> [FlattenFuture<Self, <<Self as Future>::Output as IntoFuture>::Future>]
173173
where
174174
Self: Future + Sized,
@@ -206,7 +206,7 @@ extension_trait! {
206206
# });
207207
```
208208
"#]
209-
#[cfg(any(feature = "unstable", feature = "docs"))]
209+
#[cfg(feature = "unstable")]
210210
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
211211
fn race<F>(
212212
self,
@@ -252,7 +252,7 @@ extension_trait! {
252252
# Ok(()) }) }
253253
```
254254
"#]
255-
#[cfg(any(feature = "unstable", feature = "docs"))]
255+
#[cfg(feature = "unstable")]
256256
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
257257
fn try_race<F: std::future::Future, T, E>(
258258
self,

src/sync/waker_set.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use std::cell::UnsafeCell;
88
use std::ops::{Deref, DerefMut};
99
use std::sync::atomic::{AtomicUsize, Ordering};
10-
1110
use std::task::{Context, Waker};
1211

1312
use crossbeam_utils::Backoff;

0 commit comments

Comments
 (0)