| Crates.io | loading |
| lib.rs | loading |
| version | 0.4.0 |
| created_at | 2020-01-21 04:40:53.207926+00 |
| updated_at | 2024-07-05 08:41:40.098687+00 |
| description | Show loading in terminal |
| homepage | https://github.com/wyhaya/loading |
| repository | https://github.com/wyhaya/loading.git |
| max_upload_size | |
| id | 200657 |
| size | 12,474 |
Used to display loading or progress in the terminal

Add this in your Cargo.toml:
[dependencies]
loading = "*"
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();
}
cargo run --example loading
cargo run --example status
cargo run --example download
cargo run --example spinner