RichProgressBar
RichProgressBar is a Rust crate that provides a customizable progress bar for console applications.
Features
- Set the color of the progress bar.
- Set the total value of the progress bar.
- Set the progress character.
- Set the display mode of the progress bar (inline or new line).
- Set the length of the progress bar.
- Increment the current value of the progress bar
Usage
Add this to your Cargo.toml:
[dependencies]
rich_progress_bar = "1.0.0"
And this to your crate root:
extern crate rich_progress_bar;
Here's a simple example of how to use ProgressBar:
use RichProgressBar;
use Colors;
use DisplayMode;
let mut progress = new;
progress
.set_color
.set_bar_length
.set_display_mode
.set_total;
for _ in 0..100
Example with NewLine display mode