Skip to content

Commit

Permalink
transport: Replace trust_dns_resolver with hickory_resolver (#223)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lexnv authored Aug 28, 2024
1 parent dddd1e8 commit 5b8183b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 55 deletions.
99 changes: 49 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tokio-tungstenite = { version = "0.20.0", features = ["rustls-tls-native-roots"]
tokio-util = { version = "0.7.11", features = ["compat", "io", "codec"] }
tokio = { version = "1.26.0", features = ["rt", "net", "io-util", "time", "macros", "sync", "parking_lot"] }
tracing = { version = "0.1.40", features = ["log"] }
trust-dns-resolver = "0.23.2"
hickory-resolver = "0.24.1"
uint = "0.9.5"
unsigned-varint = { version = "0.8.0", features = ["codec"] }
url = "2.4.0"
Expand Down
8 changes: 4 additions & 4 deletions src/transport/common/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ use crate::{
};

use futures::Stream;
use hickory_resolver::{
config::{ResolverConfig, ResolverOpts},
TokioAsyncResolver,
};
use multiaddr::{Multiaddr, Protocol};
use network_interface::{Addr, NetworkInterface, NetworkInterfaceConfig};
use socket2::{Domain, Socket, Type};
use tokio::net::{TcpListener as TokioTcpListener, TcpStream};
use trust_dns_resolver::{
config::{ResolverConfig, ResolverOpts},
TokioAsyncResolver,
};

use std::{
io,
Expand Down

0 comments on commit 5b8183b

Please sign in to comment.