7 unstable releases

0.3.3 Sep 26, 2020
0.3.2 Sep 25, 2020
0.2.0 Dec 10, 2019
0.1.0 Nov 8, 2019
0.0.0-ringbahn.1 May 27, 2020

#754 in Asynchronous

Download history 1107/week @ 2023-08-01 1280/week @ 2023-08-08 932/week @ 2023-08-15 916/week @ 2023-08-22 996/week @ 2023-08-29 1113/week @ 2023-09-05 1163/week @ 2023-09-12 1210/week @ 2023-09-19 676/week @ 2023-09-26 976/week @ 2023-10-03 1249/week @ 2023-10-10 808/week @ 2023-10-17 1278/week @ 2023-10-24 1485/week @ 2023-10-31 1597/week @ 2023-11-07 1753/week @ 2023-11-14

6,306 downloads per month
Used in 5 crates (4 directly)


1.5K SLoC

Interface to Linux's io_uring interface

iou is a wrapper around the liburing library, which provides a high level interface to Linux's new io_uring interface. It is intended to be extensible and flexible for any use case of io_uring, while still resolving many of the basic safety issues on users' behalf.

The primary API of iou is the IoUring type and its components, the SubmissionQueue, CompletionQueue and Registrar. This provides a Rust-like and high level API that manages the io_uring for you.


Most of the APIs in iou are safe, and many of the safety issues in using io_uring are completely resolved. In particular, the liburing library which iou is based on correctly implements the atomics necessary to coordinate with the kernel across the io_uring interface. However, some key interfaces remain unsafe. In particular, preparing IO events to be submitted to the io_uring is not safe: users must ensure that the buffers and file descriptors are regarded as borrowed during the lifetime of the IO.

Kernel support

In order to use io_uring, the machine you are running your code on must have a kernel which supports that interface. The first version of io_uring was added in Linux 5.1, but it did not include all of the features supported by this library. Some features of this library may not work depending on which version of Linux you are using.


~46K SLoC