wdxtools 0.4.2

Everyday formatting tools for the command line
Documentation
//! Everyday formatting tools for the command line.
//!
//! Each module is a faithful port of a widely-used library function, kept at
//! 100% feature parity with its source implementation:
//!
//! - [`number`] — Laravel's `Number::abbreviate()`
//! - [`timediff`] — Carbon's `diffForHumans()`

pub mod number;
pub mod timediff;

/// The `jiff` version this crate is built against.
///
/// [`timediff`] takes `jiff::Zoned` values, so callers must construct them from
/// the same `jiff` this crate links. Re-exporting it removes the risk of a
/// version mismatch between your `Cargo.toml` and ours.
///
/// ```
/// use wdxtools::jiff::Zoned;
/// let now: Zoned = "2024-01-15T00:00:00[UTC]".parse().unwrap();
/// ```
pub use jiff;