PackageTrack
Sign in Get early access

pkg-config

A library to run the pkg-config system tool at build time in order to be used in Cargo build scripts.

0.3.34 698M downloads/mo #120 most downloaded on crates.io rust-lang/pkg-config-rs

What this package is like to depend on

Last release 9 days ago

14 Aug 2026

Ships fairly regularly

a new release about every 5 months

Some releases are documented

notes for 25 of 47 stable releases

Nothing withdrawn

no release was ever pulled

12 years old

47 releases · first in 2014

2 releases in the last 12 months

see the full history below

Release timeline

47 releases · Nov 2014 to Aug 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 47
  1. 0.3.34 14 Aug 2026
    Release notes

    Changed

    • Update README.md (#190).

    • Update MSRV to 1.63 and remove lazy_static dependency (#191).

    • Fix various clippy warnings (#193).

    Added

    • Allow disabling passing --cflags to pkg-config (#183).

    • Make Library::extract_lib_from_filename public (#192).

    Open source →
  2. 0.3.33 12 Apr 2026
    Release notes

    Changed

    • Error output from pkg-config is included in the message again to help with finding the cause (#187)
    Open source →
  3. 0.3.32 03 Mar 2025
    Release notes

    Fixed

    • Suggest installing pkgconf via homebrew on macOS instead of pkg-config (#173)

    • Quote failed pkg-config command correctly in error messages to allow for directly copy&pasting it into a shell (#175)

    Open source →
  4. 0.3.31 23 Sep 2024
    Release notes

    Fixed

    • Remove double cargo: prefix from linker line (#168).
    Open source →
  5. 0.3.30 14 Feb 2024
    Release notes

    Changed

    • Update documentation for cross-compilation (#161).

    • Update GitHub Action CI (#160).

    Open source →
  6. 0.3.29 17 Jan 2024
    Release notes

    Fixed

    • Detection and usage of Windows static libraries (#154).

    • Passing -Wl,-u to the linker if specified in the pkg-config file (#154).

    Open source →
  7. 0.3.28 20 Dec 2023
    Release notes

    Fixed

    • Pass -l:libfoo.a to linker directly (#149).

    Changed

    • Improve error message when library not found (#158).
    Open source →
  8. 0.3.27 03 May 2023
    Release notes

    Added

    • Support falling back to pkgconf if pkg-config is not available (#145).

    Changed

    • Simplify running pkg-config (#144).

    • Document MSRV in Cargo.toml via rust-version.

    • Fix a couple of minor clippy warnings (#147).

    Open source →
  9. 0.3.26 26 Oct 2022
    Release notes

    Added

    • Support for handling full paths to libraries in addition to normal -l linker flags (#134).
    Open source →
  10. 0.3.25 31 Mar 2022
    Release notes

    Added

    • Support for parsing -Wl linker arguments from the Libs lines and passing them to the linker as well as making them available via Library::ld_args (#131).

    Changed

    • Use SPDX license format and remove obsolete badge info (#129).
    Open source →
  11. 0.3.24 11 Dec 2021
    Release notes

    Fixed

    • Re-add target_supported(), which was accidentally removed in 0.3.15 (#128).
    Open source →
  12. 0.3.23 06 Dec 2021
    Release notes

    Changed

    • Improve error messages when a pkg-config package can't be found (#127).
    Open source →
  13. 0.3.22 24 Oct 2021
    Release notes

    Fixed

    • pkg-config compiles again with Rust 1.30 or newer. 0.3.21 accidentally made use of API only available since 1.40 (#124, #125).

    Changed

    • Switched from Travis to GitHub Actions for the CI. Travis is dysfunctional since quite some time (#126).
    Open source →
  14. 0.3.21 22 Oct 2021
    Release notes

    Fixed

    • Tests succeed again on macOS (#122).

    Changed

    • Improve error message in case of missing pkg-config and provide instructions how it can be installed (#121).
    Open source →
  15. 0.3.20 25 Sep 2021
    Release notes

    Fixed

    • Use target-specific pkg-config consistently everywhere (#121, #118).
    Open source →
  16. 0.3.19 13 Oct 2020
    Release notes

    Added

    • Add README.md to be displayed on crates.io (#111).

    • Support for -isystem, -iquote and -idirafter include flags (#115).

    Changed

    • Improve documentation for cross-compilation (#113).

    • Allow overriding system root via the PKG_CONFIG_SYSROOT_DIR or SYSROOT environment variable (#82).

    Open source →
  17. 0.3.18 11 Jul 2020
    Release notes

    Fixed

    • Use env::var_os() almost everywhere to handle non-UTF8 paths in environment variables, and also improve error handling around environment variable handling (#106).

    Changed

    • Default the env_metadata build parameter to true instead of false. Whenever a pkg-config related environment variable changes it would make sense to rebuild crates that use pkg-config, or otherwise changes might not be picked up. As such the previous default didn't make much sense (#105).
    Open source →
  18. 0.3.17 02 Nov 2019
    Release notes

    Fixed

    • Fix support for multiple version number constraints (#95)
    Open source →
  19. 0.3.16 09 Sep 2019
    Release notes

    Changed

    • Stop using deprecated functions and require Rust 1.30 (#84)

    Fixed

    • Fix repository URL in README.md
    • Fix various clippy warnings

    Added

    • Run cargo fmt as part of the CI (#89)
    • Derive Clone for Library and Debug for `Config (#91)
    • Add support for PKG_CONFIG_ALLOW_SYSTEM_CFLAGS and enable by default (#93)
    Open source →
  20. 0.3.15 25 Jul 2019
    Release notes

    Changed

    • Changes minimum documented rust version to 1.28 (#76)

    Fixed

    • Fix Travis CI badge url (#78)
    • Fix project name in README.md (#81)

    Added

    • Support specifying range of versions (#75)
    • Allow cross-compilation if pkg-config is customized (#44, #86)
    Open source →
  21. 0.3.14 28 Aug 2018
    Release notes

    Fixed

    • Don't append .lib suffix on MSVC builds (#72)
    Open source →
  22. 0.3.13 06 Aug 2018
    Release notes

    Fixed

    • Fix MSVC support to actually work and consider library paths too (#71)
    Open source →
  23. 0.3.12 18 Jul 2018
    Release notes

    Added

    • Support for MSVC (#70)
    • Document and test Rust 1.13 as minimally supported version (#66)
    Open source →
  24. 0.3.11 24 Apr 2018
    Release notes

    Fixed

    • Re-added AsciiExt import (#65)
    Open source →
  25. 0.3.10 23 Apr 2018
    Release notes

    Added

    • Allow static linking of /usr/ on macOS (#42)
    • Add support for parsing -Wl, style framework flags (#48)
    • Parse defines in pkg-config output (#49)
    • Rerun on PKG_CONFIG_PATH changes (#50)
    • Introduce target-scoped variables (#58)
    • Respect pkg-config escaping rules used with --cflags and --libs (#61)

    Changed

    • Use ? instead of try!() in the codebase (#63)
    Open source →
  26. 0.3.9 24 Jan 2017

    Nothing published for this version

  27. 0.3.8 08 Mar 2016

    Nothing published for this version

  28. 0.3.7 17 Feb 2016

    Nothing published for this version

  29. 0.3.6 05 Oct 2015

    Nothing published for this version

  30. 0.3.5 16 Jun 2015

    Nothing published for this version

  31. 0.3.4 06 May 2015

    Nothing published for this version

  32. 0.3.3 02 Apr 2015

    Nothing published for this version

  33. 0.3.2 25 Mar 2015

    Nothing published for this version

  34. 0.3.1 11 Mar 2015

    Nothing published for this version

  35. 0.3.0 22 Feb 2015

    Nothing published for this version

  36. 0.2.2 20 Feb 2015

    Nothing published for this version

  37. 0.2.1 12 Feb 2015

    Nothing published for this version

  38. 0.2.0 05 Feb 2015

    Nothing published for this version

  39. 0.1.7 28 Jan 2015

    Nothing published for this version

  40. 0.1.6 23 Jan 2015

    Nothing published for this version

  41. 0.1.5 19 Jan 2015

    Nothing published for this version

  42. 0.1.4 09 Jan 2015

    Nothing published for this version

  43. 0.1.3 03 Jan 2015

    Nothing published for this version

  44. 0.1.2 16 Dec 2014

    Nothing published for this version

  45. 0.1.1 09 Dec 2014

    Nothing published for this version

  46. 0.1.0 27 Nov 2014

    Nothing published for this version

  47. 0.0.1 11 Nov 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive