blazer 0.1.2

A blazing fast, feature-rich library for styling and enhancing CLI output in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use blazer::progress::ProgressBar;
use std::thread::sleep;
use std::time::Duration;

fn main() {
    let mut bar = ProgressBar::new(40).with_label("Processing");
    for i in 0..=40 {
        bar.set_position(i);
        bar.draw();
        sleep(Duration::from_millis(30));
    }
    bar.finish_with_message("All done!");
}