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
#[tokio::test]
async fn test_bar() {
    let bar = throbberous::Bar::new(100);
    for _ in 0..100 {
        tokio::time::sleep(tokio::time::Duration::from_millis(50)).await;
        bar.inc(1).await;
    }
    bar.finish_with_message("Done!").await;
}