Skip to main content

Crate loaders

Crate loaders 

Source
Expand description

loaders is a zero-dependency Rust crate for progress bars, spinners, and loading indicators in terminal applications.

It is designed for the common case to be tiny while keeping the rendering, styling, iterator, and multi-progress APIs flexible enough for real CLI tools.

§Quick Start

use loaders::ProgressBar;

let pb = ProgressBar::hidden();
pb.set_length(3);
for _ in 0..3 {
    pb.inc(1);
}
pb.finish_with_message("done");

Guides and examples live at https://muhammad-fiaz.github.io/loaders.

Re-exports§

pub use bar::progress::ProgressBar;
pub use bar::progress::ProgressBarBuilder;
pub use iter::wrap::ProgressIterator;
pub use multi::multi_progress::MultiProgress;
pub use spinner::spinner::Spinner;
pub use style::color::Color;
pub use style::color::ColorSpec;
pub use style::style::ProgressChars;
pub use style::style::ProgressStyle;
pub use style::theme::Theme;
pub use terminal::writer::DrawTarget;

Modules§

bar
Progress bar state, rendering, templates, and public progress APIs.
iter
Iterator integration for progress bars.
multi
Multi-progress rendering support.
spinner
Spinner presets and the ergonomic Spinner wrapper.
style
Styling, ANSI color, and themes for progress indicators.
terminal
Terminal capability detection and output targets.
utils
Formatting helpers used by progress templates.