tokio-rs/io-uring
tokio-rs/io-uring has 1,769 GitHub stars and 205 forks. GitHot measured 0 stars in 24 hours and +5 in 7 days. Last checked 2026-11-09 01:09 UTC. Last push 2026-09-07.
The `io_uring` library for Rust
Measured star growth
- in 24h
- 0
- in 7 days
- +5
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalLinux IO Uring
The low-level io_uring userspace interface for Rust.
Usage
To use io-uring crate, first add this to your Cargo.toml:
[dependencies]
io-uring = "0.7"
Next we can start using io-uring crate.
The following is quick introduction using Read for file.
use io_uring::{opcode, types, IoUring};
use std::os::unix::io::AsRawFd;
use std::{fs, io};
fn main() -> io::Result<()> {
let mut ring = IoUring::new(8)?;
let fd = fs::File::open("README.md")?;
let mut buf = vec![0; 1024];
let read_e = opcode::Read::new(types::Fd(fd.as_raw_fd()), buf.as_mut_ptr(), buf.len() as _)
.build()
.user_data(0x42);
// Note that the developer needs to ensure
// that the entry pushed into submission queue is valid (e.g. fd, buffer).
unsafe {
ring.submission()
.push(&read_e)
.expect("submission queue is full");
}
ring.submit_and_wait(1)?;
let cqe = ring.completion().next().expect("completion queue is empty");
assert_eq!(cqe.user_data(), 0x42);
assert!(cqe.result() >= 0, "read error: {}", cqe.result());
Ok(())
}
Note that opcode Read is only available after kernel 5.6.
If you use a kernel lower than 5.6, this example will fail.
Test and Benchmarks
You can run the test and benchmark of the library with the following commands.
$ cargo run --package io-uring-test
$ cargo bench --package io-uring-bench
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in io-uring by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,171 starspublic-apis/public-apis
A collective list of free APIs
497,378 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
444,756 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,222 stars