#linux #macos #windows

hardware-id

Access Hardware ID information on Windows, macOS and Linux platforms

1 unstable release

0.3.0 Nov 16, 2022

#800 in Operating systems

Download history 53/week @ 2024-07-19 72/week @ 2024-07-26 201/week @ 2024-08-02 186/week @ 2024-08-09 151/week @ 2024-08-16 103/week @ 2024-08-23 102/week @ 2024-08-30 113/week @ 2024-09-06 87/week @ 2024-09-13 56/week @ 2024-09-20 90/week @ 2024-09-27 246/week @ 2024-10-04 129/week @ 2024-10-11 113/week @ 2024-10-18 11/week @ 2024-10-25 20/week @ 2024-11-01

317 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