@ -42,13 +42,13 @@ std = [
"futures-io",
"memchr",
"once_cell",
"pin-project-lite",
"pin-utils",
"slab",
"no-std",
]
no-std = [
"futures-core",
[dependencies]
@ -244,13 +244,13 @@ mod macros;
cfg_no_std! {
pub mod task;
pub mod future;
pub mod stream;
}
cfg_std! {
pub mod io;
pub mod os;
pub mod prelude;
pub mod sync;
@ -1,5 +1,5 @@
use std::pin::Pin;
use std::future::Future;
use core::pin::Pin;
use core::future::Future;
use crate::stream::DoubleEndedStream;
use crate::task::{Context, Poll};
@ -1,6 +1,6 @@
use std::task::{Context, Poll};
use core::task::{Context, Poll};
use pin_project_lite::pin_project;
use crate::future::Future;
use std::marker::PhantomData;
use core::marker::PhantomData;
use crate::stream::Stream;
@ -1,4 +1,4 @@
use crate::stream::IntoStream;
use crate::stream::{DoubleEndedStream, ExactSizeStream, FusedStream, Stream};
@ -1,7 +1,7 @@
pin_project! {
/// A stream that clones the elements of an underlying stream.
use std::cmp::Ordering;
use core::cmp::Ordering;
/// A stream that copies the elements of an underlying stream.
use std::mem::ManuallyDrop;
use core::mem::ManuallyDrop;
use std::time::Duration;
use core::time::Duration;
use std::fmt;
use core::fmt;
use std::cmp::{Ord, Ordering};
use core::cmp::{Ord, Ordering};
@ -110,12 +110,12 @@ pub use take::Take;
pub use take_while::TakeWhile;
pub use zip::Zip;
cfg_unstable! {
use crate::stream::into_stream::IntoStream;
use crate::stream::{FromStream, Product, Sum};
use std::default::Default;
use core::default::Default;
@ -1,8 +1,8 @@
use std::error::Error;
use futures_timer::Delay;
use std::mem;
use core::mem;