#lz4 #gzip #detect #reader-writer #file-extension #write #auto-detect

detect-compression

Reader and Writer that auto-detect compresson algorithms

3 releases

0.1.2 Apr 26, 2020
0.1.1 Apr 25, 2020
0.1.0 Apr 25, 2020

#1631 in Encoding

MIT/Apache

11KB
196 lines

detect-compression

detect-compression at crates.io detect-compression at docs.rs

BufRead and Write detects compression algorithms from file extension.


lib.rs:

BufRead and Writer detects compression algorithms from file extension.

Supported formats:

  • Gzip (.gz) by flate2 crate
  • LZ4 (.lz4) by lz4 crate

Dependencies

~1.5MB
~32K SLoC