1 unstable release

0.2.1 Nov 19, 2022
0.2.0 Nov 19, 2022
0.1.1 Nov 18, 2022
0.1.0 Nov 18, 2022

#16 in #pc

33 downloads per month

Custom license

6KB
68 lines

PcSpecs (WINDOWS ONLY)

Get system info


PcSpecs is a crate to gather the system specs.

Features

  • Hostname
  • Platform
  • OsNumber
  • CPU
  • GPU
  • RAM
  • MAINBOARD

Installation

Install the dependencies.

pcspecs = "0.2.1"

How to use

Add imports:

use pcspecs::specs;

Example:




fn main(){
    println!("{:#?}", specs());
    /* Output
    DESKTOP-5DH6S74 
    Microsoft Windows 10
    Pro 10 
    Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
    NVIDIA GeForce RTX 2060 SUPER
    24 GB
    TUF GAMING B460M-PLUS (WI-FI*/
}

Or


fn main(){
    println!("{:#?}", specs().gpu);
    /* Output
    NVIDIA GeForce RTX 2060 SUPER
    */
}

License

MIT

PcSpecs is MIT licensed.

Dependencies

~1.2–8.5MB
~81K SLoC