| Crates.io | progressive |
| lib.rs | progressive |
| version | 0.1.0 |
| created_at | 2016-05-11 18:02:51.757013+00 |
| updated_at | 2016-05-11 18:02:51.757013+00 |
| description | A rust library for showing progress of iterators and loops |
| homepage | https://github.com/palango/progressive |
| repository | https://github.com/palango/progressive |
| max_upload_size | |
| id | 5038 |
| size | 16,934 |
A rust library for showing progress of iterators and loops.
To create the documentation run:
cargo doc
To use progressive, add this to your Cargo.toml:
[dependencies]
progressive = "0.1"
And this to your crate root:
extern crate progressive;
Here's a simple example that shows how to wrap an iterator tin order to get progress information:
extern crate progressive;
use progressive::progress;
use std::time::Duration;
fn main() {
for _ in progress(0..30) {
// do something expensive here
std::thread::sleep(Duration::from_millis(200));
}
}
For an example run cargo run --example basic