Rust SDK
Rust 2021 · LibreAuth native client · Protocol v2 available (Enterprise)
Rust
Rust 2021
Setup Guide
LibreAuthV2 · process_check_ops after check · ops_executor + hardening · full Windows ops parity · aes-gcm nonce 16 · ForceAdopt · /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
let mut app = LibreAuthV2::new("AppName", "OWNER_ID_10", "https://host/api/v2/", "");
app.init()?;
app.login("user", "pass", "HWID")?;
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
let mut app = LibreAuthV2::new("AppName", "OWNER_ID_10", "https://host/api/v2/", "");
app.init()?;
app.login("user", "pass", "HWID")?;
More Links
- ← All Client SDKs
- 1.x source: View lib.rs
- Protocol v2: View v2.rs · docs
- Interactive API docs
- Response Signing