3 releases

0.1.2 Mar 1, 2023
0.1.1 Jan 10, 2023
0.1.0 Jan 10, 2023

#494 in GUI

Download history 492/week @ 2023-12-14 206/week @ 2023-12-21 216/week @ 2023-12-28 416/week @ 2024-01-04 468/week @ 2024-01-11 892/week @ 2024-01-18 697/week @ 2024-01-25 702/week @ 2024-02-01 694/week @ 2024-02-08 988/week @ 2024-02-15 656/week @ 2024-02-22 214/week @ 2024-02-29 211/week @ 2024-03-07 520/week @ 2024-03-14 364/week @ 2024-03-21 201/week @ 2024-03-28

1,312 downloads per month
Used in 4 crates

MIT license

44KB
966 lines

how-u-doin

Progress reporting abstraction for Rust

howudoin intends to make producing and consuming progress reports simple and ergonomic. Importantly, it separates the progress producers from the consumer, allowing progress reports to be generated from disparate sections in a system.

// initialise a consumer loop
howudoin::init(howudoin::consumers::Noop::default());

let rpt = howudoin::new().label("Progress").set_len(10);

for _ in 0..10 {
    rpt.inc(); // increment the progress
    // check for cancellation
    if rpt.cancelled() {
        break;
    }
}

rpt.finish(); // finalise progress

// fetch the tree of progress
let progress = howudoin::fetch();

Features:

  • Lightweight
  • Unobtrusive interface
  • Nestable reports
  • Automatic timers
  • Message accumulation
  • Cancellation

Take a look at the examples for example consumers.

Example terminal consumer

term-line

Support

Please help support this project by sponsoring 💗

Dependencies

~0.6–10MB
~70K SLoC