keyrunes_rust_sdk/
lib.rs

1//! # Keyrunes Rust SDK
2//!
3//! Rust library for integrating with the Keyrunes authentication and authorization service.
4//!
5//! ## Quick Start
6//!
7//! ```
8//! use keyrunes_rust_sdk::KeyrunesClient;
9//!
10//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
11//! let client = KeyrunesClient::new("https://keyrunes.example.com")?;
12//! let user = client.register("john", "john@example.com", "password123", None).await?;
13//! let token = client.login("john", "password123", None).await?;
14//! # Ok(())
15//! # }
16//! ```
17//!
18//! ## Modules
19//!
20//! - [`client`] - Main client for interacting with the Keyrunes API
21//! - [`error`] - Error types for the library
22//! - [`models`] - Data models for serialization/deserialization
23
24pub mod client;
25pub mod error;
26pub mod models;
27
28#[cfg(any(feature = "axum", feature = "actix", feature = "rocket"))]
29pub mod middleware;
30
31pub use client::KeyrunesClient;
32pub use error::{KeyrunesError, Result};
33pub use models::*;