memory_monitor/lib.rs
1//! File: src\lib.rs
2//! Author: Hadi Cahyadi <cumulus13@gmail.com>
3//! Date: 2026-05-06
4//! Description:
5//! License: MIT
6
7//! Memory Monitor & Auto-Cleaner
8//!
9//! A high-performance memory monitoring daemon with automatic cleanup
10//! and Growl/GNTP notification support.
11//!
12//! # Quick Start
13//!
14//! ```rust
15//! use memory_monitor::MemoryMonitor;
16//!
17//! let monitor = MemoryMonitor::new();
18//! monitor.monitor();
19//! ```
20//!
21//! # Features
22//!
23//! - Real-time memory usage tracking
24//! - Automatic memory cleanup when threshold exceeded
25//! - GNTP/Growl desktop notifications
26//! - Configurable thresholds and intervals
27//! - Color-coded terminal interface
28
29pub mod config;
30pub mod monitor;
31pub mod notification;
32pub mod cleaner;
33
34pub use monitor::MemoryMonitor;
35pub use config::MonitorConfig;