1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # romm-api
//!
//! Shared HTTP client, API types, and domain logic for RomM frontends (CLI, TUI, Android).
//!
//! ## Quick Start
//!
//! ```no_run
//! use romm_api::config::load_config;
//! use romm_api::client::RommClient;
//! use romm_api::error::RommError;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), RommError> {
//! let config = load_config()?;
//! let client = RommClient::new(&config, false)?;
//!
//! let version = client.rom_server_version_from_heartbeat().await;
//! println!("Connected to RomM server version: {:?}", version);
//!
//! Ok(())
//! }
//! ```
/// HTTP client implementation for the RomM API.
/// Configuration and authentication management.
/// Internal core logic and shared utilities.
/// Type-safe API endpoint definitions.
/// Typed error hierarchy (`ApiError`, `ConfigError`, `DownloadError`, `RommError`).
/// Redaction helpers for tracing output (no secrets in logs).
pub use exit;
/// Feature compatibility helpers based on OpenAPI endpoint availability.
/// OpenAPI parsing and endpoint lookup helpers.
/// Shared data models and types.
/// Auto-update logic.