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.
- Host: GitHub
- URL: https://github.com/illud/rust-pcspecs
- Owner: illud
- License: other
- Created: 2022-11-18T03:30:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T23:35:22.000Z (almost 3 years ago)
- Last Synced: 2024-03-23T00:26:57.455Z (over 2 years ago)
- Topics: pcinfo, pcspecs, rust, rustlang, windows
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).