tar-framing
Low-level record framing for POSIX pax/ustar and GNU tar streams.
This crate is a component of astral-codec. Most users should use tar-codec to read or write archives.
Reading
logical::TarReader groups each member with its PAX or GNU extensions. To
list member paths, including paths set by those extensions:
use TarReader;
let mut archive = new;
while let Some = archive.next_frame.await?
To inspect individual 512-byte blocks, use stream::TarStream. It exposes
extension headers even when there is no following member. The final data frame
of a PAX extension includes its parsed records.
Both readers reject streams that mix pax and GNU headers. Use with_policy to
set extension size limits or allow additional numeric header formats.
Writing
The write module constructs pax member blocks in memory. The caller writes
them to the archive.
Benchmarking
cargo bench -p tar-framing --bench framing --locked
See CONTRIBUTING for CodSpeed and smoke-test commands.