Registry / async / tokio-uring

tokio-uring

JSON →
library0.5.0rscratesunverified

io-uring support for the Tokio asynchronous runtime.

# Cargo.toml [dependencies] tokio-uring = "0.5.0"
INSTALL
IMPORT
SIG · TOKIO-URING
T
tokio-uring
asyncrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

File
use tokio_uring::fs::File;

Open a file and read from it using io-uring.

use tokio_uring::fs::File; let file = File::open("test.txt").await.unwrap(); let buf = vec![0; 1024]; let (res, _) = file.read_at(buf, 0).await; println!("Read {} bytes", res.unwrap());
Debug
Known issues
gotchaRequires Linux kernel 5.10+ and io-uring support; not available on other platforms.
fix
Use only on Linux with appropriate kernel version.
affects: *
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
32
OpenAI (training)
1
Resources
tokio-uring — cargo add tokio-uring · libregistry