github bytecodealliance/rustix v0.35.6
0.35.6

latest releases: v0.38.40, v0.38.39, v0.38.38...
2 years ago

API changes include:

  • Most of the API is now behind feature flags. For example, to use rustix::fs, enable the "fs" feature.
  • io::Error is renamed to io::Errno.
  • fs::Dir no longer takes an OwnedFd. fs::Dir::read_from constructs a Dir without taking ownership of the passed-in fd, so users that need AsFd should use a separate OwnedFd to provide it.
  • mmap and related functions have moved to rustix::mm
  • Terminal-related ioctls have been renamed to their termios names and moved to rustix::termios.
  • ZStr and ZString have been replaced by CStr and CString.
  • dup2's second argument is now &mut OwnedFd.
  • io-lifetimes' as_filelike_view no longer provides &mut dereferences; to use with File I/O, do an extra &* on the view.
  • fchown and chownat now take Option<Uid> and Option<Gid> instead of publicly special-casing -1.
  • with_retrying is renamed to retry_on_intr

Don't miss a new rustix release

NewReleases is sending notifications on new releases.