crates/nornir-humanize/Cargo.toml
[package]
name = "nornir-humanize"
version = "0.1.3"
edition = "2021"
# PUBLISHABLE: a pure display helper shared by apps/UIs. It is a REAL dependency of
# the published `nornir` crate, and cargo publish does not honour `publish = false`
# for a dependency of a published crate — leaving it unpublishable fail-stops the
# `nornir` upload with "no matching package named nornir-humanize". Its only
# (optional) dep, nornir-testmatrix, is live on crates.io, so it publishes cleanly
# on its own. (Was held off crates.io; the constellation release now includes it.)
publish = true
description = "The ONE shared human-readable FORMATTING primitive for the nordisk constellation — byte sizes (`bytes` → `1.5 KiB`, IEC binary; `bytes_si` → `1.5 KB`, SI), compact counts (`count` → `3.4M`), grouped digits (`thousands` → `1,234,567`), durations (`duration`/`duration_ms`/`duration_secs` → `2m 03s`), binary throughput (`throughput` → `3.5 MiB/s`) and ratios (`percent` → `12.3%`). REUSE (LAW #5): eight+ near-identical `human_bytes`/`human_count`/`fmt_elapsed` twins across nornir + facett grew independently and drifted on units (KiB vs KB, `k` vs `K`, space vs none) — this leaf owns the canon so every report/label/UI reads the same. std-only, ZERO runtime deps."
license = "MIT OR Apache-2.0"
repository = "https://git.gunnar.rs/nordisk/edda"
keywords = ["humanize", "bytes", "duration", "format", "human-readable"]
categories = ["value-formatting", "development-tools"]
exclude = ["/.nornir/"]
[features]
default = []
# `testmatrix` — emit each formatter surface's health (exact-string vectors,
# boundary cases, unit convention) into the nornir test-matrix via
# `functional_status`. OFF BY DEFAULT: a compiled-out no-op with no nornir dep,
# so a lean/library build carries neither the emitter nor testmatrix.
testmatrix = ["dep:nornir-testmatrix", "nornir-testmatrix/testmatrix"]
[dependencies]
# Introspection-marker emitter — only compiled with `testmatrix`. Path+version
# (like the other edda leaves) so the workspace resolves the local sibling. This
# is the ONLY dependency, and it is absent from a default (release) build.
nornir-testmatrix = { version = "0.2.7", path = "../nornir-testmatrix", default-features = false, optional = true }