systeminfo

Build Status

Get the System Hardware & Operating System information.

Usage

toml [dependencies] systeminfo = "0.1.1" and then ```rust use systeminfo;

fn main() { let sysinfo = systeminfo::fromsystemhardware(); println!("{:#?}", sysinfo);

let osinfo = systeminfo::from_system_os();
println!("{:#?}", osinfo);

} ```

If you want to return the object: ```rust use systeminfo::{ consts::SystemHardware, fromsystemhardware };

fn gethwinfo() -> SystemHardware { fromsystemhardware() }

fn main() { println!("{:#?}", gethwinfo()) } ```

Running the example

bash cargo b --example info

Example Output

Requirements

Supports & Tested on


License: MIT