rs-machineid

Crates.iors-machineid
lib.rsrs-machineid
version0.2.0
created_at2025-12-10 06:41:39.852925+00
updated_at2025-12-10 09:09:51.07036+00
descriptionGet the unique machine ID of any host (without admin privileges).
homepagehttps://github.com/xbmlz/rs-machineid
repositoryhttps://github.com/xbmlz/rs-machineid
max_upload_size
id1977604
size19,689
xchen (xbmlz)

documentation

https://docs.rs/rs-machineid

README

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.2.0"  # replace with latest version

Usage

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

use rs_machineid::{MachineID};

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

Thanks

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

Commit count: 0

cargo fmt