this post was submitted on 01 Dec 2020
37 points (91.1% liked)

Rust Programming

7734 readers
1 users here now

founded 5 years ago
MODERATORS
 

I'm looking to build something in Rust that requires being able to extract a variety of archive and compressed file formats, like various forms of compressed tar files, zip files, iso files, etc. The 7zip software suite is really good at both auto-detecting what format it's in and extracting almost anything you throw at it (it even dumps out the objects in Linux, Mac and Windows executables).

I was originally just thinking of including 7zip as a dependency and calling its command line tool from Rust so I can get it to do all the work, but is there a Rust library that is similarly versatile that I can use instead, or is 7zip actually my best option?

top 6 comments
sorted by: hot top controversial new old
[–] tuto193 14 points 1 year ago

Why is this 3 year old post still being shown on my front page. Even in this community's Frontpage somehow...

[–] croobat 11 points 1 year ago

Wonder how is this fella doing.

[–] [email protected] 5 points 1 year ago
[–] BitSound 4 points 1 year ago* (last edited 1 year ago)

This looks like a good library/tool: https://crates.io/crates/xcompress

XCompress is a free file archiver utility on Linux, providing multi-format archiving to and extracting from ZIP, Z, GZIP, BZIP2, LZ, XZ, LZMA, 7ZIP, TAR, RAR and ZSTD.

[–] Moc 3 points 1 year ago

Do you still require assistance?

[–] Anders429 2 points 1 year ago

Dang, this 3 year old post sure is hot.