stati 0.6.4-beta

A library for progress (bars)
Documentation

stati

Rust library for progress bars

WARNING

currently very unfinished, semi-undocumented, and requires nightly rust to build, as it is still very much in development.

Installation

Then add this line to your Cargo.toml

stati = "0.6.4-beta"

Usage

This is a simple example of how to create and progress a progress bar

use std::thread;

extern crate stati;

use stati::prelude::*;

let mut manager = BarManager::new();
let mut bar = manager.register_bar(bars::SimpleBar::new("Working...".into(), ()));
for i in 0..=100 {
    bar.set_progress(i);
    manager.print();
    thread::sleep_ms(100);
}

To print text while using a progress bar, use the println and print macros like so

let mut manager = BarManager::new();
stati::println!(manager, "Made some progress");

Why?

Many progress bars that I have used in the past have suffered from issues such as not being able to have multiple bars at once, or not being able to print other messages while a bar was running. this crate aims to solve all of these issues, and generaly make it much nicer to use.

Lisence

MIT, see LISENCE

TODO's

  • add fun spini spinner wheeeeeeeeeeeeeeeeee
  • non-nightly support
  • improve docs
  • improve tests
  • improve examples
  • add builder pattern support for making progress bars
  • better iterator tracking
  • multithreading?
  • create bar style with string formatting like indicatif?
  • update to use Vec::drain_filter once it is stableized