-
Notifications
You must be signed in to change notification settings - Fork 726
Update Rust crate nix to 0.30 #2442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2442 +/- ##
=======================================
Coverage 95.96% 95.96%
=======================================
Files 94 94
Lines 22634 22634
=======================================
Hits 21721 21721
Misses 913 913 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
djc
approved these changes
Apr 29, 2025
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesThere are no significant wall-time differences Other differencesClick to expand
Additional informationCheckout details:
|
cpu
approved these changes
Apr 29, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.29
->0.30
Release Notes
nix-rust/nix (nix)
v0.30.0
Compare Source
Added
IPV6_PKTINFO
for BSDs/Linux/Android, alsoIPV6_RECVPKTINFO
for DragonFlyBSD(#2113)
fcntl
'sF_PREALLOCATE
constant for Apple targets.(#2393)
and support for DSCP (ToS / Traffic Class).
(#2425)
(nix::sys::socket::sockopt::Ipv6TClass) on Android/FreeBSD
(#2464)
SeekData
andSeekHole
toWhence
for hurd and apple targets(#2473)
From
trait implementation betweenSocketAddr
andSockaddr
,Sockaddr6
(#2474)posix_spawn
API(#2475)
(#2477)
F_RDADVISE
for Apple target(#2480)
F_RDAHEAD
for Apple target(#2482)
F_LOG2PHYS
andF_LOG2PHYS_EXT
for Apple target(#2483)
MAP_SHARED_VALIDATE
was added for all linux targets. &MAP_SYNC
was addedfor linux with the exclusion of mips architecures, and uclibc
(#2499)
getregs()
/getregset()
/setregset()
for Linux/musl/aarch64(#2502)
F_TRANSFEREXTENTS
constant for Apple targets(#2504)
MapFlags::MAP_STACK
insys::man
for netbsd(#2526)
libc::LOCAL_PEERTOKEN
ingetsockopt
.(#2529)
syslog
,openlog
,closelog
on allunix
.(#2537)
TCP_FUNCTION_BLK
sockopt, on FreeBSD.(#2539)
Into<OwnedFd>
forPtyMaster/Fanotify/Inotify/SignalFd/TimerFd
(#2548)
MremapFlags::MREMAP_DONTUNMAP
tosys::mman::mremap
for linux target.(#2555)
sockopt_impl!
to the public API. It's now possible for users todefine
their own sockopts without needing to make a PR to Nix.
(#2556)
TCP_FUNCTION_ALIAS
sockopt, on FreeBSD.(#2558)
sys::mman::MmapAdvise
MADV_PAGEOUT
,MADV_COLD
,MADV_WIPEONFORK
,MADV_KEEPONFORK
for Linux and Android targets(#2559)
Sctp
, as well asMSG_NOTIFICATION
for non-AndroidLinux targets. (#2562)
from_owned_fd
constructor toEventFd
(#2563)
sys::mman::MmapAdvise
MADV_POPULATE_READ
,MADV_POPULATE_WRITE
forLinux and Android targets
(#2565)
from_owned_fd
constructor toPtyMaster/Fanotify/Inotify/SignalFd/TimerFd
(#2566)
FcntlArg::F_READAHEAD
for FreeBSD target(#2569)
sockopt::LingerSec
for Apple targets(#2572)
sockopt::EsclBind
for solarish targets(#2573)
std::os::fd::AsRawFd
trait method fornix::sys::fanotify::Fanotify
struct(#2575)
setlogmask
on allunix
.(#2579)
ioctl
.(#2580)
sys::socket::SockProtocol::EthIp
,sys::socket::SockProtocol::EthIpv6
,sys::socket::SockProtocol::EthLoop
(#2581)
(#2599)
setsockopt
option for apple targets(#2603)
FilAttach
andFilDetach
to socket::sockopt for Illumos(#2611)
PeerPidfd
(SO_PEERPIDFD
) tosocket::sockopt
for Linux(#2620)
socket::sockopt::AttachReusePortCbpf
for Linux(#2621)
ptrace::syscall_info
for linux/glibc(#2627)
Changed
(#1936)
name
argument ofmemfd_create()
from&CStr
to<P: NixPath>(name: &P)
(#2431)fcntl.rs
anddir.rs
now use I/O-safe types.(#2434)
sys/stat
now adopts I/O safety.(#2439)
(#2440)
(#2443)
IpTos
has been renamed toIpv4Tos
, the old symbol isdeprecated since 0.30.0 (#2465)
EventFlag
toEvFlags
, andMemFdCreateFlag
toMFdFlags
(#2476)
nix::sys::socket::UnknownCmsg
public and more readable(#2520)
(#2524)
(#2582)
Fixed
(#2454)
(#2456)
ns
argument ofsys::prctl::set_timerslack()
should be of typec_ulong
(#2505)OSString
s returned bygetsockopt
.(#2557)
(#2587)
Removed
SigevNotify
is no longerPartialEq
,Eq
andHash
due to the useof
BorrowedFd
(#1936)EventFd::defuse()
is removed because it does nothing,EventFd::arm()
isalso removed for symmetry reasons.
(#2452)
Copy
trait fromPollFd
(#2631)
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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.