Skip to content

Commit

Permalink
Make whoami optional, and only pull it in for postgres (#1571)
Browse files Browse the repository at this point in the history
sqlx-core uses whoami to provide the fallback for postgres username. If
not building postgres support, omit the dependency on whoami.
  • Loading branch information
joshtriplett committed Dec 21, 2021
1 parent f2b3cc8 commit 2e6ab7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlx-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ postgres = [
"futures-util/sink",
"json",
"dirs",
"whoami",
]
mysql = [
"sha-1",
Expand Down Expand Up @@ -158,7 +159,7 @@ url = { version = "2.1.1", default-features = false }
uuid = { version = "0.8.1", default-features = false, optional = true, features = ["std"] }
webpki = { version = "0.21.0", optional = true }
webpki-roots = { version = "0.21.0", optional = true }
whoami = "1.0.1"
whoami = { version = "1.0.1", optional = true }
stringprep = "0.1.2"
bstr = { version = "0.2.14", default-features = false, features = ["std"], optional = true }
git2 = { version = "0.13.20", default-features = false, optional = true }
Expand Down

0 comments on commit 2e6ab7c

Please sign in to comment.