Skip to content
reason-machines avatar

Rattles Terminal Spinners

Minimal zero-dependency Rust spinner library with preset collections and no_std support.

CCM score
46 of 100
skills.sh installs
392
GitHub stars
99
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers stateless spinner construction for render loops, with frame lookup by system clock, index, or elapsed duration
  • Includes preset categories for arrows, ASCII, braille, and emoji, plus a rattle! macro for custom keyframes
  • Provides TickedRattler as a stateful wrapper for tick-driven animation where no global clock is available
  • Designed for CLI and ratatui applications, including no_std targets built with default-features = false

Install

$ npx -y skills add reason-machines/trending-skills --skill rattles-terminal-spinners -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Rattles Terminal Spinners

Skill by ara.so — Daily 2026 Skills collection.

Rattles is a minimal, zero-dependency Rust library for terminal spinners. It has no runtime or lifecycle — spinners are constructed directly in render loops with negligible cost. Supports no_std environments.

Installation

# Cargo.toml
[dependencies]
rattles = "0.1"  # with std (default)

# no_std
rattles = { version = "0.1", default-features = false }

Or via CLI:

cargo add rattles

# no_std variant
cargo add rattles --no-default-features

Core Concepts

  • Rattler: a spinner definition (frames + interval). Stateless and cheap to construct.
  • TickedRattler: stateful wrapper for tick-based driving (required in no_std).
  • Presets: built-in spinners organized by category.
  • rattle! macro: define custom spinners at compile time.

Basic Usage (std)

use std::{io::Write, time::Duration};
use rattles::presets::prelude as presets;

fn main() {
    let rattle = presets::dots();

Details

Repository
github.com/reason-machines/trending-skills
Categories
Rust, CLI & Terminal
First seen
Jun 3, 2026

Questions

What is the rattles-terminal-spinners skill used for?

The rattles-terminal-spinners skill teaches an agent to add animated terminal spinners to Rust command line apps using the rattles library. It covers built-in presets, custom spinners made with the rattle! macro, and no_std support for embedded contexts.

How do I install the rattles-terminal-spinners skill?

Run npx -y skills add reason-machines/trending-skills --skill rattles-terminal-spinners -y in a project. The rattles-terminal-spinners skill then lets the agent write spinner code with the rattles crate, including ratatui and tokio examples.

Where does rattles-terminal-spinners rank in the Rust category?

The rattles-terminal-spinners skill ranks in the top 100 of the Rust category on Claude Marketplaces. Its spinner focus sets it apart from skills like fix-errors and rust-testing, since it covers terminal animation specifically.

More from reason-machines/trending-skills

All 251

Similar to Rattles Terminal Spinners

More Rust