Skip to main content

Crate use_bzip2

Crate use_bzip2 

Source
Expand description

§use-bzip2

Bzip2 labels, extensions, and option metadata.

This crate is part of the use-archive facade workspace. It describes bzip2-related labels and options only. It does not compress, decompress, read bzip2 streams, or write bzip2 streams.

§Example

use use_bzip2::{Bzip2Level, Bzip2Profile, is_bzip2_filename};

assert!(is_bzip2_filename("release.tar.bz2"));
assert_eq!(Bzip2Level::Best.as_str(), "best");
assert_eq!(Bzip2Profile::Compatibility.as_str(), "compatibility");

Bzip2 labels and option metadata for RustUse.

Enums§

Bzip2Extension
Bzip2 extension labels.
Bzip2Level
Bzip2 compression level labels.
Bzip2Profile
High-level bzip2 usage profile.

Constants§

BZIP2_EXTENSION
Common bzip2 file extension.
BZIP2_EXTENSIONS
Common bzip2-related extensions.
TAR_BZIP2_EXTENSION
Common bzip2-compressed tar extension.
TBZ2_EXTENSION
Common abbreviated bzip2-compressed tar extension.
TBZ_EXTENSION
Common abbreviated bzip2-compressed tar extension.

Functions§

is_bzip2_extension
Returns whether extension is a known bzip2 extension label.
is_bzip2_filename
Returns whether name has a known bzip2 filename encoding.