Cargo Features

[dependencies]
pgx = { version = "0.7.4", default-features = false, features = ["cshim", "pg11", "pg12", "pg13", "pg14", "pg15", "time-crate", "no-schema-generation", "unsafe-postgres"] }
default = cshim

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

cshim default

Enables cshim of pgx-pg-sys

Affects pgx::hooks, pgx::list, pgx::namespace, pgx::spinlock

pg11

Enables pg11 of pgx-pg-sys

Affects xid::xid_to_64bit, hooks::JumbleState

pg12

Enables pg12 of pgx-pg-sys

Affects hooks::JumbleState, xid::xid_to_64bit

pg13

Enables pg13 of pgx-pg-sys

Affects hooks::JumbleState, xid::xid_to_64bit

pg14

Enables pg14 of pgx-pg-sys

Affects xid::xid_to_64bit

pg15

Enables pg15 of pgx-pg-sys

Affects xid::xid_to_64bit

time-crate

Enables time

no-schema-generation

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

unsafe-postgres

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