Skip to main content

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 account;
12pub mod active;
13pub mod anthropic;
14pub mod anthropic_api;
15pub mod antigravity;
16pub mod cache;
17pub mod claude_desktop;
18pub mod config;
19pub mod context;
20pub mod countdown;
21pub mod cursor;
22pub mod deepseek;
23pub mod display;
24pub mod error;
25pub mod format;
26pub mod grok;
27pub mod kilo;
28pub mod kimi;
29pub mod minimax;
30pub mod moonshot;
31pub mod novita;
32pub mod openai;
33pub mod openrouter;
34pub mod pacing;
35pub mod pango;
36pub mod theme;
37pub mod tooltip;
38pub mod tui;
39pub mod usage;
40pub mod vendor;
41pub mod waybar;
42pub mod widget;
43pub mod zai;
44
45pub use error::{AppError, Result};