[requires] build = [ "pkgconfig(libdeflate)" ] lib = [ "pkgconfig(libdeflate)" ] [package] cargo-toml-patch-comments = [ "Make the dependency on crate(pkg-config) non-optional instead of associating it with the “dynamic” feature, since we patch the crate to always link dynamically with the system libdeflate, regardless of the selected features.", ] [[package.extra-patches]] number = 10 file = "libdeflate-sys-1.19.3-unconditional-pkg-config.patch" comments = [ "Downstream-only: always link dynamically with the system libdeflate, regardless of the selected features, and do not pin an exact version of libdeflate. Together with libdeflate-sys-fix-metadata.diff, this effectively reverts:", "Dynamic Linking Constraints", "https://github.com/adamkewley/libdeflater/pull/32" ] [scripts.prep] pre = [ "# Remove the bundled copy of libdeflate.", "rm -rv libdeflate", ]