systemstat

Crates.iosystemstat
lib.rssystemstat
version0.2.3
sourcesrc
created_at2016-03-12 11:59:13.944939
updated_at2023-01-23 05:25:01.686208
descriptionGet system information/statistics in a cross-platform way
homepagehttps://github.com/valpackett/systemstat
repositoryhttps://github.com/valpackett/systemstat
max_upload_size
id4429
size149,010
Val Packett (valpackett)

documentation

README

crates.io API Docs CI status unlicense

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 temperature

Unlike 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.

Contributing

Please feel free to submit pull requests!

By participating in this project you agree to follow the Contributor 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.

Commit count: 191

cargo fmt