vault_audit_tools/utils/mod.rs
1//! Utility functions and helpers.
2//!
3//! This module provides common functionality used across multiple commands:
4//!
5//! - [`format`] - Number and text formatting utilities
6//! - [`parallel`] - High-performance parallel file processing
7//! - [`processor`] - Log file processing utilities with common patterns
8//! - [`progress`] - Progress tracking and display utilities
9//! - [`time`] - Timestamp parsing and formatting helpers
10//! - [`reader`] - Smart file reader with automatic decompression
11//!
12//! # Examples
13//!
14//! ## Parsing timestamps
15//!
16//! ```no_run
17//! use vault_audit_tools::utils::time::parse_timestamp;
18//!
19//! let timestamp = parse_timestamp("2025-10-20T10:30:00.000Z").unwrap();
20//! println!("Parsed: {}", timestamp);
21//! ```
22//!
23//! ## Reading compressed files
24//!
25//! ```no_run
26//! use vault_audit_tools::utils::reader::open_file;
27//! use std::io::{BufRead, BufReader};
28//!
29//! // Automatically decompresses .gz and .zst files
30//! let reader = open_file("audit.log.gz").unwrap();
31//! let buf_reader = BufReader::new(reader);
32//! ```
33
34pub mod format;
35pub mod parallel;
36pub mod processor;
37pub mod progress;
38pub mod reader;
39pub mod time;