Skip to content

Commit

Permalink
Fix no-std build
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 1, 2019
1 parent 40342fe commit 394b62b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions futures-channel/Cargo.toml
Expand Up @@ -23,8 +23,8 @@ sink = ["futures-sink-preview"]
# Unstable features
# These features are outside of the normal semver guarantees and require the
# `unstable` feature as an explicit opt-in to unstable API.
unstable = ["futures-core-preview/unstable"]
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic"]
unstable = ["futures-core-preview/unstable", "futures-task-preview/unstable"]
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic", "futures-task-preview/cfg-target-has-atomic"]

[dependencies]
futures-core-preview = { path = "../futures-core", version = "=0.3.0-alpha.19", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion futures-task/Cargo.toml
Expand Up @@ -26,4 +26,3 @@ unstable = []
cfg-target-has-atomic = []

[dependencies]
futures-core-preview = { path = "../futures-core", version = "=0.3.0-alpha.19" }
2 changes: 1 addition & 1 deletion futures-task/src/lib.rs
Expand Up @@ -59,4 +59,4 @@ pub use crate::noop_waker::noop_waker;
#[cfg(feature = "std")]
pub use crate::noop_waker::noop_waker_ref;

pub use futures_core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
2 changes: 1 addition & 1 deletion futures-task/src/noop_waker.rs
@@ -1,6 +1,6 @@
//! Utilities for creating zero-cost wakers that don't do anything.

use futures_core::task::{RawWaker, RawWakerVTable, Waker};
use core::task::{RawWaker, RawWakerVTable, Waker};
use core::ptr::null;
#[cfg(feature = "std")]
use core::cell::UnsafeCell;
Expand Down
4 changes: 2 additions & 2 deletions futures-util/Cargo.toml
Expand Up @@ -29,8 +29,8 @@ channel = ["std", "futures-channel-preview"]
# Unstable features
# These features are outside of the normal semver guarantees and require the
# `unstable` feature as an explicit opt-in to unstable API.
unstable = ["futures-core-preview/unstable"]
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic"]
unstable = ["futures-core-preview/unstable", "futures-task-preview/unstable"]
cfg-target-has-atomic = ["futures-core-preview/cfg-target-has-atomic", "futures-task-preview/cfg-target-has-atomic"]
bilock = []
read_initializer = ["io", "futures-io-preview/read_initializer", "futures-io-preview/unstable"]

Expand Down
4 changes: 2 additions & 2 deletions futures/Cargo.toml
Expand Up @@ -48,8 +48,8 @@ threadpool = ["futures-executor-preview/threadpool"]
# Unstable features
# These features are outside of the normal semver guarantees and require the
# `unstable` feature as an explicit opt-in to unstable API.
unstable = ["futures-core-preview/unstable", "futures-channel-preview/unstable", "futures-io-preview/unstable", "futures-util-preview/unstable"]
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"]
unstable = ["futures-core-preview/unstable", "futures-task-preview/unstable", "futures-channel-preview/unstable", "futures-io-preview/unstable", "futures-util-preview/unstable"]
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"]
bilock = ["futures-util-preview/bilock"]
read_initializer = ["futures-io-preview/read_initializer", "futures-util-preview/read_initializer"]

Expand Down

0 comments on commit 394b62b

Please sign in to comment.