chore(deps): update rust crate socket2 to 0.6 #152

Open
noplife wants to merge 1 commit from renovate/socket2-0.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
socket2 dev-dependencies minor 0.50.6

Release Notes

rust-lang/socket2 (socket2)

v0.6.5

  • Add support for Emscripten (wasm32)
    (#​660).
  • Add support for NuttX
    (#​663).
  • Enable Socket::(set_)tos_v4 on illumos
    (#​662).

v0.6.4

  • Implement Send for MsgHdr(Mut)
    (#​650).
  • Add support for horizonOS/n3ds
    (#​653).
  • Switch QNX 8.0 and 7.1 to use TCP_KEEPIDLE instead of TCP_KEEPALIVE
    (#​654).
  • Fixed an issue on Windows where for Socket::only_v6 sometimes booleans are 1
    byte other times it's 4 bytes
    (#​655).

v0.6.3

Compare Source

  • Added support for wasm32-wasip2.
  • Added Socket::(set_)ip_transparent_v6.
  • Added Socket::set_tcp_ack_frequency.
  • Support windows-sys v0.61 in addition to v0.60.

POTENTIALLY BREAKING The MSRV of windows-sys v0.61 is 1.71. To use socket2
with its MSRV of 1.70, please downgrade windows-sys to v0.60.x. This can be done
using: cargo update windows-sys --precise 0.60.2

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: (UTC)

  • 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 has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [socket2](https://github.com/rust-lang/socket2) | dev-dependencies | minor | `0.5` → `0.6` | --- ### Release Notes <details> <summary>rust-lang/socket2 (socket2)</summary> ### [`v0.6.5`](https://github.com/rust-lang/socket2/blob/HEAD/CHANGELOG.md#065) - Add support for Emscripten (wasm32) ([#&#8203;660](https://github.com/rust-lang/socket2/pull/660)). - Add support for NuttX ([#&#8203;663](https://github.com/rust-lang/socket2/pull/663)). - Enable `Socket::(set_)tos_v4` on illumos ([#&#8203;662](https://github.com/rust-lang/socket2/pull/662)). ### [`v0.6.4`](https://github.com/rust-lang/socket2/blob/HEAD/CHANGELOG.md#064) - Implement Send for `MsgHdr`(`Mut`) ([#&#8203;650](https://github.com/rust-lang/socket2/pull/650)). - Add support for horizonOS/n3ds ([#&#8203;653](https://github.com/rust-lang/socket2/pull/653)). - Switch QNX 8.0 and 7.1 to use `TCP_KEEPIDLE` instead of `TCP_KEEPALIVE` ([#&#8203;654](https://github.com/rust-lang/socket2/pull/654)). - Fixed an issue on Windows where for `Socket::only_v6` sometimes booleans are 1 byte other times it's 4 bytes ([#&#8203;655](https://github.com/rust-lang/socket2/pull/655)). ### [`v0.6.3`](https://github.com/rust-lang/socket2/blob/HEAD/CHANGELOG.md#063) [Compare Source](https://github.com/rust-lang/socket2/compare/v0.6.2...v0.6.3) - Added support for wasm32-wasip2. - Added `Socket::(set_)ip_transparent_v6`. - Added `Socket::set_tcp_ack_frequency`. - Support windows-sys v0.61 in addition to v0.60. **POTENTIALLY BREAKING** The MSRV of windows-sys v0.61 is 1.71. To use socket2 with its MSRV of 1.70, please downgrade windows-sys to v0.60.x. This can be done using: `cargo update windows-sys --precise 0.60.2` ### [`v0.6.2`](https://github.com/rust-lang/socket2/blob/HEAD/CHANGELOG.md#062) [Compare Source](https://github.com/rust-lang/socket2/compare/v0.6.1...v0.6.2) - `MsgHdr` and `MsgHdrMut` are marked as transparent meaning both have the same layout as `msghdr` on Unix and `WSAMSG` on Windows ([#&#8203;635](https://github.com/rust-lang/socket2/pull/635)). - Don't set `SO_NOSIGPIPE` when accepting sockets, this is inherited from the parent socket ([#&#8203;632](https://github.com/rust-lang/socket2/pull/632)). - Fixes `Socket::tcp_notsent_lowat` by using the correct argument type ([#&#8203;622](https://github.com/rust-lang/socket2/pull/622)). ### [`v0.6.1`](https://github.com/rust-lang/socket2/blob/HEAD/CHANGELOG.md#061) [Compare Source](https://github.com/rust-lang/socket2/compare/v0.6.0...v0.6.1) #### Added - Added support for Windows Registered I/O (RIO) ([#&#8203;604](https://github.com/rust-lang/socket2/pull/604)). - Added support for `TCP_NOTSENT_LOWAT` on Linux via `Socket::(set_)tcp_notsent_lowat` ([#&#8203;611](https://github.com/rust-lang/socket2/pull/611)). - Added support for `SO_BUSY_POLL` on Linux via `Socket::set_busy_poll` ([#&#8203;607](https://github.com/rust-lang/socket2/pull/607)). - `SockFilter::new` is now a const function ([#&#8203;609](https://github.com/rust-lang/socket2/pull/609)). #### Changed - Updated the windows-sys dependency to version 0.60 ([#&#8203;605](https://github.com/rust-lang/socket2/pull/605)). ### [`v0.6.0`](https://github.com/rust-lang/socket2/blob/HEAD/CHANGELOG.md#060) #### 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` ([#&#8203;592](https://github.com/rust-lang/socket2/pull/592)). - Renamed `Socket::freebind` to `freebind_v4` ([#&#8203;592](https://github.com/rust-lang/socket2/pull/592)). - Renamed `Socket::original_dst` to `original_dst_v4` ([#&#8203;592](https://github.com/rust-lang/socket2/pull/592)). - Renamed `Socket::original_dst_ipv6` to `original_dst_v6` ([#&#8203;592](https://github.com/rust-lang/socket2/pull/592)). - Bump MSRV to 1.70 ([#&#8203;597](https://github.com/rust-lang/socket2/pull/597)). - Use `c_int` from `std::ffi` instead of from libc ([#&#8203;599](https://github.com/rust-lang/socket2/pull/599), [#&#8203;595](https://github.com/rust-lang/socket2/pull/595)). - `SockAddr`'s methods now accept/return `SockAddrStorage` instead of `sockaddr_storage`/`SOCKADDR_STORAGE` ([#&#8203;576](https://github.com/rust-lang/socket2/pull/576)): - `new` - `try_init` - `as_ptr` - `as_storage` - Add `SockFilter`, wrapper around `libc::sock_filter`, argument to `Socket::attach_filter` ([#&#8203;581](https://github.com/rust-lang/socket2/pull/581)). - Various renames of TCP methods on `Socket` ([#&#8203;592](https://github.com/rust-lang/socket2/pull/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` ([#&#8203;588](https://github.com/rust-lang/socket2/pull/588)). - Added TCP retries on Windows ([#&#8203;557](https://github.com/rust-lang/socket2/pull/557)). - Added `SockAddrStorage`, wrapper around `sockaddr_storage`/`SOCKADDR_STORAGE` for usage with `SockAddr` (instead of the types from libc/windows-sys) ([#&#8203;576](https://github.com/rust-lang/socket2/pull/576)). - Implemented `Socket::bind_device_by_index_{v4,v6}` on Android and Linux ([#&#8203;572](https://github.com/rust-lang/socket2/pull/572)). - Implemented `Copy` and `Clone` for `InterfaceIndexOrAddress` ([#&#8203;571](https://github.com/rust-lang/socket2/pull/571)). - Updated to Windows-sys v0.59 ([#&#8203;579](https://github.com/rust-lang/socket2/pull/579)). - We now use `OwnedFd`/`OwnedSocket` internally for `Socket` ([#&#8203;600](https://github.com/rust-lang/socket2/pull/600)). </details> --- ### Configuration 📅 **Schedule**: (UTC) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjI4MS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
chore(deps): update rust crate socket2 to 0.6
Some checks failed
CI / shear (pull_request) Successful in 9m34s
CI / deny (pull_request) Successful in 16m47s
CI / build-test (pull_request) Successful in 27m54s
Coverage / coverage (pull_request) Failing after 29m46s
Integration (privileged) / bench-smoke (pull_request) Successful in 2m17s
Integration (privileged) / device-tests (pull_request) Successful in 39s
Integration (privileged) / netem-comparison (pull_request) Failing after 7m32s
Integration (privileged) / netns-tunnel-test (pull_request) Failing after 9m1s
Integration (privileged) / dpi-undetectability (pull_request) Failing after 8m10s
ca05d75e51
Author
Collaborator

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

### Edited/Blocked Notification Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠️ **Warning**: custom changes will be lost.
Some checks failed
CI / shear (pull_request) Successful in 9m34s
CI / deny (pull_request) Successful in 16m47s
CI / build-test (pull_request) Successful in 27m54s
Coverage / coverage (pull_request) Failing after 29m46s
Integration (privileged) / bench-smoke (pull_request) Successful in 2m17s
Integration (privileged) / device-tests (pull_request) Successful in 39s
Integration (privileged) / netem-comparison (pull_request) Failing after 7m32s
Integration (privileged) / netns-tunnel-test (pull_request) Failing after 9m1s
Integration (privileged) / dpi-undetectability (pull_request) Failing after 8m10s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/socket2-0.x:renovate/socket2-0.x
git switch renovate/socket2-0.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/socket2-0.x
git switch renovate/socket2-0.x
git rebase main
git switch main
git merge --ff-only renovate/socket2-0.x
git switch renovate/socket2-0.x
git rebase main
git switch main
git merge --no-ff renovate/socket2-0.x
git switch main
git merge --squash renovate/socket2-0.x
git switch main
git merge --ff-only renovate/socket2-0.x
git switch main
git merge renovate/socket2-0.x
git push origin main
Sign in to join this conversation.
No description provided.