Skip to content

A rust library for showing progress of iterators and loops.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

palango/progressive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

progressive

A rust library for showing progress of iterators and loops.

Build Status Current Version License

asciicast

Usage

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 in 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

About

A rust library for showing progress of iterators and loops.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages