Skip to content

Commit

Permalink
chore: trust-dns is now hickory-dns
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Oct 27, 2023
1 parent 8a87d35 commit 352d69c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dap-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ reqwest = { version = "0.11.22", default-features = false, features = [
url = "2.4.1"

# for bootstrap dns resolver
trust-dns-resolver = { version = "0.23.2", default-features = false, features = [
hickory-resolver = { version = "0.24.0", default-features = false, features = [
"tokio-runtime",
] }

Expand Down
6 changes: 3 additions & 3 deletions dap-lib/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ use crate::{
trait_resolve_ips::{ResolveIpResponse, ResolveIps},
};
use async_trait::async_trait;
use reqwest::Url;
use std::{net::SocketAddr, sync::Arc};
use trust_dns_resolver::{
use hickory_resolver::{
config::{NameServerConfigGroup, ResolverConfig, ResolverOpts},
name_server::{GenericConnector, TokioRuntimeProvider},
AsyncResolver, TokioAsyncResolver,
};
use reqwest::Url;
use std::{net::SocketAddr, sync::Arc};

#[derive(Clone)]
/// stub resolver using bootstrap DNS resolver
Expand Down
2 changes: 1 addition & 1 deletion dap-lib/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub type Result<T> = std::result::Result<T, DapError>;
#[derive(Debug, Error)]
pub enum DapError {
#[error("Bootstrap resolver error: {0}")]
BootstrapResolverError(#[from] trust_dns_resolver::error::ResolveError),
BootstrapResolverError(#[from] hickory_resolver::error::ResolveError),

#[error("Url error: {0}")]
UrlError(#[from] url::ParseError),
Expand Down

0 comments on commit 352d69c

Please sign in to comment.