A process and system monitoring library for Rust, heavily inspired by the psutil module for Python.
Note about versioning: rust-psutil prematurely hit version 1.0, so even though it has passed 1.0, it is still going through a lot of changes and the API may be relatively unstable.
Add this to your Cargo.toml
:
[dependencies]
psutil = "3.2.1"
Or to only use certain submodules:
[dependencies]
psutil = { version = "3.2.1", default-features = false, features = ["cpu", "process"] }
Currently, only Linux and macOS are supported, but support is planned for all major platforms.
platform-support.md details the implementation level of each platform.