forked from rust-psutil/rust-psutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
47 lines (41 loc) · 1.44 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[package]
name = "psutil"
version = "3.2.2"
authors = [
"Caleb Bassi <[email protected]>",
"Rob Day <[email protected]>",
"Sam Clements <[email protected]>",
]
description = "Process and system monitoring library"
repository = "https://github.com/rust-psutil/rust-psutil"
readme = "README.md"
license = "MIT"
edition = "2018"
[dependencies]
cfg-if = "1.0.0"
nix = { version = "0.24.1", default-features = false, features = ["feature", "fs", "signal"] }
once_cell = "1.2.0"
thiserror = "1.0.20"
derive_more = { version = "0.99.2", optional = true, default-features = false, features = ["add", "sum"]}
glob = { version = "0.3.0", optional = true }
num_cpus = { version = "1.11.1", optional = true }
platforms = { version = "2.0.0", optional = true }
renamed_serde = { version = "1.0", optional = true, package = "serde", features = ["derive"] }
signal = { version = "0.7.0", optional = true }
unescape = { version = "0.1.0", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
darwin-libproc = { version = "0.1.1", optional = true }
mach = { version = "0.3.2", optional = true }
[features]
default = ["cpu", "disk", "host", "memory", "network", "process", "sensors"]
serde = ["renamed_serde", "platforms/serde"]
# Modules
cpu = ["mach", "num_cpus"]
disk = ["derive_more", "unescape"]
host = ["platforms"]
memory = ["mach"]
network = ["derive_more"]
process = ["darwin-libproc", "mach", "memory"]
sensors = ["glob"]
[dev-dependencies]
float-cmp = "0.6.0"