---
title: "socket2 0.6.0 Breaking Changes on crates.io | Since.dev"
description: "What each socket2 release removed, renamed or changed: 21 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/socket2
last_updated: 2026-12-04
---

# socket2 breaking changes

socket2 0.6.0 (July 5, 2025) is its newest release with breaking changes, 21 of them. The first: Renamed Socket.freebind. Every breaking API change we have recorded in socket2 on crates.io: 21 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.6.5`, released July 13, 2026. [Source repository](https://github.com/rust-lang/socket2)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## socket2 0.6.0 breaking changes

socket2 0.6.0, released July 5, 2025: 21 breaking changes.

- **Renamed** `Socket.freebind`  

Rename calls to freebind_v4. The old name no longer exists. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.freebind_ipv6`  

Rename calls to freebind_v6. The old name no longer exists. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.keepalive_interval`  

Rename calls to the tcp\_-prefixed names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.keepalive_retries`  

Rename calls to the tcp\_-prefixed names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.keepalive_time`  

Rename calls to the tcp\_-prefixed names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.nodelay`  

Rename calls to the tcp\_-prefixed names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.original_dst`  

Rename calls to original_dst_v4. The old name no longer exists. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.original_dst_ipv6`  

Rename calls to original_dst_v6. The old name no longer exists. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.set_nodelay`  

Rename calls to the tcp\_-prefixed names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.tcp_cork`  

Rename calls to the new names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.tcp_mss`  

Rename calls to the new names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.tcp_quickack`  

Rename calls to the new names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.tcp_set_cork`  

Rename calls to the new names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.tcp_set_mss`  

Rename calls to the new names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.tcp_set_quickack`  

Rename calls to the new names. The old names no longer exist. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Renamed** `Socket.thin_linear_timeouts`  

Rename calls to the tcp\_-prefixed name. The old name no longer exists. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Signature changed** `Socket.attach_filter`  

Socket::attach_filter takes SockFilter, a wrapper around libc::sock_filter, instead of the libc type. [github.com](https://github.com/rust-lang/socket2/blob/v0.6.0/CHANGELOG.md)
- **Signature changed** `socket2::SockAddr::as_ptr`  

SockAddr::as_ptr now uses SockAddrStorage instead of sockaddr_storage. [crates.io](https://crates.io/crates/socket2/0.6.0)
- **Signature changed** `socket2::SockAddr::as_storage`  

SockAddr::as_storage now returns SockAddrStorage instead of sockaddr_storage. [crates.io](https://crates.io/crates/socket2/0.6.0)
- **Signature changed** `socket2::SockAddr::new`  

SockAddr::new now accepts and returns SockAddrStorage instead of sockaddr_storage. [crates.io](https://crates.io/crates/socket2/0.6.0)
- **Signature changed** `socket2::SockAddr::try_init`  

SockAddr::try_init now accepts and returns SockAddrStorage instead of sockaddr_storage. [crates.io](https://crates.io/crates/socket2/0.6.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
