#linux #macos #windows

hardware-id

Access Hardware ID information on Windows, macOS and Linux platforms

1 unstable release

0.3.0 Nov 16, 2022

#905 in Operating systems

Download history 46/week @ 2024-11-23 32/week @ 2024-11-30 25/week @ 2024-12-07 24/week @ 2024-12-14 16/week @ 2024-12-21 17/week @ 2024-12-28 5/week @ 2025-01-04 41/week @ 2025-01-11 8/week @ 2025-01-18 10/week @ 2025-01-25 27/week @ 2025-02-01 44/week @ 2025-02-08 79/week @ 2025-02-15 77/week @ 2025-02-22 71/week @ 2025-03-01 49/week @ 2025-03-08

285 downloads per month
Used in tsar-sdk

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.2–0.9MB
~17K SLoC