Update rustix requirement from 0 to 1
Updates the requirements on rustix to permit the latest version.
Release notes
Sourced from rustix's releases.
1.0.0
This release introduces the
Buffertrait, which is used inread,pread,recv,recvfrom,getrandom,readlinkat_raw,epoll::wait,kevent,port::getn,getxattr,lgetxattr,fgetxattr,listxattr,llistxattr, andflistxattr, and adds support for reading data into uninitialized buffers, as well as safely reading data into the spare capacity ofVecs.This release also simplifies the way network addresses are handled. Instead of having separate functions with
_v4,_v6,_unix,_xdp, and now_netlinksuffixes, rustix now uses aSocketAddrArgtrait so that functions such asbind,connect,sendto, andsendmsg_addrcan accept any type of address, and are easier to extend to new address types in the future.And, this release simplifies the
ioctlAPI, replacing opcode wrapper types with const generics.This updates several APIs to add Linux 6.13 features, and raw linux-raw-sys types are no longer exposed in the public API, so it should be easier to stay up to date with new Linux releases.
And many more new features, bug fixes, and cleanups. See the CHANGES.md file for the full list of breaking changes.
Changelog
Sourced from rustix's changelog.
Changes from 0.38.x to 1.x
Silent behavior changes
rustix::pipe::fcntl_setpipe_sizenow returns the new size, which may be greater than the requested size.When a
&mut Vec<_>is passed torustix::event::epoll::wait,rustix::event::kqueue::kevent, orrustix::event::port::getn, these functions previously adjusted the length of theVecto the number of elements written, and now do not. A common alternative is to wrap the&mut Vec<_>usingspare_capacity, and then to clear theVecby iterating using.drain(..)after each call. For an example of usingspare_capacityin this way, see here.API changes
rustix::thread::FutexOperationandrustix::thread::futexare removed. Use the functions in therustix::thread::futexmodule instead.
rustix::process::waitpid's return type changed fromWaitStatusto(Pid, WaitStatus), to additionally return the pid of the child.
terminating_signaland other functions inrustix::process::WaitStatuschanged from returningu32to returningi32, for better compatibility with the newSignaltype andexit.The
SLAVEflag inrustix::mount::MountPropagationFlagsis renamed toDOWNSTREAM.
... (truncated)
Commits
0abc877chore: Release rustix version 1.0.0f26edabMiscellaneous documentation and debug output fixes. (#1390)7d6d3faAdd convenient is_ functions to FileType (#1388)62ce4dfDisable use-libc-auxv by default, and document cargo features (#1389)d7819fdTemporarily disable armv7-sony-vita-newlibeabihf in CI, as it gets build errors.1532193Fix typo in buffer.rs (#1386)a5accccUsei32for exit statuses too. (#1384)7cab925Don't build the clockid module on x86. (#1382)baf65b1Add more documentation aboutsetuidand friends. (#1383)9c522fdFix the size ofFdSetElementon 32-bit Windows. (#1381)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)