dependabot[bot]
be40b4439c
build(deps): bump clap_complete from 4.5.24 to 4.5.28
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.5.24 to 4.5.28.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.24...clap_complete-v4.5.28 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-26 17:04:12 -03:00
dependabot[bot]
f3af70915d
build(deps): bump ignore from 0.4.22 to 0.4.23
...
Bumps [ignore](https://github.com/BurntSushi/ripgrep ) from 0.4.22 to 0.4.23.
- [Release notes](https://github.com/BurntSushi/ripgrep/releases )
- [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/ripgrep/commits )
---
updated-dependencies:
- dependency-name: ignore
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-26 17:03:46 -03:00
valoq
7e30545e96
add changelog
2024-10-22 00:00:19 -03:00
valoq
e2151c93d5
fix format to appease linter
2024-10-22 00:00:19 -03:00
valoq
83f28cf64a
change temporary path to a more unique name
2024-10-22 00:00:19 -03:00
João Marcos P. Bezerra
3d717ec3bc
update snapshots
2024-09-07 00:24:50 -03:00
João Marcos P. Bezerra
09899389ec
update CHANGELOG
2024-09-07 00:24:50 -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
ttyS3
a3d4f6ac6b
fix: simplify error handling for invalid password
2024-09-06 21:47:03 -03:00
ttyS3
c3e37e22d1
refactor(rar): simplify list_archive logic and remove UnrarError
...
Simplify the list_archive function by combining archive creation and listing steps.
Remove the UnrarError variant from the Error enum as it's no longer used.
2024-09-06 21:47:03 -03:00
ttyS3
f8f1439ec5
style: cargo fmt
2024-09-06 21:47:03 -03:00
ttyS3
84f1ec4daf
refactor(zip): remove redundant password byte conversion
...
Simplify password handling by removing platform-specific code and utilizing ByteSlice for all conversions.
2024-09-06 21:47:03 -03:00
ttyS3
56f69e19a3
fix(archive): return result in list_archive functions
2024-09-06 21:47:03 -03:00
ttyS3
39cef75dfe
fix(error): return result in list_archive
...
Refactor list_archive functions to return results directly for better error handling.
2024-09-06 21:47:03 -03:00
ttyS3
9e1c30bb86
fix(archive): handle mangled zip file names properly
...
Replace enclosed_name with mangled_name fallback for robustness.
2024-09-06 21:47:03 -03:00
ttyS3
9c69fbd911
fix: replace UnsupportedFormat error with UnrarError
...
Update error handling for unrar-specific issues to use the new UnrarError type.
2024-09-06 21:47:03 -03:00
ttyS3
7e830d9f53
fix(archive): handle errors for unsupported formats
...
Handle errors for unsupported formats in RAR and 7z archives by returning appropriate error messages.
2024-09-06 21:47:03 -03:00
ttyS3
bafbd83bd7
fix(archive): handle file open error in list_archive method
2024-09-06 21:47:03 -03:00
ttyS3
08ab63837e
fix(archive): handle invalid UTF-8 passwords in 7z decompression
2024-09-06 21:47:03 -03:00
ttyS3
67ca183a25
fix: fix windows build
2024-09-06 21:47:03 -03:00
ttyS3
61868dfb56
fix: remove unnecessary clones in zip decryption
2024-09-06 21:47:03 -03:00
ttyS3
309d165606
fix(archive): replace unwrap with error handling in zip.rs
2024-09-06 21:47:03 -03:00
ttyS3
2dad11d0ba
fix(password): update password handling for archives
...
Refactor password handling in archive functions to use &[u8] instead of impl AsRef<[u8]>. Include better error reporting for invalid UTF-8 passwords in 7z archives.
2024-09-06 21:47:03 -03:00
ttyS3
d4e252a732
chore: remove comment from Cross configuration
2024-09-06 21:47:03 -03:00
ttyS3
a241397d95
ci: use newer gcc version for cross target aarch64-unknown-linux-gnu and armv7-unknown-linux-gnueabihf
2024-09-06 21:47:03 -03:00
ttyS3
9b092fef71
style: cargo fmt
2024-09-06 21:47:03 -03:00
ttyS3
8987992c21
chore: fix tests
2024-09-06 21:47:03 -03:00
ttyS3
058be43cf4
test: fix warning: use of deprecated macro ui
(it's alias, actual is insta::assert_display_snapshot): use assert_snapshot!() instead
2024-09-06 21:47:03 -03:00
ttyS3
3392730d66
style: lint the code
2024-09-06 21:47:03 -03:00
ttyS3
d21db763f1
feat: support decompress and list zip file
2024-09-06 21:47:03 -03:00
ttyS3
75e16510df
feat(list): support list and decompress 7z files with password
2024-09-06 21:47:03 -03:00
ttyS3
512d2445b2
feat: add password support for decompress and list
2024-09-06 21:47:03 -03:00
dependabot[bot]
4ac8e2ba91
build(deps): bump bstr from 1.9.1 to 1.10.0
...
Bumps [bstr](https://github.com/BurntSushi/bstr ) from 1.9.1 to 1.10.0.
- [Commits](https://github.com/BurntSushi/bstr/compare/1.9.1...1.10.0 )
---
updated-dependencies:
- dependency-name: bstr
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 17:47:51 -03:00
dependabot[bot]
b8f78d2925
build(deps): bump proptest from 1.4.0 to 1.5.0
...
Bumps [proptest](https://github.com/proptest-rs/proptest ) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/proptest-rs/proptest/releases )
- [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/proptest-rs/proptest/compare/v1.4.0...v1.5.0 )
---
updated-dependencies:
- dependency-name: proptest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 17:47:33 -03:00
dependabot[bot]
b814599d77
build(deps): bump clap from 4.5.13 to 4.5.16
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.13 to 4.5.16.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.13...clap_complete-v4.5.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 17:47:18 -03:00
dependabot[bot]
f2800c7b41
build(deps): bump test-strategy from 0.3.1 to 0.4.0
...
Bumps [test-strategy](https://github.com/frozenlib/test-strategy ) from 0.3.1 to 0.4.0.
- [Commits](https://github.com/frozenlib/test-strategy/compare/v0.3.1...v0.4.0 )
---
updated-dependencies:
- dependency-name: test-strategy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-29 04:05:01 -03:00
dependabot[bot]
dbde18668a
build(deps): bump sevenz-rust from 0.6.0 to 0.6.1
...
Bumps [sevenz-rust](https://github.com/dyz1990/sevenz-rust ) from 0.6.0 to 0.6.1.
- [Changelog](https://github.com/dyz1990/sevenz-rust/blob/main/CHANGELOG.md )
- [Commits](https://github.com/dyz1990/sevenz-rust/commits )
---
updated-dependencies:
- dependency-name: sevenz-rust
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-29 04:04:19 -03:00
dependabot[bot]
7b9ec7d49a
build(deps): bump clap_complete from 4.5.2 to 4.5.13
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.5.2 to 4.5.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.2...clap_complete-v4.5.13 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-29 04:04:07 -03:00
dependabot[bot]
6f183fbe6a
build(deps): bump clap from 4.5.4 to 4.5.13
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.4 to 4.5.13.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.4...v4.5.13 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 05:27:36 -03:00
dependabot[bot]
b2d0ff75c8
build(deps): bump tar from 0.4.40 to 0.4.41
...
Bumps [tar](https://github.com/alexcrichton/tar-rs ) from 0.4.40 to 0.4.41.
- [Commits](https://github.com/alexcrichton/tar-rs/compare/0.4.40...0.4.41 )
---
updated-dependencies:
- dependency-name: tar
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 03:58:17 -03:00
dependabot[bot]
bee5ae05ae
build(deps): bump infer from 0.15.0 to 0.16.0
...
Bumps [infer](https://github.com/bojand/infer ) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/bojand/infer/releases )
- [Commits](https://github.com/bojand/infer/compare/v0.15.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: infer
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-26 03:57:48 -03:00
Ryan Roden-Corrent
61f96cab13
Fix docstring formatting for clippy.
...
Fixes:
```
error: doc list item missing indentation
--> src/commands/decompress.rs:237:5
|
237 | /// Note: This functions assumes that `output_dir` exists
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `-D clippy::doc-lazy-continuation` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::doc_lazy_continuation)]`
help: indent this line
|
237 | /// Note: This functions assumes that `output_dir` exists
| ++
```
2024-08-26 03:40:52 -03:00
Ryan Roden-Corrent
a7fe78fc68
Write decompressed stdin to stdin-output.
2024-08-26 03:40:52 -03:00
Ryan Roden-Corrent
77c1a4e9db
Support decompressing stdin.
...
Fixes #687 .
If "-" is passed as a filename, decompress data from stdin.
Currently `--format` must be passed as well, but as a next step,
we could try to infer the format from magic numbers.
As stdin is not connected to the terminal, we cannot prompt for Y/N
when warning about decompression in memory, for e.g. zip. Just default
to No, and require passing "-y" in these cases.
For zip, we have to buffer the whole stream in memory to seek into it,
just as we do with a chained decoder like `.zip.bz`.
The rar format requires an actual file (not an `impl Read`), so
we write a temp file that it can decode.
When decoding a single-file archive (e.g. file.bz), the output filename
is just `-`, since we don't know the original filename. I had to add
a bit of a hack to the tests to work around this. Another option
would be to interpret "-d" as a destination filename in this case.
When decoding a multi-file archive, I decided to unpack directly into
the destination directory, as this seemed like a better experience than
adding a top-level "-" folder inside the destination.
2024-08-26 03:40:52 -03:00
nalabrie
3867fa33e9
adjust README to indicate zstd runs in parallel, remove leftover code comment
2024-07-27 01:07:23 -03:00
Nicky Labrie
01b919043c
Update CHANGELOG.md
...
fixed pull number
2024-07-27 01:07:23 -03:00
nalabrie
0ec7d4489d
Added multithreading by default to zstd compression. Bumped zstd package version. Added num_cpus package to get core count.
2024-07-27 01:07:23 -03:00
Ryan Roden-Corrent
4a323aeba8
Fix confusion between empty/nonempty test.
...
The single_empty_file test was writing random content to the file,
whereas the single_file test was writing an empty file.
Only the latter tested different levels, so I figured that test
was the one that should be using actual file content.
2024-07-14 18:22:44 -03:00
dependabot[bot]
b7ebcd3703
build(deps): bump parse-display from 0.9.0 to 0.9.1
...
Bumps [parse-display](https://github.com/frozenlib/parse-display ) from 0.9.0 to 0.9.1.
- [Changelog](https://github.com/frozenlib/parse-display/blob/master/CHANGELOG.md )
- [Commits](https://github.com/frozenlib/parse-display/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: parse-display
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-02 08:21:08 -03:00