[GH-ISSUE #939] use resolver master branch with tokio v0.2 build error #572

Closed
opened 2026-03-15 23:15:11 +03:00 by kerem · 1 comment
Owner

Originally created by @cssivision on GitHub (Dec 2, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/939

Describe the bug

error[E0432]: unresolved import `tokio_net::tcp`
   --> /home/sivision/.cargo/git/checkouts/trust-dns-97a7602ad159d348/b3e7293/crates/proto/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/sivision/.cargo/git/checkouts/trust-dns-97a7602ad159d348/b3e7293/crates/proto/src/udp/udp_stream.rs:316:5
    |
316 | use tokio_net::udp;
    |     ^^^^^^^^^^^^^^ no `udp` in the root

To Reproduce
use with tokio v0.2

System:

  • OS: centos 7
  • Architecture: x86_64
  • rustc version: 1.39

Version:
Crate: resolver
Version: master branch

Additional context
#[tokio::main]

Originally created by @cssivision on GitHub (Dec 2, 2019). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/939 **Describe the bug** ``` error[E0432]: unresolved import `tokio_net::tcp` --> /home/sivision/.cargo/git/checkouts/trust-dns-97a7602ad159d348/b3e7293/crates/proto/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/sivision/.cargo/git/checkouts/trust-dns-97a7602ad159d348/b3e7293/crates/proto/src/udp/udp_stream.rs:316:5 | 316 | use tokio_net::udp; | ^^^^^^^^^^^^^^ no `udp` in the root ``` **To Reproduce** use with tokio v0.2 **System:** - OS: centos 7 - Architecture: x86_64 - rustc version: 1.39 **Version:** Crate: resolver Version: master branch **Additional context** #[tokio::main]
kerem 2026-03-15 23:15:11 +03:00
Author
Owner

@bluejekyll commented on GitHub (Dec 2, 2019):

Please see #932

<!-- gh-comment-id:560228448 --> @bluejekyll commented on GitHub (Dec 2, 2019): Please see #932
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#572
No description provided.