It’s working for me, posting this from lemmy.world
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.
It’s working for me, posting this from lemmy.world