rs-machineid 0.1.0

Get the unique machine ID of any host (without admin privileges).
Documentation

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:

[dependencies]

rs-machineid = "0.0.1"  # replace with latest version

Usage

To obtain the raw GUID of the device, use MachineId::get():

use rs_machineid::{MachineID};

println!("Machine ID: {}", MachineId::get());

Thanks

Special thanks to Denis Brodbeck for his Go package, machineid.