29 releases (17 stable)

3.3.0 Jan 1, 2024
3.2.2 Feb 13, 2022
3.2.1 Apr 11, 2021
3.2.0 Sep 26, 2020
0.8.2 Mar 30, 2015

#39 in Operating systems

Download history 3387/week @ 2023-12-23 5921/week @ 2023-12-30 7795/week @ 2024-01-06 14470/week @ 2024-01-13 12096/week @ 2024-01-20 11176/week @ 2024-01-27 11044/week @ 2024-02-03 9735/week @ 2024-02-10 10323/week @ 2024-02-17 11330/week @ 2024-02-24 10897/week @ 2024-03-02 12370/week @ 2024-03-09 13950/week @ 2024-03-16 14087/week @ 2024-03-23 11791/week @ 2024-03-30 10516/week @ 2024-04-06

52,516 downloads per month
Used in 34 crates (28 directly)

MIT license

160KB
5K SLoC

rust-psutil

crates.io docs.rs Minimum rustc version Matrix

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.

Usage

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"] }

Platform Support

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.

Apps using rust-psutil

Dependencies

~1.8–2.6MB
~57K SLoC