async-compression
async-compression copied to clipboard
Using ruzstd
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!
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
ruzstd does not support compression and has no plan to implement it. It can only be used for decompression.
https://github.com/KillingSpark/zstd-rs/releases/tag/v0.8.0
ruzstd v0.8.0 add support for compression.
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.