Registry / async / seekable-async-file

seekable-async-file

JSON →
library0.15.0rscratesunverified

Async pread and pwrite with optional delayed sync and metrics.

# Cargo.toml [dependencies] seekable-async-file = "0.15.0"
INSTALL
IMPORT
SIG · SEEKABLE-ASYNC-FIL
S
seekable-async-file
asyncrustv0.15.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.

SeekableAsyncFile
use seekable_async_file::SeekableAsyncFile;

Opens a file and performs an async pread operation.

use seekable_async_file::SeekableAsyncFile; #[tokio::main] async fn main() -> std::io::Result<()> { let file = SeekableAsyncFile::open("example.txt").await?; let mut buf = vec![0u8; 1024]; let n = file.pread(&mut buf, 0).await?; println!("Read {} bytes", n); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like Tokio.
fix
Add tokio as a dependency and use #[tokio::main] or another runtime.
affects: >=0.1.0
Upgrade
Version history
0.15.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
Resources
seekable-async-file — cargo add seekable-async-file · libregistry