-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tokio v1.18.1 not compiling on Windows 10 #4662
Comments
I see this in CI as well. |
This is due to mio switching from winapi to windows-sys. In the mean time, you can fix it by adding the following dependency. winapi = { version = "0.3.9", features = ["std", "winsock2", "mswsock", "handleapi", "ws2ipdef", "ws2tcpip"] } or by downgrading to |
It worked after adding this dependency. Thanks |
This will be released shortly in #4666. |
Version
1.18.1
Platform
Windows 64-bit
Description
I was trying to follow actix web development tutorial on its official page : https://actix.rs/docs/getting-started/. Current actix-web version is 4, which uses rust version 1.54 or later. I had rust version 1.46 already installed, so as per instruction on this page i updated it using
rustup update
and now current version of rust on my system is 1.60.When I try to build the project, then it gives me compilation error like this:
After some searching about it, i found one suggestion that it could be due to cached crates, so i did
cargo clean
and then also I manually removed the whole registry folder inC:\Users\myuser\.cargo\registry
but still when building the project, its gives me same error.The text was updated successfully, but these errors were encountered: