João Marcos
c3b89b038d
improve misleading error message ( #818 )
...
Follow up to #817
2025-05-06 00:27:43 -03:00
João Marcos
c8f97197c3
Give good error messages when archive extensions are invalid ( #817 )
...
+ simplify unit tests, don't require them to start the logger
+ unrelated TODOs
2025-05-06 00:08:38 -03:00
Amyspark
07967927dd
feat: Make bzip3 optout ( #814 )
...
Co-authored-by: João Marcos <marcospb19@hotmail.com>
2025-05-03 20:43:59 -03:00
Pascal Hertleif
ecc05cdd60
feat: Add support for Brotli
...
Using https://crates.io/crates/brotli/7.0.0
#203
2025-02-12 13:59:18 -03:00
João Marcos P. Bezerra
df6d2cea98
tweak: don't add period to end of each log
2024-11-18 00:32:17 -03:00
Jonas Frei
ba9f9c00f3
Add support for bzip3
...
Closes #398
Signed-off-by: Jonas Frei <freijon@pm.me>
2024-11-17 14:50:02 -03:00
João M. Bezerra
5dac8431f2
Fix --format
parsing extensions with dots
...
Also improve error reporting for `--format` with malformed or
unsupported extensions
This commit is very messy, as it also does an refac in the project,
which should ideally be in a separated commit
2024-09-07 00:24:50 -03:00
João M. Bezerra
1a80b919e3
Add tests to the extension module
2024-09-07 00:24:50 -03:00
João Marcos P. Bezerra
28daa9e8c4
make logger channel static
2024-04-01 10:58:35 -03:00
João Marcos P. Bezerra
bed8ea0276
create Logger::info_accessible
2024-04-01 10:58:35 -03:00
Antonios Barotsis
1e56bb8f1f
Improve logging interface
2024-04-01 10:58:35 -03:00
Antonios Barotsis
b04122a6de
fix some errors + warnings
2024-04-01 10:58:35 -03:00
Antonios Barotsis
380893b6df
Add levels and fix output
2024-04-01 10:58:35 -03:00
Antonios Barotsis
e2ac5c4c9b
Make all info logs use the new system
2024-04-01 10:58:35 -03:00
Antonios Barotsis
8e43cd2afa
Change existing method docs to valid rustdoc
2024-02-28 20:27:32 -03:00
cyqsimon
fa2d214fee
Feature-gate RAR support
2023-12-14 23:32:17 -03:00
Flat
69b1db4a35
chore: cargo fmt
2023-11-25 21:33:22 -03:00
MisileLaboratory
3cb2367793
feat: simple impl 7zip and lot of todo
2023-11-25 21:33:22 -03:00
Łukasz Krawiec
dade163243
added support for listing and decompressing .rar archives
2023-11-15 08:59:00 -03:00
João M. Bezerra
a26d3d34ce
Improve hints when decompressing with no extension
...
refactored `check_missing_formats_when_decompressing` to be aware of
missing extensions and unsupported extensions in order to give a more
detailed error message
2023-09-17 20:05:54 -03:00
João M. Bezerra
b938dc014c
move build_archive_file_suggestion
to extension.rs
2023-02-03 02:24:06 -03:00
João M. Bezerra
7f763ff500
move module tests
to end of file
2023-02-03 01:19:34 -03:00
figsoda
2238a20f0f
fix handling of unknown extensions
2023-01-31 10:57:07 -05:00
João M. Bezerra
73cff04eb5
make some extension items private
2023-01-10 04:35:24 -03:00
João M. Bezerra
752ed72a91
remove incorrect Display implementation
2023-01-10 04:35:03 -03:00
figsoda
5a3bac67c9
add --format option
2023-01-07 14:57:39 -05:00
figsoda
a9f2e614ed
improve extension parsing logic
2023-01-02 22:15:00 -05:00
João M. Bezerra
f554e3c5f0
warn user if file extension is passed as file name
...
example: .tar.gz is a file named .tar with extension .gz
this can be confusing because people might expect .tar.gz to be a
.tar.gz archive, but it's currently not
2022-10-11 20:57:55 -03:00
Vinícius Miguel
99ec7d2cf2
Fix wrong filename suggestions when compressing folders into non-archives ( #269 )
2022-08-22 23:37:04 -03:00
João M. Bezerra
97c4387fcf
minor simplifications and renamings
2022-06-04 14:04:31 -03:00
João M. Bezerra
14025c6816
remove use_small_heuristics = "Max"
from rustfmt
...
and update edition to 2021
2022-06-04 13:06:52 -03:00
João M. Bezerra
f5fcf7f2a3
replace flat_map by flatten_compression_formats
2022-06-04 13:01:24 -03:00
João M. Bezerra
19769223c8
create helper function split_first_extension
2022-06-04 12:55:51 -03:00
João M. Bezerra
4d518b7056
small refactor and renamings
2022-06-04 12:47:17 -03:00
figsoda
52a8acf2e1
support snappy format
2021-12-07 13:59:56 -05:00
Nbiba Bedis
0660c2fe59
Remove Lzip because its incorrect, and improve extention comparison
2021-11-13 09:46:08 +01:00
Vinícius Rodrigues Miguel
e81fafc3d3
Make Extension
non-exhaustive
2021-11-03 18:08:39 -03:00
Vinícius Rodrigues Miguel
a798d20106
extension: Use hardcoded slices instead of Vecs
when creating an Extension
2021-11-03 12:35:29 -03:00
figsoda
27d8e64192
minor improvements
2021-11-02 17:37:24 -04:00
figsoda
296826b4d3
add support for lz4 format
2021-11-02 17:37:24 -04:00
João M. Bezerra
d2d4a929e1
Docs improvements
...
+ Removed some dead code
2021-11-02 04:57:26 -03:00
João M. Bezerra
15e922b7ba
Fixing some Extension tests
2021-11-02 01:16:42 -03:00
João Marcos Bezerra
75cad36c5c
Merge branch 'master' into Remove-tar-combinations-from-CompressionFormat
2021-11-02 01:00:18 -03:00
Spyros Roum
4921d3d3d2
Add Extension
wrapper that lets us keep tgz instead of forcing tar.gz
2021-11-01 01:09:37 +02:00
Spyros Roum
604616e042
Use proper match
with no wildcard when detecting if it's archive
2021-10-31 11:09:35 +02:00
João M. Bezerra
20e0067cad
Adding docs in new files and functions
2021-10-31 03:21:52 -03:00
João Marcos Bezerra
95d38e99f6
Merge branch 'master' into issue-32
2021-10-31 03:01:41 -03:00
Gabriel Simonetto
7c82f2b3b7
Make remaining modules public in order to gain the documentation check
2021-10-30 17:00:07 -03:00
Spyros Roum
6b6ade8c9a
Break down tgz
, tbz
, etc to tar + gz/bz
2021-10-22 14:49:32 +03:00
Spyros Roum
caca7901c4
Run cargo fmt
2021-10-22 14:47:44 +03:00