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§
- Bzip2
Extension - Bzip2 extension labels.
- Bzip2
Level - Bzip2 compression level labels.
- Bzip2
Profile - 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
extensionis a known bzip2 extension label. - is_
bzip2_ filename - Returns whether
namehas a known bzip2 filename encoding.