rs-machineid
Generate a unique machine ID for any host (without admin privileges).
Features
- Cross-Platform (tested on Win7+, Debian 8+, Ubuntu 14.04+, OS X 10.6+, FreeBSD 11+)
- No admin privileges required
- Hardware independent (no usage of MAC, BIOS or CPU — those are too unreliable, especially in a VM environment)
- Compatible with Docker containers
Install
Add rs-machineid to your Cargo.toml:
[]
= "0.0.1" # replace with latest version
Usage
To obtain the raw GUID of the device, use MachineId::get():
use ;
println!;
Thanks
Special thanks to Denis Brodbeck for his Go package, machineid.