refactor(modules): use whoami crate to get username

Signed-off-by: bestgopher <84328409@qq.com>
This commit is contained in:
bestgopher
2023-10-25 22:20:40 +08:00
committed by David Knaack
parent ba19753289
commit b5f9457b28
7 changed files with 31 additions and 36 deletions
+1 -1
View File
@@ -47,7 +47,6 @@ clap = { version = "4.4.8", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.4.4"
dirs-next = "2.0.0"
dunce = "1.0.4"
gethostname = "0.4.3"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.55.2", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.36.0", optional = true }
@@ -94,6 +93,7 @@ process_control = { version = "4.0.3", features = ["crossbeam-channel"] }
guess_host_triple = "0.1.3"
home = "0.5.5"
shell-words = "1.1.0"
whoami = { version = "1.4.1", default-features = false }
[dependencies.schemars]
version = "0.8.15"