uring-fs-1.3.0 has been yanked.
uring-fs
Features:
- Truly asynchronous file operations using io-uring.
- Supports any async runtime.
- Linux only.
- Only depends on io_uring and libc.
Links
Example
let io = new?; // IoUring implements Send + Sync
let file = unsafe .await?;
// ^^^^^^ see IoUring docs for why this is unsafe
let mut buffer = ;
let bytes_read = unsafe .await?; // awaiting returns io::Result
See IoUring
documentation for more important infos and examples.
Note
Please note that the code for this library is not tested very well and might contain some subtle undefined behaviour. This library isn't very big and you can always verify and fork it yourself.