Cargo Features
[dependencies]
sqlx-core-oldapi = { version = "0.6.34", default-features = false, features = ["migrate", "all-databases", "postgres", "mysql", "sqlite", "mssql", "any", "all-types", "bigdecimal", "decimal", "json", "runtime-actix-native-tls", "runtime-async-std-native-tls", "runtime-tokio-native-tls", "runtime-actix-rustls", "runtime-async-std-rustls", "runtime-tokio-rustls", "offline", "bstr", "git2"] }
- default = migrate
-
The
migrate
feature is set by default wheneversqlx-core-oldapi
is added without
somewhere in the dependency tree.default-features = false - migrate default = crc, sha2
-
Affects
sqlx-core-oldapi::migrate
,sqlx-core-oldapi::testing
… - all-databases = any, mssql, mysql, postgres, sqlite
-
databases
- postgres all-databases? = base64, dirs, hkdf, hmac, json, md-5, rand, sha1, sha2, whoami
-
Enables futures-channel and futures-util
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-oldapi::postgres
,column::AnyColumnIndex
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,encode::AnyEncode
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,sqlx-core-oldapi::any
… - mysql all-databases? = digest, num-bigint, rand, rsa, sha1, sha2
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-oldapi::mysql
,column::AnyColumnIndex
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,encode::AnyEncode
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,sqlx-core-oldapi::any
… - sqlite all-databases? = flume, futures-executor, libsqlite3-sys
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-oldapi::sqlite
,column::AnyColumnIndex
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,encode::AnyEncode
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,sqlx-core-oldapi::any
… - mssql all-databases? = encoding_rs, regex, uuid
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-oldapi::mssql
,column::AnyColumnIndex
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,encode::AnyEncode
,column::AnyColumnIndex
,column::AnyColumnIndex
,decode::AnyDecode
,decode::AnyDecode
,encode::AnyEncode
,encode::AnyEncode
,sqlx-core-oldapi::any
… - any all-databases?
-
Affects
sqlx-core-oldapi::any
… - all-types = bigdecimal, bit-vec, chrono, decimal, ipnetwork, json, mac_address, time, uuid
-
types
- bigdecimal all-types? = bigdecimal_, num-bigint
- decimal all-types? = num-bigint, rust_decimal
- json all-types? postgres? = serde, serde_json
- runtime-actix-native-tls = runtime-tokio-native-tls
-
runtimes
- runtime-async-std-native-tls
-
Enables runtime-async-std-native-tls of sqlx-rt-oldapi
- runtime-tokio-native-tls runtime-actix-native-tls? = tokio-stream, tokio-util
-
Enables runtime-tokio-native-tls of sqlx-rt-oldapi
- runtime-actix-rustls = runtime-tokio-rustls
- runtime-async-std-rustls = rustls, rustls-pemfile, webpki-roots
-
Enables runtime-async-std-rustls of sqlx-rt-oldapi
- runtime-tokio-rustls runtime-actix-rustls? = rustls, rustls-pemfile, tokio-stream, tokio-util, webpki-roots
-
Enables runtime-tokio-rustls of sqlx-rt-oldapi
- offline = serde
-
support offline/decoupled building (enables serialization of
Describe
)
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.
- base64 postgres?
- rust_decimal decimal?
- bit-vec all-types?
- chrono all-types?
-
Affects
types::chrono
… - crc migrate
- digest mysql?
- dirs postgres?
- encoding_rs mssql?
- futures-executor sqlite?
-
Enables futures-executor
used by the SQLite worker thread to block on the async mutex that locks the database handle
- flume sqlite?
- hmac postgres?
- ipnetwork all-types?
-
Affects
types::ipnetwork
… - mac_address all-types?
-
Affects
types::mac_address
… - libsqlite3-sys sqlite?
- md-5 postgres?
- num-bigint bigdecimal? decimal? mysql?
- rand mysql? postgres?
- regex mssql?
- rsa mysql?
- rustls runtime-async-std-rustls? runtime-tokio-rustls?
-
Enables rustls ^0.22.4
- rustls-pemfile runtime-async-std-rustls? runtime-tokio-rustls?
- serde json? offline?
- serde_json json?
- sha1 mysql? postgres?
- sha2 migrate mysql? postgres?
- time all-types?
-
Affects
types::time
… - tokio-stream runtime-tokio-native-tls? runtime-tokio-rustls?
- tokio-util runtime-tokio-native-tls? runtime-tokio-rustls?
- uuid all-types? mssql?
- webpki-roots runtime-async-std-rustls? runtime-tokio-rustls?
- whoami postgres?
- bstr implicit feature
-
Enables bstr
bstr:
A string type that is not required to be valid UTF-8
Affects
types::bstr
… - git2 implicit feature
-
Affects
types::git2
… - hkdf postgres?
- bigdecimal_ bigdecimal?
-
Enables bigdecimal