Crates.io | terminal-spinners |
lib.rs | terminal-spinners |
version | 0.3.2 |
source | src |
created_at | 2021-03-05 01:16:40.516437 |
updated_at | 2021-12-20 17:30:00.234203 |
description | A library for showing terminal loading animations |
homepage | |
repository | https://github.com/mainrs/terminal-spinners-rs |
max_upload_size | |
id | 364007 |
size | 86,002 |
A Rust library for showing terminal loading animations.
use terminal_spinners::{SpinnerBuilder, DOTS};
let handle = SpinnerBuilder::new().spinner(&DOTS).text("Loading unicorns").start();
// Do some other work...
std::thread::sleep(std::time::Duration::from_secs(3));
handle.done();
The examples/
directory contains an example for each available spinner. To see them in action, run cargo run --example <name>
. Additional examples for showcasing other functionality are:
Filename | Desc |
---|---|
clear_line |
Showcases SpinnerHandle::stop_and_clear |