Skip to content

unresolved import async_std::net with rcon-0.5.0 #21

@anatawa12

Description

@anatawa12
error[E0432]: unresolved import `async_std::net`
  --> /Users/anatawa12/.cargo/registry/src/github.com-1ecc6299db9ec823/rcon-0.5.0/src/lib.rs:14:16
   |
14 | use async_std::net::{TcpStream, ToSocketAddrs};
   |                ^^^ could not find `net` in `async_std`

error[E0432]: unresolved import `async_std::task`
  --> /Users/anatawa12/.cargo/registry/src/github.com-1ecc6299db9ec823/rcon-0.5.0/src/lib.rs:15:16
   |
15 | use async_std::task::sleep;
   |                ^^^^ could not find `task` in `async_std`

error[E0433]: failed to resolve: could not find `io` in `async_std`
  --> /Users/anatawa12/.cargo/registry/src/github.com-1ecc6299db9ec823/rcon-0.5.0/src/packet.rs:11:16
   |
11 | use async_std::io::{Read, ReadExt, Write, prelude::WriteExt};
   |                ^^ could not find `io` in `async_std`

error[E0432]: unresolved import `async_std::io`
  --> /Users/anatawa12/.cargo/registry/src/github.com-1ecc6299db9ec823/rcon-0.5.0/src/packet.rs:11:16
   |
11 | use async_std::io::{Read, ReadExt, Write, prelude::WriteExt};
   |                ^^ could not find `io` in `async_std`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `rcon`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Process finished with exit code 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions