0.35.6
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 toio::Errno
.fs::Dir
no longer takes anOwnedFd
.fs::Dir::read_from
constructs aDir
without taking ownership of the passed-in fd, so users that needAsFd
should use a separateOwnedFd
to provide it.mmap
and related functions have moved torustix::mm
- Terminal-related ioctls have been renamed to their termios names and moved to
rustix::termios
. ZStr
andZString
have been replaced byCStr
andCString
.dup2
's second argument is now&mut OwnedFd
.- io-lifetimes'
as_filelike_view
no longer provides&mut
dereferences; to use withFile
I/O, do an extra&*
on the view. fchown
andchownat
now takeOption<Uid>
andOption<Gid>
instead of publicly special-casing -1.with_retrying
is renamed toretry_on_intr