licers
License-key verification for Rust apps, against Licers.
Every answer from the license server is Ed25519-signed with your account key and checked here (ed25519-dalek, strict verification), with a fresh random nonce per call — so a cracked "fake license server", an edited response or a replayed one is refused.
Quick start
use LicenseClient;
validate returns Ok with valid == false when the server refuses the key. It returns Err(Error::Signature(_)) for a forged or replayed answer and Error::Network / Error::Server when the server can't be reached — err.is_network() tells you to retry or apply a grace period rather than treat the user as unlicensed.
The API is blocking, so it needs no async runtime. From async code, call it in spawn_blocking.
Everything else
// Usage credits
let usage = client.record_usage?; // Err(Error::UsageExceeded { .. }) when out
println!;
// Remote variables (set on the dashboard; delivered only to valid keys)
let url = client.get_variable?; // Option<String>
// Floating / concurrent seats: heartbeats on a background thread, freed on drop
let client = new;
let session = start?;
session.ensure_active?;
// Updates (the "no update" answer is signed too; download_url is NOT signed)
let update = client.check_update?;
// Offline license files (.lic), zero network
let lic = verify_offline_license?;
Device id
get_hwid() is SHA-256 of "licers:" + the OS machine id (Windows MachineGuid, Linux /etc/machine-id, macOS IOPlatformUUID) — the same value the Node and .NET SDKs produce on that machine. Where none is readable, a random id is stored once in the user's data folder (LICERS_HWID_DIR overrides). Use .hwid("...") on the builder to supply your own.
License
MIT