Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uuid feature pulls in database specific code #3210

Closed
vbrandl opened this issue Apr 21, 2024 · 2 comments
Closed

uuid feature pulls in database specific code #3210

vbrandl opened this issue Apr 21, 2024 · 2 comments
Labels

Comments

@vbrandl
Copy link

vbrandl commented Apr 21, 2024

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
@abonander
Copy link
Collaborator

Known issue, see #3211

@abonander abonander closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2024
@vbrandl
Copy link
Author

vbrandl commented Apr 21, 2024

Sorry I missed this and didn't look further for other issues...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants