Rust SDK
Rust 2021 · LibreAuth native client
Rust
Rust 2021
Setup Guide
Add lib.rs to project · cargo add reqwest serde_json
- Panel → Manage Applications → copy name + ownerid
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
rust/src/lib.rs - Ed25519 key: /health · Response Signing
- Test: Live API · Init docs
Install / Dependencies
Terminal
cargo add reqwest serde_json
# Use sdk/rust/src/lib.rs
Code Example
Rust
let mut app = LibreAuth::new("AppName", "OWNER_ID_10", "1.0", "https://libreauth.nutexe.dev/api/1.3/");
app.init()?;
app.login("user", "pass", "HWID")?;