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::Bar;
use tokio::time::{sleep, Duration};

#[tokio::main]
async fn main() {
    println!("Indeterminate Progress Bar:");
    
    let loading = Bar::indeterminate("Working...");
    // Shows bouncing animation: [    ====    ]
    sleep(Duration::from_secs(6)).await;
    loading.finish().await;
    println!("Done!");
}