#progress-bar #bar #progress #cli

progrex

A simple and customizable CLI progress bar for Rust

1 unstable release

0.1.0 Feb 5, 2025

#1467 in Command line utilities

Download history 132/week @ 2025-02-03 6/week @ 2025-02-10

138 downloads per month

MIT license

5KB
51 lines


Progrex 🚀

A lightweight and customizable CLI progress bar for Rust applications.

Crates.io
License: MIT

📌 Features

✅ Simple and easy-to-use API
✅ Customizable progress bar styles
✅ Real-time ETA tracking
✅ Ideal for CLI applications


📦 Installation

Add progrex to your Cargo.toml:

[dependencies]
progrex = "0.1.0"

Then run:

cargo build

🚀 Usage

Basic Example

use progrex::ProgressBar;
use std::thread::sleep;
use std::time::Duration;

fn main() {
    let mut bar = ProgressBar::new(100);

    for i in 0..=100 {
        bar.set_progress(i);
        sleep(Duration::from_millis(50));
    }

    bar.finish();
}

Output:

[███████████████               ] 50.00% | ETA: 2.5s

🔧 Customization

You can modify the bar length, display format, and refresh rate (coming soon).


📜 License

Licensed under the MIT License. See LICENSE for details.


🤝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.


Would you like to add badges for GitHub actions (build status) or more customization options? 😊

No runtime deps