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 2025Releases
latest 33-
0.7.515 Oct 2025Release notes
Open source → -
0.7.409 Oct 2025 -
0.7.301 Oct 2025Release notes
Open source →- Update the bundled version of libpq to 18.0
- Regenerate bindings for the new postgres release
- Enable the
pkg-configfeature by default
Full Changelog: v0.7.2...v0.7.3
-
0.7.212 Jun 2025Release notes
Open source →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
-
0.7.127 Mar 2025Release notes
Open source →- 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
-
0.7.010 Jan 2025Nothing published for this version
-
0.6.318 Sep 2024Nothing published for this version
-
0.6.209 Sep 2024Nothing published for this version
-
0.6.111 Jun 2024Release notes
Open source →Changed
pq-srcstarting with version 0.3 now depends on openssl on windows as well add support for the scram-sha-256 authentication methodpq-sysadds support for pq-src 0.3.0
-
0.6.017 May 2024Release notes
Open source →Changed
- The
bundledfeature ofpq-sysno longer build a bundled version ofopenssl. To bundleopensslwhen compilinglibpqfrom source, addopenssl-syswith thevendoredfeature to your crate dependencies:[dependencies] openssl-sys = { version = "0.9.93", features = ["vendored"] }
- The
-
0.5.019 Jan 2024Release notes
Open source →Added
- We added a
pq-srccrate and abundledfeature forpq-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_bindgenfeature 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
bundledfeature flag
- We added a
-
0.4.818 Apr 2023Nothing published for this version
-
0.4.718 Jul 2022Nothing published for this version
-
0.4.615 Jul 2018Nothing published for this version
-
0.4.509 May 2018Release notes
Open source →Added
-
Linking can now be dynamically handled per-target by specifying the
TARGETenvironment variable andPQ_LIB_STATIC_$TARGETenvironment variable. -
The path to
pg_configcan now be dynamically handled per-target by specifying theTARGETenvironment variable andPG_CONFIG_$TARGETenvironment variable.
-
-
0.4.404 Jul 2017Nothing published for this version
-
0.4.310 Mar 2017Release notes
Open source →Fixed
- Linking on the msvc toolchain will no longer attempt to statically link
-
0.4.219 Feb 2017Release notes
Open source →Fixed
- Improved linking on Windows, particularly with the msvc toolchain.
-
0.4.119 Feb 2017 -
0.4.019 Feb 2017 withdrawnRelease notes
Open source →Changed
- Bindings are no longer generated at compile time. Requiring clang 3.9 caused
too many issues for too many users, and requiring
syntex_syntaxincreased compile time too much.
- Bindings are no longer generated at compile time. Requiring clang 3.9 caused
too many issues for too many users, and requiring
-
0.3.216 Feb 2017Release notes
Open source →Fixed
- Fixed an issue when building on mac against postgres from homebrew
-
0.3.116 Feb 2017Release notes
Open source →Fixed
-
Fixed an issue when building on mac against postgres from homebrew
-
Fixed an issue with locating header files on linux
-
-
0.3.016 Feb 2017Release notes
Open source →Changed
-
Bindings are now generated when the library is built, rather than being vendored ahead of time.
-
libcis no longer used. Anywhere thatlibc::some_typewas expected,std::os::raw::some_typeis now used instead. -
The build script will no longer attempt to canonicalize symlinks on MacOS.
-
-
0.2.710 Dec 2016Release notes
Open source →Changed
pkg-configis disabled by default. It can be enabled by addingfeatures = ["pkg-config"]to yourCargo.toml.
-
0.2.610 Dec 2016Release notes
Open source →Added
- We will attempt to use
pkg-configto locate libpq before falling back topg_config.
- We will attempt to use
-
0.2.510 Dec 2016 -
0.2.422 Nov 2016Release notes
Open source →Added
pqwill be statically linked if the environment variablePQ_LIB_STATICis set.
-
0.2.312 Aug 2016Release notes
Open source →Changed
- On Mac if
pg_configpoints to a directory wherelibpq.dylibis 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/libwill be added toDYLD_LIBRARY_PATHinstead of/usr/local/lib
- On Mac if
-
0.2.230 Jul 2016Release notes
Open source →Added
- The directory containing libpq for linking can now be specified via the
PQ_LIB_DIRenvironment variable.
- The directory containing libpq for linking can now be specified via the
-
0.2.117 Dec 2015Nothing published for this version
-
0.2.021 Nov 2015Nothing published for this version
-
0.1.109 Sep 2015Release notes
Open source →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_INCLUDEso that other *-sys crates can consume that information and reuse the bundled build provided by this crate
-
0.1.009 Sep 2015Nothing published for this version