36 curated breaking changes across major versions of socket2. Use this as a migration checklist before bumping dependencies.
Add `SockFilter`, wrapper around `libc::sock_filter`, argument to
`tcp_set_cork` -> `set_cork`
`tcp_quickack` -> `quickack`
`tcp_set_quickack` -> `set_quickack`
`thin_linear_timeouts` -> `tcp_thin_linear_timeouts`.
Get this data programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/breaking/cargo/socket2Use `c_int` from `std::ffi` instead of from libc
`SockAddr`'s methods now accept/return `SockAddrStorage` instead of
Bump MSRV to 1.70
`keepalive_time` -> `tcp_keepalive_time`
`keepalive_interval` -> `tcp_keepalive_interval`
`keepalive_retries` -> `tcp_keepalive_retries`
`nodelay` -> `tcp_nodelay`
`set_nodelay` -> `set_tcp_nodelay`
`tcp_mss` -> `mss`
`tcp_cork` -> `cork`
`tcp_set_mss` -> `set_mss`
Renamed `Socket::freebind_ipv6` to `freebind_v6`
Renamed `Socket::freebind` to `freebind_v4`
Renamed `Socket::original_dst` to `original_dst_v4`
Renamed `Socket::original_dst_ipv6` to `original_dst_v6`
Various renames of TCP methods on `Socket`
Reverted back to the `winapi` dependency as switch to `windows-sys` was a
Disable RECVTOS on OpenBSD
Derive Clone for SockAddr
Fixes cfg attributes for Fuchsia
`Socket::into_tcp_stream` => `TcpStream::from(socket)`.
`Socket::into_tcp_listener` => `TcpListener::from(socket)`.
`Socket::into_udp_socket` => `UdpSocket::from(socket)`.
`Socket::into_unix_stream` => `UnixStream::from(socket)`.
`Socket::into_unix_listener` => `UnixListener::from(socket)`.
`Socket::into_unix_datagram` => `UnixDatagram::from(socket)`.
**BREAKING:** Removed `SockAddr::from_raw_parts`, use `SockAddr::init` instead.
**BREAKING:** Removed `Socket::into_*` functions and replaced them with a `From`
Removed the `-rs` suffix from the repository name.
Remove `redox_syscall` depdency.
Removed `cfg-if` dependency.