throbberous 0.1.4

An async-native CLI progress bar and throbber (spinner) library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use throbberous::Throbber;
use tokio::time::{sleep, Duration};

#[tokio::main]
async fn main() {
    println!("Throbber");
    
    let throbber = Throbber::new_plain();
    throbber.start().await;
    // Spins: | / - \ with "Working..."
    sleep(Duration::from_secs(5)).await;
    throbber.stop().await;
}