You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use sqlx with Postgres support, and don't need MySQL or SQLite support. Yet, when I add sqlx 0.7 as a dependency with default-features = false, features = ["chrono", "ipnetwork", "json", "macros", "migrate", "postgres", "runtime-tokio-rustls"] I still end up with sqlx-mysql and sqlx-sqlite in my Cargo.lock file. I don't think this should be the case -- it certainly didn't happen with sqlx 0.6 (even though I previously didn't even have default-features = false).
Info
SQLx version: 0.7.0
SQLx features enabled: ["chrono", "ipnetwork", "json", "macros", "migrate", "postgres", "runtime-tokio-rustls"]
Database server and version: should be irrelevant? (Postgres 14)
djc
changed the title
sqlx without default-features still pulls in unwanted database crates
sqlx without default-features puts unnecessary database crates in my Cargo.lock
Jul 4, 2023
Bug Description
I use sqlx with Postgres support, and don't need MySQL or SQLite support. Yet, when I add sqlx 0.7 as a dependency with
default-features = false, features = ["chrono", "ipnetwork", "json", "macros", "migrate", "postgres", "runtime-tokio-rustls"]
I still end up with sqlx-mysql and sqlx-sqlite in myCargo.lock
file. I don't think this should be the case -- it certainly didn't happen with sqlx 0.6 (even though I previously didn't even havedefault-features = false
).Info
["chrono", "ipnetwork", "json", "macros", "migrate", "postgres", "runtime-tokio-rustls"]
rustc --version
:rustc 1.70.0 (90c541806 2023-05-31)
The text was updated successfully, but these errors were encountered: