Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 5, 2025

This PR contains the following updates:

Package Type Update Change
socket2 dependencies minor 0.50.6

Release Notes

rust-lang/socket2 (socket2)

v0.6.2

Compare Source

  • MsgHdr and MsgHdrMut are marked as transparent meaning both have the same
    layout as msghdr on Unix and WSAMSG on Windows
    (#​635).
  • Don't set SO_NOSIGPIPE when accepting sockets, this is inherited from the
    parent socket (#​632).
  • Fixes Socket::tcp_notsent_lowat by using the correct argument type
    (#​622).

v0.6.1

Compare Source

Added

  • Added support for Windows Registered I/O (RIO)
    (#​604).
  • Added support for TCP_NOTSENT_LOWAT on Linux via Socket::(set_)tcp_notsent_lowat
    (#​611).
  • Added support for SO_BUSY_POLL on Linux via Socket::set_busy_poll
    (#​607).
  • SockFilter::new is now a const function
    (#​609).

Changed

  • Updated the windows-sys dependency to version 0.60
    (#​605).

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

  • Added Socket::(set_)priority
    (#​588).
  • Added TCP retries on Windows
    (#​557).
  • Added SockAddrStorage, wrapper around sockaddr_storage/SOCKADDR_STORAGE
    for usage with SockAddr (instead of the types from libc/windows-sys)
    (#​576).
  • Implemented Socket::bind_device_by_index_{v4,v6} on Android and Linux
    (#​572).
  • Implemented Copy and Clone for InterfaceIndexOrAddress
    (#​571).
  • Updated to Windows-sys v0.59
    (#​579).
  • We now use OwnedFd/OwnedSocket internally for Socket
    (#​600).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov
Copy link

codecov bot commented Jul 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.77%. Comparing base (b267ff8) to head (15dc239).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #62   +/-   ##
=======================================
  Coverage   48.77%   48.77%           
=======================================
  Files          16       16           
  Lines        2005     2005           
=======================================
  Hits          978      978           
  Misses       1027     1027           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants