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
Bug Description
When including
sqlxwith no features butuuid, it will pull in database specific dependencies (e.g.sqlx-postgres,sqlx-sqliteandsqlx-mysqlMinimal Reproduction
Create an empty crate with only the following dependency, build/check and look into
Cargo.lock:I get the following entry in my
Cargo.lock:Info
0.7.4uuidrustc --version:1.77.2