[GH-ISSUE #931] Cannot compile trust-dns-proto v0.18.0-alpha.1 #569

Closed
opened 2026-03-15 23:12:53 +03:00 by kerem · 8 comments
Owner

Originally created by @ebroto on GitHub (Nov 26, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/931

First of all, thanks for these awesome crates!

While trying to build the resolver lib as a dependency, I'm getting the following error:

   Compiling trust-dns-proto v0.18.0-alpha.1
error[E0432]: unresolved import `tokio_net::tcp`
   --> /home/ebroto/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-proto-0.18.0-alpha.1/src/tcp/tcp_client_stream.rs:128:16
    |
128 | use tokio_net::tcp::TcpStream as TokioTcpStream;
    |                ^^^ could not find `tcp` in `tokio_net`

error[E0432]: unresolved import `tokio_net::udp`
   --> /home/ebroto/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-proto-0.18.0-alpha.1/src/udp/udp_stream.rs:316:5
    |
316 | use tokio_net::udp;
    |     ^^^^^^^^^^^^^^ no `udp` in the root

error: aborting due to 2 previous errors

It seems to be related to the release of tokio 0.2.0. Yesterday it was building fine.

Originally created by @ebroto on GitHub (Nov 26, 2019). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/931 First of all, thanks for these awesome crates! While trying to build the resolver lib as a dependency, I'm getting the following error: ``` Compiling trust-dns-proto v0.18.0-alpha.1 error[E0432]: unresolved import `tokio_net::tcp` --> /home/ebroto/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-proto-0.18.0-alpha.1/src/tcp/tcp_client_stream.rs:128:16 | 128 | use tokio_net::tcp::TcpStream as TokioTcpStream; | ^^^ could not find `tcp` in `tokio_net` error[E0432]: unresolved import `tokio_net::udp` --> /home/ebroto/.cargo/registry/src/github.com-1ecc6299db9ec823/trust-dns-proto-0.18.0-alpha.1/src/udp/udp_stream.rs:316:5 | 316 | use tokio_net::udp; | ^^^^^^^^^^^^^^ no `udp` in the root error: aborting due to 2 previous errors ``` It seems to be related to the release of tokio 0.2.0. Yesterday it was building fine.
kerem 2026-03-15 23:12:53 +03:00
  • closed this issue
  • added the
    bug
    tools
    labels
Author
Owner

@bluejekyll commented on GitHub (Nov 26, 2019):

Yes, I have a local branch I'm working on right now for this.

<!-- gh-comment-id:558840655 --> @bluejekyll commented on GitHub (Nov 26, 2019): Yes, I have a local branch I'm working on right now for this.
Author
Owner

@bluejekyll commented on GitHub (Nov 26, 2019):

There are a lot of changes since the last alpha... btw, this might take me a little bit.

<!-- gh-comment-id:558847549 --> @bluejekyll commented on GitHub (Nov 26, 2019): There are a lot of changes since the last alpha... btw, this might take me a little bit.
Author
Owner

@bluejekyll commented on GitHub (Nov 26, 2019):

waiting on this to be merged and released, it's blocking this change: https://github.com/tokio-rs/tokio/pull/1826

<!-- gh-comment-id:558856434 --> @bluejekyll commented on GitHub (Nov 26, 2019): waiting on this to be merged and released, it's blocking this change: https://github.com/tokio-rs/tokio/pull/1826
Author
Owner

@soyflourbread commented on GitHub (Nov 27, 2019):

It is already merged BTW

<!-- gh-comment-id:558942349 --> @soyflourbread commented on GitHub (Nov 27, 2019): It is already merged BTW
Author
Owner

@bluejekyll commented on GitHub (Nov 27, 2019):

thanks, tokio 0.2.1 was just published. I'll have master up to date soon, and then can publish 0.18.0-alpha.2 as well.

<!-- gh-comment-id:558945957 --> @bluejekyll commented on GitHub (Nov 27, 2019): thanks, tokio 0.2.1 was just published. I'll have master up to date soon, and then can publish 0.18.0-alpha.2 as well.
Author
Owner

@bluejekyll commented on GitHub (Nov 27, 2019):

this is taking a little longer than anticipated. tokio change a few things that have broken different components of the system.

<!-- gh-comment-id:558955275 --> @bluejekyll commented on GitHub (Nov 27, 2019): this is taking a little longer than anticipated. tokio change a few things that have broken different components of the system.
Author
Owner

@bluejekyll commented on GitHub (Nov 27, 2019):

Ok, #932 should work for most cases, but before it can be merged with need tokio-rustls to be updated (needed for dns-over-tls with rustls and dns-over-https)

<!-- gh-comment-id:558976048 --> @bluejekyll commented on GitHub (Nov 27, 2019): Ok, #932 should work for most cases, but before it can be merged with need `tokio-rustls` to be updated (needed for dns-over-tls with rustls and dns-over-https)
Author
Owner

@ebroto commented on GitHub (Dec 6, 2019):

Thanks for all the work!

<!-- gh-comment-id:562755958 --> @ebroto commented on GitHub (Dec 6, 2019): Thanks for all the work!
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#569
No description provided.