cephas 0.1.0

Prudent terminal counters and progress helpers
Documentation

cephas

Tiny counter utilities for Knott ecosystem crates.

Purpose

cephas provides a small zero-dependency counter type for terminal-style loops and state-tracking utilities where a single monotonically increasing value is needed.

Features

  • Simple counter — increment and reset state without external dependencies
  • Saturating increment — avoids overflow panics in long-running loops
  • Copy + debug friendly — easy to pass around in tests and hot paths

Install

cargo add cephas

Usage

use cephas::CephasCounter;

let mut counter = CephasCounter::new();
assert_eq!(counter.value(), 0);

let first = counter.bump();
let second = counter.bump();
assert_eq!(first, 1);
assert_eq!(second, 2);

License

MIT OR Apache-2.0