Skip to content

Commit 047ec99

Browse files
authored
uptime: refactor, move some codes to uucore (#7289)
1 parent 9aa8723 commit 047ec99

File tree

7 files changed

+479
-225
lines changed

7 files changed

+479
-225
lines changed

Cargo.lock

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/uu/uptime/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ path = "src/uptime.rs"
1919
[dependencies]
2020
chrono = { workspace = true }
2121
clap = { workspace = true }
22-
uucore = { workspace = true, features = ["libc", "utmpx"] }
2322
thiserror = { workspace = true }
23+
uucore = { workspace = true, features = ["libc", "utmpx", "uptime"] }
2424

2525
[target.'cfg(target_os = "openbsd")'.dependencies]
2626
utmp-classic = { workspace = true }
2727

28+
[target.'cfg(target_os="windows")'.dependencies]
29+
windows-sys = { workspace = true, features = [
30+
"Win32_System_RemoteDesktop",
31+
"Wdk_System_SystemInformation",
32+
] }
33+
2834
[[bin]]
2935
name = "uptime"
3036
path = "src/main.rs"

0 commit comments

Comments
 (0)