loadingbar 1.0.1

A simple loading bar for the terminal
Documentation
  • Coverage
  • 80%
    4 out of 5 items documented4 out of 5 items with examples
  • Size
  • Source code size: 6.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • basicallygit/loadingbar
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • basicallygit

loadingbar

A simple, customizable loading bar for the terminal written in rust

Usage

Default loading bar

use loadingbar::LoadingBar;

fn main() {
    let bar = LoadingBar::new();
    bar.start();
}

Custom loading bar

use loadingbar::LoadingBar;

fn main() {
    let bar = LoadingBar::new_with_config(
        std::time::Duration::from_secs(10), // how long the bar will take to complete
        '*', // the character to use for the progress bar
        30, // the length of the bar in characters
        String::from("Loading.. "), // prefix message (Loading.. [##########      ])
    );
    bar.start();
}