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

#864 in Text processing

Download history 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 8/week @ 2024-10-07 52/week @ 2024-10-14 38/week @ 2024-10-21 70/week @ 2024-10-28 42/week @ 2024-11-04 8/week @ 2024-11-11 40/week @ 2024-11-18 55/week @ 2024-11-25 39/week @ 2024-12-02

144 downloads per month
Used in 10 crates (9 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