Skip to content

gh-139314: Support linking against zlib-rs and libbzip2-rs - #139315

Closed
emmatyping wants to merge 3 commits into
python:mainfrom
emmatyping:build-with-rust-compression-libs
Closed

gh-139314: Support linking against zlib-rs and libbzip2-rs#139315
emmatyping wants to merge 3 commits into
python:mainfrom
emmatyping:build-with-rust-compression-libs

Conversation

@emmatyping

@emmatyping emmatyping commented Sep 25, 2025

Copy link
Copy Markdown
Member

This PR updates configure.ac to recognize zlib-rs and libbzip2-rs available via pkg-config.

For rational, please see the issue:

zlib-rs and libbzip2-rs are Rust re-implementations of zlib and bzip2, two very popular compression libraries. The Rust implementations have comparable performance to zlib-ng and libbzip2, respectively.
Since the libraries are written in Rust, they should have significantly smaller surface areas of memory unsafety.
@picnixz picnixz changed the title gh-139314: Support linking againts zlib-rs and libbzip2-rs gh-139314: Support linking against zlib-rs and libbzip2-rs Nov 7, 2025
@@ -0,0 +1 @@
Support was added for building against `zlib-rs <https://github.com/trifectatechfoundation/zlib-rs/>`__ and `libbzip2-rs <https://github.com/trifectatechfoundation/libbzip2-rs>`__.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
Support was added for building against `zlib-rs <https://github.com/trifectatechfoundation/zlib-rs/>`__ and `libbzip2-rs <https://github.com/trifectatechfoundation/libbzip2-rs>`__.
Add support for building against `zlib-rs <https://github.com/trifectatechfoundation/zlib-rs/>`__ and `libbzip2-rs <https://github.com/trifectatechfoundation/libbzip2-rs>`__.

(changelog entries style → commit message style → docstring style: assertive tone, not record of past events)

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 29, 2026
@emmatyping

Copy link
Copy Markdown
Member Author

I'm going to close this for now. I'll be proposing using zlib-rs in a Rust implementation of the zlib module so my time will be focused there.

@StanFromIreland

Copy link
Copy Markdown
Member

I opened #155119 to continue this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants