Crates.io | machine_uuids |
lib.rs | machine_uuids |
version | 0.2.0 |
source | src |
created_at | 2024-05-16 10:35:35.053796 |
updated_at | 2024-05-16 10:35:35.053796 |
description | A library to retrieve a machines UUID |
homepage | |
repository | https://github.com/daneb/machine_uuid |
max_upload_size | |
id | 1241956 |
size | 11,224 |
This is a fork. Migrated away for continued versioned fixes
let uuid = machineid::get();
// Based on OS, UUID format will differ
// Windows
assert_eq!("140EF834-2DB3-0F7A-27B4-4CEDFB73167C", uuid);
// Based on OS, UUID format will differ
// Linux
assert_eq!("92cc698195f84d3b85f1cfb0a09e957f", uuid);
// Based on OS, UUID format will differ
// macOS
assert_eq!("F7FA2B78-F7D4-5B1B-A4E3-BACB1BBD95A1", uuid)
[dependencies]
machine_uuid = "0.2.0"