-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
(I actually wanted to try this out to fix #1 in the first place. I'm not sure if we want to do that, but since socket2 might eventually become the std impl, I though this could make sense?) This will oviously have to wait for 0.4 to actually be released |
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This will be blocked until the 0.4 release of socket2, but I'm in favor of this. (It is more actively maintained/developed than nb-connect and has been checked/tested on various platforms.) (The socket2 maintainer previously said that socket2 is not ready for production use, but that will probably improve in 0.4.) EDIT: marked this PR as draft as this is blocked until the 0.4 release of socket2. |
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
@taiki-e I guess downgrading to 0.3 could unblock this? Then we'll just be able to revert this to switch to 0.4 once released |
Looking at this pull it seems like it defeats the purpose of why this crate was created in the first place. Don't get me wrong, I understand why this pull was proposed but if we introduce |
@JayceFayne Thanks for the info. I didn't know why this crate was created. When I consider the following things, I think that it is better to depend on socket2 than maintain the partial fork of the old socket2 that contains unsafe code. (Even if socket2 contains a lot of unsafe code.)
@smol-rs/admins What do you think?
It makes sense. After merging this PR, I would like to replace the use of nb-connect with a direct dependency on socket2. |
And perhaps it'd make sense to mark nb-connect as deprecated in favour of socket2? |
I thought a simple wrapper crate might be useful because we sometimes have to write a lot of cfg when using socket2, but since there are very few direct users of this crate, deprecation seems to make sense. |
Now that socket2 is getting the attention it needed, this simplifies a lot the code, which just becomes a thin wrapper.
This also fixes #1 as a side-effect.