socket2 breaking changes

cargo

36 curated breaking changes across major versions of socket2. Use this as a migration checklist before bumping dependencies.

36
changes
Breaking changes by transition
  • 0.5.10 \u2192 0.6.0api

    Add `SockFilter`, wrapper around `libc::sock_filter`, argument to

  • 0.5.10 \u2192 0.6.0breaking

    `tcp_set_cork` -> `set_cork`

  • 0.5.10 \u2192 0.6.0breaking

    `tcp_quickack` -> `quickack`

  • 0.5.10 \u2192 0.6.0breaking

    `tcp_set_quickack` -> `set_quickack`

  • 0.5.10 \u2192 0.6.0breaking

    `thin_linear_timeouts` -> `tcp_thin_linear_timeouts`.

  • 0.5.10 \u2192 0.6.0breaking

    Use `c_int` from `std::ffi` instead of from libc

  • 0.5.10 \u2192 0.6.0breaking

    `SockAddr`'s methods now accept/return `SockAddrStorage` instead of

  • 0.5.10 \u2192 0.6.0breaking

    Bump MSRV to 1.70

  • 0.5.10 \u2192 0.6.0breaking

    `keepalive_time` -> `tcp_keepalive_time`

  • 0.5.10 \u2192 0.6.0breaking

    `keepalive_interval` -> `tcp_keepalive_interval`

  • 0.5.10 \u2192 0.6.0breaking

    `keepalive_retries` -> `tcp_keepalive_retries`

  • 0.5.10 \u2192 0.6.0breaking

    `nodelay` -> `tcp_nodelay`

  • 0.5.10 \u2192 0.6.0breaking

    `set_nodelay` -> `set_tcp_nodelay`

  • 0.5.10 \u2192 0.6.0breaking

    `tcp_mss` -> `mss`

  • 0.5.10 \u2192 0.6.0breaking

    `tcp_cork` -> `cork`

  • 0.5.10 \u2192 0.6.0breaking

    `tcp_set_mss` -> `set_mss`

  • 0.5.10 \u2192 0.6.0renamed

    Renamed `Socket::freebind_ipv6` to `freebind_v6`

  • 0.5.10 \u2192 0.6.0renamed

    Renamed `Socket::freebind` to `freebind_v4`

  • 0.5.10 \u2192 0.6.0renamed

    Renamed `Socket::original_dst` to `original_dst_v4`

  • 0.5.10 \u2192 0.6.0renamed

    Renamed `Socket::original_dst_ipv6` to `original_dst_v6`

  • 0.5.10 \u2192 0.6.0renamed

    Various renames of TCP methods on `Socket`

  • 0.4.5 \u2192 0.4.6api

    Reverted back to the `winapi` dependency as switch to `windows-sys` was a

  • 0.4.5 \u2192 0.4.6breaking

    Disable RECVTOS on OpenBSD

  • 0.4.5 \u2192 0.4.6breaking

    Derive Clone for SockAddr

  • 0.4.5 \u2192 0.4.6breaking

    Fixes cfg attributes for Fuchsia

  • 0.3.16 \u2192 0.4.0breaking

    `Socket::into_tcp_stream` => `TcpStream::from(socket)`.

  • 0.3.16 \u2192 0.4.0breaking

    `Socket::into_tcp_listener` => `TcpListener::from(socket)`.

  • 0.3.16 \u2192 0.4.0breaking

    `Socket::into_udp_socket` => `UdpSocket::from(socket)`.

  • 0.3.16 \u2192 0.4.0breaking

    `Socket::into_unix_stream` => `UnixStream::from(socket)`.

  • 0.3.16 \u2192 0.4.0breaking

    `Socket::into_unix_listener` => `UnixListener::from(socket)`.

  • 0.3.16 \u2192 0.4.0breaking

    `Socket::into_unix_datagram` => `UnixDatagram::from(socket)`.

  • 0.3.16 \u2192 0.4.0removed

    **BREAKING:** Removed `SockAddr::from_raw_parts`, use `SockAddr::init` instead.

  • 0.3.16 \u2192 0.4.0removed

    **BREAKING:** Removed `Socket::into_*` functions and replaced them with a `From`

  • 0.3.16 \u2192 0.4.0removed

    Removed the `-rs` suffix from the repository name.

  • 0.3.16 \u2192 0.4.0removed

    Remove `redox_syscall` depdency.

  • 0.3.16 \u2192 0.4.0removed

    Removed `cfg-if` dependency.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/socket2
socket2 breaking changes — Cargo migration guide | DepScope