Skip to content

sqlx without default-features puts unnecessary database crates in my Cargo.lock #2579

Closed as not planned
@djc

Description

@djc

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 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)
  • Operating system: macOS
  • rustc --version: rustc 1.70.0 (90c541806 2023-05-31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions