spb

Crates.iospb
lib.rsspb
version0.1.3
created_at2025-10-20 03:05:02.01786+00
updated_at2025-11-05 14:34:48.810978+00
descriptionlightweight and simple progress bar.
homepage
repositoryhttps://github.com/BayonetArch/spb
max_upload_size
id1891333
size4,943
(SegFaulr)

documentation

README

Introduction

A very simple progress bar to use in any project.

Quick start

Add 'spb' as dependency.

Cargo add spb

OR

Cargo add --git https://github.com/BayonetArch/spb

Example

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
}
Commit count: 0

cargo fmt