#information #cpu-memory #disk #cpu #memory #system-information #graphic

sys sys-info-extended

This crate is a fork of https://crates.io/crates/sys-info crate and extended version of it

6 releases (3 breaking)

Uses old Rust 2015

0.4.0 Apr 1, 2024
0.3.0 Feb 6, 2024
0.2.2 Jan 30, 2024
0.1.2 Jan 17, 2024

#517 in Operating systems

Download history 9/week @ 2024-01-06 11/week @ 2024-01-13 7/week @ 2024-01-20 20/week @ 2024-01-27 14/week @ 2024-02-03 1/week @ 2024-02-10 6/week @ 2024-02-17 20/week @ 2024-02-24 8/week @ 2024-03-02 9/week @ 2024-03-09 1/week @ 2024-03-16 134/week @ 2024-03-30 129/week @ 2024-04-06 3/week @ 2024-04-13

266 downloads per month
Used in incli

MIT license

115KB
2.5K SLoC

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

sys-info-extended

This crate is a fork of sys-info crate, and i'll continue to develop. Contributions are welcome especially for mac os.

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/graphics and so on.

I especially focused on very practical informations about system(computer type, user name, public ipv4 address etc.) and especially Windows api's. Because of that, in my opinion it's the best crate for getting system info especially for windows. I aim the include outputs of all windows classes in future releases. So if you're a game developer or windows programmer, this will be one of the go-to crates for you.

If you like this liblary, give a star on it's github repo

Usage

Add this to Cargo.toml:

[dependencies]
sys-info-extended = "0.3.0"

and add this to crate root:


use sys_info_extended::{os_type, os_release, get_graphics_info};

use some functions:


let our_os_type = os_type().unwrap();
let os_release = os_release().unwrap();
let graphics = get_graphics_info();

Already Planned Features For Next Releases

  • adding get_download_speed() function which measures your network's download speed.
  • Camera Infos
  • USB Infos
  • Mouse Infos
  • All other windows system classes

Dependencies

~50–265KB