Cargo Features

[dependencies]
spring-sqlx = { version = "0.3.0", default-features = false, features = ["postgres", "mysql", "sqlite", "with-json", "with-chrono", "with-rust_decimal", "with-bigdecimal", "with-uuid", "with-time", "runtime-tokio", "runtime-tokio-native-tls", "runtime-tokio-rustls"] }
default = runtime-tokio-native-tls

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

Enables sqlx

postgres

Enables postgres of sqlx

Affects spring-sqlx::ConnectPool

mysql

Enables mysql of sqlx

sqlite

Enables sqlite of sqlx

with-json = serde_json

Enables serde of optional chrono, serde of optional time and optional uuid and json of optional sqlx

sqlx:

types

with-chrono = chrono

Enables chrono of optional sqlx

with-rust_decimal = rust_decimal

Enables rust_decimal of optional sqlx

with-bigdecimal = bigdecimal

Enables bigdecimal of optional sqlx

with-uuid = uuid

Enables uuid of optional sqlx

with-time = time

Enables time of optional sqlx

runtime-tokio runtime-tokio-native-tls runtime-tokio-rustls?

Enables runtime-tokio of optional sqlx

runtime-tokio-native-tls default = runtime-tokio

Enables runtime-tokio-native-tls of optional sqlx

runtime-tokio-rustls = runtime-tokio

Enables runtime-tokio-rustls of optional sqlx

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

sqlx default mysql? postgres? sqlite?
serde_json with-json?
rust_decimal with-rust_decimal?
bigdecimal with-bigdecimal?
chrono with-chrono?
time with-time?
uuid with-uuid?