| Crates.io | mimir_progress |
| lib.rs | mimir_progress |
| version | 0.1.0 |
| created_at | 2025-12-16 15:17:24.206324+00 |
| updated_at | 2025-12-16 15:17:24.206324+00 |
| description | A terminal progress bar with highly configurable intervals. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1988044 |
| size | 25,358 |
A terminal progress bar library for Rust.
use mimir_progress::{Progress, ProgressInterval};
use std::time::Duration;
// Update every 2 seconds
let mut pb = Progress::new(1000, ProgressInterval::Time(Duration::from_secs(2)));
// Or update every 100 items
let mut pb = Progress::new(1000, ProgressInterval::Count(100));
// Or update every 10%
let mut pb = Progress::new(1000, ProgressInterval::Percent(10));
pb.set_prefix("Processing: ".to_string());
for _ in 0..1000 {
// do work
pb.inc();
}
humantime - Duration formattingtermion - Terminal control sequences