Skip to main content

Crate use_tar

Crate use_tar 

Source
Expand description

§use-tar

Tar entry labels and typeflag mappings.

This crate is part of the use-archive facade workspace. It provides tar-specific primitive labels only. It does not parse tar headers, read tar archives, write tar archives, or extract files.

§Example

use use_tar::TarEntryType;

assert_eq!(TarEntryType::from_typeflag(b'5'), TarEntryType::Directory);
assert_eq!(TarEntryType::Regular.typeflag(), Some(b'0'));

Tar entry labels and typeflag mappings for RustUse.

Enums§

TarEntryType
Tar entry type labels.

Constants§

TAR_EXTENSION
Common tar file extension.
TAR_GZIP_EXTENSION
Common gzip-compressed tar extension.
TAR_XZ_EXTENSION
Common xz-compressed tar extension.
TAR_ZSTD_EXTENSION
Common zstd-compressed tar extension.