Skip to content

Commit

Permalink
Release pgx 0.5.3 (#787)
Browse files Browse the repository at this point in the history
This cuts pgx 0.5.3, which is mostly a bugfix release that covers a handful of
errors that had crept in to the end of the 0.5.0 test and release cycle.
  • Loading branch information
workingjubilee authored Oct 19, 2022
2 parents d1ffdb2 + af51855 commit 18955c7
Show file tree
Hide file tree
Showing 53 changed files with 121,452 additions and 62,384 deletions.
3 changes: 0 additions & 3 deletions .cargo/config

This file was deleted.

3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.'cfg(target_os="macos")']
# Postgres symbols won't be available until runtime
rustflags = ["-Clink-arg=-Wl,-undefined,dynamic_lookup"]
14 changes: 4 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
- develop

env:
RUSTFLAGS: -Copt-level=0
# NB: Don't modify `RUSTFLAGS` here, since it would override the ones
# configured by `.cargo/config.toml` on macOS.
RUST_BACKTRACE: 1
CARGO_INCREMENTAL: "false"
# CARGO_LOG: cargo::core::compiler::fingerprint=info # Uncomment this to output compiler fingerprint info
Expand All @@ -24,6 +25,7 @@ jobs:
env:
RUSTC_WRAPPER: sccache
SCCACHE_DIR: /home/runner/.cache/sccache
RUSTFLAGS: -Copt-level=0

strategy:
matrix:
Expand Down Expand Up @@ -214,6 +216,7 @@ jobs:
env:
RUSTC_WRAPPER: sccache
SCCACHE_DIR: /home/runner/.cache/sccache
RUSTFLAGS: -Copt-level=0

strategy:
matrix:
Expand Down Expand Up @@ -356,15 +359,6 @@ jobs:
echo "PG_VER=$PG_VER" >> $GITHUB_ENV
cat $GITHUB_ENV
echo "----- Installing yq so .toml files can be parsed and queried -----"
pip3 install yq
echo ""
echo "----- Setting up RUSTFLAGS found in .cargo/config -----"
echo "RUSTFLAGS=$RUSTFLAGS $(tomlq --raw-output '.build.rustflags | join(" ")' .cargo/config)" >> $GITHUB_ENV
cat $GITHUB_ENV
echo ""
echo "----- Set up Postgres permissions -----"
sudo chmod a+rwx `$(which pg_config) --pkglibdir` `$(which pg_config) --sharedir`/extension
ls -lath `$(which pg_config) --pkglibdir` `$(which pg_config) --sharedir`/extension
Expand Down
112 changes: 80 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@

- A Rust toolchain: `rustc`, `cargo`, and `rustfmt`. The recommended way to get these is from https://rustup.rs
- `git`
- `libclang`
- `libclang` 5.0 or greater (required by bindgen)
- Ubuntu: `apt install libclang-dev` or `apt install clang`
- RHEL: `yum install clang`
- `tar`
- `bzip2`
- GCC 7 or newer
- [PostgreSQL's build dependencies](https://wiki.postgresql.org/wiki/Compile_and_Install_from_source_code)

† PGX has no MSRV policy, thus may require the latest stable version of Rust, available via Rustup

‡ A local PostgreSQL server installation is not required. `cargo pgx` can download and compile PostgreSQL versions on its own.

<details>
Expand Down
6 changes: 3 additions & 3 deletions cargo-pgx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-pgx"
version = "0.5.2"
version = "0.5.3"
authors = ["ZomboDB, LLC <[email protected]>"]
license = "MIT"
description = "Cargo subcommand for 'pgx' to make Postgres extension development easy"
Expand All @@ -23,8 +23,8 @@ semver = "1.0.14"
owo-colors = { version = "3.5.0", features = [ "supports-colors" ] }
env_proxy = "0.4.1"
num_cpus = "1.13.1"
pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.2" }
pgx-utils = { path = "../pgx-utils", version = "=0.5.2" }
pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.3" }
pgx-utils = { path = "../pgx-utils", version = "=0.5.3", features = ["syntax-highlighting"] }
prettyplease = "0.1.21"
proc-macro2 = { version = "1.0.47", features = [ "span-locations" ] }
quote = "1.0.21"
Expand Down
Loading

0 comments on commit 18955c7

Please sign in to comment.