Skip to content

Instantly share code, notes, and snippets.

@BillBarnhill
Created March 6, 2021 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BillBarnhill/033c17179a9145030166b21428218183 to your computer and use it in GitHub Desktop.
Save BillBarnhill/033c17179a9145030166b21428218183 to your computer and use it in GitHub Desktop.
Cargo.toml producing mio error
[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