Skip to main content
  1. Projects/

spinners

·89 words·1 min
Jake Roggenbuck
Author
Jake Roggenbuck
I am currently studying Computer Science

Spinners - ๐Ÿ›Ž 60+ Elegant terminal spinners for Rust #

Cargo version
Crates.io
docs.rs
Crates.io
Slack

โค๏ธ Shameless plug #

Install #

See Cargo page

Usage #

use spinners;

use spinners::{Spinner, Spinners};
use std::thread::sleep;
use std::time::Duration;

fn main() {
    let sp = Spinner::new(Spinners::Dots9, "Waiting for 3 seconds".into());
    sleep(Duration::from_secs(3));
    sp.stop();
}

Example #

cargo run --example cycle
cargo run --example simple

License #

MIT ยฉ Franรงois-Guillaume Ribreau