diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d064b3e..778e6df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,8 @@ jobs: - name: Test compile diesel shell: bash + # currently broken as diesel does not allow pq-sys 0.5 yet + continue-on-error: true run: | cargo new test_diesel cd test_diesel @@ -111,5 +113,6 @@ jobs: shell: bash if: matrix.features == 'bundled' run: | + rm -rf test_diesel cd pq-src cargo publish --dry-run diff --git a/CHANGELOG.md b/CHANGELOG.md index fa0c3fc..fc3ab42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All user visible changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/), as described for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/text/1105-api-evolution.md) +## [0.5.0] 2024-01-19 + +### 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 + ## [0.4.8] 2023-04-18 ## Fixed diff --git a/Cargo.toml b/Cargo.toml index 84de9ab..beddda7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pq-sys" -version = "0.4.8" +version = "0.5.0" description = "Auto-generated rust bindings for libpq" license = "MIT OR Apache-2.0" repository = "https://github.com/sgrif/pq-sys"