fparkan/vendor/indicatif/examples/slow.rs
Valentin Popov 1b6a04ca55
Initial vendor packages
Signed-off-by: Valentin Popov <valentin@popov.link>
2024-01-08 01:21:28 +04:00

13 lines
333 B
Rust

use indicatif::{ProgressBar, ProgressStyle};
use std::time::Duration;
fn main() {
let progress =
ProgressBar::new(10).with_style(ProgressStyle::default_bar().progress_chars("🔐🔑🕓"));
for _ in 0..10 {
progress.inc(1);
std::thread::sleep(Duration::from_secs(1));
}
progress.finish();
}