#windows #macos #linux

hardware-id

Access Hardware ID information on Windows, macOS and Linux platforms

1 unstable release

0.3.0 Nov 16, 2022

#775 in Operating systems

Download history 98/week @ 2024-06-24 44/week @ 2024-07-01 225/week @ 2024-07-08 95/week @ 2024-07-15 29/week @ 2024-07-22 122/week @ 2024-07-29 204/week @ 2024-08-05 171/week @ 2024-08-12 131/week @ 2024-08-19 102/week @ 2024-08-26 132/week @ 2024-09-02 82/week @ 2024-09-09 78/week @ 2024-09-16 74/week @ 2024-09-23 97/week @ 2024-09-30 250/week @ 2024-10-07

509 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