All user visible changes to this project will be documented in this file. This project adheres to Semantic Versioning, as described for Rust libraries in RFC #1105
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.
syntex_syntax
increased compile time too much.Fixed an issue when building on mac against postgres from homebrew
Fixed an issue with locating header files on linux
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.
pkg-config
is disabled by default. It can be enabled by adding features = ["pkg-config"]
to your Cargo.toml
.pkg-config
to locate libpq before falling back to pg_config
.pq
will be statically linked if the environment variable PQ_LIB_STATIC
is set.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
PQ_LIB_DIR
environment variable.