whippyunits-pretty

Crates.iowhippyunits-pretty
lib.rswhippyunits-pretty
version0.1.0
created_at2025-11-17 00:43:13.445591+00
updated_at2025-11-17 00:43:13.445591+00
descriptionCLI tool for pretty-printing whippyunits types in compiler output
homepage
repositoryhttps://github.com/Oblarg/whippyunits
max_upload_size
id1936066
size34,619
Eli Barnett (Oblarg)

documentation

README

whippyunits-pretty

CLI tool for pretty-printing whippyunits types in rustc compiler output.

Installation

cargo install whippyunits-pretty

Or build from source:

cargo build -p whippyunits-pretty --release

Usage

Basic (stdin)

cargo check 2>&1 | whippyunits-pretty

From file

whippyunits-pretty -f compiler_output.txt

Options

  • -v, --verbose: Enable verbose output mode
  • -u, --no-unicode: Disable Unicode symbols
  • -r, --include-raw: Include raw type information
  • -d, --debug: Enable debug logging
  • -f, --input <FILE>: Read from file instead of stdin

Example

Before:

error: expected `Quantity<0, 9223372036854775807, 1, 0, 0, 9223372036854775807, 9223372036854775807, 9223372036854775807>`

After:

error: expected `Quantity<m; Length>`

Integration

# Cargo
cargo check 2>&1 | whippyunits-pretty

# Makefile
check-pretty:
	cargo check 2>&1 | whippyunits-pretty
Commit count: 0

cargo fmt