Machine UUID
A library that retrieves UUID for a machine
This is a fork. Migrated away for continued versioned fixes
OS Support
- Windows - depends on WMIC
- Linux - depends on /etc/machine-id
- macOS - depends on ioreg
Usage
let uuid = get;
// Based on OS, UUID format will differ
// Windows
assert_eq!;
// Based on OS, UUID format will differ
// Linux
assert_eq!;
// Based on OS, UUID format will differ
// macOS
assert_eq!
TODO
- Adhere to API Guidelines
- Improve error reporting.
- Improve test for Linux UUID to use -
Add this to your Cargo.toml:
[]
= "0.2.0"