Skip to content

std::archive::tar

Status: unproven

Unix tar reader and writer (USTAR / PAX-aware decode).

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
TarEntry type TarEntry name + data + is_dir flag.
read fn read(data: Vec<u8>) -> Result<Vec<tar::TarEntry>, errors::Error> Reads all entries from a tar archive.
write fn write(entries: Vec<(String, Vec<u8>)>) -> Result<Vec<u8>, errors::Error> Builds a tar archive from (name, data) pairs.