Rust crate for 7z file decompress


Is there any rust crate that can be used to decompress 7z file with password?

I just found some crates for lzma, e.g. [lzma](, But I don't know how to unzip ".7z" files with those crates

A quick google shows that there indeed seem to be no Rust implementations. libarchive bindings exist in the form of, but these don't seem to support passing along the encryption key. Your best bet is probably extending compress-tools with that functionality.

Alternatively, you could also try wrapping libarchive yourself (the API doesn't seem too terrible).

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.