systemd_info

Crates.iosystemd_info
lib.rssystemd_info
version1.0.0
sourcesrc
created_at2024-05-22 10:40:48.780045
updated_at2024-05-22 10:40:48.780045
descriptionObtain some system information through WMIC
homepage
repositoryhttps://github.com/spdrwcn/systemd_info
max_upload_size
id1247784
size5,683
(spdrwcn)

documentation

README

mac_conditions

Supported platforms: Any version of Windows that supports WMIC.

Example

use systemd_info;

fn main() {
    
    let serial_number = systemd_info::get_bios_serial_number().unwrap();
    let cpu_name = systemd_info::cpu_name().expect("Failed to get CPU name");
    let ramgb = systemd_info::ram_info().expect("Failed to get RAM name");
    let disk_info = systemd_info::get_disk_info().expect("Failed to get DISK name");
    let gpu_name = systemd_info::get_gpu_info().expect("Failed to get GPU name");
    println!("Serial Number: {}", serial_number);
    println!("CPU Name: {}", cpu_name);
    println!("RAM: {} GB", ramgb);
    println!("Disk: {}", disk_info);
    println!("GPU: {}", gpu_name);
}

License

mac_conditions is licensed under both MIT and Apache 2.0

Commit count: 2

cargo fmt