Cargo Features

[dependencies]
mobc-sqlx = { version = "2.0.0", default-features = false, features = ["derive", "macros", "migrate", "all-databases", "tls-native-tls", "tls-rustls-aws-lc-rs", "tls-rustls-ring-webpki", "tls-rustls-ring-native-roots", "tls-none", "any", "postgres", "mysql", "sqlite", "sqlite-unbundled", "sqlite-preupdate-hook", "json", "bigdecimal", "bit-vec", "chrono", "ipnet", "ipnetwork", "mac_address", "rust_decimal", "time", "uuid", "regexp", "bstr"] }
default = any, json, macros, migrate

These default features are set whenever mobc-sqlx is added without default-features = false somewhere in the dependency tree.

derive

Enables derive of sqlx

macros default

Enables macros of sqlx

migrate default

Enables migrate of sqlx

all-databases

intended mainly for CI and docs

Enables all-databases of sqlx

tls-native-tls

TLS features

Enables tls-native-tls of sqlx

tls-rustls-aws-lc-rs

Enables tls-rustls-aws-lc-rs of sqlx

tls-rustls-ring-webpki

Enables tls-rustls-ring-webpki of sqlx

tls-rustls-ring-native-roots

Enables tls-rustls-ring-native-roots of sqlx

tls-none

No-op feature used by the workflows to compile without TLS enabled. Not meant for general use.

any default

database

Enables any of sqlx

postgres

Enables postgres of sqlx

mysql

Enables mysql of sqlx

sqlite

Enables sqlite of sqlx

sqlite-unbundled

Enables sqlite-unbundled of sqlx

sqlite-preupdate-hook

Enables sqlite-preupdate-hook of sqlx

sqlx:

Enables sqlite3_preupdate_hook Requires -DSQLITE_ENABLE_PREUPDATE_HOOK (set automatically with sqlite-bundled)

json default

types

Enables json of sqlx

bigdecimal

Enables bigdecimal of sqlx

bit-vec

Enables bit-vec of sqlx

chrono

Enables chrono of sqlx

ipnet

Enables ipnet of sqlx

ipnetwork

Enables ipnetwork of sqlx

mac_address

Enables mac_address of sqlx

rust_decimal

Enables rust_decimal of sqlx

time

Enables time of sqlx

uuid

Enables uuid of sqlx

regexp

Enables regexp of sqlx

bstr

Enables bstr of sqlx