terminal-spinners 0.1.2

A library for showing terminal loading animations
docs.rs failed to build terminal-spinners-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: terminal-spinners-0.3.2

terminal-spinners

A Rust library for showing terminal loading animations.

Usage

NOTE: Printing is only supported with the print feature, which is enabled by default.

use terminal_spinners::{SpinnerBuilder, DOTS};

let handle = SpinnerBuilder::new().spinner(&DOTS).text("Loading unicorns").start();
// Do some other work...
std::thread::sleep(std::time::Duration::from_secs(3));
handle.done();

The examples/ directory contains an example for each available spinner. To see them in action, run cargo run --example <name>. Additional examples for showcasing other functionality are:

Filename Desc
clear_line Showcases SpinnerHandle::stop_and_clear

Shortcomings

  • It's not possible to run multiple spinners at once. This probably needs an API change. Open for help/PR!

License