| Crates.io | simple_bar |
| lib.rs | simple_bar |
| version | 0.2.2 |
| created_at | 2022-07-09 19:38:55.86655+00 |
| updated_at | 2022-12-01 11:29:42.644794+00 |
| description | Bare minimal crate that displays a progress bar in the terminal |
| homepage | |
| repository | https://github.com/sauronevillord/simple-bar |
| max_upload_size | |
| id | 622717 |
| size | 10,969 |
An extremely minimal terminal progress bar for Rust.
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:
