Allows you to get hardware ID of the current machine.
- Windows
- Linux
cargo add ohwid
or
[dependencies]
ohwid = "0.1.2"
use ohwid::get_hwid;
fn main() {
let hwid = get_hwid();
match hwid {
Ok(hwid) => println!("HWID: {}", hwid),
Err(e) => println!("Failed to get HWID: {}", e),
}
}