nutmeg 0.1.6

An unopinionated progress bar library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2022 Martin Pool

pub fn main() {
    let progress = nutmeg::View::new(
        nutmeg::models::UnboundedModel::new("Counting raindrops"),
        nutmeg::Options::default(),
    );
    for _i in 0..=99 {
        progress.update(|model| model.increment(1));
        std::thread::sleep(std::time::Duration::from_millis(100));
    }
}