#terminal

loading

Show loading in terminal

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

#651 in #terminal

Download history 37/week @ 2025-10-02 30/week @ 2025-10-09 77/week @ 2025-10-16 54/week @ 2025-10-23 31/week @ 2025-10-30 31/week @ 2025-11-06 36/week @ 2025-11-13 33/week @ 2025-11-20 87/week @ 2025-11-27 37/week @ 2025-12-04 25/week @ 2025-12-11 34/week @ 2025-12-18 30/week @ 2025-12-25 30/week @ 2026-01-01 13/week @ 2026-01-08 31/week @ 2026-01-15

108 downloads per month
Used in 12 crates (11 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