Crates.io | spinners-jdxcode |
lib.rs | spinners-jdxcode |
version | 4.1.0 |
source | src |
created_at | 2023-02-01 02:49:41.146962 |
updated_at | 2023-02-01 02:49:41.146962 |
description | 🛎 60+ Elegant terminal spinners for Rust |
homepage | https://github.com/fgribreau/spinners |
repository | https://github.com/fgribreau/spinners |
max_upload_size | |
id | 773203 |
size | 48,368 |
❤️ 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