Skip to content

Commit f9c9812

Browse files
committed
Fix no-std build
1 parent feea1b5 commit f9c9812

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

futures-channel/Cargo.toml

+2-2
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

-1
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

+1-1
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

+1-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ channel = ["std", "futures-channel-preview"]
2929
# Unstable features
3030
# These features are outside of the normal semver guarantees and require the
3131
# `unstable` feature as an explicit opt-in to unstable API.
32-
unstable = ["futures-core-preview/unstable"]
33-
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic"]
32+
unstable = ["futures-core-preview/unstable", "futures-task-preview/unstable"]
33+
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic", "futures-task-preview/cfg-target-has-atomic"]
3434
bilock = []
3535
read_initializer = ["io", "futures-io-preview/read_initializer", "futures-io-preview/unstable"]
3636

futures/Cargo.toml

+2-2
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)