[GH-ISSUE #545] trust-dns-resolver 0.10.0-alpha.2 conflicts due to rustls #528

Closed
opened 2026-03-15 22:58:02 +03:00 by kerem · 3 comments
Owner

Originally created by @kpcyrd on GitHub (Aug 6, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/545

I've noticed that trust-dns-resolver 0.10.0-alpha.2 seems to be in conflict with the other trust-dns crates. This is likely due to a partial release of #537. :)

    Checking trust-dns-resolver v0.10.0-alpha.2
error[E0308]: mismatched types
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/https.rs:33:70
   |
33 |     let https_builder = HttpsClientStreamBuilder::with_client_config(client_config);
   |                                                                      ^^^^^^^^^^^^^ expected struct `rustls::client::ClientConfig`, found struct `https::rustls::ClientConfig`
   |
   = note: expected type `rustls::client::ClientConfig`
              found type `https::rustls::ClientConfig`
note: Perhaps two different versions of crate `rustls` are being used?
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/https.rs:33:70
   |
33 |     let https_builder = HttpsClientStreamBuilder::with_client_config(client_config);
   |                                                                      ^^^^^^^^^^^^^

error[E0308]: mismatched types
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/tls/dns_over_rustls.rs:39:66
   |
39 |     let tls_builder = TlsClientStreamBuilder::with_client_config(client_config);
   |                                                                  ^^^^^^^^^^^^^ expected struct `rustls::client::ClientConfig`, found struct `https::rustls::ClientConfig`
   |
   = note: expected type `rustls::client::ClientConfig`
              found type `https::rustls::ClientConfig`
note: Perhaps two different versions of crate `rustls` are being used?
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/tls/dns_over_rustls.rs:39:66
   |
39 |     let tls_builder = TlsClientStreamBuilder::with_client_config(client_config);
   |                                                                  ^^^^^^^^^^^^^

error: aborting due to 2 previous errors

According to my Cargo.lock, trust-dns-https and trust-dns-rustls need a new alpha release as well.

Originally created by @kpcyrd on GitHub (Aug 6, 2018). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/545 I've noticed that trust-dns-resolver 0.10.0-alpha.2 seems to be in conflict with the other trust-dns crates. This is likely due to a partial release of #537. :) ``` Checking trust-dns-resolver v0.10.0-alpha.2 error[E0308]: mismatched types --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/https.rs:33:70 | 33 | let https_builder = HttpsClientStreamBuilder::with_client_config(client_config); | ^^^^^^^^^^^^^ expected struct `rustls::client::ClientConfig`, found struct `https::rustls::ClientConfig` | = note: expected type `rustls::client::ClientConfig` found type `https::rustls::ClientConfig` note: Perhaps two different versions of crate `rustls` are being used? --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/https.rs:33:70 | 33 | let https_builder = HttpsClientStreamBuilder::with_client_config(client_config); | ^^^^^^^^^^^^^ error[E0308]: mismatched types --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/tls/dns_over_rustls.rs:39:66 | 39 | let tls_builder = TlsClientStreamBuilder::with_client_config(client_config); | ^^^^^^^^^^^^^ expected struct `rustls::client::ClientConfig`, found struct `https::rustls::ClientConfig` | = note: expected type `rustls::client::ClientConfig` found type `https::rustls::ClientConfig` note: Perhaps two different versions of crate `rustls` are being used? --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-resolver-0.10.0-alpha.2/src/tls/dns_over_rustls.rs:39:66 | 39 | let tls_builder = TlsClientStreamBuilder::with_client_config(client_config); | ^^^^^^^^^^^^^ error: aborting due to 2 previous errors ``` According to my Cargo.lock, `trust-dns-https` and `trust-dns-rustls` need a new alpha release as well.
kerem closed this issue 2026-03-15 22:58:07 +03:00
Author
Owner

@bluejekyll commented on GitHub (Aug 6, 2018):

Thanks for the report. I’ll publish alphas of those as well, as soon as I have time.

<!-- gh-comment-id:410705671 --> @bluejekyll commented on GitHub (Aug 6, 2018): Thanks for the report. I’ll publish alphas of those as well, as soon as I have time.
Author
Owner

@bluejekyll commented on GitHub (Aug 7, 2018):

Sorry for the delay. I've published new versions of trust-dns-https and trust-dns-rustls.

If this is enough for you, feel free to close this out.

<!-- gh-comment-id:410928569 --> @bluejekyll commented on GitHub (Aug 7, 2018): Sorry for the delay. I've published new versions of `trust-dns-https` and `trust-dns-rustls`. If this is enough for you, feel free to close this out.
Author
Owner

@kpcyrd commented on GitHub (Aug 7, 2018):

Yes, works again, thanks for the resolving this so fast! :)

<!-- gh-comment-id:411204419 --> @kpcyrd commented on GitHub (Aug 7, 2018): Yes, works again, thanks for the resolving this so fast! :)
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#528
No description provided.