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-sqlxis added withoutsomewhere in the dependency tree.default-features = false - derive
- macros default
- migrate default
- 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
- postgres
- mysql
- sqlite
- sqlite-unbundled
-
Enables sqlite-unbundled of sqlx
- sqlite-preupdate-hook
-
Enables sqlite-preupdate-hook of sqlx
sqlx:
Enables
sqlite3_preupdate_hookRequires-DSQLITE_ENABLE_PREUPDATE_HOOK(set automatically withsqlite-bundled) - json default
-
types
- bigdecimal
-
Enables bigdecimal of sqlx
- bit-vec
- chrono
- ipnet
- ipnetwork
- mac_address
-
Enables mac_address of sqlx
- rust_decimal
-
Enables rust_decimal of sqlx
- time
- uuid
- regexp
- bstr