smpsc/lib.rs
1//! Wrappers for [tokio](https://docs.rs/tokio)'s channels that implement [`Stream`] for receivers
2//! and [`Sink`] for senders.
3//!
4//! [`Stream`]: trait@tokio_stream::Stream
5//! [`Sink`]: trait@async_sink::Sink
6
7#[cfg(feature = "alloc")]
8extern crate alloc;
9
10#[cfg(feature = "alloc")]
11pub mod mpsc;
12pub mod oneshot;
13
14#[cfg(feature = "alloc")]
15pub use mpsc::{channel, unbounded_channel};