#information #cpu-memory #cpu #disk #system-information #memory #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

#132 in Operating systems

Download history 101660/week @ 2024-07-28 73205/week @ 2024-08-04 68693/week @ 2024-08-11 76166/week @ 2024-08-18 78484/week @ 2024-08-25 73464/week @ 2024-09-01 77754/week @ 2024-09-08 62607/week @ 2024-09-15 69925/week @ 2024-09-22 74119/week @ 2024-09-29 74170/week @ 2024-10-06 73492/week @ 2024-10-13 80510/week @ 2024-10-20 77005/week @ 2024-10-27 84121/week @ 2024-11-03 81214/week @ 2024-11-10

326,936 downloads per month
Used in fewer than 101 crates

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

~0.4–325KB