mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
`uptime
`: Support files in uptime (#6400)
This commit is contained in:
parent
32c5d23f91
commit
2774274cc2
6 changed files with 454 additions and 33 deletions
13
Cargo.toml
13
Cargo.toml
|
@ -1,7 +1,7 @@
|
|||
# coreutils (uutils)
|
||||
# * see the repository LICENSE, README, and CONTRIBUTING files for more information
|
||||
|
||||
# spell-checker:ignore (libs) bigdecimal datetime fundu gethostid kqueue libselinux mangen memmap procfs uuhelp
|
||||
# spell-checker:ignore (libs) bigdecimal datetime serde bincode fundu gethostid kqueue libselinux mangen memmap procfs uuhelp
|
||||
|
||||
[package]
|
||||
name = "coreutils"
|
||||
|
@ -491,10 +491,11 @@ tempfile = { workspace = true }
|
|||
time = { workspace = true, features = ["local-offset"] }
|
||||
unindent = "0.2.3"
|
||||
uucore = { workspace = true, features = [
|
||||
"entries",
|
||||
"mode",
|
||||
"entries",
|
||||
"process",
|
||||
"signals",
|
||||
"utmpx",
|
||||
] }
|
||||
walkdir = { workspace = true }
|
||||
hex-literal = "0.4.1"
|
||||
|
@ -509,6 +510,14 @@ rlimit = "0.10.1"
|
|||
rand_pcg = "0.3.1"
|
||||
xattr = { workspace = true }
|
||||
|
||||
# Specifically used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record
|
||||
# to deserialize a utmpx struct into a binary file
|
||||
[target.'cfg(all(target_family= "unix",not(target_os = "macos")))'.dev-dependencies]
|
||||
serde = { version = "1.0.202", features = ["derive"] }
|
||||
bincode = { version = "1.3.3" }
|
||||
serde-big-array = "0.5.1"
|
||||
|
||||
|
||||
[build-dependencies]
|
||||
phf_codegen = { workspace = true }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue