Skip to content

Commit ed39310

Browse files
bilelmoussaouiKeruspe
authored andcommitted
async: Don't pull all of the futures crates
1 parent d36b805 commit ed39310

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ include = [
2424
[features]
2525
default = ["std", "async"]
2626
std = []
27-
async = ["futures"]
27+
async = ["futures-io", "futures-util"]
2828

2929
[dev-dependencies]
3030
async-std = { version = "1.9.0", features = ["attributes"] }
@@ -77,4 +77,5 @@ travis-ci = { repository = "Geal/cookie-factory" }
7777
maintenance = { status = "actively-developed" }
7878

7979
[dependencies]
80-
futures = { version = "0.3.16", optional = true }
80+
futures-io = { version = "0.3.30", optional = true }
81+
futures-util = { version = "0.3.30", optional = true, features = ["io"]}

src/async_bufwriter.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use futures::io::{AsyncWrite, AsyncWriteExt};
1+
use futures_io::AsyncWrite;
2+
use futures_util::io::AsyncWriteExt;
23

34
pub struct AsyncBufWriter<W: AsyncWrite + Unpin> {
45
inner: W,

0 commit comments

Comments
 (0)