#hardware #id #machine #linux #system #hwid #println

ohwid

Get the hardware ID of the current machine

1 unstable release

0.1.2 Mar 20, 2024
0.1.1 Mar 20, 2024
0.1.0 Mar 20, 2024

#732 in Hardware support

Custom license

3KB

ohwid

Allows you to get hardware ID of the current machine.

Supported systems

  • Windows
  • Linux

Install

cargo add ohwid

or

[dependencies]
ohwid = "0.1.2"

Example

use ohwid::get_hwid;
let hwid = get_hwid();

match hwid {
  Ok(hwid) => println!("HWID: {}", hwid),
  Err(e) => println!("Failed to get HWID: {}", e),
}

Dependencies

~0–10MB
~54K SLoC