Skip to content

Commit

Permalink
Prepare pgrx 0.12.0 (pgcentralfoundation#1821)
Browse files Browse the repository at this point in the history
Cutting the 0.12.0 release as-is!

You may need to:
- rearrange some imports
- sed some types to use `pg_sys::EnumName::Type` (only the typedef, not
the constants)
- bump heapless to 0.8
- `impl ArgAbi` and `impl BoxRet` for custom types

Code which updates to this version of pgrx is actually sound for the
Postgres function ABI, so sorry about the breakages!
  • Loading branch information
workingjubilee authored Aug 20, 2024
1 parent 2d4220e commit 2de7a4e
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ exclude = [
cargo-pgrx = { path = "cargo-pgrx" }

[workspace.dependencies]
pgrx-macros = { path = "./pgrx-macros", version = "=0.12.0-beta.5" }
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.12.0-beta.5" }
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.12.0-beta.5" }
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.12.0-beta.5" }
pgrx-bindgen = { path = "./pgrx-bindgen", version = "0.12.0-beta.5" }
pgrx-macros = { path = "./pgrx-macros", version = "=0.12.0" }
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.12.0" }
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.12.0" }
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.12.0" }
pgrx-bindgen = { path = "./pgrx-bindgen", version = "0.12.0" }

cargo_metadata = "0.18.0"
cargo-edit = "0.12.2" # format-preserving edits to cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion cargo-pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "cargo-pgrx"
version = "0.12.0-beta.5"
version = "0.12.0"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy"
Expand Down
4 changes: 2 additions & 2 deletions cargo-pgrx/src/templates/cargo_toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ pg17 = ["pgrx/pg17", "pgrx-tests/pg17" ]
pg_test = []

[dependencies]
pgrx = "=0.12.0-beta.5"
pgrx = "=0.12.0"

[dev-dependencies]
pgrx-tests = "=0.12.0-beta.5"
pgrx-tests = "=0.12.0"

[profile.dev]
panic = "unwind"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pgrx-bindgen"
description = "additional bindgen support for pgrx"
version = "0.12.0-beta.5"
version = "0.12.0"
edition = "2021"
license = "MIT"
homepage = "https://github.com/pgcentralfoundation/pgrx"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-macros"
version = "0.12.0-beta.5"
version = "0.12.0"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Proc Macros for 'pgrx'"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-pg-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-pg-config"
version = "0.12.0-beta.5"
version = "0.12.0"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "A Postgres pg_config wrapper for 'pgrx'"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-pg-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-pg-sys"
version = "0.12.0-beta.5"
version = "0.12.0"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Generated Rust bindings for Postgres internals, for use with 'pgrx'"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-sql-entity-graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-sql-entity-graph"
version = "0.12.0-beta.5"
version = "0.12.0"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Sql Entity Graph for `pgrx`"
Expand Down
4 changes: 2 additions & 2 deletions pgrx-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-tests"
version = "0.12.0-beta.5"
version = "0.12.0"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Test framework for 'pgrx'-based Postgres extensions"
Expand Down Expand Up @@ -72,7 +72,7 @@ rand = "0.8.5"
[dependencies.pgrx] # Not unified in workspace due to default-features key
path = "../pgrx"
default-features = false
version = "=0.12.0-beta.5"
version = "=0.12.0"

[dev-dependencies]
eyre.workspace = true # testing functions that return `eyre::Result`
Expand Down
2 changes: 1 addition & 1 deletion pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx"
version = "0.12.0-beta.5"
version = "0.12.0"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "pgrx: A Rust framework for creating Postgres extensions"
Expand Down

0 comments on commit 2de7a4e

Please sign in to comment.