#system #info

systemstat

Get system information/statistics in a cross-platform way

17 releases

0.2.3 Jan 23, 2023
0.2.2 Nov 3, 2022
0.2.1 Oct 2, 2022
0.1.11 May 22, 2022
0.1.0 Mar 12, 2016

#26 in Operating systems

Download history 5674/week @ 2022-10-13 5199/week @ 2022-10-20 5211/week @ 2022-10-27 6186/week @ 2022-11-03 7603/week @ 2022-11-10 6201/week @ 2022-11-17 5279/week @ 2022-11-24 5616/week @ 2022-12-01 8423/week @ 2022-12-08 6599/week @ 2022-12-15 4254/week @ 2022-12-22 4058/week @ 2022-12-29 5352/week @ 2023-01-05 5168/week @ 2023-01-12 6118/week @ 2023-01-19 6536/week @ 2023-01-26

23,891 downloads per month
Used in 31 crates (27 directly)

Unlicense

135KB
3.5K SLoC

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.

Dependencies

~0.5–1MB
~18K SLoC