Skip to content

Bump apache-avro dev-dependency from 0.17 to 0.21 and migrate xz2 to liblzma#39

Open
flxo wants to merge 1 commit into
Ten0:masterfrom
flxo:bump
Open

Bump apache-avro dev-dependency from 0.17 to 0.21 and migrate xz2 to liblzma#39
flxo wants to merge 1 commit into
Ten0:masterfrom
flxo:bump

Conversation

@flxo

@flxo flxo commented Jun 10, 2026

Copy link
Copy Markdown

apache-avro 0.21 switched its xz compression backend from lzma-sys (via xz2) to liblzma. Cargo's links resolver only allows a single package in the dependency graph to claim links = "lzma", so pulling in apache-avro 0.21 alongside our existing xz2 dependency caused resolution to fail:

package liblzma-sys links to the native library lzma, but it
conflicts with a previous package which links to lzma as well:
package lzma-sys v0.1.20

Resolve the conflict by migrating serde_avro_fast's own xz feature from xz2 (0.1) to liblzma (0.4). liblzma is a maintained successor to xz2 with an API-compatible surface, so the change is mechanical: the feature flag now pulls in liblzma, and the writer/reader simply swap the xz2:: paths for liblzma:: paths. No behavioural changes.

Verified with cargo nextest run --all-features (156 tests pass).

…liblzma

apache-avro 0.21 switched its xz compression backend from lzma-sys
(via xz2) to liblzma. Cargo's links resolver only allows a single
package in the dependency graph to claim links = "lzma", so pulling
in apache-avro 0.21 alongside our existing xz2 dependency caused
resolution to fail:

  package `liblzma-sys` links to the native library `lzma`, but it
  conflicts with a previous package which links to `lzma` as well:
  package `lzma-sys v0.1.20`

Resolve the conflict by migrating serde_avro_fast's own xz feature
from xz2 (0.1) to liblzma (0.4). liblzma is a maintained successor
to xz2 with an API-compatible surface, so the change is mechanical:
the feature flag now pulls in liblzma, and the writer/reader simply
swap the xz2:: paths for liblzma:: paths. No behavioural changes.

Verified with `cargo nextest run --all-features` (156 tests pass).
@Ten0 Ten0 changed the title Bump apache-avro dev-dependency from 0.17 to 0.21 and migrate xz2 to liblzmq Bump apache-avro dev-dependency from 0.17 to 0.21 and migrate xz2 to liblzma Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant