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
somewhere in the dependency tree.default-features = false - rustls
-
Enables runtime-tokio-rustls of sqlx
- native-tls default
-
Enables runtime-tokio-native-tls of sqlx
- mysql default
-
databases
- postgres default
- sqlite default
-
Affects
opt::ConnectOpts.sqlite_create_db_wal
… - openssl-vendored
-
workaround for musl + openssl issues
- 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.