Skip to content

Commit

Permalink
add Compat to main lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaun committed Jul 31, 2018
1 parent 404d3d0 commit f24d8bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions futures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ futures-util-preview = { path = "../futures-util", version = "0.3.0-alpha.1", de
nightly = ["futures-util-preview/nightly"]
std = ["futures-core-preview/std", "futures-executor-preview/std", "futures-io-preview/std", "futures-sink-preview/std", "futures-util-preview/std"]
default = ["std"]
compat = ["std", "futures-util-preview/compat"]
13 changes: 13 additions & 0 deletions futures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ pub mod channel {
pub use futures_channel::{oneshot, mpsc};
}

#[cfg(feature = "compat")]
pub mod compat {
//! Interop between `futures` 0.1 and 0.3.
//!
pub use futures_util::compat::{
Compat, CompatExecutor,
ExecutorFuture01,
Executor01CompatExt,
Future01Ext,
};
}

#[cfg(feature = "std")]
pub mod executor {
//! Task execution.
Expand Down

0 comments on commit f24d8bf

Please sign in to comment.