Crates.io | spinners |
lib.rs | spinners |
version | 4.1.1 |
source | src |
created_at | 2017-12-17 21:46:12.904604 |
updated_at | 2023-11-21 22:43:14.133414 |
description | 🛎 60+ Elegant terminal spinners for Rust |
homepage | https://github.com/fgribreau/spinners |
repository | https://github.com/fgribreau/spinners |
max_upload_size | |
id | 43456 |
size | 48,694 |
❤️ Shameless plug
See Cargo page
use spinners::{Spinner, Spinners};
use std::thread::sleep;
use std::time::Duration;
fn main() {
let mut sp = Spinner::new(Spinners::Dots9, "Waiting for 3 seconds".into());
sleep(Duration::from_secs(3));
sp.stop();
}
cargo run --example cycle
cargo run --example simple
MIT © François-Guillaume Ribreau, James Cordor