Cargo Features

sqlx-postgres has no features set by default.

[dependencies]
sqlx-postgres = { version = "0.7.4", features = ["any", "json", "migrate", "offline", "rust_decimal", "bigdecimal", "bit-vec", "chrono", "ipnetwork", "mac_address", "time", "uuid"] }
any

Enables any of sqlx-core

Affects sqlx-postgres::any

json

Enables sqlx-core

migrate

Enables migrate of sqlx-core

offline

Enables offline of sqlx-core

sqlx-core:

support offline/decoupled building (enables serialization of Describe)

rust_decimal

Type integration features which require additional dependencies

Enables maths of rust_decimal

bigdecimal

Enables bigdecimal ^0.3.0 and num-bigint

bigdecimal:

Type Integrations (versions inherited from [workspace.dependencies])

Features from optional dependencies

bit-vec implicit feature

Enables bit-vec

bit-vec:

A vector of bits

chrono implicit feature

Enables chrono

chrono:

Date and time library for Rust

ipnetwork implicit feature

Enables ipnetwork

ipnetwork:

A library to work with IP CIDRs in Rust

mac_address implicit feature

Enables mac_address

mac_address:

Cross-platform retrieval of a network interface MAC address

time implicit feature
uuid implicit feature

Enables uuid

uuid:

A library to generate and parse UUIDs