Cargo Features
[dependencies]
sqlx-core_wasi = { version = "0.6.2", 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 = runtime-tokio-rustls
-
The
runtime-tokio-rustls
feature is set by default wheneversqlx-core_wasi
is added without
somewhere in the dependency tree.default-features = false - migrate = crc, sha2
-
Affects
sqlx-core_wasi::migrate
,sqlx-core_wasi::testing
… - all-databases = any, mssql, mysql, postgres, sqlite
-
databases
- postgres all-databases? = base64, dirs, hkdf, hmac, json, md-5, rand, sha1, sha2
-
Enables futures-channel and futures-util
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core_wasi::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_wasi::any
… - mysql all-databases? = digest, generic-array, num-bigint, rand, rsa, sha1, sha2
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core_wasi::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_wasi::any
… - sqlite all-databases? = flume, futures-executor, libsqlite3-sys
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core_wasi::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_wasi::any
… - mssql all-databases? = encoding_rs, regex, uuid
-
Affects
column::AnyColumnIndex
,decode::AnyDecode
,encode::AnyEncode
,sqlx-core_wasi::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_wasi::any
… - any all-databases?
-
Affects
sqlx-core_wasi::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_wasi
- runtime-tokio-native-tls runtime-actix-native-tls? = tokio-stream_wasi
-
Enables runtime-tokio-native-tls of sqlx-rt_wasi
- runtime-actix-rustls = runtime-tokio-rustls
- runtime-async-std-rustls = rustls, rustls-pemfile, webpki-roots
-
Enables runtime-async-std-rustls of sqlx-rt_wasi
- runtime-tokio-rustls default runtime-actix-rustls? = tokio-stream_wasi
-
Enables runtime-tokio-rustls of sqlx-rt_wasi
- 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-async-std-rustls?
-
Enables rustls ^0.20.1
- rustls-pemfile runtime-async-std-rustls?
-
Enables rustls-pemfile ^1.0
- serde json? offline?
- serde_json json?
- sha1 mysql? postgres?
- sha2 migrate? mysql? postgres?
- time all-types?
-
Affects
types::time
… - tokio-stream_wasi runtime-tokio-native-tls? runtime-tokio-rustls
- uuid all-types? mssql?
- webpki-roots runtime-async-std-rustls?
-
Enables webpki-roots ^0.22.0
- 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