pbr 1.1.1

Console progress bar for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use pbr::ProgressBar;
use rand::prelude::*;
use std::thread;
use std::time::Duration;

fn main() {
    let count = 500;
    let mut pb = ProgressBar::new(count);
    pb.format("╢▌▌░╟");
    for _ in 0..count {
        pb.inc();
        let n = thread_rng().gen_range(0..100);
        thread::sleep(Duration::from_millis(n));
    }
    pb.finish_println("done!");
}