Skip to content

Commit ca380c4

Browse files
authored
fix: fix Trust DNS leftovers (#736)
* fix: fix Trust DNS leftovers * chore: update MSRV
1 parent 5904bd2 commit ca380c4

File tree

14 files changed

+23
-17
lines changed

14 files changed

+23
-17
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ homepage = "https://actix.rs"
1919
repository = "https://github.com/actix/actix-net"
2020
license = "MIT OR Apache-2.0"
2121
edition = "2021"
22-
rust-version = "1.75"
22+
rust-version = "1.76"
2323

2424
[patch.crates-io]
2525
actix-codec = { path = "actix-codec" }

actix-codec/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Minimum supported Rust version (MSRV) is now 1.75.
5+
- Minimum supported Rust version (MSRV) is now 1.76.
66

77
## 0.5.2
88

actix-macros/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Minimum supported Rust version (MSRV) is now 1.75.
5+
- Minimum supported Rust version (MSRV) is now 1.76.
66

77
## 0.2.4
88

actix-rt/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Minimum supported Rust version (MSRV) is now 1.76.
6+
57
## 2.11.0
68

79
- Implement `ActixStream` for `tokio::io::BufReader<IO>`.

actix-server/CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Minimum supported Rust version (MSRV) is now 1.76.
6+
57
## 2.6.0
68

79
- Add `ServerBuilder::shutdown_signal()` method.

actix-service/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Minimum supported Rust version (MSRV) is now 1.75.
5+
- Minimum supported Rust version (MSRV) is now 1.76.
66

77
## 2.0.3
88

actix-tls/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Minimum supported Rust version (MSRV) is now 1.75.
5+
- Minimum supported Rust version (MSRV) is now 1.76.
66

77
## 3.4.0
88

actix-tls/src/connect/resolve.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ use futures_core::future::LocalBoxFuture;
1313
/// use actix_tls::connect::{Resolve, Resolver};
1414
/// use futures_util::future::LocalBoxFuture;
1515
///
16-
/// // use trust-dns async tokio resolver
17-
/// use trust_dns_resolver::TokioAsyncResolver;
16+
/// // use Hickory DNS tokio resolver
17+
/// use hickory_resolver::TokioResolver;
1818
///
1919
/// struct MyResolver {
20-
/// trust_dns: TokioAsyncResolver,
20+
/// hickory_dns: TokioResolver,
2121
/// };
2222
///
2323
/// // impl Resolve trait and convert given host address str and port to SocketAddr.
@@ -29,7 +29,7 @@ use futures_core::future::LocalBoxFuture;
2929
/// ) -> LocalBoxFuture<'a, Result<Vec<SocketAddr>, Box<dyn std::error::Error>>> {
3030
/// Box::pin(async move {
3131
/// let res = self
32-
/// .trust_dns
32+
/// .hickory_dns
3333
/// .lookup_ip(host)
3434
/// .await?
3535
/// .iter()
@@ -41,7 +41,7 @@ use futures_core::future::LocalBoxFuture;
4141
/// }
4242
///
4343
/// let my_resolver = MyResolver {
44-
/// trust_dns: TokioAsyncResolver::tokio_from_system_conf().unwrap(),
44+
/// hickory_dns: TokioResolver::builder_tokio().unwrap().build(),
4545
/// };
4646
///
4747
/// // wrap custom resolver

actix-tls/tests/test_resolvers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async fn custom_resolver_connect() {
5555
let srv = TestServer::start(|| fn_service(|_io: TcpStream| async { Ok::<_, io::Error>(()) }));
5656

5757
struct MyResolver {
58-
trust_dns: TokioResolver,
58+
hickory_dns: TokioResolver,
5959
}
6060

6161
impl Resolve for MyResolver {
@@ -66,7 +66,7 @@ async fn custom_resolver_connect() {
6666
) -> LocalBoxFuture<'a, Result<Vec<SocketAddr>, Box<dyn std::error::Error>>> {
6767
Box::pin(async move {
6868
let res = self
69-
.trust_dns
69+
.hickory_dns
7070
.lookup_ip(host)
7171
.await?
7272
.iter()
@@ -78,7 +78,7 @@ async fn custom_resolver_connect() {
7878
}
7979

8080
let resolver = MyResolver {
81-
trust_dns: TokioResolver::builder_tokio().unwrap().build(),
81+
hickory_dns: TokioResolver::builder_tokio().unwrap().build(),
8282
};
8383

8484
let factory = connector_factory(Resolver::custom(resolver));

actix-tracing/CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
- Minimum supported Rust version (MSRV) is now 1.75.
5+
- Minimum supported Rust version (MSRV) is now 1.76.
66

77
## 0.1.0
88

0 commit comments

Comments
 (0)