Cargo Features

[dependencies]
sqlx-build-trust = { version = "0.7.9", default-features = false, features = ["macros", "migrate", "all-databases", "runtime-async-std", "runtime-tokio", "tls-native-tls", "tls-rustls", "tls-none", "runtime-async-std-native-tls", "runtime-async-std-rustls", "runtime-tokio-native-tls", "runtime-tokio-rustls", "any", "postgres", "mysql", "sqlite", "json", "bigdecimal", "bit-vec", "chrono", "ipnetwork", "mac_address", "rust_decimal", "time", "uuid", "regexp"] }
default = any, json, macros, migrate

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

macros default = sqlx-macros

Affects sqlx-build-trust::ty_match…

migrate default

Enables sqlx-build-trust-core, migrate of optional sqlx-build-trust-postgres, optional sqlx-build-trust-sqlite, optional sqlx-macros, and optional sqlx-mysql

all-databases = any, mysql, postgres, sqlite

intended mainly for CI and docs

runtime-async-std runtime-async-std-native-tls? runtime-async-std-rustls?

Base runtime features without TLS

Enables optional sqlx-macros, async-io and async-std of sqlx-build-trust-core

runtime-tokio runtime-tokio-native-tls? runtime-tokio-rustls?

Enables optional sqlx-macros, tokio and tokio-stream of sqlx-build-trust-core

tls-native-tls runtime-async-std-native-tls? runtime-tokio-native-tls?

TLS features

Enables optional sqlx-macros, native-tls of sqlx-build-trust-core

tls-rustls runtime-async-std-rustls? runtime-tokio-rustls?

Enables rustls, rustls-pemfile and webpki-roots of sqlx-build-trust-core, _tls-rustls of optional sqlx-macros

tls-none

No-op feature used by the workflows to compile without TLS enabled. Not meant for general use.

runtime-async-std-native-tls = runtime-async-std, tls-native-tls

Legacy Runtime + TLS features

runtime-async-std-rustls = runtime-async-std, tls-rustls
runtime-tokio-native-tls = runtime-tokio, tls-native-tls
runtime-tokio-rustls = runtime-tokio, tls-rustls
any default all-databases?

database

Enables any of sqlx-build-trust-core, optional sqlx-build-trust-postgres, optional sqlx-build-trust-sqlite, and optional sqlx-mysql

Affects sqlx-build-trust::any…

postgres all-databases? = sqlx-build-trust-postgres

Enables postgres of optional sqlx-macros

mysql all-databases? = sqlx-mysql

Enables mysql of optional sqlx-macros

sqlx-macros:

database

sqlite all-databases? = sqlx-build-trust-sqlite

Enables sqlite of optional sqlx-macros

json default

types

Enables json of optional sqlx-build-trust-postgres, optional sqlx-build-trust-sqlite, optional sqlx-macros, and optional sqlx-mysql

bigdecimal

Enables bigdecimal of sqlx-build-trust-core, optional sqlx-build-trust-postgres, optional sqlx-macros, and optional sqlx-mysql

sqlx-macros:

type

bit-vec

Enables bit-vec of sqlx-build-trust-core, optional sqlx-build-trust-postgres, and optional sqlx-macros

chrono

Enables chrono of sqlx-build-trust-core, optional sqlx-build-trust-postgres, optional sqlx-build-trust-sqlite, optional sqlx-macros, and optional sqlx-mysql

ipnetwork

Enables ipnetwork of sqlx-build-trust-core, optional sqlx-build-trust-postgres, and optional sqlx-macros

mac_address

Enables mac_address of sqlx-build-trust-core, optional sqlx-build-trust-postgres, and optional sqlx-macros

rust_decimal

Enables rust_decimal of sqlx-build-trust-core, optional sqlx-build-trust-postgres, optional sqlx-macros, and optional sqlx-mysql

sqlx-build-trust-postgres:

Type integration features which require additional dependencies

time

Enables time of sqlx-build-trust-core, optional sqlx-build-trust-postgres, optional sqlx-build-trust-sqlite, optional sqlx-macros, and optional sqlx-mysql

uuid

Enables uuid of sqlx-build-trust-core, optional sqlx-build-trust-postgres, optional sqlx-build-trust-sqlite, optional sqlx-macros, and optional sqlx-mysql

regexp

Enables regexp of optional sqlx-build-trust-sqlite

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 macros
sqlx-mysql mysql?
sqlx-build-trust-postgres postgres?
sqlx-build-trust-sqlite sqlite?