Skip to content

0.35.6

Compare
Choose a tag to compare
@sunfishcode sunfishcode released this 15 Jun 23:40
· 617 commits to main since this release

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