|0.3.4||Apr 29, 2023|
|0.3.3||Apr 28, 2023|
|0.3.0||Feb 19, 2023|
|0.2.2||Feb 12, 2023|
|0.1.0||Feb 9, 2023|
#147 in Command-line interface
1,793 downloads per month
Used in 2 crates
A tracing layer that automatically creates and manages indicatif progress bars for active spans.
Progress bars are a great way to make your CLIs feel more responsive. However, adding and managing progress bars in your libraries can be invasive, unergonomic, and difficult to keep track of.
This library aims to make it easy to show progress bars for your CLI by tying progress bars to tracing spans. For CLIs/libraries already using tracing spans, this allow for a dead simple (3 line) code change to enable a smooth progress bar experience for your program. This eliminates having to have code in your libraries to manually manage progress bar instances.
This ends up working quite well as progress bars are fundamentally tracking the lifetime of some "span" (whether that "span" is defined explicitly or implicitly), so might as well make that relationship explicit.
folder for demo code.
Default Configuration with Child Spans
Build Console Like
A recreation of
- Customize progress bars using the same
ProgressStyleAPI as indicatif.
- Supports displaying parent-child span relationship between progress bars.
- Limit the number of progress bars visible on the terminal.
- Prevents progress bars from clobbering tracing logs.