Cargo Features
[dependencies]
sqlx-core-guts = { version = "0.6.0", 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-guts
is added without
somewhere in the dependency tree.default-features = false - migrate default = crc, sha2
-
Affects
sqlx-core-guts::migrate
,mysql::migrate
,postgres::migrate
… - all-databases = any, mssql, mysql, postgres, sqlite
-
databases
- postgres all-databases? = base64, dirs, hkdf, hmac, json, md-5, rand, sha-1, sha2, whoami
-
Enables futures-channel and futures-util
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-guts::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-guts::any
… - mysql all-databases? = digest, generic-array, num-bigint, rand, rsa, sha-1, sha2
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-guts::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-guts::any
… - sqlite all-databases? = flume, futures-executor, libsqlite3-sys
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-guts::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-guts::any
… - mssql all-databases? = encoding_rs, regex, uuid
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core-guts::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-guts::any
… - any all-databases?
-
Affects
sqlx-core-guts::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 = tokio-stream
-
runtimes
Enables runtime-actix-native-tls of sqlx ^0.6.0 and sqlx-rt
- runtime-async-std-native-tls
-
Enables runtime-async-std-native-tls of sqlx ^0.6.0 and sqlx-rt
sqlx:
Legacy Runtime + TLS features
- runtime-tokio-native-tls = tokio-stream
-
Enables runtime-tokio-native-tls of sqlx ^0.6.0 and sqlx-rt
- runtime-actix-rustls = rustls, rustls-pemfile, tokio-stream, webpki-roots
-
Enables runtime-actix-rustls of sqlx ^0.6.0 and sqlx-rt
- runtime-async-std-rustls = rustls, rustls-pemfile, webpki-roots
-
Enables runtime-async-std-rustls of sqlx ^0.6.0 and sqlx-rt
- runtime-tokio-rustls = rustls, rustls-pemfile, tokio-stream, webpki-roots
-
Enables runtime-tokio-rustls of sqlx ^0.6.0 and sqlx-rt
- 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?
-
Enables base64 ^0.13.0
- rust_decimal decimal?
- bit-vec all-types?
-
Enables bit-vec ^0.6.3
- chrono all-types?
-
Affects
types::chrono
… - crc migrate
- digest mysql?
- dirs postgres?
-
Enables dirs ^4.0.0
- 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?
-
Enables flume ^0.10.9
- generic-array mysql?
-
Enables generic-array ^0.14.4
- hmac postgres?
- ipnetwork all-types?
-
Enables ipnetwork ^0.19.0
Affects
types::ipnetwork
… - mac_address all-types?
-
Affects
types::mac_address
… - libsqlite3-sys sqlite?
-
Enables libsqlite3-sys ^0.24.1
- md-5 postgres?
- num-bigint bigdecimal? decimal? mysql?
- rand mysql? postgres?
- regex mssql?
- rsa mysql?
-
Enables rsa ^0.6.0
- rustls runtime-actix-rustls? runtime-async-std-rustls? runtime-tokio-rustls?
-
Enables rustls ^0.20.1
- rustls-pemfile runtime-actix-rustls? runtime-async-std-rustls? runtime-tokio-rustls?
-
Enables rustls-pemfile ^1.0
- serde json? offline?
- serde_json json?
- sha-1 mysql? postgres?
- sha2 migrate mysql? postgres?
- time all-types?
-
Affects
types::time
… - tokio-stream runtime-actix-native-tls? runtime-actix-rustls? runtime-tokio-native-tls? runtime-tokio-rustls?
- uuid all-types? mssql?
- webpki-roots runtime-actix-rustls? runtime-async-std-rustls? runtime-tokio-rustls?
-
Enables webpki-roots ^0.22.0
- whoami postgres?
- bstr implicit feature
-
Enables bstr ^0.2.17
bstr:
A string type that is not required to be valid UTF-8
Affects
types::bstr
… - git2 implicit feature
-
Enables git2 ^0.14
Affects
types::git2
… - hkdf postgres?
- bigdecimal_ bigdecimal?
-
Enables bigdecimal ^0.3.0