Cargo Features
[dependencies]
psutil = { version = "3.3.0", default-features = false, features = ["serde", "cpu", "disk", "host", "memory", "network", "process", "sensors", "signal"] }
- default = cpu, disk, host, memory, network, process, sensors
-
These default features are set whenever
psutil
is added without
somewhere in the dependency tree.default-features = false - serde = renamed_serde
-
Enables serde of platforms ^2.0.0
- cpu default = mach2, num_cpus
-
Modules
Affects
psutil::cpu
… - disk default = derive_more, unescape
-
Affects
psutil::disk
… - host default = platforms
-
Affects
psutil::host
… - memory default process = mach2
-
Affects
psutil::memory
… - network default = derive_more
-
Affects
psutil::network
… - process default = darwin-libproc, mach2, memory
-
Affects
psutil::process
… - sensors default = glob
-
Affects
psutil::sensors
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- derive_more disk network
-
Enables derive_more ^0.99.2
- glob sensors
- num_cpus cpu
- platforms host serde?
-
Enables platforms ^2.0.0
- renamed_serde serde?
-
Enables serde
- signal implicit feature
-
Enables signal
signal:
The higher-level abstractions around unix signals
- unescape disk
- darwin-libproc mac process
-
Enables darwin-libproc ^0.1.1
- mach2 mac cpu memory process