-
Notifications
You must be signed in to change notification settings - Fork 247
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
Yank all 0.3
versions older than 0.3.16
#139
Comments
0.3
versions older than 0.2.16
0.3
versions older than 0.3.16
Done: https://crates.io/crates/socket2/versions. I'm leaving v0.1.0 and v0.2.0 although they might have the same problem (I haven't checked), but those aren't maintained any more. |
socket2 0.3.16 and below were yanked, so cannot build this crate with the current Cargo.lock. rust-lang/socket2#139
Sorry for the necromancy, but if I have a project that uses this 0.3.11 through several dependencies that are all dead, do you have any suggestions for just getting it to compile? I've tried switching the rust versions back to 1.4x.0 (around the time of this original issue) but it doesn't seem to help. Getting it to compile at least would let me migrate to newer versions of the dependencies a bit easier.
|
What happens if you try What crate has the code you quote the error from? That code is invalid since those two types (no longer) have the same memory layout. If you use |
@faern is entirely correct. v0.3.16 fixes this issue and is compatible with v0.3.x, while v0.4.x is not, so we don't want to yank that version. |
It bumped it to 0.3.19, That gets me to a very different looking error! Thank you!
I'm pretty sure this is mostly coming from the
socket2 0.3.11 is required via |
For anyone in the future who runs across this thread (also possible future me): to fix this new second issue right above this, the trick might be to set @faern thank you so much! I had tried manually editing the versions up earlier but I must have missed something. |
Due to #120. If the standard library ever do change the memory layout of
SocketAddr
, usage of this crate of versions before0.3.16
will have undefined behaviour and lead to segfaults. And even if the standard library never do change the layout of those types, those older versions of this crate still makes assumptions they should not.This is exactly what yanking is for. Marking a release as "should not be used". I think all versions of
socket2
from0.3.0
through0.3.15
should be yanked from crates.io.Related issues on other crates having the same problem: deprecrated/net2-rs#107, tokio-rs/mio#1412
The text was updated successfully, but these errors were encountered: