zstd-rs icon indicating copy to clipboard operation
zstd-rs copied to clipboard

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

Open abrisco opened this issue 1 year ago • 3 comments

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 avatar Feb 27 '24 14:02 abrisco

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

abrisco avatar Feb 27 '24 14:02 abrisco

Hi, and thanks for the report!

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

gyscos avatar Mar 22 '24 14:03 gyscos