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