| Crates.io | steam-machine-id |
| lib.rs | steam-machine-id |
| version | 0.2.0 |
| created_at | 2024-01-26 06:27:03.912594+00 |
| updated_at | 2025-07-24 10:32:37.394215+00 |
| description | For generating Steam machine IDs. |
| homepage | |
| repository | https://github.com/juliarose/steam-machine-id |
| max_upload_size | |
| id | 1115261 |
| size | 18,596 |
Used for generating Steam machine IDs. Based on node-steam-user.
Generating random machine IDs.
use steam_machine_id::MachineID;
// Creates a random machine ID.
let machine_id = MachineID::random();
Consuming a generated machine ID for a login request.
use steam_machine_id::MachineID;
// Creates a machine ID from the given account name.
let machine_id = MachineID::from_account_name("accountname");
// Converts the machine ID into a binary message object
// that can be sent to Steam.
let machine_id_bytes: Vec<u8> = machine_id.into();