Skip to content

Build issues with unmaintained xz2 crate #326

Closed
@ctron

Description

@ctron

Describe the bug

It looks like zip got some xz support recently. However, it using xz2 crate, which hadn't seen any update in 3 years. Others moved on, and use the liblzma crate, which is maintained: https://crates.io/crates/liblzma

The problem is, that if both xz2 and libzma end up in a build tree, Rust can't compile this, as two crates use the same native library.

To Reproduce

Use zip and liblzma in the same project.

Expected behavior

There should be way to seamlessly use both.

I'd expect to either use a more maintained version (like liblzma 0.3). Or allow choosing between either using feature flags.

Additional context

It is possible to use default-features = false and then enable all features (except xz) one by one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions