Cargo Features

[dependencies]
sqlx-cli = { version = "0.8.2", default-features = false, features = ["rustls", "native-tls", "mysql", "postgres", "sqlite", "openssl-vendored", "completions"] }
default = completions, mysql, native-tls, postgres, sqlite

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

rustls

Enables runtime-tokio-rustls of sqlx

native-tls default

Enables runtime-tokio-native-tls of sqlx

mysql default

databases

Enables mysql of sqlx

postgres default

Enables postgres of sqlx

sqlite default

Enables sqlite of sqlx

Affects opt::ConnectOpts.sqlite_create_db_wal

openssl-vendored

workaround for musl + openssl issues

Enables vendored of openssl

completions default

Enables clap_complete

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.

openssl openssl-vendored?