async-compression icon indicating copy to clipboard operation
async-compression copied to clipboard

Using ruzstd

Open kpcyrd opened this issue 1 year ago • 4 comments

hello!

I was wondering, are there any plans to support the ruzstd crate as pure Rust compression/decompression backend to avoid a dependency on libzstd.so? :)

Thanks!

kpcyrd avatar Sep 11 '24 12:09 kpcyrd

We currently have a PR #288 to support alternative liblzma instead xz2, my attitude towards ruzstd is the same:

We can add it behind an opt-in, unstable cfg flag.

Given that ruzstd is pure rust, it should work without the problem encountered in #288

NobodyXu avatar Sep 11 '24 13:09 NobodyXu

ruzstd does not support compression and has no plan to implement it. It can only be used for decompression.

link2xt avatar Oct 15 '24 14:10 link2xt

https://github.com/KillingSpark/zstd-rs/releases/tag/v0.8.0

ruzstd v0.8.0 add support for compression.

zuisong avatar Jan 17 '25 08:01 zuisong

PR adding compression: https://github.com/KillingSpark/zstd-rs/pull/79 So it is not just a placeholder anymore, but probably still cannot get compression levels that original library has? In any case if it does some useful compression would be great to make this the default option.

link2xt avatar Jan 17 '25 09:01 link2xt