steam-user 0.1.0

Steam User web client for Rust - HTTP-based Steam Community interactions
Documentation
//! Remote HTTP client for `steam-user-api`.
//!
//! This module provides [`RemoteSteamUser`], which mirrors the `SteamUser` API
//! but delegates all operations to a remote `steam-user-api` REST server.
//! Supports multiple server URLs with round-robin load balancing and automatic
//! retry on failure.
//!
//! # Feature flag
//!
//! This module is only available when the `remote` feature is enabled:
//!
//! ```toml
//! [dependencies]
//! steam-user = { version = "...", features = ["remote"] }
//! ```
//!
//! # Example
//!
//! ```rust,no_run
//! use steam_user::remote::RemoteSteamUser;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), steam_user::remote::RemoteSteamUserError> {
//!     // Single server
//!     let user = RemoteSteamUser::new(
//!         "https://my-api.example.com",
//!         &[
//!             "steamLoginSecure=76561198012345678||YOUR_ACCESS_TOKEN",
//!             "sessionid=YOUR_SESSION_ID",
//!         ],
//!     );
//!
//!     // Multiple servers with round-robin
//!     let user = RemoteSteamUser::with_urls(
//!         &[
//!             "https://api-1.example.com",
//!             "https://api-2.example.com",
//!             "https://api-3.example.com",
//!         ],
//!         &[
//!             "steamLoginSecure=76561198012345678||YOUR_ACCESS_TOKEN",
//!             "sessionid=YOUR_SESSION_ID",
//!         ],
//!     );
//!
//!     Ok(())
//! }
//! ```

mod client;
mod error;
mod services;
mod trait_impl;

pub use client::RemoteSteamUser;
pub use error::RemoteSteamUserError;