1 unstable release
0.3.0 | May 28, 2022 |
---|---|
0.2.1 |
|
0.1.2 |
|
0.1.1 |
|
0.0.1 |
|
#6 in #loading
296 downloads per month
Used in 8 crates
(7 directly)
8KB
153 lines
loading
Used to display loading
or progress
in the terminal
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