forked from rust-psutil/rust-psutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
53 lines (44 loc) · 1.87 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
48
49
50
51
52
53
[package]
name = "psutil"
version = "3.1.0"
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 = "0.1.10"
once_cell = "1.2.0"
snafu = "0.6.0"
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 = "0.2.1", 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 }
[target.'cfg(target_family = "unix")'.dependencies]
nix = "0.17.0"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3.9", features = ["winbase", "handleapi", "errhandlingapi", "processthreadsapi", "winerror", "sysinfoapi", "fileapi", "winioctl", "ioapiset", "iptypes", "iphlpapi", "netioapi", "winreg", "psapi", "synchapi", "memoryapi", "shellapi", "wow64apiset", "basetsd"] }
ntapi = "0.3.4"
[target.'cfg(all(target_os = "windows", target_pointer_width = "32"))'.dependencies]
ctor = "0.1.15"
[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"
chrono = "0.4.13"