Crates.io | pcspecs |
lib.rs | pcspecs |
version | 0.2.1 |
source | src |
created_at | 2022-11-18 03:36:09.460696 |
updated_at | 2022-11-19 19:58:23.307386 |
description | Simple api to get pc specs |
homepage | https://github.com/saturnavt/rust-pcspecs |
repository | https://github.com/saturnavt/rust-pcspecs |
max_upload_size | |
id | 717626 |
size | 11,908 |
PcSpecs is a crate to gather the system specs.
Install the dependencies.
pcspecs = "0.2.1"
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
*/
}
MIT
PcSpecs is MIT licensed.