🪇 Rattles

Rattles is a terminal spinner library for Rust. It is equipped with extensive preset library and lets you define custom spinners at compile time.
Rattles is minimal; it makes no assumptions about how the output will be used, and just works with no prior configuration required.
Rattles is lightweight; it's dependency-free, built for compile-time construction with minimal overhead.
Quick Start
Minimal example
use ;
use prelude as presets;
The interval of the animation can be configured with set_interval(...) method, and the direction can be flipped with reverse().
Custom keyframes
rattle!
Presets
Built-in presets are organized by category:
presets::arrowspresets::asciipresets::braillepresets::emoji
A prelude is available rattles::presets::prelude.
Examples
Example showcasing all presets, built with ratatui: