Skip to content

Add features to configure flate2 #7827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zeevm
Copy link
Contributor

@zeevm zeevm commented Jun 30, 2025

Which issue does this PR close?

Rationale for this change

Allow choosing the previously default "rust_backend" instead of "libz-rs-sys" for flate2 dependency.

What changes are included in this PR?

Two new features, "flate2-rust_backened" and "flate2-zlib-rs".

Are there any user-facing changes?

When enabling "flate2", one of these must also be enabled.

@github-actions github-actions bot added the parquet Changes to the parquet crate label Jun 30, 2025
Copy link
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.

Thanks @zeevm this seems good to me, but I worry we will potentially break it in the future if there is no specific test.

Perhaps we could add a test perhaps in this matrix:

run: cargo check -p parquet --no-default-features --features encryption --features async

BTW can you share your usecase for using the rust backend

CC @psvri as you added the code to use zlib sys in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow choosing flate2 backend
2 participants