Skip to main content

Crate use_cab

Crate use_cab 

Source
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§

CabCompressionMethod
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 extension is a known CAB extension label.
is_cab_filename
Returns whether name has a known CAB filename encoding.