[Solved] tokio: no `UnixDatagramFramed` in the root

#1

I have used tokio-0.1.15 in my project, during the build I got the following error:

error[E0432]: unresolved import `tokio_uds::UnixDatagramFramed`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.1.15/src/net.rs:93:77
   |
93 |         ConnectFuture, Incoming, RecvDgram, SendDgram, UCred, UnixDatagram, UnixDatagramFramed,
   |                                                                             ^^^^^^^^^^^^^^^^^^ no `UnixDatagramFramed` in the root. Did you mean to use `UnixDatagram`?

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: Could not compile `tokio`.
warning: build failed, waiting for other jobs to finish...
error: build failed

cargo 1.32.0 (8610973aa 2019-01-02)
rustc 1.32.0 (9fda7c223 2019-01-16)
Linux 6b1910508b09 4.20.3-arch1-1-ARCH #1 SMP PREEMPT Wed Jan 16 22:38:58 UTC 2019 x86_64 GNU/Linux
Building inside debian-stretch docker container

#2

The problem has been addressed by removing target directory and Cargo.lock file

closed #3

This topic was automatically closed after 34 hours. New replies are no longer allowed.