Skip to main content

batuta_common/
lib.rs

1//! Shared utilities for the Batuta stack.
2//!
3//! Provides consistent formatting, system information, and display helpers
4//! used across pmat, trueno-viz, aprender, and other Batuta crates.
5//!
6//! # Modules
7//!
8//! - [`fmt`] — Byte, percentage, duration, and number formatting
9//! - [`sys`] — System information (cgroup detection, CPU info)
10//! - [`display`] — Column alignment, truncation, and builder traits
11
12// `.unwrap()` is banned in production via workspace `.clippy.toml`, but is
13// idiomatic in `#[cfg(test)]` assertions. Allow it only under `cfg(test)`.
14#![cfg_attr(test, allow(clippy::disallowed_methods))]
15
16pub mod compression;
17pub mod display;
18pub mod fmt;
19pub mod math;
20pub mod sys;