Skip to content

Commit 5a28db5

Browse files
committed
uptime: move some codes to uucore
1 parent 2fd4f48 commit 5a28db5

File tree

8 files changed

+315
-330
lines changed

8 files changed

+315
-330
lines changed

Cargo.lock

Lines changed: 2 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ iana-time-zone = "0.1.57"
302302
indicatif = "0.17.8"
303303
itertools = "0.14.0"
304304
libc = "0.2.153"
305-
libsystemd-sys = "0.9.3"
306305
lscolors = { version = "0.20.0", default-features = false, features = [
307306
"gnu_legacy",
308307
] }

src/uu/uptime/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ 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 }
24-
25-
[target.'cfg(target_os="linux")'.dependencies]
26-
libsystemd-sys = { workspace = true }
23+
uucore = { workspace = true, features = ["libc", "utmpx", "uptime"] }
2724

2825
[target.'cfg(target_os = "openbsd")'.dependencies]
2926
utmp-classic = { workspace = true }
3027

3128
[target.'cfg(target_os="windows")'.dependencies]
32-
windows-sys = {workspace = true, features = ["Win32_System_RemoteDesktop", "Wdk_System_SystemInformation"]}
29+
windows-sys = { workspace = true, features = [
30+
"Win32_System_RemoteDesktop",
31+
"Wdk_System_SystemInformation",
32+
] }
3333

3434
[[bin]]
3535
name = "uptime"

0 commit comments

Comments
 (0)