Cargo Features

[dependencies]
pgrx = { version = "0.12.0-alpha.1", default-features = false, features = ["cshim", "pg12", "pg13", "pg14", "pg15", "pg16", "no-schema-generation", "unsafe-postgres"] }
default = cshim

The cshim feature is set by default whenever pgrx is added without default-features = false somewhere in the dependency tree.

cshim default

Enables cshim of pgrx-pg-sys

Affects pgrx::hooks, pgrx::namespace, pgrx::spinlock, list::old_list

pg12

Enables pg12 of pgrx-pg-sys

Affects list::Enlist.mitosis, list::Enlist.mitosis_mut, hooks::JumbleState, datetime_support::get_timezone_offset

pg13

Enables pg13 of pgrx-pg-sys

Affects hooks::JumbleState, datetime_support::ToIsoString.to_iso_string_with_timezone, datetime_support::get_timezone_offset

pg14

Enables pg14 of pgrx-pg-sys

Affects datetime_support::ToIsoString.to_iso_string_with_timezone, datetime_support::get_timezone_offset

pg15

Enables pg15 of pgrx-pg-sys

Affects datetime_support::ToIsoString.to_iso_string_with_timezone, datetime_support::get_timezone_offset

pg16

Enables pg16 of pgrx-pg-sys

Affects datetime_support::get_timezone_offset, datetime_support::ToIsoString.to_iso_string_with_timezone

no-schema-generation

Enables no-schema-generation of pgrx-macros and pgrx-sql-entity-graph

unsafe-postgres

when trying to compile against something that looks like Postgres but claims to be diffent