anycat

Crates.ioanycat
lib.rsanycat
version0.2.0
sourcesrc
created_at2017-12-01 23:57:53.642154
updated_at2021-02-06 13:39:17.16988
descriptionAnycat is an extremely simple crate and tool that lets you unpack some single file archive and print its content to the standard output (or process it as a regular `BufRead`).
homepagehttps://github.com/xgillard/anycat
repositoryhttps://github.com/xgillard/anycat.git
max_upload_size
id41284
size12,272
Xavier Gillard (xgillard)

documentation

README

Anycat

Anycat is an extremely simple crate and tool that lets you unpack some single file archive and print its content to the standard output (or process it as a regular BufRead).

It supports quite a few decompression algorithms. Namely:

  • GZIP (.gz, .gzip)
  • BZIP2 (.bz2, .bzip)
  • LZMA (.xz, .lzma)
  • BROTLI (.br , .brotli)
  • ZLIB (.z , .zlib)
  • DEFLATE (.dfl)

Its indended use is to simplify the cases where you want to chose between cat, gzcat, bzcat, ... to print a file. Whenever you want to do this, you might just as well call anycat <your_file> and you should get the right result.

Tech note:

This project is written in plain Rust, so you should be able to build it w/o any trouble by simply issuing the cargo build --release command.

Changelog

  • v0.2.0: Updated the dependencies and reflected current best practices wrt error management. Now your code will not panic anymore but instead return an error you can process.

Credits

Even though I wrote anycat, the heavy lifting was done by the guys who wrote the many decompression crates for Rust and made them available on crates.io. If you are one of these guys, thank you !

Commit count: 10

cargo fmt