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 error;
24pub mod format;
25pub mod grok;
26pub mod kilo;
27pub mod kimi;
28pub mod minimax;
29pub mod moonshot;
30pub mod novita;
31pub mod openai;
32pub mod openrouter;
33pub mod pacing;
34pub mod pango;
35pub mod theme;
36pub mod tooltip;
37pub mod tui;
38pub mod usage;
39pub mod vendor;
40pub mod waybar;
41pub mod widget;
42pub mod zai;
43
44pub use error::{AppError, Result};