[GH-ISSUE #2365] compiling hickory-resolver error #972

Closed
opened 2026-03-16 01:08:17 +03:00 by kerem · 4 comments
Owner

Originally created by @Cergoo on GitHub (Aug 20, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2365

 Compiling hickory-resolver v0.25.0-alpha.2   and 0.24.1 too
error[E0432]: unresolved import `crate::tls::CLIENT_CONFIG`
  --> /home/prof/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hickory-resolver-0.25.0-alpha.2/src/h2.rs:11:5
   |
11 | use crate::tls::CLIENT_CONFIG;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ no `CLIENT_CONFIG` in `tls`
   |
note: found an item that was configured out
  --> /home/prof/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hickory-resolver-0.25.0-alpha.2/src/tls/mod.rs:16:47
   |
16 |         pub(crate) use self::dns_over_rustls::CLIENT_CONFIG;
   |                                               ^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0432`.
error: could not compile `hickory-resolver` (lib) due to 1 previous error
  • OS: Linux Mint 22
Originally created by @Cergoo on GitHub (Aug 20, 2024). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2365 ``` Compiling hickory-resolver v0.25.0-alpha.2 and 0.24.1 too error[E0432]: unresolved import `crate::tls::CLIENT_CONFIG` --> /home/prof/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hickory-resolver-0.25.0-alpha.2/src/h2.rs:11:5 | 11 | use crate::tls::CLIENT_CONFIG; | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `CLIENT_CONFIG` in `tls` | note: found an item that was configured out --> /home/prof/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hickory-resolver-0.25.0-alpha.2/src/tls/mod.rs:16:47 | 16 | pub(crate) use self::dns_over_rustls::CLIENT_CONFIG; | ^^^^^^^^^^^^^ For more information about this error, try `rustc --explain E0432`. error: could not compile `hickory-resolver` (lib) due to 1 previous error ``` - OS: Linux Mint 22
kerem closed this issue 2026-03-16 01:08:22 +03:00
Author
Owner

@djc commented on GitHub (Aug 20, 2024):

What are you trying to do? Which features are you trying to enable?

<!-- gh-comment-id:2298482558 --> @djc commented on GitHub (Aug 20, 2024): What are you trying to do? Which features are you trying to enable?
Author
Owner

@Cergoo commented on GitHub (Aug 20, 2024):

What are you trying to do? Which features are you trying to enable?

hickory-resolver = { version = "0.25.0-alpha.2", features = ["dns-over-https", "dns-over-tls", "dns-over-rustls"] }

but I just need "dns-over-https"

<!-- gh-comment-id:2298490897 --> @Cergoo commented on GitHub (Aug 20, 2024): > What are you trying to do? Which features are you trying to enable? ``` hickory-resolver = { version = "0.25.0-alpha.2", features = ["dns-over-https", "dns-over-tls", "dns-over-rustls"] } ``` but I just need "dns-over-https"
Author
Owner

@djc commented on GitHub (Aug 20, 2024):

I think you need dns-over-https-rustls instead -- see #2366.

<!-- gh-comment-id:2298523002 --> @djc commented on GitHub (Aug 20, 2024): I think you need `dns-over-https-rustls` instead -- see #2366.
Author
Owner

@Cergoo commented on GitHub (Aug 20, 2024):

ok, thanks, compiled successfully

<!-- gh-comment-id:2298634492 --> @Cergoo commented on GitHub (Aug 20, 2024): ok, thanks, compiled successfully
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#972
No description provided.