Crates.io | steam-machine-id |
lib.rs | steam-machine-id |
version | 0.1.1 |
source | src |
created_at | 2024-01-26 06:27:03.912594 |
updated_at | 2024-02-14 19:41:12.294988 |
description | For generating Steam machine IDs. |
homepage | https://github.com/juliarose/steam-machine-id |
repository | https://github.com/juliarose/steam-machine-id |
max_upload_size | |
id | 1115261 |
size | 15,210 |
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;
struct LoginRequest {
machine_id: Vec<u8>,
}
// Creates a machine ID from the given account name.
let machine_id = MachineID::from_account_name("accountname");
let login = LoginRequest {
// Converts the machine ID into a binary message object.
machine_id: machine_id.into(),
};