simple_bar

Crates.iosimple_bar
lib.rssimple_bar
version0.2.2
sourcesrc
created_at2022-07-09 19:38:55.86655
updated_at2022-12-01 11:29:42.644794
descriptionBare minimal crate that displays a progress bar in the terminal
homepage
repositoryhttps://github.com/sauronevillord/simple-bar
max_upload_size
id622717
size10,969
HeyCarl (sauronevillord)

documentation

README

Simple Bar

crates.io

An extremely minimal terminal progress bar for Rust.

Example

use std::{thread::sleep, time::Duration};
use simple_bar::ProgressBar;

let num_iterations = 500;
let length = 100;
let eta = false
let mut bar = ProgressBar::default(num_iterations, length, eta);

for _ in 0..num_iterations {
    bar.update();
    sleep(Duration::from_millis(200));
}

This example generates the following output: above code generates

Commit count: 32

cargo fmt