Skip to content
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

Allow to use flate2 with zlib or zlib-ng instead of miniz_oxide #130

Merged
merged 1 commit into from
Oct 8, 2022
Merged

Allow to use flate2 with zlib or zlib-ng instead of miniz_oxide #130

merged 1 commit into from
Oct 8, 2022

Conversation

jirutka
Copy link
Contributor

@jirutka jirutka commented Oct 8, 2022

This allows building flate2 against system-provided (or with vendored) zlib or zlib-ng library.

Cargo.toml Show resolved Hide resolved
This allows building flate2 against system-provided (or with vendored)
zlib or zlib-ng library.
@sbstp
Copy link
Owner

sbstp commented Oct 8, 2022

Thanks

@sbstp sbstp merged commit cf6c89f into sbstp:master Oct 8, 2022
@jirutka jirutka deleted the zlib branch October 8, 2022 20:15
@jirutka
Copy link
Contributor Author

jirutka commented Oct 8, 2022

Thanks for merging it! Can you please also release a new version?

@sbstp
Copy link
Owner

sbstp commented Oct 8, 2022 via email

@sbstp
Copy link
Owner

sbstp commented Oct 9, 2022

Deployed in 0.23.0

@jirutka
Copy link
Contributor Author

jirutka commented Oct 9, 2022

I made a mistake, I forgot about the feature conditions in the code. :( I’ll send a PR shortly.

@sbstp
Copy link
Owner

sbstp commented Oct 9, 2022

Oh shoot. Since the compress feature is disabled when you used compress-zlib it didn't enable compression support?

@jirutka
Copy link
Contributor Author

jirutka commented Oct 9, 2022

Yeah, exactly.

@sbstp
Copy link
Owner

sbstp commented Oct 9, 2022

I think is would be as simple as doing a search and replace for #[cfg(feature = "compress")] to #[cfg(any(feature = "compress", feature = "compress-zlib", ...))]

@jirutka
Copy link
Contributor Author

jirutka commented Oct 9, 2022

#[cfg(feature = "compress")] to #[cfg(any(feature = "compress", feature = "compress-zlib", ...))]

I think a helper feature _compress-any and changing compress to _compress-any is a bit nicer. WDYT?

@sbstp
Copy link
Owner

sbstp commented Oct 9, 2022

Yeah that's ok

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