#information #cpu-memory #disk #cpu #memory #system-information #macos

sys sys-info

Get system information in Rust. For now it supports Linux, Mac OS X, illumos, Solaris, FreeBSD, OpenBSD, and Windows

32 releases

Uses old Rust 2015

0.9.1 Oct 21, 2021
0.9.0 Apr 9, 2021
0.8.0 Jan 25, 2021
0.7.0 May 29, 2020
0.3.1 Mar 27, 2015

#64 in Operating systems

Download history 91337/week @ 2023-12-06 90495/week @ 2023-12-13 57738/week @ 2023-12-20 49248/week @ 2023-12-27 84879/week @ 2024-01-03 116919/week @ 2024-01-10 106844/week @ 2024-01-17 102285/week @ 2024-01-24 83073/week @ 2024-01-31 93440/week @ 2024-02-07 101220/week @ 2024-02-14 108176/week @ 2024-02-21 118028/week @ 2024-02-28 106602/week @ 2024-03-06 93916/week @ 2024-03-13 79407/week @ 2024-03-20

417,973 downloads per month
Used in 200 crates (92 directly)

MIT license

72KB
2K SLoC

Rust 1K SLoC // 0.0% comments C 1K SLoC // 0.0% comments

sys-info-rs

Build Status

Get system information in Rust.

For now it supports Linux, Mac OS X, illumos, Solaris, FreeBSD, OpenBSD, NetBSD and Windows. And now it can get information of kernel/cpu/memory/disk/load/hostname and so on.

Documentation

Usage

Add this to Cargo.toml:

[dependencies]
sys-info = "0.9"

and add this to crate root:

extern crate sys_info;

lib.rs:

#Introduction This crate focuses on geting system information.

For now it supports Linux, Mac OS X and Windows. And now it can get information of kernel/cpu/memory/disk/load/hostname and so on.

Dependencies

~210KB