Bug Description
Installs sqlx-sqlite and sqlx-postgres even when only mysql feature is selected.
Minimal Reproduction
Cargo.toml file:
[package]
name = "example-sqlx"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "mysql"] }
Execute cargo check. Contents of Cargo.lock:
...
[[package]]
name = "libsqlite3-sys"
version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "afc22eff61b133b115c6e8c74e818c628d6d5e7a502afea6f64dee076dd94326"
dependencies = [
"cc",
"pkg-config",
"vcpkg",
]
...
[[package]]
name = "sqlx"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e58421b6bc416714d5115a2ca953718f6c621a51b68e4f4922aea5a4391a721"
dependencies = [
"sqlx-core",
"sqlx-macros",
"sqlx-mysql",
"sqlx-postgres",
"sqlx-sqlite",
]
...
Info
- SQLx version:
0.7.1
- SQLx features enabled:
["runtime-tokio-rustls", "mysql"]
- Database server and version: not applicable
- Operating system: macOS
rustc --version: rustc 1.71.0 (8ede3aae2 2023-07-12)
Bug Description
Installs
sqlx-sqliteandsqlx-postgreseven when onlymysqlfeature is selected.Minimal Reproduction
Cargo.toml file:
Execute
cargo check. Contents ofCargo.lock:Info
0.7.1["runtime-tokio-rustls", "mysql"]rustc --version: rustc 1.71.0 (8ede3aae2 2023-07-12)