Skip to content

Commit 43185c5

Browse files
committed
Fix no-std build
1 parent 0262b9c commit 43185c5

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

futures-channel/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ sink = ["futures-sink-preview"]
2323
# Unstable features
2424
# These features are outside of the normal semver guarantees and require the
2525
# `unstable` feature as an explicit opt-in to unstable API.
26-
unstable = ["futures-core-preview/unstable"]
27-
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic"]
26+
unstable = ["futures-core-preview/unstable", "futures-task-preview/unstable"]
27+
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic", "futures-task-preview/cfg-target-has-atomic"]
2828

2929
[dependencies]
3030
futures-core-preview = { path = "../futures-core", version = "=0.3.0-alpha.19", default-features = false }

futures-task/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ unstable = []
2626
cfg-target-has-atomic = []
2727

2828
[dependencies]
29-
futures-core-preview = { path = "../futures-core", version = "=0.3.0-alpha.19" }

futures-task/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ pub use crate::noop_waker::noop_waker;
5959
#[cfg(feature = "std")]
6060
pub use crate::noop_waker::noop_waker_ref;
6161

62-
pub use futures_core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
62+
pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};

futures-task/src/noop_waker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Utilities for creating zero-cost wakers that don't do anything.
22
3-
use futures_core::task::{RawWaker, RawWakerVTable, Waker};
3+
use core::task::{RawWaker, RawWakerVTable, Waker};
44
use core::ptr::null;
55
#[cfg(feature = "std")]
66
use core::cell::UnsafeCell;

futures-util/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ select-macro = ["async-await", "futures-select-macro-preview", "proc-macro-hack"
3030
# Unstable features
3131
# These features are outside of the normal semver guarantees and require the
3232
# `unstable` feature as an explicit opt-in to unstable API.
33-
unstable = ["futures-core-preview/unstable"]
34-
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic"]
33+
unstable = ["futures-core-preview/unstable", "futures-task-preview/unstable"]
34+
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic", "futures-task-preview/cfg-target-has-atomic"]
3535
bilock = []
3636
read_initializer = ["io", "futures-io-preview/read_initializer", "futures-io-preview/unstable"]
3737

futures/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ threadpool = ["futures-executor-preview/threadpool"]
4848
# Unstable features
4949
# These features are outside of the normal semver guarantees and require the
5050
# `unstable` feature as an explicit opt-in to unstable API.
51-
unstable = ["futures-core-preview/unstable", "futures-channel-preview/unstable", "futures-io-preview/unstable", "futures-util-preview/unstable"]
52-
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic", "futures-channel-preview/cfg-target-has-atomic", "futures-util-preview/cfg-target-has-atomic"]
51+
unstable = ["futures-core-preview/unstable", "futures-task-preview/unstable", "futures-channel-preview/unstable", "futures-io-preview/unstable", "futures-util-preview/unstable"]
52+
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic", "futures-task-preview/cfg-target-has-atomic", "futures-channel-preview/cfg-target-has-atomic", "futures-util-preview/cfg-target-has-atomic"]
5353
bilock = ["futures-util-preview/bilock"]
5454
read_initializer = ["futures-io-preview/read_initializer", "futures-util-preview/read_initializer"]
5555

0 commit comments

Comments
 (0)