Skip to content

Commit

Permalink
async: Don't pull all of the futures crates
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui authored and Keruspe committed Apr 28, 2024
1 parent d36b805 commit ed39310
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ include = [
[features]
default = ["std", "async"]
std = []
async = ["futures"]
async = ["futures-io", "futures-util"]

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

[dependencies]
futures = { version = "0.3.16", optional = true }
futures-io = { version = "0.3.30", optional = true }
futures-util = { version = "0.3.30", optional = true, features = ["io"]}
3 changes: 2 additions & 1 deletion src/async_bufwriter.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use futures::io::{AsyncWrite, AsyncWriteExt};
use futures_io::AsyncWrite;
use futures_util::io::AsyncWriteExt;

pub struct AsyncBufWriter<W: AsyncWrite + Unpin> {
inner: W,
Expand Down

0 comments on commit ed39310

Please sign in to comment.