An open API service indexing awesome lists of open source software.

https://github.com/illud/rust-pcspecs

pcspecs is a tool that gathers information of your system components.
https://github.com/illud/rust-pcspecs

pcinfo pcspecs rust rustlang windows

Last synced: 6 months ago
JSON representation

pcspecs is a tool that gathers information of your system components.

Awesome Lists containing this project

README

          

# 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.

```sh
pcspecs = "0.2.1"
```

## How to use

Add imports:

```rust
use pcspecs::specs;
```

Example:

```rust

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

```rust

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

## License

MIT

PcSpecs is [MIT licensed](LICENSE).