-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
v0.14.21 broken build #3038
Comments
I am also getting this error, had to downgrade it to v0.14.20 since my project would not build with v0.14.21 |
|
Looks like it needs a more complex blob of cfgs: #[cfg(all(
feature = "all",
any(
target_os = "android",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "illumos",
target_os = "linux",
target_os = "netbsd",
target_vendor = "apple",
windows,
)
))] |
PR to fix this, if any wants to confirm it works on their platform: #3039 |
Published v0.14.22 with the fix. |
I am still getting this error with v0.14.22 on Windows 10 Server
|
Also still seeing the issue on macOS with 0.14.22:
|
Can you check what version of |
It was 0.4.1 for me. Adding this to my Cargo.toml does seem to resolve the issue:
|
Ok, so for most people that run into this, I imagine this should fix you: |
It doesn't. The version isn't the problem. Hyper is trying to use APIs that are only available when the "all" feature of socket2 is enabled. This also fixes the issue:
However, just updating to the latest socket2 does not help:
It appears to me that Hyper should have a |
Ah, interesting. I saw Tokio's |
I got the same error and I didn't depend directly on hyper. I got error when I was running
adding to Cargo.toml get rid of the error
|
v0.14.22 fails for us (dropshot) with a similar error. Is the problem what @ccbrown said, that hyper is missing a dependency on a socket2 feature? |
It looks like starting with Tokio v1.17, the I'll make sure the next 0.14.x release includes it explicitly. |
@seanmonstar true I am using tokio with "~1.14.1" that is forced by dependency that I use. |
Version
v0.14.21
Platform
MacOS and Linux
Description
Cannot build the newest hyper:
The text was updated successfully, but these errors were encountered: