Files

183 lines
5.4 KiB
TOML
Raw Permalink Normal View History

2026-03-12 19:43:00 +08:00
[workspace]
members = ["src/uu/hugetop"]
2024-01-26 20:18:43 +01:00
# procps (uutils)
# * see the repository LICENSE, README, and CONTRIBUTING files for more information
# spell-checker:ignore (libs) mangen
2024-01-26 20:18:43 +01:00
[workspace.package]
authors = ["uutils developers"]
categories = ["command-line-utilities"]
edition = "2021"
homepage = "https://github.com/uutils/procps"
keywords = ["procps", "uutils", "cross-platform", "cli", "utility"]
license = "MIT"
version = "0.0.1"
2024-01-26 20:18:43 +01:00
[package]
name = "procps"
2024-02-17 17:19:12 +01:00
description = "procps ~ implemented as universal (cross-platform) utils, written in Rust"
2024-01-26 20:18:43 +01:00
default-run = "procps"
repository = "https://github.com/uutils/procps"
readme = "README.md"
build = "build.rs"
authors.workspace = true
categories.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
version.workspace = true
2024-01-26 20:18:43 +01:00
[features]
default = ["feat_common_core"]
2024-03-29 16:53:29 +01:00
uudoc = []
2024-01-26 20:18:43 +01:00
2024-08-07 16:04:00 +08:00
feat_common_core = [
"free",
2026-03-12 19:43:00 +08:00
"hugetop",
2024-08-07 16:04:00 +08:00
"pgrep",
"pidof",
2024-08-07 23:33:37 +08:00
"pidwait",
2025-03-25 23:58:35 +08:00
"pkill",
2024-10-27 14:51:14 +01:00
"pmap",
"ps",
"pwdx",
2025-07-14 11:51:50 +08:00
"skill",
2024-10-27 14:51:14 +01:00
"slabtop",
2024-08-26 18:41:26 +08:00
"snice",
2025-01-17 18:52:05 +02:00
"sysctl",
2025-03-25 23:58:35 +08:00
"tload",
2024-10-27 14:51:14 +01:00
"top",
2025-03-25 13:48:01 +00:00
"vmstat",
2024-10-27 14:51:14 +01:00
"w",
"watch",
2024-08-07 16:04:00 +08:00
]
2024-01-26 20:18:43 +01:00
[workspace.dependencies]
2025-02-25 08:23:55 +01:00
bytesize = "2.0.0"
2024-10-27 14:51:14 +01:00
chrono = { version = "0.4.38", default-features = false, features = ["clock"] }
2025-06-10 16:15:58 +12:00
clap = { version = "4.5.4", features = ["wrap_help", "cargo", "env"] }
clap_complete = "4.5.2"
clap_mangen = "0.3.0"
2025-04-06 13:13:34 +02:00
crossterm = "0.29.0"
2026-05-03 14:24:21 +02:00
ctor = "1.0.0"
2025-07-03 07:08:41 -07:00
dirs = "6.0.0"
jiff = "0.2.15"
2025-05-04 15:23:36 +02:00
nix = { version = "0.30", default-features = false, features = ["process"] }
2025-08-25 08:19:17 +02:00
phf = "0.13.1"
phf_codegen = "0.13.0"
2024-10-27 14:51:14 +01:00
prettytable-rs = "0.10.0"
2026-02-09 08:55:54 +01:00
rand = { version = "0.10.0" }
2026-01-03 17:46:10 +08:00
ratatui = "0.30.0"
2024-10-27 14:51:14 +01:00
regex = "1.10.4"
2026-02-12 18:13:50 +00:00
rustix = { version = "1.1.2", features = ["fs", "process", "param"] }
sysinfo = "0.39.0"
2024-10-27 14:51:14 +01:00
tempfile = "3.10.1"
terminal_size = "0.4.2"
textwrap = { version = "0.16.1", features = ["terminal_size"] }
2024-12-04 07:35:43 +01:00
thiserror = "2.0.4"
uucore = "0.7.0"
uutests = "0.9.0"
2024-05-29 18:37:19 +08:00
walkdir = "2.5.0"
2025-09-06 08:11:14 +02:00
windows = { version = "0.62.0" }
windows-sys = { version = "0.61.0", default-features = false }
2024-10-27 14:51:14 +01:00
xattr = "1.3.1"
2024-01-26 20:18:43 +01:00
[dependencies]
clap = { workspace = true }
clap_complete = { workspace = true }
clap_mangen = { workspace = true }
jiff = { workspace = true }
2024-01-26 20:18:43 +01:00
phf = { workspace = true }
2024-05-30 17:44:25 +08:00
regex = { workspace = true }
2024-10-27 14:51:14 +01:00
sysinfo = { workspace = true }
textwrap = { workspace = true }
uucore = { workspace = true }
2024-01-26 20:18:43 +01:00
#
2024-01-26 22:35:52 +01:00
free = { optional = true, version = "0.0.1", package = "uu_free", path = "src/uu/free" }
2026-03-12 19:43:00 +08:00
hugetop = { optional = true, version = "0.0.1", package = "uu_hugetop", path = "src/uu/hugetop" }
2024-05-29 18:37:19 +08:00
pgrep = { optional = true, version = "0.0.1", package = "uu_pgrep", path = "src/uu/pgrep" }
2024-05-29 00:41:06 +08:00
pidof = { optional = true, version = "0.0.1", package = "uu_pidof", path = "src/uu/pidof" }
2024-08-07 23:33:37 +08:00
pidwait = { optional = true, version = "0.0.1", package = "uu_pidwait", path = "src/uu/pidwait" }
2025-03-25 23:58:35 +08:00
pkill = { optional = true, version = "0.0.1", package = "uu_pkill", path = "src/uu/pkill" }
2024-10-27 14:51:14 +01:00
pmap = { optional = true, version = "0.0.1", package = "uu_pmap", path = "src/uu/pmap" }
ps = { optional = true, version = "0.0.1", package = "uu_ps", path = "src/uu/ps" }
pwdx = { optional = true, version = "0.0.1", package = "uu_pwdx", path = "src/uu/pwdx" }
2025-07-14 11:51:50 +08:00
skill = { optional = true, version = "0.0.1", package = "uu_skill", path = "src/uu/skill" }
2024-10-27 14:51:14 +01:00
slabtop = { optional = true, version = "0.0.1", package = "uu_slabtop", path = "src/uu/slabtop" }
2024-08-26 18:41:26 +08:00
snice = { optional = true, version = "0.0.1", package = "uu_snice", path = "src/uu/snice" }
2025-01-17 18:52:05 +02:00
sysctl = { optional = true, version = "0.0.1", package = "uu_sysctl", path = "src/uu/sysctl" }
2025-03-25 23:58:35 +08:00
tload = { optional = true, version = "0.0.1", package = "uu_tload", path = "src/uu/tload" }
2024-10-27 14:51:14 +01:00
top = { optional = true, version = "0.0.1", package = "uu_top", path = "src/uu/top" }
2025-03-25 13:48:01 +00:00
vmstat = { optional = true, version = "0.0.1", package = "uu_vmstat", path = "src/uu/vmstat" }
2024-10-27 14:51:14 +01:00
w = { optional = true, version = "0.0.1", package = "uu_w", path = "src/uu/w" }
watch = { optional = true, version = "0.0.1", package = "uu_watch", path = "src/uu/watch" }
2024-01-26 20:18:43 +01:00
[dev-dependencies]
2024-10-27 14:51:14 +01:00
chrono = { workspace = true }
ctor = { workspace = true }
pretty_assertions = "1.4.0"
2024-10-27 14:51:14 +01:00
rand = { workspace = true }
2024-01-26 20:18:43 +01:00
regex = { workspace = true }
tempfile = { workspace = true }
2025-11-10 17:08:15 +08:00
uucore = { workspace = true, features = [
"entries",
"libc",
"process",
"signals",
] }
uutests = { workspace = true }
2024-01-26 20:18:43 +01:00
[target.'cfg(unix)'.dev-dependencies]
xattr = { workspace = true }
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dev-dependencies]
2026-02-02 08:44:44 +01:00
rlimit = "0.11.0"
2024-01-26 20:18:43 +01:00
[build-dependencies]
phf_codegen = { workspace = true }
[[bin]]
name = "procps"
path = "src/bin/procps.rs"
[[bin]]
name = "uudoc"
path = "src/bin/uudoc.rs"
required-features = ["uudoc"]
# The default release profile. It contains all optimizations, without
# sacrificing debug info. With this profile (like in the standard
# release profile), the debug info and the stack traces will still be available.
[profile.release]
lto = true
# A release-like profile that is tuned to be fast, even when being fast
# compromises on binary size. This includes aborting on panic.
[profile.release-fast]
inherits = "release"
panic = "abort"
# A release-like profile that is as small as possible.
[profile.release-small]
inherits = "release"
opt-level = "z"
panic = "abort"
strip = true
2025-11-03 10:00:00 +01:00
2025-11-03 10:00:12 +01:00
[lints]
workspace = true
2025-11-03 10:00:00 +01:00
[workspace.lints.clippy]
default_trait_access = "warn"
manual_string_new = "warn"
cognitive_complexity = "warn"
implicit_clone = "warn"
range-plus-one = "warn"
redundant-clone = "warn"
match_bool = "warn"
semicolon_if_nothing_returned = "warn"