Skip to content

Conversation

oxide-renovate[bot]
Copy link
Contributor

@oxide-renovate oxide-renovate bot commented Jul 7, 2025

This PR contains the following updates:

Package Type Update Change
socket2 workspace.dependencies minor 0.5 -> 0.6

Release Notes

rust-lang/socket2 (socket2)

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 - "after 8pm,before 6am" in timezone America/Los_Angeles, Automerge - "after 8pm,before 6am" in timezone America/Los_Angeles.

🚦 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 has been generated by Renovate Bot.

@oxide-renovate
Copy link
Contributor Author

oxide-renovate bot commented Jul 7, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --package [email protected] --precise 0.6.0
    Updating crates.io index
error: failed to select a version for the requirement `socket2 = "^0.5.1"`
candidate versions found which didn't match: 0.6.0
location searched: crates.io index
required by package `ipconfig v0.3.2`
    ... which satisfies dependency `ipconfig = "^0.3.0"` (locked to 0.3.2) of package `hickory-resolver v0.25.2`
    ... which satisfies dependency `hickory-resolver = "^0.25.2"` (locked to 0.25.2) of package `internal-dns-resolver v0.1.0 (https://github.com/oxidecomputer/omicron?branch=main#9f048cac)`
    ... which satisfies git dependency `internal-dns-resolver` (locked to 0.1.0) of package `oximeter-producer v0.1.0 (https://github.com/oxidecomputer/omicron?branch=main#9f048cac)`
    ... which satisfies git dependency `oximeter-producer` (locked to 0.1.0) of package `mgd v0.1.0 (/tmp/renovate/repos/github/oxidecomputer/maghemite/mgd)`

@oxide-renovate oxide-renovate bot force-pushed the renovate/socket2-0.x branch from 109655a to 934fda4 Compare July 17, 2025 03:30
@oxide-renovate oxide-renovate bot force-pushed the renovate/socket2-0.x branch from 934fda4 to e286041 Compare September 6, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants