Skip to content

Commit e4cbc1a

Browse files
authored
chore(deps): bump hickory-resolver and hickory-proto
Pull-Request: #5968.
1 parent f47e38e commit e4cbc1a

File tree

6 files changed

+28
-29
lines changed

6 files changed

+28
-29
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ updates:
1212
hickory-dns:
1313
patterns:
1414
- "hickory-*"
15-
- "async-std-resolver"
1615
opentelemetry:
1716
patterns:
1817
- "opentelemetry*"

Cargo.lock

Lines changed: 17 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,15 @@ libp2p-webtransport-websys = { version = "0.5.1", path = "transports/webtranspor
118118
libp2p-yamux = { version = "0.47.0", path = "muxers/yamux" }
119119

120120
# External dependencies
121-
async-std-resolver = { version = "0.25.0-alpha.4", default-features = false }
122121
asynchronous-codec = { version = "0.7.0" }
123122
env_logger = "0.11"
124123
futures = "0.3.30"
125124
futures-bounded = { version = "0.2.4" }
126125
futures-rustls = { version = "0.26.0", default-features = false }
127126
getrandom = "0.2"
128127
if-watch = "3.2.1"
129-
hickory-proto = { version = "0.25.0-alpha.4", default-features = false }
130-
hickory-resolver = { version = "0.25.0-alpha.4", default-features = false }
128+
hickory-proto = { version = "0.25.2", default-features = false }
129+
hickory-resolver = { version = "0.25.2", default-features = false }
131130
multiaddr = "0.18.1"
132131
multihash = "0.19.1"
133132
multistream-select = { version = "0.13.0", path = "misc/multistream-select" }

protocols/mdns/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## 0.48.0
22

33
- Remove `async_std` dependency [PR 5958](https://github.com/libp2p/rust-libp2p/pull/5958)
4-
54
## 0.47.0
65

76
- Emit `ToSwarm::NewExternalAddrOfPeer` on discovery.

transports/dns/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tokio = { workspace = true, features = ["rt", "time"] }
2626
tracing-subscriber = { workspace = true, features = ["env-filter"] }
2727

2828
[features]
29-
tokio = ["hickory-resolver/tokio-runtime"]
29+
tokio = ["hickory-resolver/tokio"]
3030

3131
# Passing arguments to the docsrs builder in order to properly document cfg's.
3232
# More information: https://docs.rs/about/builds#cross-compiling

transports/dns/src/lib.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
//! `/dns6/...` and `/dnsaddr/...` components of the given `Multiaddr` through
3030
//! a DNS, replacing them with the resolved protocols (typically TCP/IP).
3131
//!
32-
//! The `tokio` feature and hence the [`tokio::Transport`] are enabled by default.
32+
//! The [`tokio::Transport`] is enabled by default under the `tokio` feature.
3333
//! Tokio users can furthermore opt-in to the `tokio-dns-over-rustls` and
3434
//! `tokio-dns-over-https-rustls` features.
3535
//! For more information about these features, please refer to the documentation
@@ -59,7 +59,7 @@
5959
pub mod tokio {
6060
use std::sync::Arc;
6161

62-
use hickory_resolver::{system_conf, TokioResolver};
62+
use hickory_resolver::{name_server::TokioConnectionProvider, system_conf, TokioResolver};
6363
use parking_lot::Mutex;
6464

6565
/// A `Transport` wrapper for performing DNS lookups when dialing `Multiaddr`esses
@@ -82,7 +82,12 @@ pub mod tokio {
8282
) -> Transport<T> {
8383
Transport {
8484
inner: Arc::new(Mutex::new(inner)),
85-
resolver: TokioResolver::tokio(cfg, opts),
85+
resolver: TokioResolver::builder_with_config(
86+
cfg,
87+
TokioConnectionProvider::default(),
88+
)
89+
.with_options(opts)
90+
.build(),
8691
}
8792
}
8893
}
@@ -579,8 +584,6 @@ mod tests {
579584

580585
use super::*;
581586

582-
// These helpers will be compiled conditionally, depending on the async runtime in use.
583-
584587
fn test_tokio<T, F: Future<Output = ()>>(
585588
transport: T,
586589
test_fn: impl FnOnce(tokio::Transport<T>) -> F,

0 commit comments

Comments
 (0)