machine_uuid 0.1.0

A library to retrieve a machines UUID
Documentation
  • Coverage
  • 80%
    4 out of 5 items documented4 out of 4 items with examples
  • Size
  • Source code size: 9.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 246.04 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • choicesourcing/machine_uuid
    4 3 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • choicesourcing

Machine UUID

A library that retrieves UUID for a machine

OS Support

  1. Windows - depends on WMIC
  2. Linux - depends on /etc/machine-id

Usage

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);

Add this to your Cargo.toml:

[dependencies]
machine_uuid = "0.1.0"