Skip to content

Commit 73ce087

Browse files
committed
transport: Replace trust_dns_resolver with hickory_resolver (#223)
Trust DNS resolver has been rebranded to hickory resolver From https://crates.io/crates/trust-dns-resolver: > NOTICE This project has been rebranded to Hickory DNS and has been moved to the https://github.com/hickory-dns/hickory-dns organization and repo, this crate/binary has been moved to [hickory-resolver](https://crates.io/crates/hickory-resolver), from 0.24 and onward. cc @paritytech/networking Signed-off-by: Alexandru Vasile <[email protected]>
1 parent 1fbd48d commit 73ce087

File tree

3 files changed

+54
-55
lines changed

3 files changed

+54
-55
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tokio-tungstenite = { version = "0.20.0", features = ["rustls-tls-native-roots"]
4343
tokio-util = { version = "0.7.11", features = ["compat", "io", "codec"] }
4444
tokio = { version = "1.26.0", features = ["rt", "net", "io-util", "time", "macros", "sync", "parking_lot"] }
4545
tracing = { version = "0.1.40", features = ["log"] }
46-
trust-dns-resolver = "0.23.2"
46+
hickory-resolver = "0.24.1"
4747
uint = "0.9.5"
4848
unsigned-varint = { version = "0.8.0", features = ["codec"] }
4949
url = "2.4.0"

src/transport/common/listener.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ use crate::{
2626
};
2727

2828
use futures::Stream;
29+
use hickory_resolver::{
30+
config::{ResolverConfig, ResolverOpts},
31+
TokioAsyncResolver,
32+
};
2933
use multiaddr::{Multiaddr, Protocol};
3034
use network_interface::{Addr, NetworkInterface, NetworkInterfaceConfig};
3135
use socket2::{Domain, Socket, Type};
3236
use tokio::net::{TcpListener as TokioTcpListener, TcpStream};
33-
use trust_dns_resolver::{
34-
config::{ResolverConfig, ResolverOpts},
35-
TokioAsyncResolver,
36-
};
3737

3838
use std::{
3939
io,

0 commit comments

Comments
 (0)