Skip to content

Update rustix requirement from 0 to 1#84

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/rustix-1
Closed

Update rustix requirement from 0 to 1#84
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/rustix-1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 7, 2025

Updates the requirements on rustix to permit the latest version.

Release notes

Sourced from rustix's releases.

1.0.0

This release introduces the Buffer trait, which is used in read, pread, recv, recvfrom, getrandom, readlinkat_raw, epoll::wait, kevent, port::getn, getxattr, lgetxattr, fgetxattr, listxattr, llistxattr, and flistxattr, and adds support for reading data into uninitialized buffers, as well as safely reading data into the spare capacity of Vecs.

This release also simplifies the way network addresses are handled. Instead of having separate functions with _v4, _v6, _unix, _xdp, and now _netlink suffixes, rustix now uses a SocketAddrArg trait so that functions such as bind, connect, sendto, and sendmsg_addr can accept any type of address, and are easier to extend to new address types in the future.

And, this release simplifies the ioctl API, 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_size now returns the new size, which may be greater than the requested size.

When a &mut Vec<_> is passed to rustix::event::epoll::wait, rustix::event::kqueue::kevent, or rustix::event::port::getn, these functions previously adjusted the length of the Vec to the number of elements written, and now do not. A common alternative is to wrap the &mut Vec<_> using spare_capacity, and then to clear the Vec by iterating using .drain(..) after each call. For an example of using spare_capacity in this way, see here.

API changes

rustix::thread::FutexOperation and rustix::thread::futex are removed. Use the functions in the rustix::thread::futex module instead.

rustix::process::waitpid's return type changed from WaitStatus to (Pid, WaitStatus), to additionally return the pid of the child.

terminating_signal and other functions in rustix::process::WaitStatus changed from returning u32 to returning i32, for better compatibility with the new Signal type and exit.

The SLAVE flag in rustix::mount::MountPropagationFlags is renamed to DOWNSTREAM.

... (truncated)

Commits
  • 0abc877 chore: Release rustix version 1.0.0
  • f26edab Miscellaneous documentation and debug output fixes. (#1390)
  • 7d6d3fa Add convenient is_ functions to FileType (#1388)
  • 62ce4df Disable use-libc-auxv by default, and document cargo features (#1389)
  • d7819fd Temporarily disable armv7-sony-vita-newlibeabihf in CI, as it gets build errors.
  • 1532193 Fix typo in buffer.rs (#1386)
  • a5acccc Use i32 for exit statuses too. (#1384)
  • 7cab925 Don't build the clockid module on x86. (#1382)
  • baf65b1 Add more documentation about setuid and friends. (#1383)
  • 9c522fd Fix the size of FdSetElement on 32-bit Windows. (#1381)
  • Additional commits viewable in compare view

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Updates the requirements on [rustix](https://github.com/bytecodealliance/rustix) to permit the latest version.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGES.md)
- [Commits](bytecodealliance/rustix@v0.0.0...v1.0.0)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@agourlay
Copy link
Copy Markdown
Member

#89

@agourlay agourlay closed this May 21, 2025
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 21, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/cargo/rustix-1 branch May 21, 2025 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant