Skip to content

uuid feature pulls in database specific code #3210

Closed as not planned
Closed as not planned
@vbrandl

Description

@vbrandl

Bug Description

When including sqlx with no features but uuid, it will pull in database specific dependencies (e.g. sqlx-postgres, sqlx-sqlite and sqlx-mysql

Minimal Reproduction

Create an empty crate with only the following dependency, build/check and look into Cargo.lock:

sqlx = { version = "0.7.4", default-features = false, features = ["uuid"] }

I get the following entry in my Cargo.lock:

[[package]]
name = "sqlx"
version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9a2ccff1a000a5a59cd33da541d9f2fdcd9e6e8229cc200565942bff36d0aaa"
dependencies = [
 "sqlx-core",
 "sqlx-macros",
 "sqlx-mysql",
 "sqlx-postgres",
 "sqlx-sqlite",
]

Info

  • SQLx version: 0.7.4
  • SQLx features enabled: uuid
  • Database server and version: not applicable
  • Operating system: Linux
  • rustc --version: 1.77.2

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