deko

A decoder that automatically detects compression format (gzip, bzip2, xz, zstd) via external crates. Includes an encoder for the same formats as well.
Introduction
deko is a library that offers AnyDecoder and AnyEcnoder structs
that can decompress/compress the data from/to a variaty formats via the corresponding crates.
The format is automatically detected via magic bytes — signatures at the start of the file.
Currently the following formats are supported:
Unused formats can be disabled via crate's features. By default all formats are enabled.
Examples
use Format;
use AnyDecoder;
use ;
use Read;
use Write;
let mut writer = new.unwrap;
writer.write_all.unwrap;
let compressed_data = writer.finish.unwrap;
let mut reader = new;
let mut string = Stringnew;
reader.read_to_string;
assert_eq!;