Skip to main content

raps_kernel/
lib.rs

1//! RAPS Kernel - Core functionality for the RAPS CLI
2//!
3//! This crate provides the foundational components:
4//! - Error handling and exit codes
5//! - Logging and verbosity control
6//! - HTTP client with retry logic
7//! - Configuration management
8//! - Token storage abstraction
9//! - OAuth authentication
10//! - Progress bar utilities
11//! - Interactive prompt utilities
12
13#![allow(clippy::uninlined_format_args)]
14
15pub mod api_health;
16pub mod auth;
17pub mod config;
18pub mod error;
19pub mod http;
20pub mod interactive;
21pub mod logging;
22pub mod output;
23pub mod profiler;
24pub mod progress;
25pub mod prompts;
26pub mod security;
27pub mod storage;
28pub mod types;
29
30/// Test utilities for mocking API responses
31/// Only available when running tests
32#[cfg(test)]
33pub mod test_utils;
34
35// Re-export commonly used types
36pub use auth::AuthClient;
37pub use config::{Config, ContextConfig};
38pub use error::ExitCode;
39pub use http::HttpClientConfig;
40pub use output::OutputFormat;
41pub use storage::{StorageBackend, TokenStorage};
42pub use types::StoredToken;