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?

tuto
link
fedilink
131Y

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

croobat
link
fedilink
111Y

Wonder how is this fella doing.

rust7z

Do you still require assistance?

@BitSound@lemmy.world
link
fedilink
3
edit-2
1Y

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.

Dang, this 3 year old post sure is hot.

Rust Programming
!rust@lemmy.ml
    • 0 users online
    • 2 users / day
    • 2 users / week
    • 2 users / month
    • 74 users / 6 months
    • 1 subscriber
    • 258 Posts
    • 707 Comments
    • Modlog