Cargo Features
[dependencies]
spring-sqlx = { version = "0.2.3", 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
somewhere in the dependency tree.default-features = false Enables sqlx
- postgres
-
Affects
spring-sqlx::ConnectPool
… - mysql
- sqlite
- 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
- with-rust_decimal = rust_decimal
-
Enables rust_decimal of optional sqlx
- with-bigdecimal = bigdecimal
-
Enables bigdecimal of optional sqlx
- with-uuid = uuid
- with-time = time
- 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?
-
Enables bigdecimal ^0.3
- chrono with-chrono?
- time with-time?
- uuid with-uuid?