use-archive-format
Archive and compression format labels plus filename/extension detection.
This crate is part of the use-archive facade workspace. It detects common archive filename encodings such as .zip, .tar.gz, .tgz, .tar.xz, .tar.zst, .cpio.gz, .7z.001, .part1.rar, .warc.gz, and .mtree.gz. It does not inspect bytes, parse archive headers, extract files, or compress data.
Example
use ;
let encoding = from_extension;
assert_eq!;
assert_eq!;