❤️ 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