Closed
Description
There are two crates for xz2 support being used in the rust ecosystem. xz2 and liblzma (which is a fork of xz2). This crate uses liblzma whereas e.g., datafusion uses xz2. I'd like to use this crate but if conflicts when my other (datafusion) depenency tries to link lzma too
error: failed to select a version for `xz2`.
... required by package `datafusion v47.0.0`
... which satisfies dependency `datafusion = "^47"` of package `x`
versions that meet the requirements `^0.1` are: 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0
the package `xz2` links to the native library `lzma`, but it conflicts with a previous package which links to `lzma` as well:
package `liblzma v0.4.1`
... which satisfies dependency `liblzma = "^0.4.1"` of package `postgresql_archive v0.18.5`
... which satisfies dependency `postgresql_archive = "^0.18.5"` of package `postgresql_embedded v0.18.5`
... which satisfies dependency `postgresql_embedded = "^0.18.5"` of package `y`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "lzma"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
the package `datafusion` depends on `xz2`, with features: `static` but `xz2` does not have these features.
failed to select a version for `xz2` which could resolve this conflict
I'm not sure if xz2 is always needed as since the files from https://github.com/theseus-rs/postgresql-binaries/releases/tag/17.5.0 seem to be .tar.gz?
Metadata
Metadata
Assignees
Labels
No labels