loading

Crates.io docs.rs LICENSE

Used to display the loading style in the terminal, when the program needs to wait, or display the progress, it can improve the user experience.

preview

Use

Add this in your Cargo.toml:

toml [dependencies] loading = "*"

Example

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

fn main() { let mut loading = Loading::new();

loading.start();

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 status cargo run --example download