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 12679/week @ 2024-04-02 13322/week @ 2024-04-09 12542/week @ 2024-04-16 10797/week @ 2024-04-23 12545/week @ 2024-04-30 13334/week @ 2024-05-07 12616/week @ 2024-05-14 9528/week @ 2024-05-21 11345/week @ 2024-05-28 12258/week @ 2024-06-04 11818/week @ 2024-06-11 12440/week @ 2024-06-18 9481/week @ 2024-06-25 9473/week @ 2024-07-02 11406/week @ 2024-07-09 10066/week @ 2024-07-16

42,223 downloads per month
Used in 35 crates (29 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.9–2.7MB
~58K SLoC