Skip to content

some stream module to no-std #722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,40 +300,40 @@
//! [`take`]: trait.Stream.html#method.take
//! [`min`]: trait.Stream.html#method.min

pub use double_ended_stream::DoubleEndedStream;
pub use empty::{empty, Empty};
pub use exact_size_stream::ExactSizeStream;
pub use from_fn::{from_fn, FromFn};
pub use from_iter::{from_iter, FromIter};
pub use fused_stream::FusedStream;
pub use once::{once, Once};
pub use pending::{pending, Pending};
pub use repeat::{repeat, Repeat};
pub use repeat_with::{repeat_with, RepeatWith};
pub use stream::*;
pub use successors::{successors, Successors};

pub(crate) mod stream;

mod double_ended_stream;
mod empty;
mod exact_size_stream;
mod from_fn;
mod from_iter;
mod fused_stream;
mod once;
mod pending;
mod repeat;
mod repeat_with;
mod successors;

cfg_std! {
pub use double_ended_stream::DoubleEndedStream;
pub use exact_size_stream::ExactSizeStream;
pub use fused_stream::FusedStream;
pub use interval::{interval, Interval};
pub use pending::{pending, Pending};
pub use product::Product;
pub use successors::{successors, Successors};
pub use sum::Sum;

mod double_ended_stream;
mod exact_size_stream;
mod fused_stream;
mod interval;
mod pending;
mod product;
mod successors;
mod sum;
}

Expand Down