Skip to content

RFC: switch from liblzma C bindings to pure-Rust lzma-rust2 ? #441

Description

@decathorpe

I am wondering whether it would be possible (or desirable?) to replace the liblzma dependency (Rust bindings for liblzma / xz) with the lzma-rust2 crate?

The latter is a "pure Rust" port of the "xz-java" project and even seems to have performance comparable to liblzma (or better). It also avoids having to link and / or build native C code / libraries, which should make some uses cases (like cross-compilation) easier. It's also almost entirely "safe" Rust code (except for some handwritten Assembly routines, which can even be disabled).


For context: I maintain the RPM package for the async-compression crate in Fedora Linux. The liblzma / liblzma-sys crates (forked from xz2 / lzma-sys?) would be something new to re-review / re-audit before they can be added, whereas lzma-rust2 was already added to support the zip crate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions