| 1 |
//! Interop between `futures` 0.1 and 0.3. |
| 2 |
//! |
| 3 |
//! This module is only available when the `compat` feature of this |
| 4 |
//! library is activated. |
| 5 |
|
| 6 |
mod executor; |
| 7 |
pub use self::executor::{Executor01As03, Executor01CompatExt, Executor01Future}; |
| 8 |
|
| 9 |
mod compat01as03; |
| 10 |
#[cfg(feature = "io-compat")] |
| 11 |
#[cfg_attr(docsrs, doc(cfg(feature = "io-compat")))] |
| 12 |
pub use self::compat01as03::{AsyncRead01CompatExt, AsyncWrite01CompatExt}; |
| 13 |
pub use self::compat01as03::{Compat01As03, Future01CompatExt, Stream01CompatExt}; |
| 14 |
#[cfg(feature = "sink")] |
| 15 |
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))] |
| 16 |
pub use self::compat01as03::{Compat01As03Sink, Sink01CompatExt}; |
| 17 |
|
| 18 |
mod compat03as01; |
| 19 |
pub use self::compat03as01::Compat; |
| 20 |
#[cfg(feature = "sink")] |
| 21 |
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))] |
| 22 |
pub use self::compat03as01::CompatSink; |