PackageTrack
Sign in Get early access

pq-sys

Auto-generated rust bindings for libpq

0.7.5 19M downloads/mo #2146 most downloaded on crates.io sgrif/pq-sys

What this package is like to depend on

Last release 10 months ago

15 Oct 2025

Release timing varies

gaps range from 8 days to 9 months

Most releases are documented

notes for 22 of 32 stable releases

1 version withdrawn

withdrawn after publishing

11 years old

33 releases · first in 2015

3 releases in the last 12 months

see the full history below

Release timeline

33 releases · Sep 2015 to Oct 2025
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 33
  1. 0.7.5 15 Oct 2025
    Release notes

    What's Changed

    Full Changelog: v0.7.4...v0.7.5

    Open source →
  2. 0.7.4 09 Oct 2025
    Release notes

    What's Changed

    • Exclude generate_bindings.sh script from published package by @weiznich in #94

    Full Changelog: v0.7.3...v0.7.4

    Open source →
  3. 0.7.3 01 Oct 2025
    Release notes
    • Update the bundled version of libpq to 18.0
    • Regenerate bindings for the new postgres release
    • Enable the pkg-config feature by default

    Full Changelog: v0.7.2...v0.7.3

    Open source →
  4. 0.7.2 12 Jun 2025
    Release notes

    What's Changed

    • Bump bindgen to 0.72.0 and regenerate bindings
    • Fixed an issue with bundled builds without openssl on windows due to a breaking upstream rust change

    Full Changelog: v0.3.8...v0.7.2

    Open source →
  5. 0.7.1 27 Mar 2025
    Release notes
    • Restore compatibilities with non-cargo build systems
    • Add a safe-guard to make sure users get a better error message if the build script is not run
    Open source →
  6. 0.7.0 10 Jan 2025

    Nothing published for this version

  7. 0.6.3 18 Sep 2024

    Nothing published for this version

  8. 0.6.2 09 Sep 2024

    Nothing published for this version

  9. 0.6.1 11 Jun 2024
    Release notes

    Changed

    • pq-src starting with version 0.3 now depends on openssl on windows as well add support for the scram-sha-256 authentication method
    • pq-sys adds support for pq-src 0.3.0
    Open source →
  10. 0.6.0 17 May 2024
    Release notes

    Changed

    • The bundled feature of pq-sys no longer build a bundled version of openssl. To bundle openssl when compiling libpq from source, add openssl-sys with the vendored feature to your crate dependencies:
      [dependencies]
      openssl-sys = { version = "0.9.93", features = ["vendored"] }
      
    Open source →
  11. 0.5.0 19 Jan 2024
    Release notes

    Added

    • We added a pq-src crate and a bundled feature for pq-sys. This allows to build and link a static version of libpq during the rust build process. This feature currently supports builds targeting Windows, Linux and macOS. It requires a c-compiler toolchain for the target to build libpq from source.
    • We added a buildtime_bindgen feature flag that allows to generate bindings for your locally installed libpq version. This is helpful for cases where the target architecture is significantly different to what the built-in bindings assume.

    Changed

    • We regenerated the bundled bindings to match the libpq version build by the bundled feature flag
    Open source →
  12. 0.4.8 18 Apr 2023

    Nothing published for this version

  13. 0.4.7 18 Jul 2022

    Nothing published for this version

  14. 0.4.6 15 Jul 2018

    Nothing published for this version

  15. 0.4.5 09 May 2018
    Release notes

    Added

    • Linking can now be dynamically handled per-target by specifying the TARGET environment variable and PQ_LIB_STATIC_$TARGET environment variable.

    • The path to pg_config can now be dynamically handled per-target by specifying the TARGET environment variable and PG_CONFIG_$TARGET environment variable.

    Open source →
  16. 0.4.4 04 Jul 2017

    Nothing published for this version

  17. 0.4.3 10 Mar 2017
    Release notes

    Fixed

    • Linking on the msvc toolchain will no longer attempt to statically link
    Open source →
  18. 0.4.2 19 Feb 2017
    Release notes

    Fixed

    • Improved linking on Windows, particularly with the msvc toolchain.
    Open source →
  19. 0.4.1 19 Feb 2017
    Release notes

    Fixed

    • Properly specified the build script
    Open source →
  20. 0.4.0 19 Feb 2017 withdrawn
    Release notes

    Changed

    • Bindings are no longer generated at compile time. Requiring clang 3.9 caused too many issues for too many users, and requiring syntex_syntax increased compile time too much.
    Open source →
  21. 0.3.2 16 Feb 2017
    Release notes

    Fixed

    • Fixed an issue when building on mac against postgres from homebrew
    Open source →
  22. 0.3.1 16 Feb 2017
    Release notes

    Fixed

    • Fixed an issue when building on mac against postgres from homebrew

    • Fixed an issue with locating header files on linux

    Open source →
  23. 0.3.0 16 Feb 2017
    Release notes

    Changed

    • Bindings are now generated when the library is built, rather than being vendored ahead of time.

    • libc is no longer used. Anywhere that libc::some_type was expected, std::os::raw::some_type is now used instead.

    • The build script will no longer attempt to canonicalize symlinks on MacOS.

    Open source →
  24. 0.2.7 10 Dec 2016
    Release notes

    Changed

    • pkg-config is disabled by default. It can be enabled by adding features = ["pkg-config"] to your Cargo.toml.
    Open source →
  25. 0.2.6 10 Dec 2016
    Release notes

    Added

    • We will attempt to use pkg-config to locate libpq before falling back to pg_config.
    Open source →
  26. 0.2.5 10 Dec 2016
    Release notes
    • No changes. Accidental release on the wrong commit.
    Open source →
  27. 0.2.4 22 Nov 2016
    Release notes

    Added

    • pq will be statically linked if the environment variable PQ_LIB_STATIC is set.
    Open source →
  28. 0.2.3 12 Aug 2016
    Release notes

    Changed

    • On Mac if pg_config points to a directory where libpq.dylib is a symlink, we will now attempt to find the canonical directory to link against. This means that for installations using homebrew, /usr/local/Cellar/postgresql/version/lib will be added to DYLD_LIBRARY_PATH instead of /usr/local/lib
    Open source →
  29. 0.2.2 30 Jul 2016
    Release notes

    Added

    • The directory containing libpq for linking can now be specified via the PQ_LIB_DIR environment variable.
    Open source →
  30. 0.2.1 17 Dec 2015

    Nothing published for this version

  31. 0.2.0 21 Nov 2015

    Nothing published for this version

  32. 0.1.1 09 Sep 2015
    Release notes

    Changed

    • We updated the bundled libpq version to 16.2 to fix compatibility with openssl 3.2
    • We changed the build script to expose the bundled libpq headers by setting DEP_PQ_SYS_SRC_INCLUDE so that other *-sys crates can consume that information and reuse the bundled build provided by this crate
    Open source →
  33. 0.1.0 09 Sep 2015

    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