Registry / utility / async-tar

async-tar

JSON →
library0.6.0rscratesunverified

An async TAR file reader and writer, abstract over I/O without requiring full memory residency.

# Cargo.toml [dependencies] async-tar = "0.6.0"
INSTALL
IMPORT
SIG · ASYNC-TAR
A
async-tar
utilityrustv0.6.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.

Archive
use async_tar::Archive;

Reads entries from a TAR archive asynchronously.

use async_tar::Archive; use tokio::fs::File; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let file = File::open("archive.tar").await?; let mut archive = Archive::new(file); let mut entries = archive.entries()?; while let Some(entry) = entries.next().await { let entry = entry?; println!("Extracting: {}", entry.path()?.display()); } Ok(()) }
Debug
Known issues
gotchaRequires an async runtime like Tokio or async-std.
fix
Add tokio or async-std as a dependency and use the appropriate runtime.
affects: >=0.1.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
2
Meta
1
Amazon
1
Resources
async-tar — cargo add async-tar · libregistry