Crates.io | better_progress |
lib.rs | better_progress |
version | 0.1.0 |
source | src |
created_at | 2023-12-03 21:27:19.714559 |
updated_at | 2023-12-03 21:27:19.714559 |
description | Library for showing text based progress bar and job status |
homepage | https://github.com/lesterrry/better-progress |
repository | https://github.com/lesterrry/better-progress |
max_upload_size | |
id | 1057087 |
size | 18,248 |
progress is meant to be a set of useful tools for showing program running progress (as its name) and steps.
Add the following lines to your Cargo.toml
dependencies section, if you
use Cargo.io:
[dependencies]
progress = "0.1"
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" }
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.
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!
print!("{:<50}")
, but it count unprintable text as well, I
have to solve it first.MIT, see LICENSE