Cargo Features
[dependencies]
sqlx-oldapi = { version = "0.6.38", default-features = false, features = ["macros", "migrate", "tls", "offline", "all", "all-databases", "all-types", "runtime-actix", "runtime-tokio", "runtime-actix-native-tls", "runtime-async-std-native-tls", "runtime-tokio-native-tls", "runtime-actix-rustls", "runtime-async-std-rustls", "runtime-tokio-rustls", "any", "postgres", "mysql", "sqlite", "mssql", "bigdecimal", "decimal", "chrono", "ipnetwork", "mac_address", "uuid", "json", "time", "bit-vec", "bstr", "git2"] }
- default = macros, migrate
-
These default features are set whenever
sqlx-oldapi
is added without
somewhere in the dependency tree.default-features = false - macros default = sqlx-macros
-
Affects
sqlx-oldapi::ty_match
… - migrate default
-
Enables migrate of sqlx-core-oldapi and sqlx-macros-oldapi
- tls all?
-
[deprecated] TLS is not possible to disable due to it being conditional on multiple features
Hopefully Cargo can handle this in the future - offline
-
offline building support in
sqlx-macros
Enables offline of sqlx-core-oldapi and sqlx-macros-oldapi
- all = all-databases, all-types, tls
-
intended mainly for CI and docs
- all-databases all? = any, mssql, mysql, postgres, sqlite
- all-types all? = bigdecimal, bit-vec, bstr, chrono, decimal, git2, ipnetwork, json, mac_address, time, uuid
- runtime-actix
-
previous runtimes, available as features for error messages better than just "feature doesn't exist"
- runtime-async-std runtime-tokio
- runtime-actix-native-tls = runtime-tokio-native-tls
-
actual runtimes
- runtime-async-std-native-tls
-
Enables runtime-async-std-native-tls of sqlx-core-oldapi and sqlx-macros-oldapi
- runtime-tokio-native-tls runtime-actix-native-tls?
-
Enables runtime-tokio-native-tls of sqlx-core-oldapi and sqlx-macros-oldapi
- runtime-actix-rustls = runtime-tokio-rustls
- runtime-async-std-rustls
-
Enables runtime-async-std-rustls of sqlx-core-oldapi and sqlx-macros-oldapi
- runtime-tokio-rustls runtime-actix-rustls?
-
Enables runtime-tokio-rustls of sqlx-core-oldapi and sqlx-macros-oldapi
- any all-databases?
-
database
Enables any of sqlx-core-oldapi
- postgres all-databases?
-
Enables postgres of sqlx-core-oldapi and sqlx-macros-oldapi
- mysql all-databases?
-
Enables mysql of sqlx-core-oldapi and sqlx-macros-oldapi
sqlx-macros-oldapi:
database
- sqlite all-databases?
-
Enables sqlite of sqlx-core-oldapi and sqlx-macros-oldapi
- mssql all-databases?
-
Enables mssql of sqlx-core-oldapi and sqlx-macros-oldapi
- bigdecimal all-types?
-
types
Enables bigdecimal of sqlx-core-oldapi and sqlx-macros-oldapi
- decimal all-types?
-
Enables decimal of sqlx-core-oldapi and sqlx-macros-oldapi
- chrono all-types?
-
Enables chrono of sqlx-core-oldapi and sqlx-macros-oldapi
- ipnetwork all-types?
-
Enables ipnetwork of sqlx-core-oldapi and sqlx-macros-oldapi
- mac_address all-types?
-
Enables mac_address of sqlx-core-oldapi and sqlx-macros-oldapi
- uuid all-types?
-
Enables uuid of sqlx-core-oldapi and sqlx-macros-oldapi
- json all-types?
-
Enables json of sqlx-core-oldapi and sqlx-macros-oldapi
- time all-types?
-
Enables time of sqlx-core-oldapi and sqlx-macros-oldapi
- bit-vec all-types?
-
Enables bit-vec of sqlx-core-oldapi and sqlx-macros-oldapi
- bstr all-types?
-
Enables bstr of sqlx-core-oldapi
- git2 all-types?
-
Enables git2 of sqlx-core-oldapi
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.