#progress-bar #bar #status-bar #terminal #cli

progress

Library for showing text based progress bar and job status

3 unstable releases

Uses old Rust 2015

0.2.0 Jan 16, 2016
0.1.1 Jan 7, 2016
0.1.0 Jan 5, 2016

#1045 in GUI

Download history 306/week @ 2024-05-21 232/week @ 2024-05-28 149/week @ 2024-06-04 154/week @ 2024-06-11 233/week @ 2024-06-18 157/week @ 2024-06-25 70/week @ 2024-07-02 166/week @ 2024-07-09 157/week @ 2024-07-16 175/week @ 2024-07-23 156/week @ 2024-07-30 163/week @ 2024-08-06 136/week @ 2024-08-13 123/week @ 2024-08-20 181/week @ 2024-08-27 112/week @ 2024-09-03

580 downloads per month
Used in 6 crates (5 directly)

MIT license

14KB
191 lines

progress

progress is meant to be a set of useful tools for showing program running progress (as its name) and steps.

View the Rustdoc

Examples

progress::Bar

Installation

Add the following lines to your Cargo.toml dependencies section, if you use Cargo.io:

[dependencies]
progress = "0.2"

Or if you want to use this GitHub repo directly (warning: you'll download some extra nonsense e.g. gifs), add following line to your Cargo.toml:

[dependencies]
progress = { git = "https://github.com/TheKK/progress.git" }

Usage

Here shows you how to crate and use progress bar.

use std::thread;

extern crate progress;

let bar = progress::Bar::new();

bar.set_job_title("Working...");

for i in 0..11 {
    thread::sleep_ms(100);
    bar.reach_percent(i * 10);
}

Please check documentations for more detail.

Contribution

I can't believe you would say that, but if you have any great idea want to share or any bug to report, don't be hesitate! It would be more wonderful if someone wants to write some code for this project!

Who create this

TODO list

  • Add more type of indicators, e.g. spinning symbol or nayn cat :3
  • Color/styled text support.
    • I currently use print!("{:<50}"), but it count unprintable text as well, I have to solve it first.
  • Make output format customizable, despite I have no idea how to achieve this for now (or shall we?).

License

MIT, see LICENSE

Dependencies

~220KB