Skip to content

use zlib-rs at flate2 - #181

Open
oech3 wants to merge 1 commit into
russellbanks:mainfrom
oech3:zlib-rs
Open

oech3 wants to merge 1 commit into
russellbanks:mainfrom
oech3:zlib-rs

Conversation

@oech3

@oech3 oech3 commented Sep 27, 2026

Copy link
Copy Markdown

flate2 does not use zlib-rs if default setting is used. https://github.com/rust-lang/flate2-rs#backends

@russellbanks

Copy link
Copy Markdown
Owner

I think, since this is a library crate, the choice for the default backend should be delegated to the flate2 crate. There is currently a draft pull request open to switch the default backend to zlib-rs.

I'm also conscious that if a downstream user specifies just the flate2 dependency, this would mean they would be pulling in both miniz_oxide as well as zlib-rs. I know this is the case if a user specifies flate2 with no default features and the zlib-rs feature but think it's more likely that a downstream user would be using the default features of flate2.

@oech3

oech3 commented Sep 28, 2026 •

Copy link
Copy Markdown
Author

But we can still use zlib-rs at innex and consumers of inno crate not directly depending on flate2. No?

@russellbanks

Copy link
Copy Markdown
Owner

But we can still use zlib-rs at innex and consumers of inno crate not directly depending on flate2. No?

This change would mean all consumers of inno use zlib-rs. We could instead have a feature that enables the zlib-rs feature of flate2?

@oech3

This comment was marked as outdated.

@oech3

oech3 commented Oct 17, 2026

Copy link
Copy Markdown
Author

Maybe, cargo build --release --features flate2/zlib-rs without patching?
I'm still not sure which one is used since the command builds both crates.

This branch has not been deployed

No deployments
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.

2 participants