Skip to content

Commit 9feec26

Browse files
committed
Set whoami default-features to false
Otherwise, whoami pulls in web-sys, wasm-bindgen and a BUNCH of additional dependencies. This is really unnecessary, and if someone has an actual use case where they are attempting to connect to postgres from a browser, well ... they've probably already been pwned by now. If it is deemed necessary, then add an additional activation feature for that specific slew of deps.
1 parent 6d0d740 commit 9feec26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ smallvec = "1.7.0"
164164
url = { version = "2.2.2", default-features = false }
165165
uuid = { version = "1.0", default-features = false, optional = true, features = ["std"] }
166166
webpki-roots = { version = "0.22.0", optional = true }
167-
whoami = { version = "1.2.1", optional = true }
167+
whoami = { version = "1.2.1", default-features = false, optional = true }
168168
stringprep = "0.1.2"
169169
bstr = { version = "0.2.17", default-features = false, features = ["std"], optional = true }
170170
git2 = { version = "0.14", default-features = false, optional = true }

0 commit comments

Comments
 (0)