2 unstable releases

0.4.0 Jul 5, 2024
0.3.0 May 28, 2022
0.2.1 May 27, 2022
0.1.2 Dec 2, 2020
0.0.1 Jan 21, 2020

#914 in Text processing

Download history 63/week @ 2024-06-17 86/week @ 2024-06-24 128/week @ 2024-07-01 50/week @ 2024-07-08 56/week @ 2024-07-15 39/week @ 2024-07-22 75/week @ 2024-07-29 48/week @ 2024-08-05 46/week @ 2024-08-12 34/week @ 2024-08-19 66/week @ 2024-08-26 34/week @ 2024-09-02 39/week @ 2024-09-09 60/week @ 2024-09-16 84/week @ 2024-09-23 49/week @ 2024-09-30

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

MIT license

9KB
179 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