Skip to content

Commit 1b31252

Browse files
Use hickory-dns (#61)
1 parent 5fcfa91 commit 1b31252

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.8.2](https://github.com/TrueLayer/ginepro/compare/ginepro-v0.8.2...ginepro-v0.8.1) - 2024-12-09
10+
11+
### Other
12+
- Replace `trust-dns-resolver` with `hickory-resolver`([#61](https://github.com/TrueLayer/ginepro/pull/61))
13+
914
## [0.8.1](https://github.com/TrueLayer/ginepro/compare/ginepro-v0.8.0...ginepro-v0.8.1) - 2024-07-10
1015

1116
### Other

ginepro/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ginepro"
3-
version = "0.8.1"
3+
version = "0.8.2"
44
edition = "2021"
55
description = "A client-side gRPC channel implementation for tonic"
66
repository = "https://github.com/TrueLayer/ginepro"
@@ -18,7 +18,7 @@ tokio = { version = "1", features = ["full"] }
1818
tonic = { version = "0.12", features = ["tls"] }
1919
tower = { version = "0.4", default-features = false, features = ["discover"] }
2020
tracing = "0.1"
21-
trust-dns-resolver = "0.23"
21+
hickory-resolver = { version = "0.24", features = ["tokio-runtime"] }
2222

2323
[dev-dependencies]
2424
proptest = "1"

ginepro/src/dns_resolver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
33
use crate::{LookupService, ServiceDefinition};
44
use anyhow::Context;
5+
use hickory_resolver::{system_conf, AsyncResolver, TokioAsyncResolver};
56
use std::collections::HashSet;
67
use std::net::SocketAddr;
7-
use trust_dns_resolver::{system_conf, AsyncResolver, TokioAsyncResolver};
88

99
/// Implements [`LookupService`] by using DNS queries to lookup [`ServiceDefinition::hostname`].
1010
pub struct DnsResolver {

ginepro/src/service_definition.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl ServiceDefinition {
1717
pub fn from_parts<T: ToString>(hostname: T, port: u16) -> Result<Self, anyhow::Error> {
1818
let hostname = hostname.to_string();
1919

20-
trust_dns_resolver::Name::from_ascii(&hostname)
20+
hickory_resolver::Name::from_ascii(&hostname)
2121
.map_err(anyhow::Error::from)
2222
.context("invalid 'hostname'")?;
2323

shared_proto/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
66
tonic_build::configure()
77
.build_server(true)
88
.build_client(true)
9-
.compile(&["proto/test.proto", "proto/echo.proto"], &["proto/"])?;
9+
.compile_protos(&["proto/test.proto", "proto/echo.proto"], &["proto/"])?;
1010
Ok(())
1111
}

0 commit comments

Comments
 (0)