throbber

Crates.iothrobber
lib.rsthrobber
version1.0.0
created_at2021-02-25 19:13:22.161364+00
updated_at2025-11-16 00:15:34.733833+00
descriptionDisplay a throbber animation in the terminal.
homepage
repositoryhttps://github.com/Treeniks/throbber
max_upload_size
id360641
size21,039
Thomas Lindae (Treeniks)

documentation

README

Throbber

Crates.io docs.rs GitHub last commit License

This crate serves as an alternative to loading. It is used to display a throbber animation in the terminal while other calculations are done in the main program.

Throbber Preview

Docs

Example

use std::thread;
use std::time::Duration;
use throbber::Throbber;

fn main() {
    let mut throbber = Throbber::default().message("calculating stuff");

    throbber.start();
    // do stuff
    thread::sleep(Duration::from_secs(2));
    throbber.success("Success");

    throbber.start_with_msg("calculating more stuff");
    // do other stuff
    thread::sleep(Duration::from_secs(2));
    throbber.fail("Fail");
}
Commit count: 0

cargo fmt