16 Commits

Author SHA1 Message Date
Vinícius Rodrigues Miguel
e9bc65a787 Add support for Zstd 2021-10-05 23:56:09 -03:00
João M. Bezerra
89d1e6a752 Document modules 2021-10-03 00:17:57 -03:00
João Marcos Bezerra
7178ae84ff
Fix tests/utils.rs warning suppresion 2021-10-02 23:40:51 -03:00
Gabriel Simonetto
e352f8bc93 Allow empty dirs on tar 2021-10-02 17:33:16 -03:00
João M. Bezerra
d43a93d8bb Moving some tests utilities to tests/utils.rs 2021-10-02 17:12:59 -03:00
Gabriel Simonetto
4431e8e047 Create failing test 2021-10-02 17:12:59 -03:00
Vinícius Rodrigues Miguel
eabaac0145 Run rustfmt 2021-09-16 21:35:18 -03:00
João M. Bezerra
1a67da03ed Giving better tests failure messages 2021-08-13 03:21:23 -03:00
João M. Bezerra
7265effd65 Replacing deprecated tempdir by tempfile crate 2021-08-13 03:12:23 -03:00
João M. Bezerra
44e0fcc985 Fixing tests without assert 2021-08-04 12:05:47 -03:00
João M. Bezerra
bb93e46535 Reworked compression
Now works with multiple formats, like
archive.zip.gz.lz.gz.gz2.xz

Now with minimum in-memory copying, compressing and decompressing (with
exception to .zip, due to the format limitations) is all done directly
into the final destination file.
2021-08-03 21:18:22 -03:00
João M. Bezerra
ac4948abf7 Decompression: multiple formats, no extra copying
Rewrote decompression to use chained decoders, creating a stream and
avoiding in-memory decompression, which caused redundant copying.

Now ouch supports any number of extensions as decompressing formats, not
only two.
2021-08-03 16:58:21 -03:00
João M. Bezerra
abc6f51582 Removing .*.tar and .*.zip from tests
Those formats won't be supporte by now, at least for compressing.

Archive formats are are only meant to be used as the first extension,
because archives are meant to be used with multiple files.
2021-08-02 15:46:29 -03:00
João M. Bezerra
57a3d231eb Turning oof subcrate into a module 2021-05-26 21:54:50 -03:00
João M. Bezerra
f4e1798cc7 Improving tests performance 2021-05-17 14:42:19 -03:00
João M. Bezerra
a4ca0a6621 Adding tests for compression and decompression 2021-05-17 14:41:29 -03:00