Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Repository files navigation

progressive

A rust library for showing progress of iterators and loops.

Build StatusCurrent VersionLicense

asciicast

Usage

To use progressive, add this to your Cargo.toml:

[dependencies]
progressive = "0.1"

And this to your crate root:

externcrate progressive;

Here's a simple example that shows how to wrap an iterator in order to get progress information:

externcrate progressive;use progressive::progress;use std::time::Duration;fnmain(){for _ inprogress(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

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages