mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix: enable std feature for whoami crate (#7211)
Without the "std" feature enabled, whoami falls back to the stub implementation and Starship shows anonymous@localhost regardless of the actual user or hostname.
This commit is contained in:
Generated
+11
@@ -3877,6 +3877,16 @@ dependencies = [
|
|||||||
"unicode-ident",
|
"unicode-ident",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "web-sys"
|
||||||
|
version = "0.3.83"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "9b32828d774c412041098d182a8b38b16ea816958e07cf40eec2bc080ae137ac"
|
||||||
|
dependencies = [
|
||||||
|
"js-sys",
|
||||||
|
"wasm-bindgen",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "which"
|
name = "which"
|
||||||
version = "8.0.0"
|
version = "8.0.0"
|
||||||
@@ -3896,6 +3906,7 @@ checksum = "86dc1eeef7866078951fc09f1857d3d33a37432fe376d7ff45449c8bb50318c1"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"libredox",
|
"libredox",
|
||||||
"wasite",
|
"wasite",
|
||||||
|
"web-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|||||||
+1
-1
@@ -82,7 +82,7 @@ unicode-width = "0.2.2"
|
|||||||
urlencoding = "2.1.3"
|
urlencoding = "2.1.3"
|
||||||
versions = "7.0.0"
|
versions = "7.0.0"
|
||||||
which = "8.0.0"
|
which = "8.0.0"
|
||||||
whoami = { version = "2.0.0", default-features = false, features = ["wasi-wasite"] }
|
whoami = { version = "2.0.0", default-features = false, features = ["std", "wasi-wasite"] }
|
||||||
yaml-rust2 = "0.11.0"
|
yaml-rust2 = "0.11.0"
|
||||||
|
|
||||||
guess_host_triple = "0.1.5"
|
guess_host_triple = "0.1.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user