Skip to content

Conversation

@Hasan6979
Copy link
Collaborator

This PR does not contain any of my commits. It just aims to update the socket2 fork of NordSecurity with the upstream repo

pd0wm and others added 30 commits March 12, 2024 17:37
Fixes minor errors in comments and docs. Specifically, this commit
corrects "Futhermore" to "Furthermore" and adds a comma after uses of
"Furthermore" as an introductory phrase.
Not needed for TcpKeepalive.
Also, deprecate header_included() and set_header_included() in favor of
header_included_v4() and set_header_included_v4().
And expand the amount of targets we check.

Instead of getting the target setup twice, one for the cargo check run
and another for cargo doc, do it once and check both.
Currently don't compile, might be worth adding at some point.
Replaced by Socket::(bind_)device_by_index_v4.
Replaced by Socket::(set_)header_included_v4.
To indicate it an option for IPv4 sockets.
To indicate it an option for IPv4 sockets.
To indicate it an option for IPv4 sockets.
To indicate it an option for IPv4 sockets.
Make `x86_64-unknown-linux-gnu` the default target, as it's more feature rich.
Users may not realize that they can select their platform on docs.rs, so it's
better to show them more extensive documentation.

Don't pass `--cfg docsrs` to rustdoc for docs.rs builds, it's already passed by
docs.rs.

Generate documentation about supported platforms automatically from the `cfg`
attributes.
The lifetimes serve as documentation.
The `IP_BOUND_IF` socket option, which is wrapped by the
`Socket::bind_device_by_index_{v4,v6}` and
`Socket::device_index_{v4,v6}` is available on SunOS-like systems, such
as illumos and Solaris, as well as macOS-like systems. However, these
APIs are currently cfg-flagged to only be available on macOS-like
systems.

This commit changes the cfg attributes to also enable these APIs on
illumos and Solaris.

Fixes #560
kntyskw and others added 3 commits March 16, 2025 14:35
Instead of IP_HDRINCL in Socket:: set_header_included_v6.
The `IP_BOUND_IF` socket option, which is wrapped by the
`Socket::bind_device_by_index_{v4,v6}` and
`Socket::device_index_{v4,v6}` is available on SunOS-like systems, such
as illumos and Solaris, as well as macOS-like systems. However, these
APIs are currently cfg-flagged to only be available on macOS-like
systems.

This commit changes the cfg attributes to also enable these APIs on
illumos and Solaris.

Fixes #560
Backport of 5c1f3b0
@Hasan6979 Hasan6979 merged commit 1d5955c into NordSecurity:master May 15, 2025
42 checks passed
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.