ai_usagebar/lib.rs
1//! ai-usagebar library — shared core for the Waybar widget and TUI binaries.
2//!
3//! The crate is organized by concern, not by binary:
4//! - low-level primitives (`cache`, `countdown`, `pacing`, `pango`, `theme`)
5//! - the vendor abstraction (`vendor`, `vendors::*`, `usage`)
6//! - bin-specific composition (`widget`, `tui`) which lives next to its binary
7//!
8//! The two binaries (`ai-usagebar` and `ai-usagebar-tui`) are thin: they parse
9//! CLI args, instantiate vendors, and hand off to a renderer in this crate.
10
11pub mod active;
12pub mod anthropic;
13pub mod cache;
14pub mod config;
15pub mod countdown;
16pub mod error;
17pub mod format;
18pub mod openai;
19pub mod openrouter;
20pub mod pacing;
21pub mod pango;
22pub mod theme;
23pub mod tooltip;
24pub mod tui;
25pub mod usage;
26pub mod vendor;
27pub mod waybar;
28pub mod widget;
29pub mod zai;
30
31pub use error::{AppError, Result};