-
Notifications
You must be signed in to change notification settings - Fork 1
Update Rust crate nix to 0.30.0 #4219
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
Conversation
|
|
|
Reviewer's GuideThis pull request updates the File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This PR contains the following updates:
0.29.0
->0.30.0
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 becomes conflicted, 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.
Summary by Sourcery
Update the nix Rust crate from version 0.29.0 to 0.30.0 in dev dependencies for Unix targets
New Features:
Enhancements: