mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 12:37:49 +00:00
refactor(whoami): only use advapi32/winapi on Windows (#1653)
This commit is contained in:
parent
576aa29f0f
commit
d8e345df0a
1 changed files with 3 additions and 1 deletions
|
@ -15,10 +15,12 @@ edition = "2018"
|
||||||
path = "src/whoami.rs"
|
path = "src/whoami.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
advapi32-sys = "0.2.0"
|
|
||||||
clap = "2.33"
|
clap = "2.33"
|
||||||
uucore = { version=">=0.0.4", package="uucore", path="../../uucore", features=["entries", "wide"] }
|
uucore = { version=">=0.0.4", package="uucore", path="../../uucore", features=["entries", "wide"] }
|
||||||
uucore_procs = { version=">=0.0.4", package="uucore_procs", path="../../uucore_procs" }
|
uucore_procs = { version=">=0.0.4", package="uucore_procs", path="../../uucore_procs" }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "windows")'.dependencies]
|
||||||
|
advapi32-sys = "0.2.0"
|
||||||
winapi = { version = "0.3", features = ["lmcons"] }
|
winapi = { version = "0.3", features = ["lmcons"] }
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue