Skip to content

Commit

Permalink
Replace futures dependency with futures_util
Browse files Browse the repository at this point in the history
The latter is sufficient, and the former pulls over a dozen additional
unused dependencies.

Closes: NLnetLabs#245
  • Loading branch information
WhyNotHugo committed Dec 6, 2023
1 parent 8ed1e43 commit bff08a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ time = "0.3.1"
rand = { version = "0.8", optional = true }
bytes = { version = "1.0", optional = true }
chrono = { version = "0.4.6", optional = true, default-features = false }
futures = { version = "0.3", optional = true }
futures-util = { version = "0.3", optional = true }
heapless = { version = "0.7", optional = true }
#openssl = { version = "0.10", optional = true }
ring = { version = "0.17", optional = true }
Expand All @@ -41,7 +41,7 @@ default = ["std", "rand"]
bytes = ["dep:bytes", "octseq/bytes"]
heapless = ["dep:heapless", "octseq/heapless"]
interop = ["bytes", "ring"]
resolv = ["bytes", "futures", "smallvec", "std", "tokio", "libc", "rand"]
resolv = ["bytes", "futures-util", "smallvec", "std", "tokio", "libc", "rand"]
resolv-sync = ["resolv", "tokio/rt"]
serde = ["dep:serde", "octseq/serde"]
sign = ["std"]
Expand Down
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Bug fixes

Other changes

* The `resolv` feature now depends on `futures_util` instead of `futures`,
trimming unused dependencies from the the dependency tree.

## 0.9.2

Expand Down
3 changes: 1 addition & 2 deletions src/resolv/lookup/srv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ use crate::base::wire::ParseError;
use crate::rdata::{Aaaa, Srv, A};
use crate::resolv::resolver::Resolver;
use core::fmt;
use futures::stream;
use futures::stream::{Stream, StreamExt};
use futures_util::stream::{self, Stream, StreamExt};
use octseq::octets::Octets;
use rand::distributions::{Distribution, Uniform};
use std::net::{IpAddr, SocketAddr};
Expand Down

0 comments on commit bff08a8

Please sign in to comment.