1 unstable release

0.3.0 May 28, 2022
0.2.1 May 27, 2022
0.1.2 Dec 2, 2020
0.1.1 Jul 1, 2020
0.0.1 Jan 21, 2020

#44 in #show

Download history 45/week @ 2024-01-09 25/week @ 2024-01-16 29/week @ 2024-01-23 14/week @ 2024-01-30 13/week @ 2024-02-06 43/week @ 2024-02-13 98/week @ 2024-02-20 75/week @ 2024-02-27 54/week @ 2024-03-05 63/week @ 2024-03-12 78/week @ 2024-03-19 61/week @ 2024-03-26 93/week @ 2024-04-02 37/week @ 2024-04-09 120/week @ 2024-04-16 90/week @ 2024-04-23

359 downloads per month
Used in 8 crates (7 directly)

MIT license

8KB
153 lines

loading

Crates.io docs.rs LICENSE

Used to display loading or progress in the terminal

Preview

Use

Add this in your Cargo.toml:

[dependencies]
loading = "*"

Example

use loading::Loading;
use std::thread;
use std::time::Duration;

fn main() {
    let loading = Loading::default();

    for i in 0..=100 {
        loading.text(format!("Loading {}", i));
        thread::sleep(Duration::from_millis(50));
    }

    loading.success("OK");

    loading.end();
}

Other example

cargo run --example loading
cargo run --example status
cargo run --example download
cargo run --example spinner

No runtime deps