Skip to content

Update xz crate dependency to use liblzma in arrow-avro#8975

Merged
Dandandan merged 2 commits intoapache:mainfrom
jecsand838:avro-liblzma
Dec 11, 2025
Merged

Update xz crate dependency to use liblzma in arrow-avro#8975
Dandandan merged 2 commits intoapache:mainfrom
jecsand838:avro-liblzma

Conversation

@jecsand838
Copy link
Copy Markdown
Contributor

@jecsand838 jecsand838 commented Dec 9, 2025

Which issue does this PR close?

Rationale for this change

Because the xz seems to no longer be maintained, it make sense to switch to liblzma. Additionally liblzma is more widely used and by making this switch arrow-avro will be more compatible with other projects using XZ compression.

What changes are included in this PR?

Changed the arrow-avro/Cargo.toml to use liblzma instead of xz

Are these changes tested?

No new tests have been added as the existing tests cover these changes.

Are there any user-facing changes?

  • No public API or feature-flag changes (xz feature and defaults remain the same).
  • Downstream users that depend on liblzma alongside arrow-avro should no longer hit Cargo’s duplicate native library linking error when xz support is enabled.

@github-actions github-actions bot added arrow Changes to the arrow crate arrow-avro arrow-avro crate labels Dec 9, 2025
@jecsand838 jecsand838 changed the title Update xz crate dependency to use liblzma with version 0.4 in `… Update xz crate dependency to use liblzma in arrow-avro Dec 9, 2025
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me -- thank you @jecsand838

@Dandandan Dandandan merged commit 55bd73f into apache:main Dec 11, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate arrow-avro arrow-avro crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[arrow-avro] suggest switching from xz to liblzma

3 participants