Update Rust crate socket2 to 0.6 #522
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.5
->0.6
Release Notes
rust-lang/socket2 (socket2)
v0.6.0
Breaking changes
All IPv4 methods now have a
_v4
suffix, IPv6 uses_v6
. TCP methods have atcp_
prefix (looked better than a suffix).Furthermore we removed all types from external libraries (i.e. libc or
windows-sys) from the public API, allowing us to update those without breaking
the API.
Socket::freebind_ipv6
tofreebind_v6
https://github.com/rust-lang/socket2/pull/59292).
Socket::freebind
tofreebind_v4
https://github.com/rust-lang/socket2/pull/59292).
Socket::original_dst
tooriginal_dst_v4
https://github.com/rust-lang/socket2/pull/59292).
Socket::original_dst_ipv6
tooriginal_dst_v6
https://github.com/rust-lang/socket2/pull/59292).
https://github.com/rust-lang/socket2/pull/59797).
c_int
fromstd::ffi
instead of from libchttps://github.com/rust-lang/socket2/pull/59999https://github.com/rust-lang/socket2/pull/595/595).
SockAddr
's methods now accept/returnSockAddrStorage
instead ofsockaddr_storage
/SOCKADDR_STORAGE
https://github.com/rust-lang/socket2/pull/57676):
new
try_init
as_ptr
as_storage
SockFilter
, wrapper aroundlibc::sock_filter
, argument toSocket::attach_filter
https://github.com/rust-lang/socket2/pull/58181).
Socket
https://github.com/rust-lang/socket2/pull/59292):
keepalive_time
->tcp_keepalive_time
keepalive_interval
->tcp_keepalive_interval
keepalive_retries
->tcp_keepalive_retries
nodelay
->tcp_nodelay
set_nodelay
->tcp_set_nodelay
tcp_mss
->mss
tcp_set_mss
->set_mss
tcp_cork
->cork
tcp_set_cork
->set_cork
tcp_quickack
->quickack
tcp_set_quickack
->set_quickack
thin_linear_timeouts
->tcp_thin_linear_timeouts
.Non-breaking changes
Socket::(set_)priority
https://github.com/rust-lang/socket2/pull/58888).
https://github.com/rust-lang/socket2/pull/55757).
SockAddrStorage
, wrapper aroundsockaddr_storage
/SOCKADDR_STORAGE
for usage with
SockAddr
(instead of the types from libc/windows-sys)https://github.com/rust-lang/socket2/pull/57676).
Socket::bind_device_by_index_{v4,v6}
on Android and Linuxhttps://github.com/rust-lang/socket2/pull/57272).
Copy
andClone
forInterfaceIndexOrAddress
https://github.com/rust-lang/socket2/pull/57171).
https://github.com/rust-lang/socket2/pull/57979).
OwnedFd
/OwnedSocket
internally forSocket
https://github.com/rust-lang/socket2/pull/60000).
Configuration
📅 Schedule: Branch creation - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.