Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/valpackett/systemstat
Rust library for getting system information | also on https://codeberg.org/valpackett/systemstat
https://github.com/valpackett/systemstat
battery-status boot-time cpu-load load-average loadavg memory-usage rust system system-information uptime
Last synced: 3 months ago
JSON representation
Rust library for getting system information | also on https://codeberg.org/valpackett/systemstat
- Host: GitHub
- URL: https://github.com/valpackett/systemstat
- Owner: valpackett
- License: unlicense
- Created: 2016-02-19T12:02:57.000Z (over 8 years ago)
- Default Branch: trunk
- Last Pushed: 2023-07-17T06:05:02.000Z (over 1 year ago)
- Last Synced: 2024-04-14T12:58:51.300Z (7 months ago)
- Topics: battery-status, boot-time, cpu-load, load-average, loadavg, memory-usage, rust, system, system-information, uptime
- Language: Rust
- Homepage: https://crates.io/crates/systemstat
- Size: 211 KB
- Stars: 596
- Watchers: 9
- Forks: 71
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![crates.io](https://img.shields.io/crates/v/systemstat?logo=rust) ![](https://img.shields.io/crates/d/systemstat)](https://crates.io/crates/systemstat)
[![API Docs](https://docs.rs/systemstat/badge.svg)](https://docs.rs/systemstat/)
[![CI status](https://ci.codeberg.org/api/badges/valpackett/systemstat/status.svg)](https://ci.codeberg.org/valpackett/systemstat)
[![unlicense](https://img.shields.io/badge/un-license-green.svg?style=flat)](https://unlicense.org)
[![Support me on Patreon](https://img.shields.io/badge/dynamic/json?logo=patreon&color=%23e85b46&label=support%20me%20on%20patreon&query=data.attributes.patron_count&suffix=%20patrons&url=https%3A%2F%2Fwww.patreon.com%2Fapi%2Fcampaigns%2F9395291)](https://www.patreon.com/valpackett)# systemstat
A Rust library for getting system information/statistics:
- CPU load
- load average
- memory usage
- uptime / boot time
- battery life
- filesystem mounts (and disk usage)
- disk I/O statistics
- network interfaces
- network traffic statistics
- CPU temperatureUnlike [sys-info-rs](https://github.com/FillZpp/sys-info-rs), this one is written purely in Rust.
Supported platforms (roughly ordered by completeness of support):
- FreeBSD
- Linux
- OpenBSD
- Windows
- macOS
- NetBSD
- *more coming soon*## Usage
See [examples/info.rs](https://github.com/valpackett/systemstat/blob/master/examples/info.rs).
## Contributing
Please feel free to submit pull requests!
By participating in this project you agree to follow the [Contributor Code of Conduct](https://www.contributor-covenant.org/version/1/4/code-of-conduct/) and to release your contributions under the Unlicense.
## License
This is free and unencumbered software released into the public domain.
For more information, please refer to the `UNLICENSE` file or [unlicense.org](https://unlicense.org).