Expand description
§use-cab
Microsoft Cabinet archive labels, compression method labels, and extension helpers.
This crate is part of the use-archive facade workspace. It exposes CAB-specific primitive labels only. It does not parse Cabinet headers, read CAB archives, write CAB archives, or extract files.
§Example
use use_cab::{CabCompressionMethod, CabFormat, is_cab_filename};
assert!(is_cab_filename("driver.cab"));
assert_eq!(CabFormat::Cabinet.as_str(), "cabinet");
assert_eq!(CabCompressionMethod::Lzx.as_str(), "lzx");Microsoft Cabinet archive labels and compression metadata for RustUse.
Enums§
- CabCompression
Method - CAB compression method labels.
- CabFormat
- Microsoft Cabinet format labels.
Constants§
- CAB_
EXTENSION - Common Microsoft Cabinet archive extension.
- CAB_
EXTENSIONS - Common CAB-related extensions.
Functions§
- is_
cab_ extension - Returns whether
extensionis a known CAB extension label. - is_
cab_ filename - Returns whether
namehas a known CAB filename encoding.