Created
March 6, 2021 15:58
-
-
Save BillBarnhill/033c17179a9145030166b21428218183 to your computer and use it in GitHub Desktop.
Cargo.toml producing mio error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "xdaytime" | |
version = "0.1.0" | |
edition = "2018" | |
[features] | |
default = ["os-poll", "os-ext", "net"] | |
os-poll = [] | |
os-ext = ["os-poll"] | |
net = [] | |
[dependencies] | |
mio = "0.7.9" | |
# Unfortunately the above Cargo.toml results in an error in my main.rs at | |
# use mio::net::UdpSocket; | |
# The error is | |
# error[E0432]: unresolved import `mio::net` | |
# --> src\main.rs:1:10 | |
# | | |
# 1 | use mio::net::UdpSocket; | |
# | ^^^ could not find `net` in `mio` | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment