Commit
+11 -7 +/-5 browse
1 | diff --git a/CHANGELOG.md b/CHANGELOG.md |
2 | index eb61c5a..e403d90 100644 |
3 | --- a/CHANGELOG.md |
4 | +++ b/CHANGELOG.md |
5 | @@ -1,3 +1,7 @@ |
6 | + mail-auth 0.3.6 |
7 | + ================================ |
8 | + - Bump `hickory-resolver` dependency to 0.24. |
9 | + |
10 | mail-auth 0.3.5 |
11 | ================================ |
12 | - Bump `ring` dependency to 0.17. |
13 | diff --git a/Cargo.toml b/Cargo.toml |
14 | index 9de66d7..1b22df3 100644 |
15 | --- a/Cargo.toml |
16 | +++ b/Cargo.toml |
17 | @@ -1,7 +1,7 @@ |
18 | [package] |
19 | name = "mail-auth" |
20 | description = "DKIM, ARC, SPF and DMARC library for Rust" |
21 | - version = "0.3.5" |
22 | + version = "0.3.6" |
23 | edition = "2021" |
24 | authors = [ "Stalwart Labs <hello@stalw.art>"] |
25 | license = "Apache-2.0 OR MIT" |
26 | @@ -36,7 +36,7 @@ serde = { version = "1.0", features = ["derive"] } |
27 | serde_json = "1.0" |
28 | sha1 = { version = "0.10", features = ["oid"], optional = true } |
29 | sha2 = { version = "0.10.6", features = ["oid"], optional = true } |
30 | - trust-dns-resolver = { version = "0.23", features = ["dns-over-rustls", "dnssec-ring"] } |
31 | + hickory-resolver = { version = "0.24", features = ["dns-over-rustls", "dnssec-ring"] } |
32 | zip = "0.6.3" |
33 | |
34 | [dev-dependencies] |
35 | diff --git a/src/common/resolver.rs b/src/common/resolver.rs |
36 | index 4f70533..f711829 100644 |
37 | --- a/src/common/resolver.rs |
38 | +++ b/src/common/resolver.rs |
39 | @@ -14,7 +14,7 @@ use std::{ |
40 | sync::Arc, |
41 | }; |
42 | |
43 | - use trust_dns_resolver::{ |
44 | + use hickory_resolver::{ |
45 | config::{ResolverConfig, ResolverOpts}, |
46 | error::{ResolveError, ResolveErrorKind}, |
47 | proto::rr::RecordType, |
48 | @@ -637,7 +637,7 @@ pub fn mock_resolve<T>(domain: &str) -> crate::Result<T> { |
49 | } else if domain.contains("_dns_error.") { |
50 | Error::DnsError("".to_string()) |
51 | } else { |
52 | - Error::DnsRecordNotFound(trust_dns_resolver::proto::op::ResponseCode::NXDomain) |
53 | + Error::DnsRecordNotFound(hickory_resolver::proto::op::ResponseCode::NXDomain) |
54 | }) |
55 | } |
56 | |
57 | diff --git a/src/dkim/sign.rs b/src/dkim/sign.rs |
58 | index c77fd92..c6dc9d3 100644 |
59 | --- a/src/dkim/sign.rs |
60 | +++ b/src/dkim/sign.rs |
61 | @@ -108,8 +108,8 @@ impl<'a> Writable for SignableMessage<'a> { |
62 | mod test { |
63 | use std::time::{Duration, Instant}; |
64 | |
65 | + use hickory_resolver::proto::op::ResponseCode; |
66 | use mail_parser::decoders::base64::base64_decode; |
67 | - use trust_dns_resolver::proto::op::ResponseCode; |
68 | |
69 | use crate::{ |
70 | common::{ |
71 | diff --git a/src/lib.rs b/src/lib.rs |
72 | index 60886dc..d5765ac 100644 |
73 | --- a/src/lib.rs |
74 | +++ b/src/lib.rs |
75 | @@ -270,9 +270,9 @@ use arc::Set; |
76 | use common::{crypto::HashAlgorithm, headers::Header, lru::LruCache, verify::DomainKey}; |
77 | use dkim::{Atps, Canonicalization, DomainKeyReport}; |
78 | use dmarc::Dmarc; |
79 | + use hickory_resolver::{proto::op::ResponseCode, TokioAsyncResolver}; |
80 | use mta_sts::{MtaSts, TlsRpt}; |
81 | use spf::{Macro, Spf}; |
82 | - use trust_dns_resolver::{proto::op::ResponseCode, TokioAsyncResolver}; |
83 | |
84 | pub mod arc; |
85 | pub mod common; |
86 | @@ -283,7 +283,7 @@ pub mod report; |
87 | pub mod spf; |
88 | |
89 | pub use flate2; |
90 | - pub use trust_dns_resolver; |
91 | + pub use hickory_resolver; |
92 | pub use zip; |
93 | |
94 | pub struct Resolver { |