13 lines
333 B
Rust
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();
|
|
}
|