| Crates.io | spb |
| lib.rs | spb |
| version | 0.1.3 |
| created_at | 2025-10-20 03:05:02.01786+00 |
| updated_at | 2025-11-05 14:34:48.810978+00 |
| description | lightweight and simple progress bar. |
| homepage | |
| repository | https://github.com/BayonetArch/spb |
| max_upload_size | |
| id | 1891333 |
| size | 4,943 |
A very simple progress bar to use in any project.
Add 'spb' as dependency.
Cargo add spb
OR
Cargo add --git https://github.com/BayonetArch/spb
use std::{thread, time::Duration};
use spb::{initial_bar_setup, restore_bar_setup};
fn main() {
initial_bar_setup(); // initial setup for bar
let total_task = 10;
let current_task = 0;
while current_task <= total_task {
spb::progress_bar(total_task, current_task); // display the bar at bottom
current_task+=1;
thread::sleep(Duration::from_millis(100));
}
restore_bar_setup(); // restore everything
}