rustix breaking changes
Updated December 4, 2026
On this page
Latest version 1.1.6, released October 27, 2026. Source repository
Its 0.38.0 release requires Rust 1.63 or later. Rust end of life dates.
- From 0.38.0 to 1.0.0: 136 breaking changes in 1 version.
- From 0.32.0 to 1.0.0: 345 breaking changes in 4 versions.
rustix 1.0.0 breaking changes
- Signature changed
fgetxattr
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
flistxattr
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
getxattr
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
lgetxattr
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
listxattr
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
llistxattr
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
port.getn
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
read
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
readlinkat_raw
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. github.com - Signature changed
rustix::event::epoll::add
Was fn add(epoll: impl AsFd, source: impl AsFd, data: epoll::EventData, event_flags: epoll::EventFlags) -> io::Result<()>; now fn add<EpollFd: AsFd, SourceFd: AsFd>(epoll: EpollFd, source: SourceFd, data: epoll::EventData, event_flags... crates.io - Signature changed
rustix::event::epoll::delete
Was fn delete(epoll: impl AsFd, source: impl AsFd) -> io::Result<()>; now fn delete<EpollFd: AsFd, SourceFd: AsFd>(epoll: EpollFd, source: SourceFd) -> io::Result<()>. crates.io - Signature changed
rustix::event::epoll::modify
Was fn modify(epoll: impl AsFd, source: impl AsFd, data: epoll::EventData, event_flags: epoll::EventFlags) -> io::Result<()>; now fn modify<EpollFd: AsFd, SourceFd: AsFd>(epoll: EpollFd, source: SourceFd, data: epoll::EventData... crates.io - Signature changed
rustix::event::epoll::wait
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. crates.io - Signature changed
rustix::event::kqueue::Event::new
Was fn new(filter: EventFilter, flags: EventFlags, udata: isize) -> Event; now fn new(filter: EventFilter, flags: EventFlags, udata: *mut c::c_void) -> Event. crates.io - Signature changed
rustix::event::kqueue::Event::udata
Was fn udata(&self) -> isize; now fn udata(&self) -> *mut c::c_void. crates.io - Signature changed
rustix::event::kqueue::kevent
Functions now take the new Buffer trait for their data buffers, so callers may need to update code. crates.io - Signature changed
rustix::event::Nsecs
Was type Nsecs = c::c_long; now type Nsecs = ffi::c_long. crates.io - Signature changed
rustix::event::poll
Was fn poll(fds: &mut [PollFd<'_>], timeout: i32) -> io::Result<usize>; now fn poll(fds: &mut [PollFd<'_>], timeout: Option<&Timespec>) -> io::Result<usize>. crates.io - Signature changed
rustix::event::port::Event::userdata
Was fn userdata(&self) -> *mut c::c_void; now fn userdata(&self) -> *mut ffi::c_void. crates.io - Signature changed
rustix::io_uring::buf_ring_bufs_struct::bufs
Was bufs: sys::__IncompleteArrayField<io_uring_buf>; now bufs: IncompleteArrayField<io_uring_buf>. crates.io - Signature changed
rustix::io_uring::c_char
Was type c_char = i8; now pub use crate::ffi::c_char. crates.io - Signature changed
rustix::io_uring::io_uring_buf_reg::ring_addr
Was ring_addr: u64; now ring_addr: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_buf::addr
Was addr: u64; now addr: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_cqe::big_cqe
Was big_cqe: sys::__IncompleteArrayField<u64>; now big_cqe: IncompleteArrayField<u64>. crates.io - Signature changed
rustix::io_uring::io_uring_enter
Was unsafe fn io_uring_enter<Fd: AsFd>(fd: Fd, to_submit: u32, min_complete: u32, flags: IoringEnterFlags, arg: *const c_void, size: usize) -> io::Result<u32>; now unsafe fn io_uring_enter<Fd: AsFd>(fd: Fd, to_submit: u32, min_complete... crates.io - Signature changed
rustix::io_uring::io_uring_files_update::fds
Was fds: u64; now fds: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_getevents_arg::sigmask
Was sigmask: u64; now sigmask: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_getevents_arg::ts
Was ts: u64; now ts: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_params::wq_fd
Was wq_fd: u32; now wq_fd: RawFd. crates.io - Signature changed
rustix::io_uring::io_uring_probe::ops
Was ops: sys::__IncompleteArrayField<io_uring_probe_op>; now ops: IncompleteArrayField<io_uring_probe_op>. crates.io - Signature changed
rustix::io_uring::io_uring_recvmsg_out::namelen
Was namelen: u32; now namelen: SocketAddrLen. crates.io - Signature changed
rustix::io_uring::io_uring_rsrc_register::data
Was data: u64; now data: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_rsrc_register::tags
Was tags: u64; now tags: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_rsrc_update::data
Was data: u64; now data: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_rsrc_update2::data
Was data: u64; now data: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_rsrc_update2::tags
Was tags: u64; now tags: io_uring_ptr. crates.io - Signature changed
rustix::io_uring::io_uring_setup
Was fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result<OwnedFd>; now unsafe fn io_uring_setup(entries: u32, params: &mut io_uring_params) -> io::Result<OwnedFd>. crates.io - Signature changed
rustix::io_uring::io_uring_sync_cancel_reg::addr
Was addr: u64; now addr: io_uring_user_data. crates.io - Signature changed
rustix::io_uring::io_uring_sync_cancel_reg::pad
Was pad: [u64; 4]; now pad: [u8; 7]. crates.io - Signature changed
rustix::io_uring::IoringMsgringCmds::Data
Was Data = sys::IORING_MSG_DATA as _; now Data = sys::io_uring_msg_ring_flags::IORING_MSG_DATA as _. crates.io - Signature changed
rustix::io_uring::IoringMsgringCmds::SendFd
Was SendFd = sys::IORING_MSG_SEND_FD as _; now SendFd = sys::io_uring_msg_ring_flags::IORING_MSG_SEND_FD as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterBuffers
Was RegisterBuffers = sys::IORING_REGISTER_BUFFERS as _; now RegisterBuffers = sys::io_uring_register_op::IORING_REGISTER_BUFFERS as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterBuffers2
Was RegisterBuffers2 = sys::IORING_REGISTER_BUFFERS2 as _; now RegisterBuffers2 = sys::io_uring_register_op::IORING_REGISTER_BUFFERS2 as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterBuffersUpdate
Was RegisterBuffersUpdate = sys::IORING_REGISTER_BUFFERS_UPDATE as _; now RegisterBuffersUpdate = sys::io_uring_register_op::IORING_REGISTER_BUFFERS_UPDATE as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterEnableRings
Was RegisterEnableRings = sys::IORING_REGISTER_ENABLE_RINGS as _; now RegisterEnableRings = sys::io_uring_register_op::IORING_REGISTER_ENABLE_RINGS as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterEventfd
Was RegisterEventfd = sys::IORING_REGISTER_EVENTFD as _; now RegisterEventfd = sys::io_uring_register_op::IORING_REGISTER_EVENTFD as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterEventfdAsync
Was RegisterEventfdAsync = sys::IORING_REGISTER_EVENTFD_ASYNC as _; now RegisterEventfdAsync = sys::io_uring_register_op::IORING_REGISTER_EVENTFD_ASYNC as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterFileAllocRange
Was RegisterFileAllocRange = sys::IORING_REGISTER_FILE_ALLOC_RANGE as _; now RegisterFileAllocRange = sys::io_uring_register_op::IORING_REGISTER_FILE_ALLOC_RANGE as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterFiles
Was RegisterFiles = sys::IORING_REGISTER_FILES as _; now RegisterFiles = sys::io_uring_register_op::IORING_REGISTER_FILES as _. crates.io - Signature changed
rustix::io_uring::IoringRegisterOp::RegisterFiles2
Was RegisterFiles2 = sys::IORING_REGISTER_FILES2 as _; now RegisterFiles2 = sys::io_uring_register_op::IORING_REGISTER_FILES2 as _. crates.io
And 86 more in this version. Sign up to see every change
rustix 0.38.0 breaking changes
- Removed
CBAUD
Speed handling moved to Termios methods; no direct replacement is named. github.com - Removed
cfsetispeed
Use the set_input_speed method on Termios instead. github.com - Removed
cfsetospeed
Use the set_output_speed method on Termios instead. github.com - Removed
cfsetspeed
Use the set_speed method on Termios instead. github.com - Removed
CIBAUD
Speed handling moved to Termios methods; no direct replacement is named. github.com - Removed
io_uring_cqe
io_uring_cqe no longer implements Copy and Clone; copies must be handled differently. github.com - Removed
Pid.from_raw_nonzero
Use Pid::from_raw_unchecked instead. github.com - Removed
Protocol.default
Replace Protocol::default() with None. github.com - Removed
tcgetattr2
Speed handling moved to Termios methods; no direct replacement is named. github.com - Removed
tcsetattr2
Speed handling moved to Termios methods; no direct replacement is named. github.com
And 45 more in this version. Sign up to see every change
rustix 0.37.0 breaking changes
- Renamed
Some Linux capabilities functions were renamed; the document does not list the new names. github.com - Renamed
io_uring.IoringRecvsendFlags
io_uring::IoringRecvsendFlags is now split into separate send and receive types; update code that uses it. github.com - Behavior changed
stdout
stdout and related functions are now safe in std mode, so calls that previously required unsafe may no longer need it. github.com - Signature changed
epoll
epoll no longer takes a context; update calls that passed one. github.com - Signature changed
fs.seek
fs::seek now takes rustix's SeekFrom rather than std::io::SeekFrom; convert arguments. github.com - Signature changed
rustix::fs::Access
Was pub use constants::Access; now pub use backend::fs::types::Access. crates.io - Signature changed
rustix::fs::AtFlags
Was pub use constants::AtFlags; now pub use backend::fs::types::AtFlags. crates.io - Signature changed
rustix::fs::CloneFlags
Was pub use constants::CloneFlags; now pub use backend::fs::types::CloneFlags. crates.io - Signature changed
rustix::fs::copy_file_range
The len argument of copy_file_range is now usize instead of u64; adjust callers. crates.io - Signature changed
rustix::fs::copyfile_state_t
Was pub use fcopyfile::copyfile_state_t; now pub use backend::fs::types::copyfile_state_t. crates.io
And 143 more in this version. Sign up to see every change
rustix 0.33.0 breaking changes
- Signature changed
rustix::fs::fcntl_get_seals
Was fn fcntl_get_seals<Fd: AsFd>(fd: &Fd) -> io::Result<u32>; now fn fcntl_get_seals<Fd: AsFd>(fd: &Fd) -> io::Result<SealFlags>. crates.io
rustix 0.32.0 breaking changes
- Signature changed
rustix::fs::futimens
Was fn futimens<Fd: AsFd>(fd: &Fd, times: &[Timespec; 2]) -> io::Result<()>; now fn futimens<Fd: AsFd>(fd: &Fd, times: &Timestamps) -> io::Result<()>. crates.io - Signature changed
rustix::fs::mknodat
Was fn mknodat<P: path::Arg, Fd: AsFd>(dirfd: &Fd, path: P, mode: Mode, dev: Dev) -> io::Result<()>; now fn mknodat<P: path::Arg, Fd: AsFd>(dirfd: &Fd, path: P, file_type: FileType, mode: Mode, dev: Dev) -> io::Result<()>. crates.io - Signature changed
rustix::fs::utimensat
Was fn utimensat<P: path::Arg, Fd: AsFd>(dirfd: &Fd, path: P, times: &[Timespec; 2], flags: AtFlags) -> io::Result<()>; now fn utimensat<P: path::Arg, Fd: AsFd>(dirfd: &Fd, path: P, times: &Timestamps, flags: AtFlags) -> io::Result<()>. crates.io - Signature changed
rustix::io::preadv
Was fn preadv<Fd: AsFd>(fd: &Fd, bufs: &[IoSliceMut<'_>], offset: u64) -> io::Result<usize>; now fn preadv<Fd: AsFd>(fd: &Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io::Result<usize>. crates.io - Signature changed
rustix::io::preadv2
Was fn preadv2<Fd: AsFd>(fd: &Fd, bufs: &[IoSliceMut<'_>], offset: u64, flags: ReadWriteFlags) -> io::Result<usize>; now fn preadv2<Fd: AsFd>(fd: &Fd, bufs: &mut [IoSliceMut<'_>], offset: u64, flags: ReadWriteFlags) -> io::Result<usize>. crates.io - Signature changed
rustix::io::readv
Was fn readv<Fd: AsFd>(fd: &Fd, bufs: &[IoSliceMut<'_>]) -> io::Result<usize>; now fn readv<Fd: AsFd>(fd: &Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize>. crates.io
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.