Rust SDK
Rust 2021 · LibreAuth native client · Protocol v2 available (Enterprise)
Rust
Rust 2021
Setup Guide
anti_re_boot/gate/pulse · ApiSeal · device_pubkey + OpsAck device_sig · result_enc=b64 · process_check_ops after check · authority/session_gate · /api/v2/
- Credentials: name + ownerid (10 characters)
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
rust/src/lib.rs - Ed25519 key: from
init→ Response Signing - Test: Live API · Init docs
Install / Dependencies
Terminal
cargo add reqwest serde_json hmac hex rand sha2
# v2: sdk/rust/src/v2.rs · inject verify_sig
Code Example
Rust
libreauth::anti_re_boot();
let mut app = LibreAuthV2::new(name, owner, url, pubk);
assert!(libreauth::anti_re_gate(true, false));
let init = app.init()?;
libreauth::apply_init_policy(&init);
app.license(key, &hwid)?;
// poll: check → process_check_ops → process_heartbeat
Protocol v2 (Enterprise)
INFO
Requires Enterprise plan. Endpoint
https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.Source: rust/src/v2.rs
Rust · v2
libreauth::anti_re_boot();
let mut app = LibreAuthV2::new(name, owner, url, pubk);
assert!(libreauth::anti_re_gate(true, false));
let init = app.init()?;
libreauth::apply_init_policy(&init);
app.license(key, &hwid)?;
// poll: check → process_check_ops → process_heartbeat
More Links
- ← All Client SDKs
- 1.x source: View lib.rs
- Protocol v2: View v2.rs · docs
- Interactive API docs
- Response Signing