5 releases
0.2.2 | Dec 1, 2022 |
---|---|
0.2.1 | Dec 1, 2022 |
0.2.0 | Nov 30, 2022 |
0.1.6 |
|
#942 in Command-line interface
87 downloads per month
11KB
192 lines
Simple Bar
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:
lib.rs
:
simple_bar
is an extremely simple terminal progress bar
Example
use std::{thread::sleep, time::Duration};
use simple_bar::ProgressBar;
let num_iterations = 500;
let mut bar = ProgressBar::default(num_iterations, 50, false);
for _ in 0..num_iterations {
bar.update();
sleep(Duration::from_millis(1));
}
This example generates the following output: