Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 14, 2025

Bumps socket2 from 0.5.10 to 0.6.0.

Changelog

Sourced from socket2's changelog.

0.6.0

Breaking changes

All IPv4 methods now have a _v4 suffix, IPv6 uses _v6. TCP methods have a tcp_ 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.

  • Renamed Socket::freebind_ipv6 to freebind_v6 (rust-lang/socket2#592).
  • Renamed Socket::freebind to freebind_v4 (rust-lang/socket2#592).
  • Renamed Socket::original_dst to original_dst_v4 (rust-lang/socket2#592).
  • Renamed Socket::original_dst_ipv6 to original_dst_v6 (rust-lang/socket2#592).
  • Bump MSRV to 1.70 (rust-lang/socket2#597).
  • Use c_int from std::ffi instead of from libc (rust-lang/socket2#599, rust-lang/socket2#595).
  • SockAddr's methods now accept/return SockAddrStorage instead of sockaddr_storage/SOCKADDR_STORAGE (rust-lang/socket2#576):
    • new
    • try_init
    • as_ptr
    • as_storage
  • Add SockFilter, wrapper around libc::sock_filter, argument to Socket::attach_filter (rust-lang/socket2#581).
  • Various renames of TCP methods on Socket (rust-lang/socket2#592):
    • 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

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jul 14, 2025
@dependabot dependabot bot requested a review from a team as a code owner July 14, 2025 18:07
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jul 14, 2025
@olix0r
Copy link
Member

olix0r commented Jul 15, 2025

We probably want to:

  • acknowledge the duplicate dependency in deny.toml (i.e. allowing the old version until hyper-util takes the update...)
  • update our internal usage for the 0.6 apis

@dependabot dependabot bot force-pushed the dependabot/cargo/socket2-0.6.0 branch from 71f40d3 to 74e13fa Compare August 4, 2025 16:07
@cratelyn
Copy link
Member

cratelyn commented Aug 4, 2025

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 4, 2025

Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

Bumps [socket2](https://github.com/rust-lang/socket2) from 0.5.10 to 0.6.0.
- [Release notes](https://github.com/rust-lang/socket2/releases)
- [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/socket2/commits)

---
updated-dependencies:
- dependency-name: socket2
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/socket2-0.6.0 branch from 74e13fa to 556d91b Compare August 5, 2025 13:46
@cratelyn cratelyn self-assigned this Aug 5, 2025
@cratelyn
Copy link
Member

cratelyn commented Aug 5, 2025

promoting a comment here: hyperium/hyper-util#209 (comment) it looks like hyper-util will be slow to adopt the new socket2 release on account of a wide MSRV.

these have been renamed.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn merged commit 894d350 into main Aug 5, 2025
16 checks passed
@cratelyn cratelyn deleted the dependabot/cargo/socket2-0.6.0 branch August 5, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants