#linux #macos #windows

hardware-id

Access Hardware ID information on Windows, macOS and Linux platforms

1 unstable release

0.3.0 Nov 16, 2022

#766 in Operating systems

Download history 7/week @ 2024-02-19 52/week @ 2024-02-26 24/week @ 2024-03-04 23/week @ 2024-03-11 1/week @ 2024-03-18 32/week @ 2024-03-25 42/week @ 2024-04-01 15/week @ 2024-04-08 17/week @ 2024-04-15

106 downloads per month
Used in tsar-client

MIT license

6KB
80 lines

rust-hwid

A simple library to detect an OS equivalent of an Hardware ID

Currently supported

  • Windows
  • macOS
  • Linux (dbus, systemd HWIDs)

TODO

Find a way to support *BSDs or ditch the function for them entirely

Usage

There is a single function: get_id()

An example is provided in the examples folder.


lib.rs:

Get a "Hardware ID" for the host machine. This is a UUID which is intended to uniquely represent this entity.

Dependencies

~0.3–1MB
~20K SLoC