headway 0.1.2

An ergonomic progress bar library
Documentation
1
2
3
4
5
6
7
8
9
10
11
use headway::ProgressBarIterable;
use std::{thread::sleep, time::Duration};

pub fn main() {
    for i in (0..100).progress() {
        if i % 10 == 0 {
            println!("{}", i);
        }
        sleep(Duration::from_millis(20));
    }
}