Expand description
A library for getting system information, including CPU, GPU, RAM, and OS information.
This library provides a set of APIs to retrieve system information, including CPU, GPU, RAM, and OS information. It supports both macOS and Linux systems.
§Usage
use system_info_lite::{get_system_info, get_cpu_info, get_ram_info, get_os_info};
use serde_json::json;
let info = get_system_info().unwrap();
println!("{}", json!(info));
Structs§
- CPUInfo
- CPU information.
- GPUInfo
- GPU information.
- OSInfo
- OS information.
- RAMInfo
- RAM information.
- System
Info - System information.
Functions§
- get_
cpu_ info - Get CPU information.
- get_
linux_ gpu_ info - Get GPU information for Linux.
- get_
macos_ gpu_ info - Get GPU information for macOS.
- get_
os_ info - Get OS information.
- get_
ram_ info - Get RAM information.
- get_
system_ info - Get system information, including CPU, GPU, RAM, and OS information.