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

Add vendored feature to zstd-sys for providing pre-built zstd libs #264

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abrisco
Copy link

@abrisco abrisco commented Feb 27, 2024

I would like to be able to provide my own libzstd.a when building zstd-safe. This change introduces the vendored feature in combination with the following environments to support this:

  • ZSTD_SYS_VENDORED: An extra flag to enable the vendored search even if the feature is not enabled
  • ZSTD_SYS_VENDORED_LIBS: A space delimited string of paths to compiled zstd libraries
  • ZSTD_SYS_VENDORED_INCLUDE: The path to the zstd include directory where headers like zstd.h can be found.

@abrisco
Copy link
Author

abrisco commented Feb 27, 2024

The naming of the feature was inspired by https://docs.rs/openssl/latest/openssl/#vendored

@gyscos
Copy link
Owner

gyscos commented Mar 22, 2024

Hi, and thanks for the report!

Is there any way this could be done with the current pkg_config feature?

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.

None yet

2 participants