spinners

Crates.iospinners
lib.rsspinners
version4.1.1
sourcesrc
created_at2017-12-17 21:46:12.904604
updated_at2023-11-21 22:43:14.133414
description🛎 60+ Elegant terminal spinners for Rust
homepagehttps://github.com/fgribreau/spinners
repositoryhttps://github.com/fgribreau/spinners
max_upload_size
id43456
size48,694
Francois-Guillaume Ribreau (FGRibreau)

documentation

https://docs.rs/spinners

README

Spinners - 🛎 60+ Elegant terminal spinners for Rust

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

❤️ Shameless plug

200083093-cf48fcab-d95c-4a59-ac66-6e167dd33e7e

Install

See Cargo page

Usage

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();
}

Example

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

License

MIT © François-Guillaume Ribreau, James Cordor

Commit count: 118

cargo fmt