Cargo Features

[dependencies]
sqlx_wasi = { version = "0.6.2", 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, runtime-tokio-rustls

These default features are set whenever sqlx_wasi is added without default-features = false somewhere in the dependency tree.

macros default = sqlx-macros

Affects sqlx_wasi::ty_match…

migrate

Enables migrate of sqlx-core_wasi and sqlx-macros_wasi

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_wasi and sqlx-macros_wasi

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_wasi and sqlx-macros_wasi

runtime-tokio-native-tls runtime-actix-native-tls?

Enables runtime-tokio-native-tls of sqlx-core_wasi and sqlx-macros_wasi

runtime-actix-rustls = runtime-tokio-rustls
runtime-async-std-rustls

Enables runtime-async-std-rustls of sqlx-core_wasi and sqlx-macros_wasi

runtime-tokio-rustls default runtime-actix-rustls?

Enables runtime-tokio-rustls of sqlx-core_wasi and sqlx-macros_wasi

any all-databases?

database

Enables any of sqlx-core_wasi

postgres all-databases?

Enables postgres of sqlx-core_wasi and sqlx-macros_wasi

mysql all-databases?

Enables mysql of sqlx-core_wasi and sqlx-macros_wasi

sqlx-macros_wasi:

database

sqlite all-databases?

Enables sqlite of sqlx-core_wasi and sqlx-macros_wasi

mssql all-databases?

Enables mssql of sqlx-core_wasi and sqlx-macros_wasi

bigdecimal all-types?

types

Enables bigdecimal of sqlx-core_wasi and sqlx-macros_wasi

decimal all-types?

Enables decimal of sqlx-core_wasi and sqlx-macros_wasi

chrono all-types?

Enables chrono of sqlx-core_wasi and sqlx-macros_wasi

ipnetwork all-types?

Enables ipnetwork of sqlx-core_wasi and sqlx-macros_wasi

mac_address all-types?

Enables mac_address of sqlx-core_wasi and sqlx-macros_wasi

uuid all-types?

Enables uuid of sqlx-core_wasi and sqlx-macros_wasi

json all-types?

Enables json of sqlx-core_wasi and sqlx-macros_wasi

time all-types?

Enables time of sqlx-core_wasi and sqlx-macros_wasi

bit-vec all-types?

Enables bit-vec of sqlx-core_wasi and sqlx-macros_wasi

bstr all-types?

Enables bstr of sqlx-core_wasi

git2 all-types?

Enables git2 of sqlx-core_wasi

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-macros bigdecimal? bit-vec? chrono? decimal? ipnetwork? json? mac_address? macros migrate? mssql? mysql? offline? postgres? runtime-async-std-native-tls? runtime-async-std-rustls? runtime-tokio-native-tls? runtime-tokio-rustls sqlite? time? uuid?

Enables sqlx-macros_wasi