Add feature flag to use system libdeflate (#659)

This need was raised in https://bugs.gentoo.org/944285. Can be enabled
with `--features system-libdeflate` to use the libdeflate located on the
user's system instead of building our own.
This commit is contained in:
Josh Holmer 2024-12-03 14:02:03 -05:00 committed by GitHub
parent 8ebb5e6dfd
commit 4df1464f39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

7
Cargo.lock generated
View file

@ -331,6 +331,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2f4ae7b48098016dc3bc64a35605668f0af4425ec1a4a175ce2d0c1129067932"
dependencies = [
"cc",
"pkg-config",
]
[[package]]
@ -416,6 +417,12 @@ dependencies = [
"zopfli",
]
[[package]]
name = "pkg-config"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
[[package]]
name = "png"
version = "0.17.14"

View file

@ -87,6 +87,7 @@ freestanding = ["libdeflater/freestanding"]
sanity-checks = ["dep:image"]
zopfli = ["dep:zopfli"]
filetime = ["dep:filetime"]
system-libdeflate = ["libdeflater/dynamic"]
[lib]
name = "oxipng"