30 releases (18 stable)

4.0.0 Dec 21, 2024
3.3.0 Jan 1, 2024
3.2.2 Feb 13, 2022
3.2.1 Apr 11, 2021
0.8.2 Mar 30, 2015

#35 in Operating systems

Download history 12794/week @ 2024-09-21 13874/week @ 2024-09-28 12504/week @ 2024-10-05 10563/week @ 2024-10-12 11813/week @ 2024-10-19 12634/week @ 2024-10-26 12443/week @ 2024-11-02 12335/week @ 2024-11-09 9695/week @ 2024-11-16 8762/week @ 2024-11-23 12142/week @ 2024-11-30 13578/week @ 2024-12-07 12814/week @ 2024-12-14 3656/week @ 2024-12-21 3720/week @ 2024-12-28 7119/week @ 2025-01-04

29,234 downloads per month
Used in 38 crates (32 directly)

MIT license

165KB
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.

Usage

Add this to your Cargo.toml:

[dependencies]
psutil = "4.0.0"

Or to only use certain submodules:

[dependencies]
psutil = { version = "4.0.0", default-features = false, features = ["cpu", "process"] }

Support

This project is not well maintained, and there are a host of other projects that may meet your needs better. rust-psutil started as a university student's project before the Rust 1.0 release (all the way back in January 2015!), and has had irregular maintenance by a small group of developers since then.

There's no intent to archive it any time soon, as there are still projects using rust-psutil and we get the occasional pull request to implement a new feature. Open a discussion if you'd be interested in helping maintain it, ideally after you've made one or two contributions.

See "Related Projects" below for a list of projects that overlap with rust-psutil's functionality. Hiem has a comparison between Rust libraries with similar functionality: https://github.com/heim-rs/heim/blob/master/COMPARISON.md.

Versioning

The API is relatively unstable. The version number attempts to follow semantic versioning, and you should major version bumps to include multiple breaking changes—most significant new features added to rust-psutil required adjusting existing APIs.

Platform Support

Currently, only Linux and macOS are supported at all.

platform-support.md details the implementation level of each platform.

† Direct dependencies.

Apps using rust-psutil

You can also see GitHub's list of dependents.

License

Released under the MIT license—see LICENCE.

Dependencies

~1.8–2.6MB
~57K SLoC